diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 1a084802c334..cefcba3222ec 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,4 +1,4 @@ -# Copyright 2022 Google LLC +# Copyright 2025 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs-mono-repo:latest - digest: sha256:f4c4b25acd731314f08ff8965e837f8a3088f2dac5691031ce3b9f3ab65cb6c7 + digest: sha256:89526e4d0c2f9e11da737d8f00373b459459390811b9d47af68bd66a8a65984a +# created: 2025-11-03T16:04:39.848021946Z diff --git a/.github/workflows/continuous.yaml b/.github/workflows/continuous.yaml index c84403768ee0..c9dfb820b116 100644 --- a/.github/workflows/continuous.yaml +++ b/.github/workflows/continuous.yaml @@ -10,7 +10,7 @@ jobs: matrix: node: [18, 20, 22] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: pnpm/action-setup@v4 with: version: ^7.0.0 diff --git a/.github/workflows/issues-no-repro.yaml b/.github/workflows/issues-no-repro.yaml index 816d9a709a26..531054022d14 100644 --- a/.github/workflows/issues-no-repro.yaml +++ b/.github/workflows/issues-no-repro.yaml @@ -10,7 +10,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/setup-node@v4 with: node-version: 18 diff --git a/.github/workflows/presubmit.yaml b/.github/workflows/presubmit.yaml index cbf7ad29ef79..062e95c43436 100644 --- a/.github/workflows/presubmit.yaml +++ b/.github/workflows/presubmit.yaml @@ -8,7 +8,7 @@ jobs: matrix: node: [18, 20, 22] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 300 - uses: pnpm/action-setup@v4 diff --git a/.github/workflows/response.yml b/.github/workflows/response.yml index 6ed37326feab..e81a3603af52 100644 --- a/.github/workflows/response.yml +++ b/.github/workflows/response.yml @@ -13,7 +13,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/github-script@v7 with: script: | @@ -27,7 +27,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/github-script@v7 with: script: | diff --git a/.github/workflows/update-api-list.yaml b/.github/workflows/update-api-list.yaml index f5a2b455ed24..ee64496f9d85 100644 --- a/.github/workflows/update-api-list.yaml +++ b/.github/workflows/update-api-list.yaml @@ -7,7 +7,7 @@ jobs: update-api-list: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/setup-node@v4 with: node-version: 18 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3e29ad880f3d..d8eae04199f1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -11,7 +11,7 @@ "packages/google-area120-tables": "4.2.1", "packages/google-cloud-accessapproval": "4.2.1", "packages/google-cloud-advisorynotifications": "2.2.1", - "packages/google-cloud-aiplatform": "5.12.0", + "packages/google-cloud-aiplatform": "5.14.0", "packages/google-cloud-alloydb": "2.2.1", "packages/google-cloud-apigateway": "4.2.1", "packages/google-cloud-apigeeconnect": "4.2.1", @@ -20,13 +20,13 @@ "packages/google-cloud-assuredworkloads": "5.1.1", "packages/google-cloud-automl": "5.1.1", "packages/google-cloud-baremetalsolution": "2.1.1", - "packages/google-cloud-batch": "2.2.1", + "packages/google-cloud-batch": "2.3.0", "packages/google-cloud-beyondcorp-appconnections": "2.1.1", "packages/google-cloud-beyondcorp-appconnectors": "2.1.1", "packages/google-cloud-beyondcorp-appgateways": "2.1.1", "packages/google-cloud-beyondcorp-clientconnectorservices": "3.1.1", "packages/google-cloud-beyondcorp-clientgateways": "2.1.1", - "packages/google-cloud-bigquery-analyticshub": "2.3.1", + "packages/google-cloud-bigquery-analyticshub": "2.4.0", "packages/google-cloud-bigquery-connection": "4.1.1", "packages/google-cloud-bigquery-dataexchange": "2.1.1", "packages/google-cloud-bigquery-datapolicies": "2.3.1", @@ -40,7 +40,7 @@ "packages/google-cloud-channel": "4.1.1", "packages/google-cloud-clouddms": "4.1.1", "packages/google-cloud-commerce-consumer-procurement": "0.7.1", - "packages/google-cloud-compute": "6.4.0", + "packages/google-cloud-compute": "6.5.0", "packages/google-cloud-confidentialcomputing": "2.2.2", "packages/google-cloud-config": "0.11.1", "packages/google-cloud-connectors": "0.5.1", @@ -51,13 +51,13 @@ "packages/google-cloud-dataform": "2.2.1", "packages/google-cloud-datafusion": "4.1.1", "packages/google-cloud-datalabeling": "5.1.1", - "packages/google-cloud-dataplex": "5.2.0", + "packages/google-cloud-dataplex": "5.3.0", "packages/google-cloud-dataproc": "6.2.1", "packages/google-cloud-dataqna": "4.1.1", "packages/google-cloud-datastream": "4.3.1", "packages/google-cloud-deploy": "5.2.1", - "packages/google-cloud-dialogflow": "7.3.0", - "packages/google-cloud-dialogflow-cx": "5.4.0", + "packages/google-cloud-dialogflow": "7.4.0", + "packages/google-cloud-dialogflow-cx": "5.5.0", "packages/google-cloud-discoveryengine": "2.5.2", "packages/google-cloud-dns": "5.3.1", "packages/google-cloud-documentai": "9.5.0", @@ -86,11 +86,11 @@ "packages/google-cloud-metastore": "5.2.1", "packages/google-cloud-migrationcenter": "2.2.1", "packages/google-cloud-monitoring": "5.3.1", - "packages/google-cloud-netapp": "0.14.1", + "packages/google-cloud-netapp": "0.15.0", "packages/google-cloud-networkconnectivity": "4.5.1", "packages/google-cloud-networkmanagement": "5.1.1", "packages/google-cloud-networksecurity": "3.3.1", - "packages/google-cloud-networkservices": "0.11.1", + "packages/google-cloud-networkservices": "0.12.0", "packages/google-cloud-notebooks": "4.2.1", "packages/google-cloud-orchestration-airflow-service": "4.3.1", "packages/google-cloud-orgpolicy": "4.3.1", @@ -116,14 +116,14 @@ "packages/google-cloud-servicedirectory": "6.1.1", "packages/google-cloud-shell": "4.1.1", "packages/google-cloud-speech": "7.2.1", - "packages/google-cloud-sql": "0.22.0", + "packages/google-cloud-sql": "0.23.0", "packages/google-cloud-storageinsights": "2.2.1", "packages/google-cloud-support": "2.2.1", "packages/google-cloud-talent": "7.1.1", "packages/google-cloud-tasks": "6.2.1", "packages/google-cloud-texttospeech": "6.4.0", "packages/google-cloud-tpu": "4.1.1", - "packages/google-cloud-translate": "9.2.1", + "packages/google-cloud-translate": "9.3.0", "packages/google-cloud-video-livestream": "2.2.1", "packages/google-cloud-video-stitcher": "3.2.1", "packages/google-cloud-video-transcoder": "4.4.1", @@ -138,7 +138,7 @@ "packages/google-cloud-workstations": "2.2.1", "packages/google-container": "6.6.0", "packages/google-dataflow": "4.1.1", - "packages/google-devtools-artifactregistry": "4.3.1", + "packages/google-devtools-artifactregistry": "4.4.0", "packages/google-devtools-cloudbuild": "5.3.1", "packages/google-devtools-cloudprofiler": "0.9.1", "packages/google-devtools-containeranalysis": "6.3.1", @@ -167,9 +167,9 @@ "packages/google-cloud-telcoautomation": "0.5.1", "packages/google-cloud-apphub": "0.6.1", "packages/google-chat": "0.21.0", - "packages/google-shopping-merchant-quota": "0.8.1", + "packages/google-shopping-merchant-quota": "0.9.0", "packages/google-storage-control": "0.6.1", - "packages/google-cloud-backupdr": "0.5.1", + "packages/google-cloud-backupdr": "0.7.0", "packages/google-cloud-securesourcemanager": "0.8.1", "packages/google-shopping-merchant-notifications": "0.8.1", "packages/google-shopping-merchant-lfp": "0.9.1", @@ -189,7 +189,7 @@ "packages/google-shopping-merchant-accounts": "3.0.1", "packages/google-cloud-gdchardwaremanagement": "0.9.1", "packages/google-cloud-apihub": "0.5.1", - "packages/google-marketingplatform-admin": "0.3.1", + "packages/google-marketingplatform-admin": "0.4.0", "packages/google-cloud-oracledatabase": "0.7.0", "packages/google-ads-admanager": "0.5.0", "packages/google-shopping-merchant-reviews": "0.5.1", @@ -211,7 +211,8 @@ "packages/google-cloud-configdelivery": "0.1.1", "packages/google-cloud-saasplatform-saasservicemgmt": "0.1.1", "packages/google-cloud-cloudsecuritycompliance": "0.2.0", - "packages/google-cloud-capacityplanner": "0.1.1", + "packages/google-cloud-capacityplanner": "0.1.2", "packages/google-cloud-locationfinder": "0.1.1", - "packages/google-cloud-geminidataanalytics": "0.1.0" + "packages/google-cloud-geminidataanalytics": "0.2.0", + "packages/google-ads-datamanager": "0.1.0" } diff --git a/README.md b/README.md index f966e00fe44f..182fb93f8842 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,7 @@ applications that interact with individual Google Cloud services: | [CSS API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-css) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-shopping/css)](https://npm.im/@google-shopping/css) | | [Data Analytics API with Gemini](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-geminidataanalytics) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/geminidataanalytics)](https://npm.im/@google-cloud/geminidataanalytics) | | [Data Labeling](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datalabeling) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/datalabeling)](https://npm.im/@google-cloud/datalabeling) | +| [Data Manager API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-ads-datamanager) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-ads/datamanager)](https://npm.im/@google-ads/datamanager) | | [Data QnA](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-dataqna) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/data-qna)](https://npm.im/@google-cloud/data-qna) | | [Dataflow](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-dataflow) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/dataflow)](https://npm.im/@google-cloud/dataflow) | | [Dataform API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-dataform) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/dataform)](https://npm.im/@google-cloud/dataform) | @@ -226,7 +227,6 @@ applications that interact with individual Google Cloud services: | [Security Compliance API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-cloudsecuritycompliance) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/cloudsecuritycompliance)](https://npm.im/@google-cloud/cloudsecuritycompliance) | | [Solar API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-solar) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@googlemaps/solar)](https://npm.im/@googlemaps/solar) | | [Storage Batch Operations API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-storagebatchoperations) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/storagebatchoperations)](https://npm.im/@google-cloud/storagebatchoperations) | -| [Trace](https://github.com/googleapis/cloud-trace-nodejs) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/trace-agent)](https://npm.im/@google-cloud/trace-agent) | If the service is not listed above, [google-api-nodejs-client](https://github.com/googleapis/google-api-nodejs-client) interfaces diff --git a/changelog.json b/changelog.json index a92baa91da4a..a558e0e7e0aa 100644 --- a/changelog.json +++ b/changelog.json @@ -1,6 +1,368 @@ { "repository": "googleapis/google-cloud-node", "entries": [ + { + "changes": [ + { + "type": "feat", + "sha": "1403b5b709a040898dbcd15b390485804840b778", + "message": "[marketingplatformadminapi] add the `ListOrganizations`, `FindSalesPartnerManagedClients`, and `ReportPropertyUsage` methods", + "issues": [ + "6858" + ] + } + ], + "version": "0.4.0", + "language": "JAVASCRIPT", + "artifactName": "@google-ads/marketing-platform-admin", + "id": "d121492d-957b-4b9c-98ed-4fe833a0a826", + "createTime": "2025-11-21T23:14:19.352Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "b26f79d452a55f26a309166362ca3a6a1cda89c1", + "message": "[backupdr] Adding new fields for CMEK and Retention Inheritance features", + "issues": [ + "6901" + ] + } + ], + "version": "0.7.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/backupdr", + "id": "fea4a715-ca58-401c-8207-ff5ab55c3a74", + "createTime": "2025-11-21T23:14:19.333Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "7e76acee01946bf65d665ed04cd6305cdc331297", + "message": "[merchantapi] Add the AccountLimit resource and its service to the quota bundle", + "issues": [ + "6883" + ] + } + ], + "version": "0.9.0", + "language": "JAVASCRIPT", + "artifactName": "@google-shopping/quota", + "id": "6837c0fd-e0c4-4905-86b3-3e244d2222b6", + "createTime": "2025-11-21T23:14:19.317Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "ce760fd66ce4e290b00205f3c9f6a81863622fd1", + "message": "[artifactregistry] add image_manifest field in DockerImage", + "issues": [ + "6888" + ] + } + ], + "version": "4.4.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/artifact-registry", + "id": "f14ff9af-5137-4a00-92e6-57fb778b46da", + "createTime": "2025-11-21T23:14:19.298Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "f3c58114c24765dfb3d3969ba5e411fb9fb9b3f8", + "message": "[sql] introduces auto_upgrade_enabled option for MySQL in DatabaseInstance.Settings", + "issues": [ + "6904" + ] + } + ], + "version": "0.23.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/sql", + "id": "bbc70fe6-2114-40df-85dc-adc75100651c", + "createTime": "2025-11-21T23:14:19.282Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "e77b12e03a97fa7c42df57561af6ab1c3bae3a3f", + "message": "[netapp] Add Squash Mode to Export Policy", + "issues": [ + "6905" + ] + } + ], + "version": "0.15.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/netapp", + "id": "f0bebda4-5efb-4f4c-b40e-3d6a12cee012", + "createTime": "2025-11-21T23:14:19.263Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "54e3b03149fd8f91ea076b691ec0e32d45748421", + "message": "[cx] add support for defining custom actions in code. See https://cloud.google.com/dialogflow/cx/docs/concept/playbook/code-block for more information", + "issues": [ + "6879" + ] + } + ], + "version": "5.5.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/dialogflow-cx", + "id": "b1a6810a-6fc7-41e9-b27d-932746a0dbe6", + "createTime": "2025-11-21T23:14:19.240Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "68d767e5690cee2f953657ef74412d18212e056e", + "message": "[compute] Update Compute Engine v1beta API to revision 20251019", + "issues": [ + "6869" + ] + } + ], + "version": "6.5.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/compute", + "id": "19a0c325-49f7-4c7a-ac8a-8fea111a475d", + "createTime": "2025-11-21T23:14:19.212Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "ea62cf5717fb0fcb8eb4d3e37260c9f89c3b8076", + "message": "[batch] added new provisioning models", + "issues": [ + "6902" + ] + } + ], + "version": "2.3.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/batch", + "id": "a2d7bf44-244d-4313-a9e9-47eb54eaff9d", + "createTime": "2025-11-21T23:14:19.189Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "7b6c79b20551dde858cd932174c1fb558408172f", + "message": "Add support for developer connect based deployment", + "issues": [ + "6900" + ] + }, + { + "type": "feat", + "sha": "beb5cac2dbd8cad292d67e3641306824c3ecab85", + "message": "Add `ReplicatedVoiceConfig` to `VoiceConfig` to enable Gemini TTS voice replication", + "issues": [ + "6899" + ] + } + ], + "version": "5.14.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/aiplatform", + "id": "6748c978-c276-4f5d-a0a0-997afac91035", + "createTime": "2025-11-21T23:14:19.156Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "a637d5caaa14186adaae5e8a708f5faee3a17084", + "message": "[geminidataanalytics] Adding a new SchemaRelationship message to define relationships between table schema", + "issues": [ + "6871" + ] + } + ], + "version": "0.2.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/geminidataanalytics", + "id": "2dfbc409-ea8e-4078-af9c-cd183563fd6e", + "createTime": "2025-11-11T01:02:09.511Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "947fcf5468e0923866bbe7c28c262830d748f5ca", + "message": "Add initial files for google.ads.datamanager.v1", + "issues": [ + "6841" + ] + }, + { + "type": "fix", + "sha": "41c2ff2851b5fdadabf4f9bd3500167c34b32ff7", + "message": "[gkeconnect-gateway] remove unused GatewayServiceClient", + "issues": [ + "6775" + ] + } + ], + "version": "0.1.0", + "language": "JAVASCRIPT", + "artifactName": "@google-ads/datamanager", + "id": "0b41663d-a553-454b-a7b8-9a85e02081be", + "createTime": "2025-11-11T01:02:09.476Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "e1c953ae47d7f6697bd9f048d82d5584239ba0d1", + "message": "Doc linter issues", + "issues": [] + } + ], + "version": "0.1.2", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/capacityplanner", + "id": "e04b2af3-2a2b-4a8a-9aa0-5934b2b135d0", + "createTime": "2025-11-11T01:02:09.433Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "44f08c6d3e7d9377e7e070c8ba3dcb949e2642c1", + "message": "[backupdr] Adding `unreachable` field to `ListDataSourceReferences` API", + "issues": [ + "6865" + ] + } + ], + "version": "0.6.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/backupdr", + "id": "e25c6aee-80cd-429a-b90c-7dd6d81f7c69", + "createTime": "2025-11-11T01:02:09.384Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "c9d8b6ad53d584999a6a76073ae1f3e47fae3d37", + "message": "[translate] Adds support for RefineText", + "issues": [ + "6867" + ] + } + ], + "version": "9.3.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/translate", + "id": "1f7f6610-7132-4522-9d79-ba50be4992ae", + "createTime": "2025-11-11T01:02:09.356Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "4bc9aa903b6385f9eec79c71320959da9c65764a", + "message": "[networkservices] Add support for LbEdgeExtension resource in NetworkServices API", + "issues": [ + "6863" + ] + } + ], + "version": "0.12.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/networkservices", + "id": "5e913f31-ef5e-4b21-aa73-4162f971225d", + "createTime": "2025-11-11T01:02:09.276Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "e6cfcdea780819b0c84daf0325127be322803fac", + "message": "[dialogflow] add agentDesktopSource field to the Participant object", + "issues": [ + "6878" + ] + } + ], + "version": "7.4.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/dialogflow", + "id": "3769165e-658d-4ec5-8032-e3c8f820452b", + "createTime": "2025-11-11T01:02:09.233Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "524ca3cabe52d2e58e83467f94968cdf28c79fe9", + "message": "Add GetIamPolicy method for DataProduct resources", + "issues": [], + "scope": "dataplex" + }, + { + "type": "feat", + "sha": "524ca3cabe52d2e58e83467f94968cdf28c79fe9", + "message": "[dataplex] Allow publishing Data Profile scan results to the Dataplex Catalog", + "issues": [ + "6868" + ], + "scope": "dataplex" + } + ], + "version": "5.3.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/dataplex", + "id": "8d0b52de-7190-4af2-9f4c-bdab414c2d39", + "createTime": "2025-11-11T01:02:09.189Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "e4faaba9f6d3c28cf81d816fbd3758af80b6a45d", + "message": "[bigquery-analyticshub] add Stored Procedure Sharing support for analyticshub listings", + "issues": [ + "6866" + ] + } + ], + "version": "2.4.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/bigquery-analyticshub", + "id": "430fa686-b6b5-442a-b3ae-8ad3ff60b6c6", + "createTime": "2025-11-11T01:02:09.157Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "8d71bbf30bc7ae1a54a3e37b8740d46dfbe418dd", + "message": "Add order_by to list_events", + "issues": [ + "6864" + ] + } + ], + "version": "5.13.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/aiplatform", + "id": "6d4d35b4-76a7-40e5-b14f-c0a431c721ee", + "createTime": "2025-11-11T01:02:09.120Z" + }, { "changes": [ { @@ -66743,5 +67105,5 @@ "createTime": "2023-01-28T04:18:24.718Z" } ], - "updateTime": "2025-10-31T23:33:45.328Z" + "updateTime": "2025-11-21T23:14:19.352Z" } \ No newline at end of file diff --git a/ci/run_single_test.sh b/ci/run_single_test.sh index 69bb5018afe6..31ce02061114 100755 --- a/ci/run_single_test.sh +++ b/ci/run_single_test.sh @@ -70,23 +70,4 @@ units) esac set -e -# Run flakybot for non-presubmit builds -if [ ${BUILD_TYPE} != "presubmit" ]; then - if [ ${TEST_TYPE} == "system" ] || [ ${TEST_TYPE} == "samples" ]; then - if [ -f "${PROJECT}_sponge_log.xml" ]; then - echo "Contents in ${PROJECT}_sponge_log.xml:" - cat ${PROJECT}_sponge_log.xml - - echo "Calling flakybot --repo ${REPO_OWNER}/${REPO_NAME} --commit_hash ${COMMIT_SHA} --build_url https://console.cloud.google.com/cloud-build/builds;region=global/${BUILD_ID}?project=${PROJECT_ID}" - flakybot \ - --repo "${REPO_OWNER}/${REPO_NAME}" \ - --commit_hash "${COMMIT_SHA}" \ - --build_url \ - "https://console.cloud.google.com/cloud-build/builds;region=global/${BUILD_ID}?project=${PROJECT_ID}" - else - echo "Missing sponge log: ${PROJECT}_sponge_log.xml" - fi - fi -fi - exit ${retval} diff --git a/libraries.json b/libraries.json index 73bb8408af6e..7f7117bd92b3 100644 --- a/libraries.json +++ b/libraries.json @@ -3117,6 +3117,24 @@ "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datalabeling", "support_documentation": "https://cloud.google.com/data-labeling/docs/getting-support" }, + { + "name": "datamanager", + "name_pretty": "Data Manager API", + "product_documentation": "https://developers.google.com/data-manager", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/datamanager/latest", + "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues", + "release_level": "preview", + "language": "nodejs", + "repo": "googleapis/google-cloud-node", + "distribution_name": "@google-ads/datamanager", + "api_id": "datamanager.googleapis.com", + "default_version": "v1", + "requires_billing": true, + "library_type": "GAPIC_AUTO", + "api_shortname": "datamanager", + "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-ads-datamanager", + "support_documentation": "https://developers.google.com/data-manager/docs/getting-support" + }, { "language": "nodejs", "requires_billing": true, @@ -3926,22 +3944,5 @@ "api_shortname": "storagebatchoperations", "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-storagebatchoperations", "support_documentation": "https://cloud.google.com/storage/docs/getting-support" - }, - { - "name": "trace", - "name_pretty": "Trace", - "product_documentation": "https://cloud.google.com/trace", - "client_documentation": "https://cloud.google.com/nodejs/docs/reference/trace-agent/latest", - "issue_tracker": "https://issuetracker.google.com/savedsearches/559776", - "release_level": "preview", - "language": "nodejs", - "repo": "googleapis/cloud-trace-nodejs", - "distribution_name": "@google-cloud/trace-agent", - "api_id": "cloudtrace.googleapis.com", - "codeowner_team": "@googleapis/google-cloud-trace", - "api_shortname": "cloudtrace", - "library_type": "AGENT", - "linkToRepoHomepage": "https://github.com/googleapis/cloud-trace-nodejs", - "support_documentation": "https://cloud.google.com/trace/docs/getting-support" } ] \ No newline at end of file diff --git a/packages/google-ads-datamanager/CHANGELOG.md b/packages/google-ads-datamanager/CHANGELOG.md new file mode 100644 index 000000000000..3683c982fd4d --- /dev/null +++ b/packages/google-ads-datamanager/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog + +## 0.1.0 (2025-11-11) + + +### Features + +* Add initial files for google.ads.datamanager.v1 ([#6841](https://github.com/googleapis/google-cloud-node/issues/6841)) ([947fcf5](https://github.com/googleapis/google-cloud-node/commit/947fcf5468e0923866bbe7c28c262830d748f5ca)) + + +### Bug Fixes + +* [gkeconnect-gateway] remove unused GatewayServiceClient ([#6775](https://github.com/googleapis/google-cloud-node/issues/6775)) ([41c2ff2](https://github.com/googleapis/google-cloud-node/commit/41c2ff2851b5fdadabf4f9bd3500167c34b32ff7)) diff --git a/packages/google-ads-datamanager/package.json b/packages/google-ads-datamanager/package.json index ffe3402f2b95..1c410814b1f7 100644 --- a/packages/google-ads-datamanager/package.json +++ b/packages/google-ads-datamanager/package.json @@ -1,6 +1,6 @@ { "name": "@google-ads/datamanager", - "version": "0.0.0", + "version": "0.1.0", "description": "Data Manager API client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-aiplatform/CHANGELOG.md b/packages/google-cloud-aiplatform/CHANGELOG.md index c6b0a752e1cf..92635868a122 100644 --- a/packages/google-cloud-aiplatform/CHANGELOG.md +++ b/packages/google-cloud-aiplatform/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [5.14.0](https://github.com/googleapis/google-cloud-node/compare/aiplatform-v5.13.0...aiplatform-v5.14.0) (2025-11-21) + + +### Features + +* Add `ReplicatedVoiceConfig` to `VoiceConfig` to enable Gemini TTS voice replication ([#6899](https://github.com/googleapis/google-cloud-node/issues/6899)) ([beb5cac](https://github.com/googleapis/google-cloud-node/commit/beb5cac2dbd8cad292d67e3641306824c3ecab85)) +* Add support for developer connect based deployment ([#6900](https://github.com/googleapis/google-cloud-node/issues/6900)) ([7b6c79b](https://github.com/googleapis/google-cloud-node/commit/7b6c79b20551dde858cd932174c1fb558408172f)) + +## [5.13.0](https://github.com/googleapis/google-cloud-node/compare/aiplatform-v5.12.0...aiplatform-v5.13.0) (2025-11-11) + + +### Features + +* Add order_by to list_events ([#6864](https://github.com/googleapis/google-cloud-node/issues/6864)) ([8d71bbf](https://github.com/googleapis/google-cloud-node/commit/8d71bbf30bc7ae1a54a3e37b8740d46dfbe418dd)) + ## [5.12.0](https://github.com/googleapis/google-cloud-node/compare/aiplatform-v5.11.0...aiplatform-v5.12.0) (2025-10-25) diff --git a/packages/google-cloud-aiplatform/package.json b/packages/google-cloud-aiplatform/package.json index 952b1e4b70f5..4b6cd75f0608 100644 --- a/packages/google-cloud-aiplatform/package.json +++ b/packages/google-cloud-aiplatform/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/aiplatform", - "version": "5.12.0", + "version": "5.14.0", "description": "Vertex AI client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/content.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/content.proto index 58883bfc726b..3f4e89d143f7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/content.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/content.proto @@ -184,6 +184,69 @@ message VideoMetadata { [(google.api.field_behavior) = OPTIONAL]; } +// Configuration for a prebuilt voice. +message PrebuiltVoiceConfig { + // The name of the prebuilt voice to use. + optional string voice_name = 1; +} + +// The configuration for the replicated voice to use. +message ReplicatedVoiceConfig { + // Optional. The mimetype of the voice sample. Currently only + // mime_type=audio/pcm is supported, which is raw mono 16-bit signed + // little-endian pcm data, with 24k sampling rate. + string mime_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sample of the custom voice. + bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL]; +} + + +// Configuration for a voice. +message VoiceConfig { + // The configuration for the speaker to use. + oneof voice_config { + // The configuration for a prebuilt voice. + PrebuiltVoiceConfig prebuilt_voice_config = 1; + + // Optional. The configuration for a replicated voice. This enables users to + // replicate a voice from an audio sample. + ReplicatedVoiceConfig replicated_voice_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Configuration for a single speaker in a multi-speaker setup. +message SpeakerVoiceConfig { + // Required. The name of the speaker. This should be the same as the speaker + // name used in the prompt. + string speaker = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The configuration for the voice of this speaker. + VoiceConfig voice_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for a multi-speaker text-to-speech request. +message MultiSpeakerVoiceConfig { + // Required. A list of configurations for the voices of the speakers. Exactly + // two speaker voice configurations must be provided. + repeated SpeakerVoiceConfig speaker_voice_configs = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for speech generation. +message SpeechConfig { + // The configuration for the voice to use. + VoiceConfig voice_config = 1; + + // Optional. The language code (ISO 639-1) for the speech synthesis. + string language_code = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The configuration for a multi-speaker text-to-speech request. + // This field is mutually exclusive with `voice_config`. + MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; +} + // Config for image generation features. message ImageConfig { // Optional. The desired aspect ratio for the generated images. The following @@ -347,6 +410,10 @@ message GenerationConfig { optional RoutingConfig routing_config = 17 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The speech generation config. + optional SpeechConfig speech_config = 23 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Config for thinking features. // An error will be returned if this field is set for models that don't // support thinking. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployment_stage.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployment_stage.proto index a72eb47754c3..653ec52ec0e2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployment_stage.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployment_stage.proto @@ -52,4 +52,10 @@ enum DeploymentStage { // The deployment has terminated. DEPLOYMENT_TERMINATED = 10; + + // The deployment has succeeded. + SUCCESSFULLY_DEPLOYED = 11; + + // The deployment has failed. + FAILED_TO_DEPLOY = 12; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto index 05310b218145..e82856202e02 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto @@ -54,6 +54,25 @@ message MachineSpec { // The number of accelerators to attach to the machine. int32 accelerator_count = 3; + // Optional. Immutable. The Nvidia GPU partition size. + // + // When specified, the requested accelerators will be partitioned into + // smaller GPU partitions. For example, if the request is for 8 units of + // NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + // create 8 * 7 = 56 partitioned MIG instances. + // + // The partition size must be a value supported by the requested accelerator. + // Refer to + // [Nvidia GPU + // Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + // for the available partition sizes. + // + // If set, the accelerator_count should be set to 1. + string gpu_partition_size = 7 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; + // Immutable. The topology of the TPUs. Corresponds to the TPU topologies // available from GKE. (Example: tpu_topology: "2x2x1"). string tpu_topology = 4 [(google.api.field_behavior) = IMMUTABLE]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/reasoning_engine.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/reasoning_engine.proto index a969d3e32a13..440d1e19484d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/reasoning_engine.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/reasoning_engine.proto @@ -31,6 +31,10 @@ option java_outer_classname = "ReasoningEngineProto"; option java_package = "com.google.cloud.aiplatform.v1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; +option (google.api.resource_definition) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}" +}; // ReasoningEngine configurations message ReasoningEngineSpec { @@ -47,8 +51,9 @@ message ReasoningEngineSpec { // Optional. The Cloud Storage URI of the `requirements.txt` file string requirements_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11. - // If not specified, default value is 3.10. + // Optional. The Python version. Supported values + // are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value + // is 3.10. string python_version = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -104,14 +109,45 @@ message ReasoningEngineSpec { // Specifies source code provided as a byte stream. message InlineSource { // Required. Input only. The application source code archive, provided as - // a compressed tarball - // (.tar.gz) file. + // a compressed tarball (.tar.gz) file. bytes source_archive = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = INPUT_ONLY ]; } + // Specifies the configuration for fetching source code from a Git + // repository that is managed by Developer Connect. This includes the + // repository, revision, and directory to use. + message DeveloperConnectConfig { + // Required. The Developer Connect Git repository link, formatted as + // `projects/*/locations/*/connections/*/gitRepositoryLink/*`. + string git_repository_link = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. Directory, relative to the source root, in which to run the + // build. + string dir = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The revision to fetch from the Git repository such as a + // branch, a tag, a commit SHA, or any Git ref. + string revision = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // Specifies source code to be fetched from a Git repository managed through + // the Developer Connect service. + message DeveloperConnectSource { + // Required. The Developer Connect configuration that defines the + // specific repository, revision, and directory to use as the source code + // root. + DeveloperConnectConfig config = 1 + [(google.api.field_behavior) = REQUIRED]; + } + // Specification for running a Python application from source. message PythonSpec { // Optional. The version of Python to use. Support version @@ -141,6 +177,9 @@ message ReasoningEngineSpec { oneof source { // Source code is provided directly in the request. InlineSource inline_source = 1; + + // Source code is in a Git repository managed by Developer Connect. + DeveloperConnectSource developer_connect_source = 3; } // Specifies the language-specific configuration for building and running diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto index afca4d1ad7d8..e37d60b8831d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto @@ -190,19 +190,61 @@ message PrebuiltVoiceConfig { optional string voice_name = 1; } -// The configuration for the voice to use. +// The configuration for the replicated voice to use. +message ReplicatedVoiceConfig { + // Optional. The mimetype of the voice sample. Currently only + // mime_type=audio/pcm is supported, which is raw mono 16-bit signed + // little-endian pcm data, with 24k sampling rate. + string mime_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sample of the custom voice. + bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for a voice. message VoiceConfig { // The configuration for the speaker to use. oneof voice_config { - // The configuration for the prebuilt voice to use. + // The configuration for a prebuilt voice. PrebuiltVoiceConfig prebuilt_voice_config = 1; + + // Optional. The configuration for a replicated voice. This enables users to + // replicate a voice from an audio sample. + ReplicatedVoiceConfig replicated_voice_config = 3 + [(google.api.field_behavior) = OPTIONAL]; } } -// The speech generation config. +// Configuration for a single speaker in a multi-speaker setup. +message SpeakerVoiceConfig { + // Required. The name of the speaker. This should be the same as the speaker + // name used in the prompt. + string speaker = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The configuration for the voice of this speaker. + VoiceConfig voice_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for a multi-speaker text-to-speech request. +message MultiSpeakerVoiceConfig { + // Required. A list of configurations for the voices of the speakers. Exactly + // two speaker voice configurations must be provided. + repeated SpeakerVoiceConfig speaker_voice_configs = 2 + [(google.api.field_behavior) = REQUIRED]; +} + + +// Configuration for speech generation. message SpeechConfig { - // The configuration for the speaker to use. + // The configuration for the voice to use. VoiceConfig voice_config = 1; + + // Optional. The language code (ISO 639-1) for the speech synthesis. + string language_code = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The configuration for a multi-speaker text-to-speech request. + // This field is mutually exclusive with `voice_config`. + MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; } // Config for image generation features. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_stage.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_stage.proto index 7ef233a98f30..c98ce2c8b0ef 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_stage.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_stage.proto @@ -52,4 +52,10 @@ enum DeploymentStage { // The deployment has terminated. DEPLOYMENT_TERMINATED = 10; + + // The deployment has succeeded. + SUCCESSFULLY_DEPLOYED = 11; + + // The deployment has failed. + FAILED_TO_DEPLOY = 12; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto index 6e14c18facd0..85b43672ca7c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto @@ -32,6 +32,10 @@ option java_outer_classname = "ReasoningEngineProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; +option (google.api.resource_definition) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}" +}; // ReasoningEngine configurations message ReasoningEngineSpec { @@ -48,8 +52,9 @@ message ReasoningEngineSpec { // Optional. The Cloud Storage URI of the `requirements.txt` file string requirements_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11. - // If not specified, default value is 3.10. + // Optional. The Python version. Supported values + // are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value + // is 3.10. string python_version = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -113,6 +118,38 @@ message ReasoningEngineSpec { ]; } + // Specifies the configuration for fetching source code from a Git + // repository that is managed by Developer Connect. This includes the + // repository, revision, and directory to use. + message DeveloperConnectConfig { + // Required. The Developer Connect Git repository link, formatted as + // `projects/*/locations/*/connections/*/gitRepositoryLink/*`. + string git_repository_link = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. Directory, relative to the source root, in which to run the + // build. + string dir = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The revision to fetch from the Git repository such as a + // branch, a tag, a commit SHA, or any Git ref. + string revision = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // Specifies source code to be fetched from a Git repository managed through + // the Developer Connect service. + message DeveloperConnectSource { + // Required. The Developer Connect configuration that defines the + // specific repository, revision, and directory to use as the source code + // root. + DeveloperConnectConfig config = 1 + [(google.api.field_behavior) = REQUIRED]; + } + // Specification for running a Python application from source. message PythonSpec { // Optional. The version of Python to use. Support version @@ -142,6 +179,9 @@ message ReasoningEngineSpec { oneof source { // Source code is provided directly in the request. InlineSource inline_source = 1; + + // Source code is in a Git repository managed by Developer Connect. + DeveloperConnectSource developer_connect_source = 3; } // Specifies the language-specific configuration for building and running diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/session_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/session_service.proto index 81435c06e217..bc29ed611af9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/session_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/session_service.proto @@ -204,8 +204,9 @@ message ListSessionsRequest { // Optional. The standard list filter. // Supported fields: // * `display_name` + // * `user_id` // - // Example: `display_name=abc`. + // Example: `display_name="abc"`, `user_id="123"`. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A comma-separated list of fields to order by, sorted in ascending @@ -290,6 +291,13 @@ message ListEventsRequest { // // More detail in [AIP-160](https://google.aip.dev/160). string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. Supported fields: + // * `timestamp` + // + // Example: `timestamp desc`. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index 90c45f85d644..5ae411a513ce 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -6702,6 +6702,9 @@ export namespace google { /** MachineSpec acceleratorCount */ acceleratorCount?: (number|null); + /** MachineSpec gpuPartitionSize */ + gpuPartitionSize?: (string|null); + /** MachineSpec tpuTopology */ tpuTopology?: (string|null); @@ -6727,6 +6730,9 @@ export namespace google { /** MachineSpec acceleratorCount. */ public acceleratorCount: number; + /** MachineSpec gpuPartitionSize. */ + public gpuPartitionSize: string; + /** MachineSpec tpuTopology. */ public tpuTopology: string; @@ -11730,6 +11736,621 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PrebuiltVoiceConfig. */ + interface IPrebuiltVoiceConfig { + + /** PrebuiltVoiceConfig voiceName */ + voiceName?: (string|null); + } + + /** Represents a PrebuiltVoiceConfig. */ + class PrebuiltVoiceConfig implements IPrebuiltVoiceConfig { + + /** + * Constructs a new PrebuiltVoiceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPrebuiltVoiceConfig); + + /** PrebuiltVoiceConfig voiceName. */ + public voiceName?: (string|null); + + /** + * Creates a new PrebuiltVoiceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PrebuiltVoiceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPrebuiltVoiceConfig): google.cloud.aiplatform.v1.PrebuiltVoiceConfig; + + /** + * Encodes the specified PrebuiltVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PrebuiltVoiceConfig.verify|verify} messages. + * @param message PrebuiltVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPrebuiltVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrebuiltVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PrebuiltVoiceConfig.verify|verify} messages. + * @param message PrebuiltVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPrebuiltVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrebuiltVoiceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrebuiltVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PrebuiltVoiceConfig; + + /** + * Decodes a PrebuiltVoiceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrebuiltVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PrebuiltVoiceConfig; + + /** + * Verifies a PrebuiltVoiceConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrebuiltVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrebuiltVoiceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PrebuiltVoiceConfig; + + /** + * Creates a plain object from a PrebuiltVoiceConfig message. Also converts values to other types if specified. + * @param message PrebuiltVoiceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PrebuiltVoiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrebuiltVoiceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrebuiltVoiceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReplicatedVoiceConfig. */ + interface IReplicatedVoiceConfig { + + /** ReplicatedVoiceConfig mimeType */ + mimeType?: (string|null); + + /** ReplicatedVoiceConfig voiceSampleAudio */ + voiceSampleAudio?: (Uint8Array|Buffer|string|null); + } + + /** Represents a ReplicatedVoiceConfig. */ + class ReplicatedVoiceConfig implements IReplicatedVoiceConfig { + + /** + * Constructs a new ReplicatedVoiceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IReplicatedVoiceConfig); + + /** ReplicatedVoiceConfig mimeType. */ + public mimeType: string; + + /** ReplicatedVoiceConfig voiceSampleAudio. */ + public voiceSampleAudio: (Uint8Array|Buffer|string); + + /** + * Creates a new ReplicatedVoiceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ReplicatedVoiceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IReplicatedVoiceConfig): google.cloud.aiplatform.v1.ReplicatedVoiceConfig; + + /** + * Encodes the specified ReplicatedVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ReplicatedVoiceConfig.verify|verify} messages. + * @param message ReplicatedVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IReplicatedVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReplicatedVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReplicatedVoiceConfig.verify|verify} messages. + * @param message ReplicatedVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReplicatedVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReplicatedVoiceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReplicatedVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReplicatedVoiceConfig; + + /** + * Decodes a ReplicatedVoiceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReplicatedVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReplicatedVoiceConfig; + + /** + * Verifies a ReplicatedVoiceConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReplicatedVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReplicatedVoiceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReplicatedVoiceConfig; + + /** + * Creates a plain object from a ReplicatedVoiceConfig message. Also converts values to other types if specified. + * @param message ReplicatedVoiceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReplicatedVoiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReplicatedVoiceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReplicatedVoiceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VoiceConfig. */ + interface IVoiceConfig { + + /** VoiceConfig prebuiltVoiceConfig */ + prebuiltVoiceConfig?: (google.cloud.aiplatform.v1.IPrebuiltVoiceConfig|null); + + /** VoiceConfig replicatedVoiceConfig */ + replicatedVoiceConfig?: (google.cloud.aiplatform.v1.IReplicatedVoiceConfig|null); + } + + /** Represents a VoiceConfig. */ + class VoiceConfig implements IVoiceConfig { + + /** + * Constructs a new VoiceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IVoiceConfig); + + /** VoiceConfig prebuiltVoiceConfig. */ + public prebuiltVoiceConfig?: (google.cloud.aiplatform.v1.IPrebuiltVoiceConfig|null); + + /** VoiceConfig replicatedVoiceConfig. */ + public replicatedVoiceConfig?: (google.cloud.aiplatform.v1.IReplicatedVoiceConfig|null); + + /** VoiceConfig voiceConfig. */ + public voiceConfig?: ("prebuiltVoiceConfig"|"replicatedVoiceConfig"); + + /** + * Creates a new VoiceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns VoiceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IVoiceConfig): google.cloud.aiplatform.v1.VoiceConfig; + + /** + * Encodes the specified VoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.VoiceConfig.verify|verify} messages. + * @param message VoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.VoiceConfig.verify|verify} messages. + * @param message VoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VoiceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.VoiceConfig; + + /** + * Decodes a VoiceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.VoiceConfig; + + /** + * Verifies a VoiceConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VoiceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VoiceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.VoiceConfig; + + /** + * Creates a plain object from a VoiceConfig message. Also converts values to other types if specified. + * @param message VoiceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.VoiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VoiceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VoiceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SpeakerVoiceConfig. */ + interface ISpeakerVoiceConfig { + + /** SpeakerVoiceConfig speaker */ + speaker?: (string|null); + + /** SpeakerVoiceConfig voiceConfig */ + voiceConfig?: (google.cloud.aiplatform.v1.IVoiceConfig|null); + } + + /** Represents a SpeakerVoiceConfig. */ + class SpeakerVoiceConfig implements ISpeakerVoiceConfig { + + /** + * Constructs a new SpeakerVoiceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISpeakerVoiceConfig); + + /** SpeakerVoiceConfig speaker. */ + public speaker: string; + + /** SpeakerVoiceConfig voiceConfig. */ + public voiceConfig?: (google.cloud.aiplatform.v1.IVoiceConfig|null); + + /** + * Creates a new SpeakerVoiceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SpeakerVoiceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISpeakerVoiceConfig): google.cloud.aiplatform.v1.SpeakerVoiceConfig; + + /** + * Encodes the specified SpeakerVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SpeakerVoiceConfig.verify|verify} messages. + * @param message SpeakerVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISpeakerVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SpeakerVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SpeakerVoiceConfig.verify|verify} messages. + * @param message SpeakerVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISpeakerVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SpeakerVoiceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SpeakerVoiceConfig; + + /** + * Decodes a SpeakerVoiceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SpeakerVoiceConfig; + + /** + * Verifies a SpeakerVoiceConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SpeakerVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SpeakerVoiceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SpeakerVoiceConfig; + + /** + * Creates a plain object from a SpeakerVoiceConfig message. Also converts values to other types if specified. + * @param message SpeakerVoiceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SpeakerVoiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SpeakerVoiceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SpeakerVoiceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MultiSpeakerVoiceConfig. */ + interface IMultiSpeakerVoiceConfig { + + /** MultiSpeakerVoiceConfig speakerVoiceConfigs */ + speakerVoiceConfigs?: (google.cloud.aiplatform.v1.ISpeakerVoiceConfig[]|null); + } + + /** Represents a MultiSpeakerVoiceConfig. */ + class MultiSpeakerVoiceConfig implements IMultiSpeakerVoiceConfig { + + /** + * Constructs a new MultiSpeakerVoiceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig); + + /** MultiSpeakerVoiceConfig speakerVoiceConfigs. */ + public speakerVoiceConfigs: google.cloud.aiplatform.v1.ISpeakerVoiceConfig[]; + + /** + * Creates a new MultiSpeakerVoiceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiSpeakerVoiceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig): google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig; + + /** + * Encodes the specified MultiSpeakerVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.verify|verify} messages. + * @param message MultiSpeakerVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MultiSpeakerVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.verify|verify} messages. + * @param message MultiSpeakerVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiSpeakerVoiceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiSpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig; + + /** + * Decodes a MultiSpeakerVoiceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiSpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig; + + /** + * Verifies a MultiSpeakerVoiceConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MultiSpeakerVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiSpeakerVoiceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig; + + /** + * Creates a plain object from a MultiSpeakerVoiceConfig message. Also converts values to other types if specified. + * @param message MultiSpeakerVoiceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiSpeakerVoiceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiSpeakerVoiceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SpeechConfig. */ + interface ISpeechConfig { + + /** SpeechConfig voiceConfig */ + voiceConfig?: (google.cloud.aiplatform.v1.IVoiceConfig|null); + + /** SpeechConfig languageCode */ + languageCode?: (string|null); + + /** SpeechConfig multiSpeakerVoiceConfig */ + multiSpeakerVoiceConfig?: (google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig|null); + } + + /** Represents a SpeechConfig. */ + class SpeechConfig implements ISpeechConfig { + + /** + * Constructs a new SpeechConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISpeechConfig); + + /** SpeechConfig voiceConfig. */ + public voiceConfig?: (google.cloud.aiplatform.v1.IVoiceConfig|null); + + /** SpeechConfig languageCode. */ + public languageCode: string; + + /** SpeechConfig multiSpeakerVoiceConfig. */ + public multiSpeakerVoiceConfig?: (google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig|null); + + /** + * Creates a new SpeechConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SpeechConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISpeechConfig): google.cloud.aiplatform.v1.SpeechConfig; + + /** + * Encodes the specified SpeechConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SpeechConfig.verify|verify} messages. + * @param message SpeechConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SpeechConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SpeechConfig.verify|verify} messages. + * @param message SpeechConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SpeechConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SpeechConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SpeechConfig; + + /** + * Decodes a SpeechConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SpeechConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SpeechConfig; + + /** + * Verifies a SpeechConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SpeechConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SpeechConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SpeechConfig; + + /** + * Creates a plain object from a SpeechConfig message. Also converts values to other types if specified. + * @param message SpeechConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SpeechConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SpeechConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an ImageConfig. */ interface IImageConfig { @@ -11875,6 +12496,9 @@ export namespace google { /** GenerationConfig routingConfig */ routingConfig?: (google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig|null); + /** GenerationConfig speechConfig */ + speechConfig?: (google.cloud.aiplatform.v1.ISpeechConfig|null); + /** GenerationConfig thinkingConfig */ thinkingConfig?: (google.cloud.aiplatform.v1.GenerationConfig.IThinkingConfig|null); @@ -11936,6 +12560,9 @@ export namespace google { /** GenerationConfig routingConfig. */ public routingConfig?: (google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig|null); + /** GenerationConfig speechConfig. */ + public speechConfig?: (google.cloud.aiplatform.v1.ISpeechConfig|null); + /** GenerationConfig thinkingConfig. */ public thinkingConfig?: (google.cloud.aiplatform.v1.GenerationConfig.IThinkingConfig|null); @@ -32877,7 +33504,9 @@ export namespace google { GETTING_CONTAINER_IMAGE = 9, STARTING_MODEL_SERVER = 3, FINISHING_UP = 4, - DEPLOYMENT_TERMINATED = 10 + DEPLOYMENT_TERMINATED = 10, + SUCCESSFULLY_DEPLOYED = 11, + FAILED_TO_DEPLOY = 12 } /** Represents an EndpointService */ @@ -118794,6 +119423,9 @@ export namespace google { /** SourceCodeSpec inlineSource */ inlineSource?: (google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IInlineSource|null); + /** SourceCodeSpec developerConnectSource */ + developerConnectSource?: (google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource|null); + /** SourceCodeSpec pythonSpec */ pythonSpec?: (google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IPythonSpec|null); } @@ -118810,11 +119442,14 @@ export namespace google { /** SourceCodeSpec inlineSource. */ public inlineSource?: (google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IInlineSource|null); + /** SourceCodeSpec developerConnectSource. */ + public developerConnectSource?: (google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource|null); + /** SourceCodeSpec pythonSpec. */ public pythonSpec?: (google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IPythonSpec|null); /** SourceCodeSpec source. */ - public source?: "inlineSource"; + public source?: ("inlineSource"|"developerConnectSource"); /** SourceCodeSpec languageSpec. */ public languageSpec?: "pythonSpec"; @@ -118996,6 +119631,212 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeveloperConnectConfig. */ + interface IDeveloperConnectConfig { + + /** DeveloperConnectConfig gitRepositoryLink */ + gitRepositoryLink?: (string|null); + + /** DeveloperConnectConfig dir */ + dir?: (string|null); + + /** DeveloperConnectConfig revision */ + revision?: (string|null); + } + + /** Represents a DeveloperConnectConfig. */ + class DeveloperConnectConfig implements IDeveloperConnectConfig { + + /** + * Constructs a new DeveloperConnectConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig); + + /** DeveloperConnectConfig gitRepositoryLink. */ + public gitRepositoryLink: string; + + /** DeveloperConnectConfig dir. */ + public dir: string; + + /** DeveloperConnectConfig revision. */ + public revision: string; + + /** + * Creates a new DeveloperConnectConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DeveloperConnectConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig): google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig; + + /** + * Encodes the specified DeveloperConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify|verify} messages. + * @param message DeveloperConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeveloperConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify|verify} messages. + * @param message DeveloperConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeveloperConnectConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeveloperConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig; + + /** + * Decodes a DeveloperConnectConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeveloperConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig; + + /** + * Verifies a DeveloperConnectConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeveloperConnectConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeveloperConnectConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig; + + /** + * Creates a plain object from a DeveloperConnectConfig message. Also converts values to other types if specified. + * @param message DeveloperConnectConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeveloperConnectConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeveloperConnectConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeveloperConnectSource. */ + interface IDeveloperConnectSource { + + /** DeveloperConnectSource config */ + config?: (google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig|null); + } + + /** Represents a DeveloperConnectSource. */ + class DeveloperConnectSource implements IDeveloperConnectSource { + + /** + * Constructs a new DeveloperConnectSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource); + + /** DeveloperConnectSource config. */ + public config?: (google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig|null); + + /** + * Creates a new DeveloperConnectSource instance using the specified properties. + * @param [properties] Properties to set + * @returns DeveloperConnectSource instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource): google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource; + + /** + * Encodes the specified DeveloperConnectSource message. Does not implicitly {@link google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify|verify} messages. + * @param message DeveloperConnectSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeveloperConnectSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify|verify} messages. + * @param message DeveloperConnectSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeveloperConnectSource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeveloperConnectSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource; + + /** + * Decodes a DeveloperConnectSource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeveloperConnectSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource; + + /** + * Verifies a DeveloperConnectSource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeveloperConnectSource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeveloperConnectSource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource; + + /** + * Creates a plain object from a DeveloperConnectSource message. Also converts values to other types if specified. + * @param message DeveloperConnectSource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeveloperConnectSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeveloperConnectSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PythonSpec. */ interface IPythonSpec { @@ -157440,11 +158281,117 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReplicatedVoiceConfig. */ + interface IReplicatedVoiceConfig { + + /** ReplicatedVoiceConfig mimeType */ + mimeType?: (string|null); + + /** ReplicatedVoiceConfig voiceSampleAudio */ + voiceSampleAudio?: (Uint8Array|Buffer|string|null); + } + + /** Represents a ReplicatedVoiceConfig. */ + class ReplicatedVoiceConfig implements IReplicatedVoiceConfig { + + /** + * Constructs a new ReplicatedVoiceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig); + + /** ReplicatedVoiceConfig mimeType. */ + public mimeType: string; + + /** ReplicatedVoiceConfig voiceSampleAudio. */ + public voiceSampleAudio: (Uint8Array|Buffer|string); + + /** + * Creates a new ReplicatedVoiceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ReplicatedVoiceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig): google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig; + + /** + * Encodes the specified ReplicatedVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.verify|verify} messages. + * @param message ReplicatedVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReplicatedVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.verify|verify} messages. + * @param message ReplicatedVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReplicatedVoiceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReplicatedVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig; + + /** + * Decodes a ReplicatedVoiceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReplicatedVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig; + + /** + * Verifies a ReplicatedVoiceConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReplicatedVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReplicatedVoiceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig; + + /** + * Creates a plain object from a ReplicatedVoiceConfig message. Also converts values to other types if specified. + * @param message ReplicatedVoiceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReplicatedVoiceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReplicatedVoiceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a VoiceConfig. */ interface IVoiceConfig { /** VoiceConfig prebuiltVoiceConfig */ prebuiltVoiceConfig?: (google.cloud.aiplatform.v1beta1.IPrebuiltVoiceConfig|null); + + /** VoiceConfig replicatedVoiceConfig */ + replicatedVoiceConfig?: (google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig|null); } /** Represents a VoiceConfig. */ @@ -157459,8 +158406,11 @@ export namespace google { /** VoiceConfig prebuiltVoiceConfig. */ public prebuiltVoiceConfig?: (google.cloud.aiplatform.v1beta1.IPrebuiltVoiceConfig|null); + /** VoiceConfig replicatedVoiceConfig. */ + public replicatedVoiceConfig?: (google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig|null); + /** VoiceConfig voiceConfig. */ - public voiceConfig?: "prebuiltVoiceConfig"; + public voiceConfig?: ("prebuiltVoiceConfig"|"replicatedVoiceConfig"); /** * Creates a new VoiceConfig instance using the specified properties. @@ -157540,11 +158490,217 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SpeakerVoiceConfig. */ + interface ISpeakerVoiceConfig { + + /** SpeakerVoiceConfig speaker */ + speaker?: (string|null); + + /** SpeakerVoiceConfig voiceConfig */ + voiceConfig?: (google.cloud.aiplatform.v1beta1.IVoiceConfig|null); + } + + /** Represents a SpeakerVoiceConfig. */ + class SpeakerVoiceConfig implements ISpeakerVoiceConfig { + + /** + * Constructs a new SpeakerVoiceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig); + + /** SpeakerVoiceConfig speaker. */ + public speaker: string; + + /** SpeakerVoiceConfig voiceConfig. */ + public voiceConfig?: (google.cloud.aiplatform.v1beta1.IVoiceConfig|null); + + /** + * Creates a new SpeakerVoiceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SpeakerVoiceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig): google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig; + + /** + * Encodes the specified SpeakerVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.verify|verify} messages. + * @param message SpeakerVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SpeakerVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.verify|verify} messages. + * @param message SpeakerVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SpeakerVoiceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig; + + /** + * Decodes a SpeakerVoiceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig; + + /** + * Verifies a SpeakerVoiceConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SpeakerVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SpeakerVoiceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig; + + /** + * Creates a plain object from a SpeakerVoiceConfig message. Also converts values to other types if specified. + * @param message SpeakerVoiceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SpeakerVoiceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SpeakerVoiceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MultiSpeakerVoiceConfig. */ + interface IMultiSpeakerVoiceConfig { + + /** MultiSpeakerVoiceConfig speakerVoiceConfigs */ + speakerVoiceConfigs?: (google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig[]|null); + } + + /** Represents a MultiSpeakerVoiceConfig. */ + class MultiSpeakerVoiceConfig implements IMultiSpeakerVoiceConfig { + + /** + * Constructs a new MultiSpeakerVoiceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig); + + /** MultiSpeakerVoiceConfig speakerVoiceConfigs. */ + public speakerVoiceConfigs: google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig[]; + + /** + * Creates a new MultiSpeakerVoiceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiSpeakerVoiceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig): google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig; + + /** + * Encodes the specified MultiSpeakerVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.verify|verify} messages. + * @param message MultiSpeakerVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MultiSpeakerVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.verify|verify} messages. + * @param message MultiSpeakerVoiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiSpeakerVoiceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiSpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig; + + /** + * Decodes a MultiSpeakerVoiceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiSpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig; + + /** + * Verifies a MultiSpeakerVoiceConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MultiSpeakerVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiSpeakerVoiceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig; + + /** + * Creates a plain object from a MultiSpeakerVoiceConfig message. Also converts values to other types if specified. + * @param message MultiSpeakerVoiceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiSpeakerVoiceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiSpeakerVoiceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SpeechConfig. */ interface ISpeechConfig { /** SpeechConfig voiceConfig */ voiceConfig?: (google.cloud.aiplatform.v1beta1.IVoiceConfig|null); + + /** SpeechConfig languageCode */ + languageCode?: (string|null); + + /** SpeechConfig multiSpeakerVoiceConfig */ + multiSpeakerVoiceConfig?: (google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig|null); } /** Represents a SpeechConfig. */ @@ -157559,6 +158715,12 @@ export namespace google { /** SpeechConfig voiceConfig. */ public voiceConfig?: (google.cloud.aiplatform.v1beta1.IVoiceConfig|null); + /** SpeechConfig languageCode. */ + public languageCode: string; + + /** SpeechConfig multiSpeakerVoiceConfig. */ + public multiSpeakerVoiceConfig?: (google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig|null); + /** * Creates a new SpeechConfig instance using the specified properties. * @param [properties] Properties to set @@ -181862,7 +183024,9 @@ export namespace google { GETTING_CONTAINER_IMAGE = 9, STARTING_MODEL_SERVER = 3, FINISHING_UP = 4, - DEPLOYMENT_TERMINATED = 10 + DEPLOYMENT_TERMINATED = 10, + SUCCESSFULLY_DEPLOYED = 11, + FAILED_TO_DEPLOY = 12 } /** Represents an EndpointService */ @@ -295613,6 +296777,9 @@ export namespace google { /** SourceCodeSpec inlineSource */ inlineSource?: (google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IInlineSource|null); + /** SourceCodeSpec developerConnectSource */ + developerConnectSource?: (google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource|null); + /** SourceCodeSpec pythonSpec */ pythonSpec?: (google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IPythonSpec|null); } @@ -295629,11 +296796,14 @@ export namespace google { /** SourceCodeSpec inlineSource. */ public inlineSource?: (google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IInlineSource|null); + /** SourceCodeSpec developerConnectSource. */ + public developerConnectSource?: (google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource|null); + /** SourceCodeSpec pythonSpec. */ public pythonSpec?: (google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IPythonSpec|null); /** SourceCodeSpec source. */ - public source?: "inlineSource"; + public source?: ("inlineSource"|"developerConnectSource"); /** SourceCodeSpec languageSpec. */ public languageSpec?: "pythonSpec"; @@ -295815,6 +296985,212 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeveloperConnectConfig. */ + interface IDeveloperConnectConfig { + + /** DeveloperConnectConfig gitRepositoryLink */ + gitRepositoryLink?: (string|null); + + /** DeveloperConnectConfig dir */ + dir?: (string|null); + + /** DeveloperConnectConfig revision */ + revision?: (string|null); + } + + /** Represents a DeveloperConnectConfig. */ + class DeveloperConnectConfig implements IDeveloperConnectConfig { + + /** + * Constructs a new DeveloperConnectConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig); + + /** DeveloperConnectConfig gitRepositoryLink. */ + public gitRepositoryLink: string; + + /** DeveloperConnectConfig dir. */ + public dir: string; + + /** DeveloperConnectConfig revision. */ + public revision: string; + + /** + * Creates a new DeveloperConnectConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DeveloperConnectConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig): google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig; + + /** + * Encodes the specified DeveloperConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify|verify} messages. + * @param message DeveloperConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeveloperConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify|verify} messages. + * @param message DeveloperConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeveloperConnectConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeveloperConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig; + + /** + * Decodes a DeveloperConnectConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeveloperConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig; + + /** + * Verifies a DeveloperConnectConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeveloperConnectConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeveloperConnectConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig; + + /** + * Creates a plain object from a DeveloperConnectConfig message. Also converts values to other types if specified. + * @param message DeveloperConnectConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeveloperConnectConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeveloperConnectConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeveloperConnectSource. */ + interface IDeveloperConnectSource { + + /** DeveloperConnectSource config */ + config?: (google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig|null); + } + + /** Represents a DeveloperConnectSource. */ + class DeveloperConnectSource implements IDeveloperConnectSource { + + /** + * Constructs a new DeveloperConnectSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource); + + /** DeveloperConnectSource config. */ + public config?: (google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig|null); + + /** + * Creates a new DeveloperConnectSource instance using the specified properties. + * @param [properties] Properties to set + * @returns DeveloperConnectSource instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource): google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource; + + /** + * Encodes the specified DeveloperConnectSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify|verify} messages. + * @param message DeveloperConnectSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeveloperConnectSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify|verify} messages. + * @param message DeveloperConnectSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeveloperConnectSource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeveloperConnectSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource; + + /** + * Decodes a DeveloperConnectSource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeveloperConnectSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource; + + /** + * Verifies a DeveloperConnectSource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeveloperConnectSource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeveloperConnectSource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource; + + /** + * Creates a plain object from a DeveloperConnectSource message. Also converts values to other types if specified. + * @param message DeveloperConnectSource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeveloperConnectSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeveloperConnectSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PythonSpec. */ interface IPythonSpec { @@ -311744,6 +313120,9 @@ export namespace google { /** ListEventsRequest filter */ filter?: (string|null); + + /** ListEventsRequest orderBy */ + orderBy?: (string|null); } /** Represents a ListEventsRequest. */ @@ -311767,6 +313146,9 @@ export namespace google { /** ListEventsRequest filter. */ public filter: string; + /** ListEventsRequest orderBy. */ + public orderBy: string; + /** * Creates a new ListEventsRequest instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 27e38fafc54c..73e95cf5428a 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -17180,6 +17180,7 @@ * @property {string|null} [machineType] MachineSpec machineType * @property {google.cloud.aiplatform.v1.AcceleratorType|null} [acceleratorType] MachineSpec acceleratorType * @property {number|null} [acceleratorCount] MachineSpec acceleratorCount + * @property {string|null} [gpuPartitionSize] MachineSpec gpuPartitionSize * @property {string|null} [tpuTopology] MachineSpec tpuTopology * @property {google.cloud.aiplatform.v1.IReservationAffinity|null} [reservationAffinity] MachineSpec reservationAffinity */ @@ -17223,6 +17224,14 @@ */ MachineSpec.prototype.acceleratorCount = 0; + /** + * MachineSpec gpuPartitionSize. + * @member {string} gpuPartitionSize + * @memberof google.cloud.aiplatform.v1.MachineSpec + * @instance + */ + MachineSpec.prototype.gpuPartitionSize = ""; + /** * MachineSpec tpuTopology. * @member {string} tpuTopology @@ -17273,6 +17282,8 @@ writer.uint32(/* id 4, wireType 2 =*/34).string(message.tpuTopology); if (message.reservationAffinity != null && Object.hasOwnProperty.call(message, "reservationAffinity")) $root.google.cloud.aiplatform.v1.ReservationAffinity.encode(message.reservationAffinity, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.gpuPartitionSize != null && Object.hasOwnProperty.call(message, "gpuPartitionSize")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.gpuPartitionSize); return writer; }; @@ -17321,6 +17332,10 @@ message.acceleratorCount = reader.int32(); break; } + case 7: { + message.gpuPartitionSize = reader.string(); + break; + } case 4: { message.tpuTopology = reader.string(); break; @@ -17395,6 +17410,9 @@ if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) if (!$util.isInteger(message.acceleratorCount)) return "acceleratorCount: integer expected"; + if (message.gpuPartitionSize != null && message.hasOwnProperty("gpuPartitionSize")) + if (!$util.isString(message.gpuPartitionSize)) + return "gpuPartitionSize: string expected"; if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) if (!$util.isString(message.tpuTopology)) return "tpuTopology: string expected"; @@ -17506,6 +17524,8 @@ } if (object.acceleratorCount != null) message.acceleratorCount = object.acceleratorCount | 0; + if (object.gpuPartitionSize != null) + message.gpuPartitionSize = String(object.gpuPartitionSize); if (object.tpuTopology != null) message.tpuTopology = String(object.tpuTopology); if (object.reservationAffinity != null) { @@ -17535,6 +17555,7 @@ object.acceleratorCount = 0; object.tpuTopology = ""; object.reservationAffinity = null; + object.gpuPartitionSize = ""; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -17546,6 +17567,8 @@ object.tpuTopology = message.tpuTopology; if (message.reservationAffinity != null && message.hasOwnProperty("reservationAffinity")) object.reservationAffinity = $root.google.cloud.aiplatform.v1.ReservationAffinity.toObject(message.reservationAffinity, options); + if (message.gpuPartitionSize != null && message.hasOwnProperty("gpuPartitionSize")) + object.gpuPartitionSize = message.gpuPartitionSize; return object; }; @@ -30364,6 +30387,1448 @@ return VideoMetadata; })(); + v1.PrebuiltVoiceConfig = (function() { + + /** + * Properties of a PrebuiltVoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IPrebuiltVoiceConfig + * @property {string|null} [voiceName] PrebuiltVoiceConfig voiceName + */ + + /** + * Constructs a new PrebuiltVoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PrebuiltVoiceConfig. + * @implements IPrebuiltVoiceConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IPrebuiltVoiceConfig=} [properties] Properties to set + */ + function PrebuiltVoiceConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PrebuiltVoiceConfig voiceName. + * @member {string|null|undefined} voiceName + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @instance + */ + PrebuiltVoiceConfig.prototype.voiceName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PrebuiltVoiceConfig.prototype, "_voiceName", { + get: $util.oneOfGetter($oneOfFields = ["voiceName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PrebuiltVoiceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrebuiltVoiceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PrebuiltVoiceConfig} PrebuiltVoiceConfig instance + */ + PrebuiltVoiceConfig.create = function create(properties) { + return new PrebuiltVoiceConfig(properties); + }; + + /** + * Encodes the specified PrebuiltVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PrebuiltVoiceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrebuiltVoiceConfig} message PrebuiltVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrebuiltVoiceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.voiceName != null && Object.hasOwnProperty.call(message, "voiceName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.voiceName); + return writer; + }; + + /** + * Encodes the specified PrebuiltVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PrebuiltVoiceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrebuiltVoiceConfig} message PrebuiltVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrebuiltVoiceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrebuiltVoiceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PrebuiltVoiceConfig} PrebuiltVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrebuiltVoiceConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PrebuiltVoiceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.voiceName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrebuiltVoiceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PrebuiltVoiceConfig} PrebuiltVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrebuiltVoiceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrebuiltVoiceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrebuiltVoiceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.voiceName != null && message.hasOwnProperty("voiceName")) { + properties._voiceName = 1; + if (!$util.isString(message.voiceName)) + return "voiceName: string expected"; + } + return null; + }; + + /** + * Creates a PrebuiltVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PrebuiltVoiceConfig} PrebuiltVoiceConfig + */ + PrebuiltVoiceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.PrebuiltVoiceConfig(); + if (object.voiceName != null) + message.voiceName = String(object.voiceName); + return message; + }; + + /** + * Creates a plain object from a PrebuiltVoiceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.PrebuiltVoiceConfig} message PrebuiltVoiceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrebuiltVoiceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.voiceName != null && message.hasOwnProperty("voiceName")) { + object.voiceName = message.voiceName; + if (options.oneofs) + object._voiceName = "voiceName"; + } + return object; + }; + + /** + * Converts this PrebuiltVoiceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @instance + * @returns {Object.} JSON object + */ + PrebuiltVoiceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrebuiltVoiceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PrebuiltVoiceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrebuiltVoiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PrebuiltVoiceConfig"; + }; + + return PrebuiltVoiceConfig; + })(); + + v1.ReplicatedVoiceConfig = (function() { + + /** + * Properties of a ReplicatedVoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IReplicatedVoiceConfig + * @property {string|null} [mimeType] ReplicatedVoiceConfig mimeType + * @property {Uint8Array|null} [voiceSampleAudio] ReplicatedVoiceConfig voiceSampleAudio + */ + + /** + * Constructs a new ReplicatedVoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ReplicatedVoiceConfig. + * @implements IReplicatedVoiceConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IReplicatedVoiceConfig=} [properties] Properties to set + */ + function ReplicatedVoiceConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReplicatedVoiceConfig mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @instance + */ + ReplicatedVoiceConfig.prototype.mimeType = ""; + + /** + * ReplicatedVoiceConfig voiceSampleAudio. + * @member {Uint8Array} voiceSampleAudio + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @instance + */ + ReplicatedVoiceConfig.prototype.voiceSampleAudio = $util.newBuffer([]); + + /** + * Creates a new ReplicatedVoiceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IReplicatedVoiceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReplicatedVoiceConfig} ReplicatedVoiceConfig instance + */ + ReplicatedVoiceConfig.create = function create(properties) { + return new ReplicatedVoiceConfig(properties); + }; + + /** + * Encodes the specified ReplicatedVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ReplicatedVoiceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IReplicatedVoiceConfig} message ReplicatedVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicatedVoiceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mimeType != null && Object.hasOwnProperty.call(message, "mimeType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.mimeType); + if (message.voiceSampleAudio != null && Object.hasOwnProperty.call(message, "voiceSampleAudio")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.voiceSampleAudio); + return writer; + }; + + /** + * Encodes the specified ReplicatedVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReplicatedVoiceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IReplicatedVoiceConfig} message ReplicatedVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicatedVoiceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReplicatedVoiceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ReplicatedVoiceConfig} ReplicatedVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicatedVoiceConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReplicatedVoiceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.mimeType = reader.string(); + break; + } + case 2: { + message.voiceSampleAudio = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReplicatedVoiceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ReplicatedVoiceConfig} ReplicatedVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicatedVoiceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReplicatedVoiceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReplicatedVoiceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + if (!$util.isString(message.mimeType)) + return "mimeType: string expected"; + if (message.voiceSampleAudio != null && message.hasOwnProperty("voiceSampleAudio")) + if (!(message.voiceSampleAudio && typeof message.voiceSampleAudio.length === "number" || $util.isString(message.voiceSampleAudio))) + return "voiceSampleAudio: buffer expected"; + return null; + }; + + /** + * Creates a ReplicatedVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ReplicatedVoiceConfig} ReplicatedVoiceConfig + */ + ReplicatedVoiceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ReplicatedVoiceConfig(); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.voiceSampleAudio != null) + if (typeof object.voiceSampleAudio === "string") + $util.base64.decode(object.voiceSampleAudio, message.voiceSampleAudio = $util.newBuffer($util.base64.length(object.voiceSampleAudio)), 0); + else if (object.voiceSampleAudio.length >= 0) + message.voiceSampleAudio = object.voiceSampleAudio; + return message; + }; + + /** + * Creates a plain object from a ReplicatedVoiceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.ReplicatedVoiceConfig} message ReplicatedVoiceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReplicatedVoiceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.mimeType = ""; + if (options.bytes === String) + object.voiceSampleAudio = ""; + else { + object.voiceSampleAudio = []; + if (options.bytes !== Array) + object.voiceSampleAudio = $util.newBuffer(object.voiceSampleAudio); + } + } + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.voiceSampleAudio != null && message.hasOwnProperty("voiceSampleAudio")) + object.voiceSampleAudio = options.bytes === String ? $util.base64.encode(message.voiceSampleAudio, 0, message.voiceSampleAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.voiceSampleAudio) : message.voiceSampleAudio; + return object; + }; + + /** + * Converts this ReplicatedVoiceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @instance + * @returns {Object.} JSON object + */ + ReplicatedVoiceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReplicatedVoiceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ReplicatedVoiceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReplicatedVoiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReplicatedVoiceConfig"; + }; + + return ReplicatedVoiceConfig; + })(); + + v1.VoiceConfig = (function() { + + /** + * Properties of a VoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IVoiceConfig + * @property {google.cloud.aiplatform.v1.IPrebuiltVoiceConfig|null} [prebuiltVoiceConfig] VoiceConfig prebuiltVoiceConfig + * @property {google.cloud.aiplatform.v1.IReplicatedVoiceConfig|null} [replicatedVoiceConfig] VoiceConfig replicatedVoiceConfig + */ + + /** + * Constructs a new VoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a VoiceConfig. + * @implements IVoiceConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IVoiceConfig=} [properties] Properties to set + */ + function VoiceConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VoiceConfig prebuiltVoiceConfig. + * @member {google.cloud.aiplatform.v1.IPrebuiltVoiceConfig|null|undefined} prebuiltVoiceConfig + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @instance + */ + VoiceConfig.prototype.prebuiltVoiceConfig = null; + + /** + * VoiceConfig replicatedVoiceConfig. + * @member {google.cloud.aiplatform.v1.IReplicatedVoiceConfig|null|undefined} replicatedVoiceConfig + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @instance + */ + VoiceConfig.prototype.replicatedVoiceConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * VoiceConfig voiceConfig. + * @member {"prebuiltVoiceConfig"|"replicatedVoiceConfig"|undefined} voiceConfig + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @instance + */ + Object.defineProperty(VoiceConfig.prototype, "voiceConfig", { + get: $util.oneOfGetter($oneOfFields = ["prebuiltVoiceConfig", "replicatedVoiceConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VoiceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IVoiceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.VoiceConfig} VoiceConfig instance + */ + VoiceConfig.create = function create(properties) { + return new VoiceConfig(properties); + }; + + /** + * Encodes the specified VoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.VoiceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IVoiceConfig} message VoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VoiceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prebuiltVoiceConfig != null && Object.hasOwnProperty.call(message, "prebuiltVoiceConfig")) + $root.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.encode(message.prebuiltVoiceConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.replicatedVoiceConfig != null && Object.hasOwnProperty.call(message, "replicatedVoiceConfig")) + $root.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.encode(message.replicatedVoiceConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.VoiceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IVoiceConfig} message VoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VoiceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VoiceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.VoiceConfig} VoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VoiceConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.VoiceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.prebuiltVoiceConfig = $root.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.replicatedVoiceConfig = $root.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VoiceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.VoiceConfig} VoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VoiceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VoiceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VoiceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prebuiltVoiceConfig != null && message.hasOwnProperty("prebuiltVoiceConfig")) { + properties.voiceConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.verify(message.prebuiltVoiceConfig); + if (error) + return "prebuiltVoiceConfig." + error; + } + } + if (message.replicatedVoiceConfig != null && message.hasOwnProperty("replicatedVoiceConfig")) { + if (properties.voiceConfig === 1) + return "voiceConfig: multiple values"; + properties.voiceConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.verify(message.replicatedVoiceConfig); + if (error) + return "replicatedVoiceConfig." + error; + } + } + return null; + }; + + /** + * Creates a VoiceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.VoiceConfig} VoiceConfig + */ + VoiceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.VoiceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.VoiceConfig(); + if (object.prebuiltVoiceConfig != null) { + if (typeof object.prebuiltVoiceConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.VoiceConfig.prebuiltVoiceConfig: object expected"); + message.prebuiltVoiceConfig = $root.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.fromObject(object.prebuiltVoiceConfig); + } + if (object.replicatedVoiceConfig != null) { + if (typeof object.replicatedVoiceConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.VoiceConfig.replicatedVoiceConfig: object expected"); + message.replicatedVoiceConfig = $root.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.fromObject(object.replicatedVoiceConfig); + } + return message; + }; + + /** + * Creates a plain object from a VoiceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.VoiceConfig} message VoiceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VoiceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prebuiltVoiceConfig != null && message.hasOwnProperty("prebuiltVoiceConfig")) { + object.prebuiltVoiceConfig = $root.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.toObject(message.prebuiltVoiceConfig, options); + if (options.oneofs) + object.voiceConfig = "prebuiltVoiceConfig"; + } + if (message.replicatedVoiceConfig != null && message.hasOwnProperty("replicatedVoiceConfig")) { + object.replicatedVoiceConfig = $root.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.toObject(message.replicatedVoiceConfig, options); + if (options.oneofs) + object.voiceConfig = "replicatedVoiceConfig"; + } + return object; + }; + + /** + * Converts this VoiceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @instance + * @returns {Object.} JSON object + */ + VoiceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VoiceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.VoiceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VoiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.VoiceConfig"; + }; + + return VoiceConfig; + })(); + + v1.SpeakerVoiceConfig = (function() { + + /** + * Properties of a SpeakerVoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface ISpeakerVoiceConfig + * @property {string|null} [speaker] SpeakerVoiceConfig speaker + * @property {google.cloud.aiplatform.v1.IVoiceConfig|null} [voiceConfig] SpeakerVoiceConfig voiceConfig + */ + + /** + * Constructs a new SpeakerVoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SpeakerVoiceConfig. + * @implements ISpeakerVoiceConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ISpeakerVoiceConfig=} [properties] Properties to set + */ + function SpeakerVoiceConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SpeakerVoiceConfig speaker. + * @member {string} speaker + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @instance + */ + SpeakerVoiceConfig.prototype.speaker = ""; + + /** + * SpeakerVoiceConfig voiceConfig. + * @member {google.cloud.aiplatform.v1.IVoiceConfig|null|undefined} voiceConfig + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @instance + */ + SpeakerVoiceConfig.prototype.voiceConfig = null; + + /** + * Creates a new SpeakerVoiceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.ISpeakerVoiceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SpeakerVoiceConfig} SpeakerVoiceConfig instance + */ + SpeakerVoiceConfig.create = function create(properties) { + return new SpeakerVoiceConfig(properties); + }; + + /** + * Encodes the specified SpeakerVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SpeakerVoiceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.ISpeakerVoiceConfig} message SpeakerVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpeakerVoiceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.speaker != null && Object.hasOwnProperty.call(message, "speaker")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.speaker); + if (message.voiceConfig != null && Object.hasOwnProperty.call(message, "voiceConfig")) + $root.google.cloud.aiplatform.v1.VoiceConfig.encode(message.voiceConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SpeakerVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SpeakerVoiceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.ISpeakerVoiceConfig} message SpeakerVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpeakerVoiceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SpeakerVoiceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SpeakerVoiceConfig} SpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SpeakerVoiceConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SpeakerVoiceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.speaker = reader.string(); + break; + } + case 2: { + message.voiceConfig = $root.google.cloud.aiplatform.v1.VoiceConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SpeakerVoiceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SpeakerVoiceConfig} SpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SpeakerVoiceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SpeakerVoiceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SpeakerVoiceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.speaker != null && message.hasOwnProperty("speaker")) + if (!$util.isString(message.speaker)) + return "speaker: string expected"; + if (message.voiceConfig != null && message.hasOwnProperty("voiceConfig")) { + var error = $root.google.cloud.aiplatform.v1.VoiceConfig.verify(message.voiceConfig); + if (error) + return "voiceConfig." + error; + } + return null; + }; + + /** + * Creates a SpeakerVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SpeakerVoiceConfig} SpeakerVoiceConfig + */ + SpeakerVoiceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SpeakerVoiceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.SpeakerVoiceConfig(); + if (object.speaker != null) + message.speaker = String(object.speaker); + if (object.voiceConfig != null) { + if (typeof object.voiceConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SpeakerVoiceConfig.voiceConfig: object expected"); + message.voiceConfig = $root.google.cloud.aiplatform.v1.VoiceConfig.fromObject(object.voiceConfig); + } + return message; + }; + + /** + * Creates a plain object from a SpeakerVoiceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.SpeakerVoiceConfig} message SpeakerVoiceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SpeakerVoiceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.speaker = ""; + object.voiceConfig = null; + } + if (message.speaker != null && message.hasOwnProperty("speaker")) + object.speaker = message.speaker; + if (message.voiceConfig != null && message.hasOwnProperty("voiceConfig")) + object.voiceConfig = $root.google.cloud.aiplatform.v1.VoiceConfig.toObject(message.voiceConfig, options); + return object; + }; + + /** + * Converts this SpeakerVoiceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @instance + * @returns {Object.} JSON object + */ + SpeakerVoiceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SpeakerVoiceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SpeakerVoiceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SpeakerVoiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SpeakerVoiceConfig"; + }; + + return SpeakerVoiceConfig; + })(); + + v1.MultiSpeakerVoiceConfig = (function() { + + /** + * Properties of a MultiSpeakerVoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IMultiSpeakerVoiceConfig + * @property {Array.|null} [speakerVoiceConfigs] MultiSpeakerVoiceConfig speakerVoiceConfigs + */ + + /** + * Constructs a new MultiSpeakerVoiceConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MultiSpeakerVoiceConfig. + * @implements IMultiSpeakerVoiceConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig=} [properties] Properties to set + */ + function MultiSpeakerVoiceConfig(properties) { + this.speakerVoiceConfigs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MultiSpeakerVoiceConfig speakerVoiceConfigs. + * @member {Array.} speakerVoiceConfigs + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @instance + */ + MultiSpeakerVoiceConfig.prototype.speakerVoiceConfigs = $util.emptyArray; + + /** + * Creates a new MultiSpeakerVoiceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig} MultiSpeakerVoiceConfig instance + */ + MultiSpeakerVoiceConfig.create = function create(properties) { + return new MultiSpeakerVoiceConfig(properties); + }; + + /** + * Encodes the specified MultiSpeakerVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig} message MultiSpeakerVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiSpeakerVoiceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.speakerVoiceConfigs != null && message.speakerVoiceConfigs.length) + for (var i = 0; i < message.speakerVoiceConfigs.length; ++i) + $root.google.cloud.aiplatform.v1.SpeakerVoiceConfig.encode(message.speakerVoiceConfigs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MultiSpeakerVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig} message MultiSpeakerVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiSpeakerVoiceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MultiSpeakerVoiceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig} MultiSpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiSpeakerVoiceConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 2: { + if (!(message.speakerVoiceConfigs && message.speakerVoiceConfigs.length)) + message.speakerVoiceConfigs = []; + message.speakerVoiceConfigs.push($root.google.cloud.aiplatform.v1.SpeakerVoiceConfig.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MultiSpeakerVoiceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig} MultiSpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiSpeakerVoiceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MultiSpeakerVoiceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiSpeakerVoiceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.speakerVoiceConfigs != null && message.hasOwnProperty("speakerVoiceConfigs")) { + if (!Array.isArray(message.speakerVoiceConfigs)) + return "speakerVoiceConfigs: array expected"; + for (var i = 0; i < message.speakerVoiceConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.SpeakerVoiceConfig.verify(message.speakerVoiceConfigs[i]); + if (error) + return "speakerVoiceConfigs." + error; + } + } + return null; + }; + + /** + * Creates a MultiSpeakerVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig} MultiSpeakerVoiceConfig + */ + MultiSpeakerVoiceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig(); + if (object.speakerVoiceConfigs) { + if (!Array.isArray(object.speakerVoiceConfigs)) + throw TypeError(".google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.speakerVoiceConfigs: array expected"); + message.speakerVoiceConfigs = []; + for (var i = 0; i < object.speakerVoiceConfigs.length; ++i) { + if (typeof object.speakerVoiceConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.speakerVoiceConfigs: object expected"); + message.speakerVoiceConfigs[i] = $root.google.cloud.aiplatform.v1.SpeakerVoiceConfig.fromObject(object.speakerVoiceConfigs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MultiSpeakerVoiceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig} message MultiSpeakerVoiceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiSpeakerVoiceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.speakerVoiceConfigs = []; + if (message.speakerVoiceConfigs && message.speakerVoiceConfigs.length) { + object.speakerVoiceConfigs = []; + for (var j = 0; j < message.speakerVoiceConfigs.length; ++j) + object.speakerVoiceConfigs[j] = $root.google.cloud.aiplatform.v1.SpeakerVoiceConfig.toObject(message.speakerVoiceConfigs[j], options); + } + return object; + }; + + /** + * Converts this MultiSpeakerVoiceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @instance + * @returns {Object.} JSON object + */ + MultiSpeakerVoiceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MultiSpeakerVoiceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiSpeakerVoiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig"; + }; + + return MultiSpeakerVoiceConfig; + })(); + + v1.SpeechConfig = (function() { + + /** + * Properties of a SpeechConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface ISpeechConfig + * @property {google.cloud.aiplatform.v1.IVoiceConfig|null} [voiceConfig] SpeechConfig voiceConfig + * @property {string|null} [languageCode] SpeechConfig languageCode + * @property {google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig|null} [multiSpeakerVoiceConfig] SpeechConfig multiSpeakerVoiceConfig + */ + + /** + * Constructs a new SpeechConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SpeechConfig. + * @implements ISpeechConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ISpeechConfig=} [properties] Properties to set + */ + function SpeechConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SpeechConfig voiceConfig. + * @member {google.cloud.aiplatform.v1.IVoiceConfig|null|undefined} voiceConfig + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @instance + */ + SpeechConfig.prototype.voiceConfig = null; + + /** + * SpeechConfig languageCode. + * @member {string} languageCode + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @instance + */ + SpeechConfig.prototype.languageCode = ""; + + /** + * SpeechConfig multiSpeakerVoiceConfig. + * @member {google.cloud.aiplatform.v1.IMultiSpeakerVoiceConfig|null|undefined} multiSpeakerVoiceConfig + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @instance + */ + SpeechConfig.prototype.multiSpeakerVoiceConfig = null; + + /** + * Creates a new SpeechConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @static + * @param {google.cloud.aiplatform.v1.ISpeechConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SpeechConfig} SpeechConfig instance + */ + SpeechConfig.create = function create(properties) { + return new SpeechConfig(properties); + }; + + /** + * Encodes the specified SpeechConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SpeechConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @static + * @param {google.cloud.aiplatform.v1.ISpeechConfig} message SpeechConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpeechConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.voiceConfig != null && Object.hasOwnProperty.call(message, "voiceConfig")) + $root.google.cloud.aiplatform.v1.VoiceConfig.encode(message.voiceConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.multiSpeakerVoiceConfig != null && Object.hasOwnProperty.call(message, "multiSpeakerVoiceConfig")) + $root.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.encode(message.multiSpeakerVoiceConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SpeechConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SpeechConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @static + * @param {google.cloud.aiplatform.v1.ISpeechConfig} message SpeechConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SpeechConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SpeechConfig} SpeechConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SpeechConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SpeechConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.voiceConfig = $root.google.cloud.aiplatform.v1.VoiceConfig.decode(reader, reader.uint32()); + break; + } + case 2: { + message.languageCode = reader.string(); + break; + } + case 3: { + message.multiSpeakerVoiceConfig = $root.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SpeechConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SpeechConfig} SpeechConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SpeechConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SpeechConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SpeechConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.voiceConfig != null && message.hasOwnProperty("voiceConfig")) { + var error = $root.google.cloud.aiplatform.v1.VoiceConfig.verify(message.voiceConfig); + if (error) + return "voiceConfig." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.multiSpeakerVoiceConfig != null && message.hasOwnProperty("multiSpeakerVoiceConfig")) { + var error = $root.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.verify(message.multiSpeakerVoiceConfig); + if (error) + return "multiSpeakerVoiceConfig." + error; + } + return null; + }; + + /** + * Creates a SpeechConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SpeechConfig} SpeechConfig + */ + SpeechConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SpeechConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.SpeechConfig(); + if (object.voiceConfig != null) { + if (typeof object.voiceConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SpeechConfig.voiceConfig: object expected"); + message.voiceConfig = $root.google.cloud.aiplatform.v1.VoiceConfig.fromObject(object.voiceConfig); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.multiSpeakerVoiceConfig != null) { + if (typeof object.multiSpeakerVoiceConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SpeechConfig.multiSpeakerVoiceConfig: object expected"); + message.multiSpeakerVoiceConfig = $root.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.fromObject(object.multiSpeakerVoiceConfig); + } + return message; + }; + + /** + * Creates a plain object from a SpeechConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @static + * @param {google.cloud.aiplatform.v1.SpeechConfig} message SpeechConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SpeechConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.voiceConfig = null; + object.languageCode = ""; + object.multiSpeakerVoiceConfig = null; + } + if (message.voiceConfig != null && message.hasOwnProperty("voiceConfig")) + object.voiceConfig = $root.google.cloud.aiplatform.v1.VoiceConfig.toObject(message.voiceConfig, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.multiSpeakerVoiceConfig != null && message.hasOwnProperty("multiSpeakerVoiceConfig")) + object.multiSpeakerVoiceConfig = $root.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.toObject(message.multiSpeakerVoiceConfig, options); + return object; + }; + + /** + * Converts this SpeechConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @instance + * @returns {Object.} JSON object + */ + SpeechConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SpeechConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SpeechConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SpeechConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SpeechConfig"; + }; + + return SpeechConfig; + })(); + v1.ImageConfig = (function() { /** @@ -30603,6 +32068,7 @@ * @property {google.cloud.aiplatform.v1.ISchema|null} [responseSchema] GenerationConfig responseSchema * @property {google.protobuf.IValue|null} [responseJsonSchema] GenerationConfig responseJsonSchema * @property {google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig|null} [routingConfig] GenerationConfig routingConfig + * @property {google.cloud.aiplatform.v1.ISpeechConfig|null} [speechConfig] GenerationConfig speechConfig * @property {google.cloud.aiplatform.v1.GenerationConfig.IThinkingConfig|null} [thinkingConfig] GenerationConfig thinkingConfig * @property {google.cloud.aiplatform.v1.IImageConfig|null} [imageConfig] GenerationConfig imageConfig */ @@ -30743,6 +32209,14 @@ */ GenerationConfig.prototype.routingConfig = null; + /** + * GenerationConfig speechConfig. + * @member {google.cloud.aiplatform.v1.ISpeechConfig|null|undefined} speechConfig + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @instance + */ + GenerationConfig.prototype.speechConfig = null; + /** * GenerationConfig thinkingConfig. * @member {google.cloud.aiplatform.v1.GenerationConfig.IThinkingConfig|null|undefined} thinkingConfig @@ -30840,6 +32314,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(GenerationConfig.prototype, "_speechConfig", { + get: $util.oneOfGetter($oneOfFields = ["speechConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(GenerationConfig.prototype, "_imageConfig", { get: $util.oneOfGetter($oneOfFields = ["imageConfig"]), @@ -30899,6 +32379,8 @@ $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.encode(message.routingConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); if (message.responseLogprobs != null && Object.hasOwnProperty.call(message, "responseLogprobs")) writer.uint32(/* id 18, wireType 0 =*/144).bool(message.responseLogprobs); + if (message.speechConfig != null && Object.hasOwnProperty.call(message, "speechConfig")) + $root.google.cloud.aiplatform.v1.SpeechConfig.encode(message.speechConfig, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.thinkingConfig != null && Object.hasOwnProperty.call(message, "thinkingConfig")) $root.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.encode(message.thinkingConfig, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); if (message.responseJsonSchema != null && Object.hasOwnProperty.call(message, "responseJsonSchema")) @@ -31003,6 +32485,10 @@ message.routingConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.decode(reader, reader.uint32()); break; } + case 23: { + message.speechConfig = $root.google.cloud.aiplatform.v1.SpeechConfig.decode(reader, reader.uint32()); + break; + } case 25: { message.thinkingConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.decode(reader, reader.uint32()); break; @@ -31131,6 +32617,14 @@ return "routingConfig." + error; } } + if (message.speechConfig != null && message.hasOwnProperty("speechConfig")) { + properties._speechConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.SpeechConfig.verify(message.speechConfig); + if (error) + return "speechConfig." + error; + } + } if (message.thinkingConfig != null && message.hasOwnProperty("thinkingConfig")) { var error = $root.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.verify(message.thinkingConfig); if (error) @@ -31203,6 +32697,11 @@ throw TypeError(".google.cloud.aiplatform.v1.GenerationConfig.routingConfig: object expected"); message.routingConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.fromObject(object.routingConfig); } + if (object.speechConfig != null) { + if (typeof object.speechConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.GenerationConfig.speechConfig: object expected"); + message.speechConfig = $root.google.cloud.aiplatform.v1.SpeechConfig.fromObject(object.speechConfig); + } if (object.thinkingConfig != null) { if (typeof object.thinkingConfig !== "object") throw TypeError(".google.cloud.aiplatform.v1.GenerationConfig.thinkingConfig: object expected"); @@ -31302,6 +32801,11 @@ if (options.oneofs) object._responseLogprobs = "responseLogprobs"; } + if (message.speechConfig != null && message.hasOwnProperty("speechConfig")) { + object.speechConfig = $root.google.cloud.aiplatform.v1.SpeechConfig.toObject(message.speechConfig, options); + if (options.oneofs) + object._speechConfig = "speechConfig"; + } if (message.thinkingConfig != null && message.hasOwnProperty("thinkingConfig")) object.thinkingConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.toObject(message.thinkingConfig, options); if (message.responseJsonSchema != null && message.hasOwnProperty("responseJsonSchema")) { @@ -84320,6 +85824,8 @@ * @property {number} STARTING_MODEL_SERVER=3 STARTING_MODEL_SERVER value * @property {number} FINISHING_UP=4 FINISHING_UP value * @property {number} DEPLOYMENT_TERMINATED=10 DEPLOYMENT_TERMINATED value + * @property {number} SUCCESSFULLY_DEPLOYED=11 SUCCESSFULLY_DEPLOYED value + * @property {number} FAILED_TO_DEPLOY=12 FAILED_TO_DEPLOY value */ v1.DeploymentStage = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -84332,6 +85838,8 @@ values[valuesById[3] = "STARTING_MODEL_SERVER"] = 3; values[valuesById[4] = "FINISHING_UP"] = 4; values[valuesById[10] = "DEPLOYMENT_TERMINATED"] = 10; + values[valuesById[11] = "SUCCESSFULLY_DEPLOYED"] = 11; + values[valuesById[12] = "FAILED_TO_DEPLOY"] = 12; return values; })(); @@ -85090,6 +86598,8 @@ case 3: case 4: case 10: + case 11: + case 12: break; } return null; @@ -85155,6 +86665,14 @@ case 10: message.deploymentStage = 10; break; + case "SUCCESSFULLY_DEPLOYED": + case 11: + message.deploymentStage = 11; + break; + case "FAILED_TO_DEPLOY": + case 12: + message.deploymentStage = 12; + break; } return message; }; @@ -87526,6 +89044,8 @@ case 3: case 4: case 10: + case 11: + case 12: break; } return null; @@ -87591,6 +89111,14 @@ case 10: message.deploymentStage = 10; break; + case "SUCCESSFULLY_DEPLOYED": + case 11: + message.deploymentStage = 11; + break; + case "FAILED_TO_DEPLOY": + case 12: + message.deploymentStage = 12; + break; } return message; }; @@ -294035,6 +295563,7 @@ * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec * @interface ISourceCodeSpec * @property {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IInlineSource|null} [inlineSource] SourceCodeSpec inlineSource + * @property {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource|null} [developerConnectSource] SourceCodeSpec developerConnectSource * @property {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IPythonSpec|null} [pythonSpec] SourceCodeSpec pythonSpec */ @@ -294061,6 +295590,14 @@ */ SourceCodeSpec.prototype.inlineSource = null; + /** + * SourceCodeSpec developerConnectSource. + * @member {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource|null|undefined} developerConnectSource + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + * @instance + */ + SourceCodeSpec.prototype.developerConnectSource = null; + /** * SourceCodeSpec pythonSpec. * @member {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IPythonSpec|null|undefined} pythonSpec @@ -294074,12 +295611,12 @@ /** * SourceCodeSpec source. - * @member {"inlineSource"|undefined} source + * @member {"inlineSource"|"developerConnectSource"|undefined} source * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec * @instance */ Object.defineProperty(SourceCodeSpec.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["inlineSource"]), + get: $util.oneOfGetter($oneOfFields = ["inlineSource", "developerConnectSource"]), set: $util.oneOfSetter($oneOfFields) }); @@ -294122,6 +295659,8 @@ $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSource.encode(message.inlineSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.pythonSpec != null && Object.hasOwnProperty.call(message, "pythonSpec")) $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.encode(message.pythonSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.developerConnectSource != null && Object.hasOwnProperty.call(message, "developerConnectSource")) + $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.encode(message.developerConnectSource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -294162,6 +295701,10 @@ message.inlineSource = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSource.decode(reader, reader.uint32()); break; } + case 3: { + message.developerConnectSource = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.decode(reader, reader.uint32()); + break; + } case 2: { message.pythonSpec = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.decode(reader, reader.uint32()); break; @@ -294210,6 +295753,16 @@ return "inlineSource." + error; } } + if (message.developerConnectSource != null && message.hasOwnProperty("developerConnectSource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify(message.developerConnectSource); + if (error) + return "developerConnectSource." + error; + } + } if (message.pythonSpec != null && message.hasOwnProperty("pythonSpec")) { properties.languageSpec = 1; { @@ -294238,6 +295791,11 @@ throw TypeError(".google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.inlineSource: object expected"); message.inlineSource = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSource.fromObject(object.inlineSource); } + if (object.developerConnectSource != null) { + if (typeof object.developerConnectSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.developerConnectSource: object expected"); + message.developerConnectSource = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.fromObject(object.developerConnectSource); + } if (object.pythonSpec != null) { if (typeof object.pythonSpec !== "object") throw TypeError(".google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.pythonSpec: object expected"); @@ -294269,6 +295827,11 @@ if (options.oneofs) object.languageSpec = "pythonSpec"; } + if (message.developerConnectSource != null && message.hasOwnProperty("developerConnectSource")) { + object.developerConnectSource = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.toObject(message.developerConnectSource, options); + if (options.oneofs) + object.source = "developerConnectSource"; + } return object; }; @@ -294512,6 +296075,468 @@ return InlineSource; })(); + SourceCodeSpec.DeveloperConnectConfig = (function() { + + /** + * Properties of a DeveloperConnectConfig. + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + * @interface IDeveloperConnectConfig + * @property {string|null} [gitRepositoryLink] DeveloperConnectConfig gitRepositoryLink + * @property {string|null} [dir] DeveloperConnectConfig dir + * @property {string|null} [revision] DeveloperConnectConfig revision + */ + + /** + * Constructs a new DeveloperConnectConfig. + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + * @classdesc Represents a DeveloperConnectConfig. + * @implements IDeveloperConnectConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig=} [properties] Properties to set + */ + function DeveloperConnectConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeveloperConnectConfig gitRepositoryLink. + * @member {string} gitRepositoryLink + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @instance + */ + DeveloperConnectConfig.prototype.gitRepositoryLink = ""; + + /** + * DeveloperConnectConfig dir. + * @member {string} dir + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @instance + */ + DeveloperConnectConfig.prototype.dir = ""; + + /** + * DeveloperConnectConfig revision. + * @member {string} revision + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @instance + */ + DeveloperConnectConfig.prototype.revision = ""; + + /** + * Creates a new DeveloperConnectConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} DeveloperConnectConfig instance + */ + DeveloperConnectConfig.create = function create(properties) { + return new DeveloperConnectConfig(properties); + }; + + /** + * Encodes the specified DeveloperConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig} message DeveloperConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeveloperConnectConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gitRepositoryLink != null && Object.hasOwnProperty.call(message, "gitRepositoryLink")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gitRepositoryLink); + if (message.dir != null && Object.hasOwnProperty.call(message, "dir")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dir); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.revision); + return writer; + }; + + /** + * Encodes the specified DeveloperConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig} message DeveloperConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeveloperConnectConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeveloperConnectConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} DeveloperConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeveloperConnectConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.gitRepositoryLink = reader.string(); + break; + } + case 2: { + message.dir = reader.string(); + break; + } + case 3: { + message.revision = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeveloperConnectConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} DeveloperConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeveloperConnectConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeveloperConnectConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeveloperConnectConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink")) + if (!$util.isString(message.gitRepositoryLink)) + return "gitRepositoryLink: string expected"; + if (message.dir != null && message.hasOwnProperty("dir")) + if (!$util.isString(message.dir)) + return "dir: string expected"; + if (message.revision != null && message.hasOwnProperty("revision")) + if (!$util.isString(message.revision)) + return "revision: string expected"; + return null; + }; + + /** + * Creates a DeveloperConnectConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} DeveloperConnectConfig + */ + DeveloperConnectConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig(); + if (object.gitRepositoryLink != null) + message.gitRepositoryLink = String(object.gitRepositoryLink); + if (object.dir != null) + message.dir = String(object.dir); + if (object.revision != null) + message.revision = String(object.revision); + return message; + }; + + /** + * Creates a plain object from a DeveloperConnectConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} message DeveloperConnectConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeveloperConnectConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.gitRepositoryLink = ""; + object.dir = ""; + object.revision = ""; + } + if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink")) + object.gitRepositoryLink = message.gitRepositoryLink; + if (message.dir != null && message.hasOwnProperty("dir")) + object.dir = message.dir; + if (message.revision != null && message.hasOwnProperty("revision")) + object.revision = message.revision; + return object; + }; + + /** + * Converts this DeveloperConnectConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @instance + * @returns {Object.} JSON object + */ + DeveloperConnectConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeveloperConnectConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeveloperConnectConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig"; + }; + + return DeveloperConnectConfig; + })(); + + SourceCodeSpec.DeveloperConnectSource = (function() { + + /** + * Properties of a DeveloperConnectSource. + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + * @interface IDeveloperConnectSource + * @property {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig|null} [config] DeveloperConnectSource config + */ + + /** + * Constructs a new DeveloperConnectSource. + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + * @classdesc Represents a DeveloperConnectSource. + * @implements IDeveloperConnectSource + * @constructor + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource=} [properties] Properties to set + */ + function DeveloperConnectSource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeveloperConnectSource config. + * @member {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig|null|undefined} config + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @instance + */ + DeveloperConnectSource.prototype.config = null; + + /** + * Creates a new DeveloperConnectSource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} DeveloperConnectSource instance + */ + DeveloperConnectSource.create = function create(properties) { + return new DeveloperConnectSource(properties); + }; + + /** + * Encodes the specified DeveloperConnectSource message. Does not implicitly {@link google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource} message DeveloperConnectSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeveloperConnectSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.config != null && Object.hasOwnProperty.call(message, "config")) + $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeveloperConnectSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource} message DeveloperConnectSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeveloperConnectSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeveloperConnectSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} DeveloperConnectSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeveloperConnectSource.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.config = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeveloperConnectSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} DeveloperConnectSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeveloperConnectSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeveloperConnectSource message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeveloperConnectSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.config != null && message.hasOwnProperty("config")) { + var error = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify(message.config); + if (error) + return "config." + error; + } + return null; + }; + + /** + * Creates a DeveloperConnectSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} DeveloperConnectSource + */ + DeveloperConnectSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + return object; + var message = new $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource(); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.config: object expected"); + message.config = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.fromObject(object.config); + } + return message; + }; + + /** + * Creates a plain object from a DeveloperConnectSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} message DeveloperConnectSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeveloperConnectSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.config = null; + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.toObject(message.config, options); + return object; + }; + + /** + * Converts this DeveloperConnectSource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @instance + * @returns {Object.} JSON object + */ + DeveloperConnectSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeveloperConnectSource + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeveloperConnectSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource"; + }; + + return DeveloperConnectSource; + })(); + SourceCodeSpec.PythonSpec = (function() { /** @@ -388228,6 +390253,244 @@ return PrebuiltVoiceConfig; })(); + v1beta1.ReplicatedVoiceConfig = (function() { + + /** + * Properties of a ReplicatedVoiceConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IReplicatedVoiceConfig + * @property {string|null} [mimeType] ReplicatedVoiceConfig mimeType + * @property {Uint8Array|null} [voiceSampleAudio] ReplicatedVoiceConfig voiceSampleAudio + */ + + /** + * Constructs a new ReplicatedVoiceConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ReplicatedVoiceConfig. + * @implements IReplicatedVoiceConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig=} [properties] Properties to set + */ + function ReplicatedVoiceConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReplicatedVoiceConfig mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @instance + */ + ReplicatedVoiceConfig.prototype.mimeType = ""; + + /** + * ReplicatedVoiceConfig voiceSampleAudio. + * @member {Uint8Array} voiceSampleAudio + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @instance + */ + ReplicatedVoiceConfig.prototype.voiceSampleAudio = $util.newBuffer([]); + + /** + * Creates a new ReplicatedVoiceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig} ReplicatedVoiceConfig instance + */ + ReplicatedVoiceConfig.create = function create(properties) { + return new ReplicatedVoiceConfig(properties); + }; + + /** + * Encodes the specified ReplicatedVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig} message ReplicatedVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicatedVoiceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mimeType != null && Object.hasOwnProperty.call(message, "mimeType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.mimeType); + if (message.voiceSampleAudio != null && Object.hasOwnProperty.call(message, "voiceSampleAudio")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.voiceSampleAudio); + return writer; + }; + + /** + * Encodes the specified ReplicatedVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig} message ReplicatedVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicatedVoiceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReplicatedVoiceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig} ReplicatedVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicatedVoiceConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.mimeType = reader.string(); + break; + } + case 2: { + message.voiceSampleAudio = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReplicatedVoiceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig} ReplicatedVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicatedVoiceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReplicatedVoiceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReplicatedVoiceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + if (!$util.isString(message.mimeType)) + return "mimeType: string expected"; + if (message.voiceSampleAudio != null && message.hasOwnProperty("voiceSampleAudio")) + if (!(message.voiceSampleAudio && typeof message.voiceSampleAudio.length === "number" || $util.isString(message.voiceSampleAudio))) + return "voiceSampleAudio: buffer expected"; + return null; + }; + + /** + * Creates a ReplicatedVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig} ReplicatedVoiceConfig + */ + ReplicatedVoiceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig(); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.voiceSampleAudio != null) + if (typeof object.voiceSampleAudio === "string") + $util.base64.decode(object.voiceSampleAudio, message.voiceSampleAudio = $util.newBuffer($util.base64.length(object.voiceSampleAudio)), 0); + else if (object.voiceSampleAudio.length >= 0) + message.voiceSampleAudio = object.voiceSampleAudio; + return message; + }; + + /** + * Creates a plain object from a ReplicatedVoiceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig} message ReplicatedVoiceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReplicatedVoiceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.mimeType = ""; + if (options.bytes === String) + object.voiceSampleAudio = ""; + else { + object.voiceSampleAudio = []; + if (options.bytes !== Array) + object.voiceSampleAudio = $util.newBuffer(object.voiceSampleAudio); + } + } + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.voiceSampleAudio != null && message.hasOwnProperty("voiceSampleAudio")) + object.voiceSampleAudio = options.bytes === String ? $util.base64.encode(message.voiceSampleAudio, 0, message.voiceSampleAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.voiceSampleAudio) : message.voiceSampleAudio; + return object; + }; + + /** + * Converts this ReplicatedVoiceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @instance + * @returns {Object.} JSON object + */ + ReplicatedVoiceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReplicatedVoiceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReplicatedVoiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig"; + }; + + return ReplicatedVoiceConfig; + })(); + v1beta1.VoiceConfig = (function() { /** @@ -388235,6 +390498,7 @@ * @memberof google.cloud.aiplatform.v1beta1 * @interface IVoiceConfig * @property {google.cloud.aiplatform.v1beta1.IPrebuiltVoiceConfig|null} [prebuiltVoiceConfig] VoiceConfig prebuiltVoiceConfig + * @property {google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig|null} [replicatedVoiceConfig] VoiceConfig replicatedVoiceConfig */ /** @@ -388260,17 +390524,25 @@ */ VoiceConfig.prototype.prebuiltVoiceConfig = null; + /** + * VoiceConfig replicatedVoiceConfig. + * @member {google.cloud.aiplatform.v1beta1.IReplicatedVoiceConfig|null|undefined} replicatedVoiceConfig + * @memberof google.cloud.aiplatform.v1beta1.VoiceConfig + * @instance + */ + VoiceConfig.prototype.replicatedVoiceConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * VoiceConfig voiceConfig. - * @member {"prebuiltVoiceConfig"|undefined} voiceConfig + * @member {"prebuiltVoiceConfig"|"replicatedVoiceConfig"|undefined} voiceConfig * @memberof google.cloud.aiplatform.v1beta1.VoiceConfig * @instance */ Object.defineProperty(VoiceConfig.prototype, "voiceConfig", { - get: $util.oneOfGetter($oneOfFields = ["prebuiltVoiceConfig"]), + get: $util.oneOfGetter($oneOfFields = ["prebuiltVoiceConfig", "replicatedVoiceConfig"]), set: $util.oneOfSetter($oneOfFields) }); @@ -388300,6 +390572,8 @@ writer = $Writer.create(); if (message.prebuiltVoiceConfig != null && Object.hasOwnProperty.call(message, "prebuiltVoiceConfig")) $root.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.encode(message.prebuiltVoiceConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.replicatedVoiceConfig != null && Object.hasOwnProperty.call(message, "replicatedVoiceConfig")) + $root.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.encode(message.replicatedVoiceConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -388340,6 +390614,10 @@ message.prebuiltVoiceConfig = $root.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.decode(reader, reader.uint32()); break; } + case 3: { + message.replicatedVoiceConfig = $root.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -388384,6 +390662,16 @@ return "prebuiltVoiceConfig." + error; } } + if (message.replicatedVoiceConfig != null && message.hasOwnProperty("replicatedVoiceConfig")) { + if (properties.voiceConfig === 1) + return "voiceConfig: multiple values"; + properties.voiceConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.verify(message.replicatedVoiceConfig); + if (error) + return "replicatedVoiceConfig." + error; + } + } return null; }; @@ -388404,6 +390692,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.VoiceConfig.prebuiltVoiceConfig: object expected"); message.prebuiltVoiceConfig = $root.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.fromObject(object.prebuiltVoiceConfig); } + if (object.replicatedVoiceConfig != null) { + if (typeof object.replicatedVoiceConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.VoiceConfig.replicatedVoiceConfig: object expected"); + message.replicatedVoiceConfig = $root.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.fromObject(object.replicatedVoiceConfig); + } return message; }; @@ -388425,6 +390718,11 @@ if (options.oneofs) object.voiceConfig = "prebuiltVoiceConfig"; } + if (message.replicatedVoiceConfig != null && message.hasOwnProperty("replicatedVoiceConfig")) { + object.replicatedVoiceConfig = $root.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.toObject(message.replicatedVoiceConfig, options); + if (options.oneofs) + object.voiceConfig = "replicatedVoiceConfig"; + } return object; }; @@ -388457,6 +390755,466 @@ return VoiceConfig; })(); + v1beta1.SpeakerVoiceConfig = (function() { + + /** + * Properties of a SpeakerVoiceConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISpeakerVoiceConfig + * @property {string|null} [speaker] SpeakerVoiceConfig speaker + * @property {google.cloud.aiplatform.v1beta1.IVoiceConfig|null} [voiceConfig] SpeakerVoiceConfig voiceConfig + */ + + /** + * Constructs a new SpeakerVoiceConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SpeakerVoiceConfig. + * @implements ISpeakerVoiceConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig=} [properties] Properties to set + */ + function SpeakerVoiceConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SpeakerVoiceConfig speaker. + * @member {string} speaker + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @instance + */ + SpeakerVoiceConfig.prototype.speaker = ""; + + /** + * SpeakerVoiceConfig voiceConfig. + * @member {google.cloud.aiplatform.v1beta1.IVoiceConfig|null|undefined} voiceConfig + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @instance + */ + SpeakerVoiceConfig.prototype.voiceConfig = null; + + /** + * Creates a new SpeakerVoiceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig} SpeakerVoiceConfig instance + */ + SpeakerVoiceConfig.create = function create(properties) { + return new SpeakerVoiceConfig(properties); + }; + + /** + * Encodes the specified SpeakerVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig} message SpeakerVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpeakerVoiceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.speaker != null && Object.hasOwnProperty.call(message, "speaker")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.speaker); + if (message.voiceConfig != null && Object.hasOwnProperty.call(message, "voiceConfig")) + $root.google.cloud.aiplatform.v1beta1.VoiceConfig.encode(message.voiceConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SpeakerVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ISpeakerVoiceConfig} message SpeakerVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpeakerVoiceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SpeakerVoiceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig} SpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SpeakerVoiceConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.speaker = reader.string(); + break; + } + case 2: { + message.voiceConfig = $root.google.cloud.aiplatform.v1beta1.VoiceConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SpeakerVoiceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig} SpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SpeakerVoiceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SpeakerVoiceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SpeakerVoiceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.speaker != null && message.hasOwnProperty("speaker")) + if (!$util.isString(message.speaker)) + return "speaker: string expected"; + if (message.voiceConfig != null && message.hasOwnProperty("voiceConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.VoiceConfig.verify(message.voiceConfig); + if (error) + return "voiceConfig." + error; + } + return null; + }; + + /** + * Creates a SpeakerVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig} SpeakerVoiceConfig + */ + SpeakerVoiceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig(); + if (object.speaker != null) + message.speaker = String(object.speaker); + if (object.voiceConfig != null) { + if (typeof object.voiceConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.voiceConfig: object expected"); + message.voiceConfig = $root.google.cloud.aiplatform.v1beta1.VoiceConfig.fromObject(object.voiceConfig); + } + return message; + }; + + /** + * Creates a plain object from a SpeakerVoiceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig} message SpeakerVoiceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SpeakerVoiceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.speaker = ""; + object.voiceConfig = null; + } + if (message.speaker != null && message.hasOwnProperty("speaker")) + object.speaker = message.speaker; + if (message.voiceConfig != null && message.hasOwnProperty("voiceConfig")) + object.voiceConfig = $root.google.cloud.aiplatform.v1beta1.VoiceConfig.toObject(message.voiceConfig, options); + return object; + }; + + /** + * Converts this SpeakerVoiceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @instance + * @returns {Object.} JSON object + */ + SpeakerVoiceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SpeakerVoiceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SpeakerVoiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig"; + }; + + return SpeakerVoiceConfig; + })(); + + v1beta1.MultiSpeakerVoiceConfig = (function() { + + /** + * Properties of a MultiSpeakerVoiceConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMultiSpeakerVoiceConfig + * @property {Array.|null} [speakerVoiceConfigs] MultiSpeakerVoiceConfig speakerVoiceConfigs + */ + + /** + * Constructs a new MultiSpeakerVoiceConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MultiSpeakerVoiceConfig. + * @implements IMultiSpeakerVoiceConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig=} [properties] Properties to set + */ + function MultiSpeakerVoiceConfig(properties) { + this.speakerVoiceConfigs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MultiSpeakerVoiceConfig speakerVoiceConfigs. + * @member {Array.} speakerVoiceConfigs + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @instance + */ + MultiSpeakerVoiceConfig.prototype.speakerVoiceConfigs = $util.emptyArray; + + /** + * Creates a new MultiSpeakerVoiceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig} MultiSpeakerVoiceConfig instance + */ + MultiSpeakerVoiceConfig.create = function create(properties) { + return new MultiSpeakerVoiceConfig(properties); + }; + + /** + * Encodes the specified MultiSpeakerVoiceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig} message MultiSpeakerVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiSpeakerVoiceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.speakerVoiceConfigs != null && message.speakerVoiceConfigs.length) + for (var i = 0; i < message.speakerVoiceConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.encode(message.speakerVoiceConfigs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MultiSpeakerVoiceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig} message MultiSpeakerVoiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiSpeakerVoiceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MultiSpeakerVoiceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig} MultiSpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiSpeakerVoiceConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 2: { + if (!(message.speakerVoiceConfigs && message.speakerVoiceConfigs.length)) + message.speakerVoiceConfigs = []; + message.speakerVoiceConfigs.push($root.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MultiSpeakerVoiceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig} MultiSpeakerVoiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiSpeakerVoiceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MultiSpeakerVoiceConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiSpeakerVoiceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.speakerVoiceConfigs != null && message.hasOwnProperty("speakerVoiceConfigs")) { + if (!Array.isArray(message.speakerVoiceConfigs)) + return "speakerVoiceConfigs: array expected"; + for (var i = 0; i < message.speakerVoiceConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.verify(message.speakerVoiceConfigs[i]); + if (error) + return "speakerVoiceConfigs." + error; + } + } + return null; + }; + + /** + * Creates a MultiSpeakerVoiceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig} MultiSpeakerVoiceConfig + */ + MultiSpeakerVoiceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig(); + if (object.speakerVoiceConfigs) { + if (!Array.isArray(object.speakerVoiceConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.speakerVoiceConfigs: array expected"); + message.speakerVoiceConfigs = []; + for (var i = 0; i < object.speakerVoiceConfigs.length; ++i) { + if (typeof object.speakerVoiceConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.speakerVoiceConfigs: object expected"); + message.speakerVoiceConfigs[i] = $root.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.fromObject(object.speakerVoiceConfigs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MultiSpeakerVoiceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig} message MultiSpeakerVoiceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiSpeakerVoiceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.speakerVoiceConfigs = []; + if (message.speakerVoiceConfigs && message.speakerVoiceConfigs.length) { + object.speakerVoiceConfigs = []; + for (var j = 0; j < message.speakerVoiceConfigs.length; ++j) + object.speakerVoiceConfigs[j] = $root.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.toObject(message.speakerVoiceConfigs[j], options); + } + return object; + }; + + /** + * Converts this MultiSpeakerVoiceConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @instance + * @returns {Object.} JSON object + */ + MultiSpeakerVoiceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MultiSpeakerVoiceConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiSpeakerVoiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig"; + }; + + return MultiSpeakerVoiceConfig; + })(); + v1beta1.SpeechConfig = (function() { /** @@ -388464,6 +391222,8 @@ * @memberof google.cloud.aiplatform.v1beta1 * @interface ISpeechConfig * @property {google.cloud.aiplatform.v1beta1.IVoiceConfig|null} [voiceConfig] SpeechConfig voiceConfig + * @property {string|null} [languageCode] SpeechConfig languageCode + * @property {google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig|null} [multiSpeakerVoiceConfig] SpeechConfig multiSpeakerVoiceConfig */ /** @@ -388489,6 +391249,22 @@ */ SpeechConfig.prototype.voiceConfig = null; + /** + * SpeechConfig languageCode. + * @member {string} languageCode + * @memberof google.cloud.aiplatform.v1beta1.SpeechConfig + * @instance + */ + SpeechConfig.prototype.languageCode = ""; + + /** + * SpeechConfig multiSpeakerVoiceConfig. + * @member {google.cloud.aiplatform.v1beta1.IMultiSpeakerVoiceConfig|null|undefined} multiSpeakerVoiceConfig + * @memberof google.cloud.aiplatform.v1beta1.SpeechConfig + * @instance + */ + SpeechConfig.prototype.multiSpeakerVoiceConfig = null; + /** * Creates a new SpeechConfig instance using the specified properties. * @function create @@ -388515,6 +391291,10 @@ writer = $Writer.create(); if (message.voiceConfig != null && Object.hasOwnProperty.call(message, "voiceConfig")) $root.google.cloud.aiplatform.v1beta1.VoiceConfig.encode(message.voiceConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.multiSpeakerVoiceConfig != null && Object.hasOwnProperty.call(message, "multiSpeakerVoiceConfig")) + $root.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.encode(message.multiSpeakerVoiceConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -388555,6 +391335,14 @@ message.voiceConfig = $root.google.cloud.aiplatform.v1beta1.VoiceConfig.decode(reader, reader.uint32()); break; } + case 2: { + message.languageCode = reader.string(); + break; + } + case 3: { + message.multiSpeakerVoiceConfig = $root.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -388595,6 +391383,14 @@ if (error) return "voiceConfig." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.multiSpeakerVoiceConfig != null && message.hasOwnProperty("multiSpeakerVoiceConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.verify(message.multiSpeakerVoiceConfig); + if (error) + return "multiSpeakerVoiceConfig." + error; + } return null; }; @@ -388615,6 +391411,13 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.SpeechConfig.voiceConfig: object expected"); message.voiceConfig = $root.google.cloud.aiplatform.v1beta1.VoiceConfig.fromObject(object.voiceConfig); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.multiSpeakerVoiceConfig != null) { + if (typeof object.multiSpeakerVoiceConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SpeechConfig.multiSpeakerVoiceConfig: object expected"); + message.multiSpeakerVoiceConfig = $root.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.fromObject(object.multiSpeakerVoiceConfig); + } return message; }; @@ -388631,10 +391434,17 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.voiceConfig = null; + object.languageCode = ""; + object.multiSpeakerVoiceConfig = null; + } if (message.voiceConfig != null && message.hasOwnProperty("voiceConfig")) object.voiceConfig = $root.google.cloud.aiplatform.v1beta1.VoiceConfig.toObject(message.voiceConfig, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.multiSpeakerVoiceConfig != null && message.hasOwnProperty("multiSpeakerVoiceConfig")) + object.multiSpeakerVoiceConfig = $root.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.toObject(message.multiSpeakerVoiceConfig, options); return object; }; @@ -450577,6 +453387,8 @@ * @property {number} STARTING_MODEL_SERVER=3 STARTING_MODEL_SERVER value * @property {number} FINISHING_UP=4 FINISHING_UP value * @property {number} DEPLOYMENT_TERMINATED=10 DEPLOYMENT_TERMINATED value + * @property {number} SUCCESSFULLY_DEPLOYED=11 SUCCESSFULLY_DEPLOYED value + * @property {number} FAILED_TO_DEPLOY=12 FAILED_TO_DEPLOY value */ v1beta1.DeploymentStage = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -450589,6 +453401,8 @@ values[valuesById[3] = "STARTING_MODEL_SERVER"] = 3; values[valuesById[4] = "FINISHING_UP"] = 4; values[valuesById[10] = "DEPLOYMENT_TERMINATED"] = 10; + values[valuesById[11] = "SUCCESSFULLY_DEPLOYED"] = 11; + values[valuesById[12] = "FAILED_TO_DEPLOY"] = 12; return values; })(); @@ -451413,6 +454227,8 @@ case 3: case 4: case 10: + case 11: + case 12: break; } return null; @@ -451478,6 +454294,14 @@ case 10: message.deploymentStage = 10; break; + case "SUCCESSFULLY_DEPLOYED": + case 11: + message.deploymentStage = 11; + break; + case "FAILED_TO_DEPLOY": + case 12: + message.deploymentStage = 12; + break; } return message; }; @@ -453826,6 +456650,8 @@ case 3: case 4: case 10: + case 11: + case 12: break; } return null; @@ -453891,6 +456717,14 @@ case 10: message.deploymentStage = 10; break; + case "SUCCESSFULLY_DEPLOYED": + case 11: + message.deploymentStage = 11; + break; + case "FAILED_TO_DEPLOY": + case 12: + message.deploymentStage = 12; + break; } return message; }; @@ -727723,6 +730557,7 @@ * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec * @interface ISourceCodeSpec * @property {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IInlineSource|null} [inlineSource] SourceCodeSpec inlineSource + * @property {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource|null} [developerConnectSource] SourceCodeSpec developerConnectSource * @property {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IPythonSpec|null} [pythonSpec] SourceCodeSpec pythonSpec */ @@ -727749,6 +730584,14 @@ */ SourceCodeSpec.prototype.inlineSource = null; + /** + * SourceCodeSpec developerConnectSource. + * @member {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource|null|undefined} developerConnectSource + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + * @instance + */ + SourceCodeSpec.prototype.developerConnectSource = null; + /** * SourceCodeSpec pythonSpec. * @member {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IPythonSpec|null|undefined} pythonSpec @@ -727762,12 +730605,12 @@ /** * SourceCodeSpec source. - * @member {"inlineSource"|undefined} source + * @member {"inlineSource"|"developerConnectSource"|undefined} source * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec * @instance */ Object.defineProperty(SourceCodeSpec.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["inlineSource"]), + get: $util.oneOfGetter($oneOfFields = ["inlineSource", "developerConnectSource"]), set: $util.oneOfSetter($oneOfFields) }); @@ -727810,6 +730653,8 @@ $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSource.encode(message.inlineSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.pythonSpec != null && Object.hasOwnProperty.call(message, "pythonSpec")) $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.encode(message.pythonSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.developerConnectSource != null && Object.hasOwnProperty.call(message, "developerConnectSource")) + $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.encode(message.developerConnectSource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -727850,6 +730695,10 @@ message.inlineSource = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSource.decode(reader, reader.uint32()); break; } + case 3: { + message.developerConnectSource = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.decode(reader, reader.uint32()); + break; + } case 2: { message.pythonSpec = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.decode(reader, reader.uint32()); break; @@ -727898,6 +730747,16 @@ return "inlineSource." + error; } } + if (message.developerConnectSource != null && message.hasOwnProperty("developerConnectSource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify(message.developerConnectSource); + if (error) + return "developerConnectSource." + error; + } + } if (message.pythonSpec != null && message.hasOwnProperty("pythonSpec")) { properties.languageSpec = 1; { @@ -727926,6 +730785,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.inlineSource: object expected"); message.inlineSource = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSource.fromObject(object.inlineSource); } + if (object.developerConnectSource != null) { + if (typeof object.developerConnectSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.developerConnectSource: object expected"); + message.developerConnectSource = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.fromObject(object.developerConnectSource); + } if (object.pythonSpec != null) { if (typeof object.pythonSpec !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.pythonSpec: object expected"); @@ -727957,6 +730821,11 @@ if (options.oneofs) object.languageSpec = "pythonSpec"; } + if (message.developerConnectSource != null && message.hasOwnProperty("developerConnectSource")) { + object.developerConnectSource = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.toObject(message.developerConnectSource, options); + if (options.oneofs) + object.source = "developerConnectSource"; + } return object; }; @@ -728200,6 +731069,468 @@ return InlineSource; })(); + SourceCodeSpec.DeveloperConnectConfig = (function() { + + /** + * Properties of a DeveloperConnectConfig. + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + * @interface IDeveloperConnectConfig + * @property {string|null} [gitRepositoryLink] DeveloperConnectConfig gitRepositoryLink + * @property {string|null} [dir] DeveloperConnectConfig dir + * @property {string|null} [revision] DeveloperConnectConfig revision + */ + + /** + * Constructs a new DeveloperConnectConfig. + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + * @classdesc Represents a DeveloperConnectConfig. + * @implements IDeveloperConnectConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig=} [properties] Properties to set + */ + function DeveloperConnectConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeveloperConnectConfig gitRepositoryLink. + * @member {string} gitRepositoryLink + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @instance + */ + DeveloperConnectConfig.prototype.gitRepositoryLink = ""; + + /** + * DeveloperConnectConfig dir. + * @member {string} dir + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @instance + */ + DeveloperConnectConfig.prototype.dir = ""; + + /** + * DeveloperConnectConfig revision. + * @member {string} revision + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @instance + */ + DeveloperConnectConfig.prototype.revision = ""; + + /** + * Creates a new DeveloperConnectConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} DeveloperConnectConfig instance + */ + DeveloperConnectConfig.create = function create(properties) { + return new DeveloperConnectConfig(properties); + }; + + /** + * Encodes the specified DeveloperConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig} message DeveloperConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeveloperConnectConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gitRepositoryLink != null && Object.hasOwnProperty.call(message, "gitRepositoryLink")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gitRepositoryLink); + if (message.dir != null && Object.hasOwnProperty.call(message, "dir")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dir); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.revision); + return writer; + }; + + /** + * Encodes the specified DeveloperConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig} message DeveloperConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeveloperConnectConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeveloperConnectConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} DeveloperConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeveloperConnectConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.gitRepositoryLink = reader.string(); + break; + } + case 2: { + message.dir = reader.string(); + break; + } + case 3: { + message.revision = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeveloperConnectConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} DeveloperConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeveloperConnectConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeveloperConnectConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeveloperConnectConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink")) + if (!$util.isString(message.gitRepositoryLink)) + return "gitRepositoryLink: string expected"; + if (message.dir != null && message.hasOwnProperty("dir")) + if (!$util.isString(message.dir)) + return "dir: string expected"; + if (message.revision != null && message.hasOwnProperty("revision")) + if (!$util.isString(message.revision)) + return "revision: string expected"; + return null; + }; + + /** + * Creates a DeveloperConnectConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} DeveloperConnectConfig + */ + DeveloperConnectConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig(); + if (object.gitRepositoryLink != null) + message.gitRepositoryLink = String(object.gitRepositoryLink); + if (object.dir != null) + message.dir = String(object.dir); + if (object.revision != null) + message.revision = String(object.revision); + return message; + }; + + /** + * Creates a plain object from a DeveloperConnectConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} message DeveloperConnectConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeveloperConnectConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.gitRepositoryLink = ""; + object.dir = ""; + object.revision = ""; + } + if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink")) + object.gitRepositoryLink = message.gitRepositoryLink; + if (message.dir != null && message.hasOwnProperty("dir")) + object.dir = message.dir; + if (message.revision != null && message.hasOwnProperty("revision")) + object.revision = message.revision; + return object; + }; + + /** + * Converts this DeveloperConnectConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @instance + * @returns {Object.} JSON object + */ + DeveloperConnectConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeveloperConnectConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeveloperConnectConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig"; + }; + + return DeveloperConnectConfig; + })(); + + SourceCodeSpec.DeveloperConnectSource = (function() { + + /** + * Properties of a DeveloperConnectSource. + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + * @interface IDeveloperConnectSource + * @property {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig|null} [config] DeveloperConnectSource config + */ + + /** + * Constructs a new DeveloperConnectSource. + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + * @classdesc Represents a DeveloperConnectSource. + * @implements IDeveloperConnectSource + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource=} [properties] Properties to set + */ + function DeveloperConnectSource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeveloperConnectSource config. + * @member {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectConfig|null|undefined} config + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @instance + */ + DeveloperConnectSource.prototype.config = null; + + /** + * Creates a new DeveloperConnectSource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} DeveloperConnectSource instance + */ + DeveloperConnectSource.create = function create(properties) { + return new DeveloperConnectSource(properties); + }; + + /** + * Encodes the specified DeveloperConnectSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource} message DeveloperConnectSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeveloperConnectSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.config != null && Object.hasOwnProperty.call(message, "config")) + $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeveloperConnectSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.IDeveloperConnectSource} message DeveloperConnectSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeveloperConnectSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeveloperConnectSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} DeveloperConnectSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeveloperConnectSource.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.config = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeveloperConnectSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} DeveloperConnectSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeveloperConnectSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeveloperConnectSource message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeveloperConnectSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.config != null && message.hasOwnProperty("config")) { + var error = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.verify(message.config); + if (error) + return "config." + error; + } + return null; + }; + + /** + * Creates a DeveloperConnectSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} DeveloperConnectSource + */ + DeveloperConnectSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource(); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.config: object expected"); + message.config = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.fromObject(object.config); + } + return message; + }; + + /** + * Creates a plain object from a DeveloperConnectSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} message DeveloperConnectSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeveloperConnectSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.config = null; + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.toObject(message.config, options); + return object; + }; + + /** + * Converts this DeveloperConnectSource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @instance + * @returns {Object.} JSON object + */ + DeveloperConnectSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeveloperConnectSource + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeveloperConnectSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource"; + }; + + return DeveloperConnectSource; + })(); + SourceCodeSpec.PythonSpec = (function() { /** @@ -766293,6 +769624,7 @@ * @property {number|null} [pageSize] ListEventsRequest pageSize * @property {string|null} [pageToken] ListEventsRequest pageToken * @property {string|null} [filter] ListEventsRequest filter + * @property {string|null} [orderBy] ListEventsRequest orderBy */ /** @@ -766342,6 +769674,14 @@ */ ListEventsRequest.prototype.filter = ""; + /** + * ListEventsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListEventsRequest + * @instance + */ + ListEventsRequest.prototype.orderBy = ""; + /** * Creates a new ListEventsRequest instance using the specified properties. * @function create @@ -766374,6 +769714,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; @@ -766426,6 +769768,10 @@ message.filter = reader.string(); break; } + case 5: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -766473,6 +769819,9 @@ if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; @@ -766496,6 +769845,8 @@ message.pageToken = String(object.pageToken); if (object.filter != null) message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; @@ -766517,6 +769868,7 @@ object.pageSize = 0; object.pageToken = ""; object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -766526,6 +769878,8 @@ object.pageToken = message.pageToken; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 02935e51ceb0..f89dcc3ed047 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -15,8 +15,8 @@ "java_package": "com.google.cloud.aiplatform.v1", "php_namespace": "Google\\Cloud\\AIPlatform\\V1", "ruby_package": "Google::Cloud::AIPlatform::V1", - "(google.api.resource_definition).type": "compute.googleapis.com/Network", - "(google.api.resource_definition).pattern": "projects/{project}/global/networks/{network}" + "(google.api.resource_definition).type": "developerconnect.googleapis.com/GitRepositoryLink", + "(google.api.resource_definition).pattern": "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}" }, "nested": { "AcceleratorType": { @@ -1632,6 +1632,13 @@ "type": "int32", "id": 3 }, + "gpuPartitionSize": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "tpuTopology": { "type": "string", "id": 4, @@ -2962,6 +2969,114 @@ } } }, + "PrebuiltVoiceConfig": { + "oneofs": { + "_voiceName": { + "oneof": [ + "voiceName" + ] + } + }, + "fields": { + "voiceName": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + } + } + }, + "ReplicatedVoiceConfig": { + "fields": { + "mimeType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "voiceSampleAudio": { + "type": "bytes", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "VoiceConfig": { + "oneofs": { + "voiceConfig": { + "oneof": [ + "prebuiltVoiceConfig", + "replicatedVoiceConfig" + ] + } + }, + "fields": { + "prebuiltVoiceConfig": { + "type": "PrebuiltVoiceConfig", + "id": 1 + }, + "replicatedVoiceConfig": { + "type": "ReplicatedVoiceConfig", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SpeakerVoiceConfig": { + "fields": { + "speaker": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "voiceConfig": { + "type": "VoiceConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "MultiSpeakerVoiceConfig": { + "fields": { + "speakerVoiceConfigs": { + "rule": "repeated", + "type": "SpeakerVoiceConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SpeechConfig": { + "fields": { + "voiceConfig": { + "type": "VoiceConfig", + "id": 1 + }, + "languageCode": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "multiSpeakerVoiceConfig": { + "type": "MultiSpeakerVoiceConfig", + "id": 3 + } + } + }, "ImageConfig": { "oneofs": { "_aspectRatio": { @@ -3048,6 +3163,11 @@ "routingConfig" ] }, + "_speechConfig": { + "oneof": [ + "speechConfig" + ] + }, "_imageConfig": { "oneof": [ "imageConfig" @@ -3174,6 +3294,14 @@ "proto3_optional": true } }, + "speechConfig": { + "type": "SpeechConfig", + "id": 23, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "thinkingConfig": { "type": "ThinkingConfig", "id": 25, @@ -9052,7 +9180,9 @@ "GETTING_CONTAINER_IMAGE": 9, "STARTING_MODEL_SERVER": 3, "FINISHING_UP": 4, - "DEPLOYMENT_TERMINATED": 10 + "DEPLOYMENT_TERMINATED": 10, + "SUCCESSFULLY_DEPLOYED": 11, + "FAILED_TO_DEPLOY": 12 } }, "EndpointService": { @@ -32583,7 +32713,8 @@ "oneofs": { "source": { "oneof": [ - "inlineSource" + "inlineSource", + "developerConnectSource" ] }, "languageSpec": { @@ -32597,6 +32728,10 @@ "type": "InlineSource", "id": 1 }, + "developerConnectSource": { + "type": "DeveloperConnectSource", + "id": 3 + }, "pythonSpec": { "type": "PythonSpec", "id": 2 @@ -32614,6 +32749,43 @@ } } }, + "DeveloperConnectConfig": { + "fields": { + "gitRepositoryLink": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "developerconnect.googleapis.com/GitRepositoryLink" + } + }, + "dir": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "revision": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeveloperConnectSource": { + "fields": { + "config": { + "type": "DeveloperConnectConfig", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "PythonSpec": { "fields": { "version": { @@ -38459,8 +38631,8 @@ "java_package": "com.google.cloud.aiplatform.v1beta1", "php_namespace": "Google\\Cloud\\AIPlatform\\V1beta1", "ruby_package": "Google::Cloud::AIPlatform::V1beta1", - "(google.api.resource_definition).type": "compute.googleapis.com/Network", - "(google.api.resource_definition).pattern": "projects/{project}/global/networks/{network}" + "(google.api.resource_definition).type": "developerconnect.googleapis.com/GitRepositoryLink", + "(google.api.resource_definition).pattern": "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}" }, "nested": { "AcceleratorType": { @@ -42059,11 +42231,30 @@ } } }, + "ReplicatedVoiceConfig": { + "fields": { + "mimeType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "voiceSampleAudio": { + "type": "bytes", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "VoiceConfig": { "oneofs": { "voiceConfig": { "oneof": [ - "prebuiltVoiceConfig" + "prebuiltVoiceConfig", + "replicatedVoiceConfig" ] } }, @@ -42071,6 +42262,43 @@ "prebuiltVoiceConfig": { "type": "PrebuiltVoiceConfig", "id": 1 + }, + "replicatedVoiceConfig": { + "type": "ReplicatedVoiceConfig", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SpeakerVoiceConfig": { + "fields": { + "speaker": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "voiceConfig": { + "type": "VoiceConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "MultiSpeakerVoiceConfig": { + "fields": { + "speakerVoiceConfigs": { + "rule": "repeated", + "type": "SpeakerVoiceConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, @@ -42079,6 +42307,17 @@ "voiceConfig": { "type": "VoiceConfig", "id": 1 + }, + "languageCode": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "multiSpeakerVoiceConfig": { + "type": "MultiSpeakerVoiceConfig", + "id": 3 } } }, @@ -49025,7 +49264,9 @@ "GETTING_CONTAINER_IMAGE": 9, "STARTING_MODEL_SERVER": 3, "FINISHING_UP": 4, - "DEPLOYMENT_TERMINATED": 10 + "DEPLOYMENT_TERMINATED": 10, + "SUCCESSFULLY_DEPLOYED": 11, + "FAILED_TO_DEPLOY": 12 } }, "EndpointService": { @@ -79552,7 +79793,8 @@ "oneofs": { "source": { "oneof": [ - "inlineSource" + "inlineSource", + "developerConnectSource" ] }, "languageSpec": { @@ -79566,6 +79808,10 @@ "type": "InlineSource", "id": 1 }, + "developerConnectSource": { + "type": "DeveloperConnectSource", + "id": 3 + }, "pythonSpec": { "type": "PythonSpec", "id": 2 @@ -79583,6 +79829,43 @@ } } }, + "DeveloperConnectConfig": { + "fields": { + "gitRepositoryLink": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "developerconnect.googleapis.com/GitRepositoryLink" + } + }, + "dir": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "revision": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeveloperConnectSource": { + "fields": { + "config": { + "type": "DeveloperConnectConfig", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "PythonSpec": { "fields": { "version": { @@ -82980,6 +83263,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "orderBy": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/session_service.list_events.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/session_service.list_events.js index 5365cadcd97e..c13350990740 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/session_service.list_events.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/session_service.list_events.js @@ -56,6 +56,13 @@ function main(parent) { * More detail in AIP-160 (https://google.aip.dev/160). */ // const filter = 'abc123' + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported fields: + * * `timestamp` + * Example: `timestamp desc`. + */ + // const orderBy = 'abc123' // Imports the Aiplatform library const {SessionServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/session_service.list_sessions.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/session_service.list_sessions.js index 3f81ca3ab4df..3a74ada11313 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/session_service.list_sessions.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/session_service.list_sessions.js @@ -52,7 +52,8 @@ function main(parent) { * Optional. The standard list filter. * Supported fields: * * `display_name` - * Example: `display_name=abc`. + * * `user_id` + * Example: `display_name="abc"`, `user_id="123"`. */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json index c8d61f057594..f08582d8c42c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json @@ -15498,7 +15498,7 @@ "segments": [ { "start": 25, - "end": 86, + "end": 87, "type": "FULL" } ], @@ -15638,7 +15638,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 86, "type": "FULL" } ], @@ -15662,6 +15662,10 @@ { "name": "filter", "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.aiplatform.v1beta1.ListEventsResponse", diff --git a/packages/google-cloud-aiplatform/samples/package.json b/packages/google-cloud-aiplatform/samples/package.json index 11780fdcb1bb..cf5e2d91222d 100644 --- a/packages/google-cloud-aiplatform/samples/package.json +++ b/packages/google-cloud-aiplatform/samples/package.json @@ -13,7 +13,7 @@ "test": "mocha --timeout 1200000 test/*.js" }, "dependencies": { - "@google-cloud/aiplatform": "^5.12.0" + "@google-cloud/aiplatform": "^5.14.0" }, "devDependencies": { "chai": "^4.2.0", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/session_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/session_service_client.ts index e9d802c08a04..1777785548dd 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/session_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/session_service_client.ts @@ -1121,8 +1121,9 @@ export class SessionServiceClient { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * @param {string} [request.orderBy] * Optional. A comma-separated list of fields to order by, sorted in ascending * order. Use "desc" after a field name for descending. Supported fields: @@ -1240,8 +1241,9 @@ export class SessionServiceClient { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * @param {string} [request.orderBy] * Optional. A comma-separated list of fields to order by, sorted in ascending * order. Use "desc" after a field name for descending. Supported fields: @@ -1308,8 +1310,9 @@ export class SessionServiceClient { * Optional. The standard list filter. * Supported fields: * * `display_name` + * * `user_id` * - * Example: `display_name=abc`. + * Example: `display_name="abc"`, `user_id="123"`. * @param {string} [request.orderBy] * Optional. A comma-separated list of fields to order by, sorted in ascending * order. Use "desc" after a field name for descending. Supported fields: @@ -1378,6 +1381,12 @@ export class SessionServiceClient { * the timestamp is in RFC 3339 format) * * More detail in [AIP-160](https://google.aip.dev/160). + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported fields: + * * `timestamp` + * + * Example: `timestamp desc`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1491,6 +1500,12 @@ export class SessionServiceClient { * the timestamp is in RFC 3339 format) * * More detail in [AIP-160](https://google.aip.dev/160). + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported fields: + * * `timestamp` + * + * Example: `timestamp desc`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1553,6 +1568,12 @@ export class SessionServiceClient { * the timestamp is in RFC 3339 format) * * More detail in [AIP-160](https://google.aip.dev/160). + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported fields: + * * `timestamp` + * + * Example: `timestamp desc`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-backupdr/CHANGELOG.md b/packages/google-cloud-backupdr/CHANGELOG.md index 58be67f4c039..03429ac1547b 100644 --- a/packages/google-cloud-backupdr/CHANGELOG.md +++ b/packages/google-cloud-backupdr/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [0.7.0](https://github.com/googleapis/google-cloud-node/compare/backupdr-v0.6.0...backupdr-v0.7.0) (2025-11-21) + + +### Features + +* [backupdr] Adding new fields for CMEK and Retention Inheritance features ([#6901](https://github.com/googleapis/google-cloud-node/issues/6901)) ([b26f79d](https://github.com/googleapis/google-cloud-node/commit/b26f79d452a55f26a309166362ca3a6a1cda89c1)) + +## [0.6.0](https://github.com/googleapis/google-cloud-node/compare/backupdr-v0.5.1...backupdr-v0.6.0) (2025-11-11) + + +### Features + +* [backupdr] Adding `unreachable` field to `ListDataSourceReferences` API ([#6865](https://github.com/googleapis/google-cloud-node/issues/6865)) ([44f08c6](https://github.com/googleapis/google-cloud-node/commit/44f08c6d3e7d9377e7e070c8ba3dcb949e2642c1)) + ## [0.5.1](https://github.com/googleapis/google-cloud-node/compare/backupdr-v0.5.0...backupdr-v0.5.1) (2025-10-13) diff --git a/packages/google-cloud-backupdr/README.md b/packages/google-cloud-backupdr/README.md index a075ffc7fc23..6284940c7539 100644 --- a/packages/google-cloud-backupdr/README.md +++ b/packages/google-cloud-backupdr/README.md @@ -68,6 +68,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | delete backup vault | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.delete_backup_vault.js) | | delete management server | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.delete_management_server.js) | | fetch backup plan associations for resource type | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.fetch_backup_plan_associations_for_resource_type.js) | +| fetch backups for resource type | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.fetch_backups_for_resource_type.js) | | fetch data source references for resource type | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.fetch_data_source_references_for_resource_type.js) | | fetch usable backup vaults | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.fetch_usable_backup_vaults.js) | | get backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.get_backup.js) | @@ -84,6 +85,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | list backup plans | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.list_backup_plans.js) | | list backup vaults | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.list_backup_vaults.js) | | list backups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.list_backups.js) | +| list data source references | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.list_data_source_references.js) | | list data sources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.list_data_sources.js) | | list management servers | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.list_management_servers.js) | | restore backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.restore_backup.js) | diff --git a/packages/google-cloud-backupdr/package.json b/packages/google-cloud-backupdr/package.json index 20783ba54816..9bdcbe2dd2cf 100644 --- a/packages/google-cloud-backupdr/package.json +++ b/packages/google-cloud-backupdr/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/backupdr", - "version": "0.5.1", + "version": "0.7.0", "description": "Backup and DR Service API client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupdr.proto b/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupdr.proto index bead68e09363..3624e8b2ddd8 100644 --- a/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupdr.proto +++ b/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupdr.proto @@ -200,6 +200,15 @@ service BackupDR { option (google.api.method_signature) = "parent"; } + // Fetch Backups for a given resource type. + rpc FetchBackupsForResourceType(FetchBackupsForResourceTypeRequest) + returns (FetchBackupsForResourceTypeResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups:fetchForResourceType" + }; + option (google.api.method_signature) = "parent,resource_type"; + } + // Gets details of a Backup. rpc GetBackup(GetBackupRequest) returns (Backup) { option (google.api.http) = { @@ -417,6 +426,15 @@ service BackupDR { option (google.api.method_signature) = "name"; } + // Lists DataSourceReferences for a given project and location. + rpc ListDataSourceReferences(ListDataSourceReferencesRequest) + returns (ListDataSourceReferencesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/dataSourceReferences" + }; + option (google.api.method_signature) = "parent"; + } + // Fetch DataSourceReferences for a given project, location and resource type. rpc FetchDataSourceReferencesForResourceType( FetchDataSourceReferencesForResourceTypeRequest) diff --git a/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupvault.proto b/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupvault.proto index 45ff43b4c213..8e82cbdb8783 100644 --- a/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupvault.proto +++ b/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupvault.proto @@ -35,6 +35,14 @@ option java_outer_classname = "BackupVaultProto"; option java_package = "com.google.cloud.backupdr.v1"; option php_namespace = "Google\\Cloud\\BackupDR\\V1"; option ruby_package = "Google::Cloud::BackupDR::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}" +}; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" +}; // Message describing a BackupVault object. message BackupVault { @@ -45,6 +53,28 @@ message BackupVault { singular: "backupVault" }; + // How a backup's enforced retention end time is inherited. + enum BackupRetentionInheritance { + // Inheritance behavior not set. This will default to + // `INHERIT_VAULT_RETENTION`. + BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 0; + + // The enforced retention end time of a backup will be inherited from the + // backup vault's `backup_minimum_enforced_retention_duration` field. + // + // This is the default behavior. + INHERIT_VAULT_RETENTION = 1; + + // The enforced retention end time of a backup will always match the expire + // time of the backup. + // + // If this is set, the backup's enforced retention end time will be set to + // match the expire time during creation of the backup. When updating, the + // ERET and expire time must be updated together and have the same value. + // Invalid update requests will be rejected by the server. + MATCH_BACKUP_EXPIRE_TIME = 2; + } + // Holds the state of the backup vault resource. enum State { // State not set. @@ -87,6 +117,21 @@ message BackupVault { WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA = 4; } + // Message describing the EncryptionConfig of backup vault. + // This determines how data within the vault is encrypted at rest. + message EncryptionConfig { + // Optional. The Cloud KMS key name to encrypt backups in this backup vault. + // Must be in the same region as the vault. Some workload backups like + // compute disk backups may use their inherited source key instead. Format: + // projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key} + optional string kms_key_name = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; + } + // Output only. Identifier. Name of the backup vault to create. It must have // the // format`"projects/{project}/locations/{location}/backupVaults/{backupvault}"`. @@ -118,6 +163,11 @@ message BackupVault { optional google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(google.api.field_behavior) = REQUIRED]; + // Optional. Setting for how a backup's enforced retention end time is + // inherited. + optional BackupRetentionInheritance backup_retention_inheritance = 27 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. Set to true when there are no backups nested under this // resource. optional bool deletable = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -161,6 +211,10 @@ message BackupVault { // Default value is WITHIN_ORGANIZATION if not provided during creation. AccessRestriction access_restriction = 24 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The encryption config of the backup vault. + optional EncryptionConfig encryption_config = 29 + [(google.api.field_behavior) = OPTIONAL]; } // Message describing a DataSource object. @@ -569,6 +623,11 @@ message Backup { optional google.protobuf.Timestamp enforced_retention_end_time = 6 [(google.api.field_behavior) = OPTIONAL]; + // Output only. Setting for how the enforced retention end time is inherited. + // This value is copied from this backup's BackupVault. + optional BackupVault.BackupRetentionInheritance backup_retention_inheritance = + 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. When this backup is automatically expired. optional google.protobuf.Timestamp expire_time = 7 [(google.api.field_behavior) = OPTIONAL]; @@ -637,6 +696,23 @@ message Backup { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.field_behavior) = OPTIONAL ]; + + // Resource that is being backed up. + oneof source_resource { + // Output only. Unique identifier of the GCP resource that is being backed + // up. + BackupGcpResource gcp_resource = 31 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Optional. Output only. The list of KMS key versions used to encrypt the + // backup. + repeated string kms_key_versions = 33 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + } + ]; } // Message for creating a BackupVault. @@ -780,6 +856,62 @@ message FetchUsableBackupVaultsResponse { repeated string unreachable = 3; } +// Request for the FetchBackupsForResourceType method. +message FetchBackupsForResourceTypeRequest { + // Required. Datasources are the parent resource for the backups. + // Format: + // projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "backupdr.googleapis.com/Backup" + } + ]; + + // Required. The type of the GCP resource. + // Ex: sqladmin.googleapis.com/Instance + string resource_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The maximum number of Backups to return. The service may + // return fewer than this value. If unspecified, at most 50 + // Backups will be returned. The maximum value is 100; values + // above 100 will be coerced to 100. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous call of + // `FetchBackupsForResourceType`. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `FetchBackupsForResourceType` must match + // the call that provided the page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter expression that filters the results fetched in the + // response. The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. Supported + // fields: + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. + string order_by = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This parameter is used to specify the view of the backup. + // If not specified, the default view is BASIC. + BackupView view = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the FetchBackupsForResourceType method. +message FetchBackupsForResourceTypeResponse { + // The Backups from the specified parent. + repeated Backup backups = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + // Request message for getting a BackupVault. message GetBackupVaultRequest { // Required. Name of the backupvault store resource name, in the format @@ -1159,6 +1291,21 @@ message RestoreBackupRequest { // Disk properties to be overridden during restore. DiskRestoreProperties disk_restore_properties = 7; } + + // Optional. A field mask used to clear server-side default values + // for fields within the `instance_properties` oneof. + // + // When a field in this mask is cleared, the server will not apply its + // default logic (like inheriting a value from the source) for that field. + // + // The most common current use case is clearing default encryption keys. + // + // Examples of field mask paths: + // - Compute Instance Disks: + // `compute_instance_restore_properties.disks.*.disk_encryption_key` + // - Single Disk: `disk_restore_properties.disk_encryption_key` + optional google.protobuf.FieldMask clear_overrides_field_mask = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Response message for restoring from a Backup. @@ -1189,6 +1336,19 @@ message GcpResource { string type = 3; } +// Minimum details to identify a Google Cloud resource for a backup. +message BackupGcpResource { + // Name of the Google Cloud resource. + string gcp_resourcename = 1; + + // Location of the resource: //"global"/"unspecified". + string location = 2; + + // Type of the resource. Use the Unified Resource Type, + // eg. compute.googleapis.com/Instance. + string type = 3; +} + // Backup configuration state. Is the resource configured for backup? enum BackupConfigState { // The possible states of backup configuration. diff --git a/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupvault_cloudsql.proto b/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupvault_cloudsql.proto index dbc9bd338e27..c50279109b45 100644 --- a/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupvault_cloudsql.proto +++ b/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/backupvault_cloudsql.proto @@ -79,9 +79,17 @@ message CloudSqlInstanceBackupProperties { } ]; + // Output only. The instance creation timestamp. + google.protobuf.Timestamp instance_create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The tier (or machine type) for this instance. Example: // `db-custom-1-3840` string instance_tier = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The instance delete timestamp. + google.protobuf.Timestamp instance_delete_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // CloudSqlInstanceDataSourceReferenceProperties represents the properties of a diff --git a/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/datasourcereference.proto b/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/datasourcereference.proto index a84483c96fa8..706266398792 100644 --- a/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/datasourcereference.proto +++ b/packages/google-cloud-backupdr/protos/google/cloud/backupdr/v1/datasourcereference.proto @@ -73,6 +73,11 @@ message DataSourceReference { // Output only. The GCP resource that the DataSource is associated with. DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Total size of the storage used by all backup resources for the + // referenced datasource. + optional int64 total_stored_bytes = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Information of backup configuration on the DataSource. @@ -122,6 +127,64 @@ message GetDataSourceReferenceRequest { ]; } +// Request for the ListDataSourceReferences method. +message ListDataSourceReferencesRequest { + // Required. The parent resource name. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "backupdr.googleapis.com/DataSourceReference" + } + ]; + + // Optional. The maximum number of DataSourceReferences to return. The service + // may return fewer than this value. If unspecified, at most 50 + // DataSourceReferences will be returned. The maximum value is 100; values + // above 100 will be coerced to 100. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListDataSourceReferences` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListDataSourceReferences` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter expression that filters the results listed in the + // response. The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. + // + // The following field and operator combinations are supported: + // + // * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=` + // * data_source_gcp_resource_info.type with `=`, `!=` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. + // + // Supported fields: + // + // * data_source + // * data_source_gcp_resource_info.gcp_resourcename + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the ListDataSourceReferences method. +message ListDataSourceReferencesResponse { + // The DataSourceReferences from the specified parent. + repeated DataSourceReference data_source_references = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + // Request for the FetchDataSourceReferencesForResourceType method. message FetchDataSourceReferencesForResourceTypeRequest { // Required. The parent resource name. diff --git a/packages/google-cloud-backupdr/protos/protos.d.ts b/packages/google-cloud-backupdr/protos/protos.d.ts index e8f13e6da8f1..1795a47a51d7 100644 --- a/packages/google-cloud-backupdr/protos/protos.d.ts +++ b/packages/google-cloud-backupdr/protos/protos.d.ts @@ -242,6 +242,20 @@ export namespace google { */ public listBackups(request: google.cloud.backupdr.v1.IListBackupsRequest): Promise; + /** + * Calls FetchBackupsForResourceType. + * @param request FetchBackupsForResourceTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FetchBackupsForResourceTypeResponse + */ + public fetchBackupsForResourceType(request: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, callback: google.cloud.backupdr.v1.BackupDR.FetchBackupsForResourceTypeCallback): void; + + /** + * Calls FetchBackupsForResourceType. + * @param request FetchBackupsForResourceTypeRequest message or plain object + * @returns Promise + */ + public fetchBackupsForResourceType(request: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest): Promise; + /** * Calls GetBackup. * @param request GetBackupRequest message or plain object @@ -508,6 +522,20 @@ export namespace google { */ public getDataSourceReference(request: google.cloud.backupdr.v1.IGetDataSourceReferenceRequest): Promise; + /** + * Calls ListDataSourceReferences. + * @param request ListDataSourceReferencesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataSourceReferencesResponse + */ + public listDataSourceReferences(request: google.cloud.backupdr.v1.IListDataSourceReferencesRequest, callback: google.cloud.backupdr.v1.BackupDR.ListDataSourceReferencesCallback): void; + + /** + * Calls ListDataSourceReferences. + * @param request ListDataSourceReferencesRequest message or plain object + * @returns Promise + */ + public listDataSourceReferences(request: google.cloud.backupdr.v1.IListDataSourceReferencesRequest): Promise; + /** * Calls FetchDataSourceReferencesForResourceType. * @param request FetchDataSourceReferencesForResourceTypeRequest message or plain object @@ -637,6 +665,13 @@ export namespace google { */ type ListBackupsCallback = (error: (Error|null), response?: google.cloud.backupdr.v1.ListBackupsResponse) => void; + /** + * Callback as used by {@link google.cloud.backupdr.v1.BackupDR|fetchBackupsForResourceType}. + * @param error Error, if any + * @param [response] FetchBackupsForResourceTypeResponse + */ + type FetchBackupsForResourceTypeCallback = (error: (Error|null), response?: google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) => void; + /** * Callback as used by {@link google.cloud.backupdr.v1.BackupDR|getBackup}. * @param error Error, if any @@ -770,6 +805,13 @@ export namespace google { */ type GetDataSourceReferenceCallback = (error: (Error|null), response?: google.cloud.backupdr.v1.DataSourceReference) => void; + /** + * Callback as used by {@link google.cloud.backupdr.v1.BackupDR|listDataSourceReferences}. + * @param error Error, if any + * @param [response] ListDataSourceReferencesResponse + */ + type ListDataSourceReferencesCallback = (error: (Error|null), response?: google.cloud.backupdr.v1.ListDataSourceReferencesResponse) => void; + /** * Callback as used by {@link google.cloud.backupdr.v1.BackupDR|fetchDataSourceReferencesForResourceType}. * @param error Error, if any @@ -5518,8 +5560,14 @@ export namespace google { /** CloudSqlInstanceBackupProperties sourceInstance */ sourceInstance?: (string|null); + /** CloudSqlInstanceBackupProperties instanceCreateTime */ + instanceCreateTime?: (google.protobuf.ITimestamp|null); + /** CloudSqlInstanceBackupProperties instanceTier */ instanceTier?: (string|null); + + /** CloudSqlInstanceBackupProperties instanceDeleteTime */ + instanceDeleteTime?: (google.protobuf.ITimestamp|null); } /** Represents a CloudSqlInstanceBackupProperties. */ @@ -5540,9 +5588,15 @@ export namespace google { /** CloudSqlInstanceBackupProperties sourceInstance. */ public sourceInstance: string; + /** CloudSqlInstanceBackupProperties instanceCreateTime. */ + public instanceCreateTime?: (google.protobuf.ITimestamp|null); + /** CloudSqlInstanceBackupProperties instanceTier. */ public instanceTier: string; + /** CloudSqlInstanceBackupProperties instanceDeleteTime. */ + public instanceDeleteTime?: (google.protobuf.ITimestamp|null); + /** * Creates a new CloudSqlInstanceBackupProperties instance using the specified properties. * @param [properties] Properties to set @@ -5961,6 +6015,9 @@ export namespace google { /** BackupVault backupMinimumEnforcedRetentionDuration */ backupMinimumEnforcedRetentionDuration?: (google.protobuf.IDuration|null); + /** BackupVault backupRetentionInheritance */ + backupRetentionInheritance?: (google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|keyof typeof google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|null); + /** BackupVault deletable */ deletable?: (boolean|null); @@ -5990,6 +6047,9 @@ export namespace google { /** BackupVault accessRestriction */ accessRestriction?: (google.cloud.backupdr.v1.BackupVault.AccessRestriction|keyof typeof google.cloud.backupdr.v1.BackupVault.AccessRestriction|null); + + /** BackupVault encryptionConfig */ + encryptionConfig?: (google.cloud.backupdr.v1.BackupVault.IEncryptionConfig|null); } /** Represents a BackupVault. */ @@ -6019,6 +6079,9 @@ export namespace google { /** BackupVault backupMinimumEnforcedRetentionDuration. */ public backupMinimumEnforcedRetentionDuration?: (google.protobuf.IDuration|null); + /** BackupVault backupRetentionInheritance. */ + public backupRetentionInheritance?: (google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|keyof typeof google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|null); + /** BackupVault deletable. */ public deletable?: (boolean|null); @@ -6049,6 +6112,9 @@ export namespace google { /** BackupVault accessRestriction. */ public accessRestriction: (google.cloud.backupdr.v1.BackupVault.AccessRestriction|keyof typeof google.cloud.backupdr.v1.BackupVault.AccessRestriction); + /** BackupVault encryptionConfig. */ + public encryptionConfig?: (google.cloud.backupdr.v1.BackupVault.IEncryptionConfig|null); + /** * Creates a new BackupVault instance using the specified properties. * @param [properties] Properties to set @@ -6129,6 +6195,13 @@ export namespace google { namespace BackupVault { + /** BackupRetentionInheritance enum. */ + enum BackupRetentionInheritance { + BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 0, + INHERIT_VAULT_RETENTION = 1, + MATCH_BACKUP_EXPIRE_TIME = 2 + } + /** State enum. */ enum State { STATE_UNSPECIFIED = 0, @@ -6147,6 +6220,103 @@ export namespace google { UNRESTRICTED = 3, WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA = 4 } + + /** Properties of an EncryptionConfig. */ + interface IEncryptionConfig { + + /** EncryptionConfig kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents an EncryptionConfig. */ + class EncryptionConfig implements IEncryptionConfig { + + /** + * Constructs a new EncryptionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.backupdr.v1.BackupVault.IEncryptionConfig); + + /** EncryptionConfig kmsKeyName. */ + public kmsKeyName?: (string|null); + + /** + * Creates a new EncryptionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns EncryptionConfig instance + */ + public static create(properties?: google.cloud.backupdr.v1.BackupVault.IEncryptionConfig): google.cloud.backupdr.v1.BackupVault.EncryptionConfig; + + /** + * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.backupdr.v1.BackupVault.EncryptionConfig.verify|verify} messages. + * @param message EncryptionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.backupdr.v1.BackupVault.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.BackupVault.EncryptionConfig.verify|verify} messages. + * @param message EncryptionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.backupdr.v1.BackupVault.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EncryptionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EncryptionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.backupdr.v1.BackupVault.EncryptionConfig; + + /** + * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EncryptionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.backupdr.v1.BackupVault.EncryptionConfig; + + /** + * Verifies an EncryptionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EncryptionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.backupdr.v1.BackupVault.EncryptionConfig; + + /** + * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified. + * @param message EncryptionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.backupdr.v1.BackupVault.EncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EncryptionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EncryptionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Properties of a DataSource. */ @@ -7352,6 +7522,9 @@ export namespace google { /** Backup enforcedRetentionEndTime */ enforcedRetentionEndTime?: (google.protobuf.ITimestamp|null); + /** Backup backupRetentionInheritance */ + backupRetentionInheritance?: (google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|keyof typeof google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|null); + /** Backup expireTime */ expireTime?: (google.protobuf.ITimestamp|null); @@ -7396,6 +7569,12 @@ export namespace google { /** Backup satisfiesPzi */ satisfiesPzi?: (boolean|null); + + /** Backup gcpResource */ + gcpResource?: (google.cloud.backupdr.v1.IBackupGcpResource|null); + + /** Backup kmsKeyVersions */ + kmsKeyVersions?: (string[]|null); } /** Represents a Backup. */ @@ -7425,6 +7604,9 @@ export namespace google { /** Backup enforcedRetentionEndTime. */ public enforcedRetentionEndTime?: (google.protobuf.ITimestamp|null); + /** Backup backupRetentionInheritance. */ + public backupRetentionInheritance?: (google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|keyof typeof google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|null); + /** Backup expireTime. */ public expireTime?: (google.protobuf.ITimestamp|null); @@ -7470,12 +7652,21 @@ export namespace google { /** Backup satisfiesPzi. */ public satisfiesPzi?: (boolean|null); + /** Backup gcpResource. */ + public gcpResource?: (google.cloud.backupdr.v1.IBackupGcpResource|null); + + /** Backup kmsKeyVersions. */ + public kmsKeyVersions: string[]; + /** Backup backupProperties. */ public backupProperties?: ("computeInstanceBackupProperties"|"cloudSqlInstanceBackupProperties"|"backupApplianceBackupProperties"|"diskBackupProperties"); /** Backup planInfo. */ public planInfo?: "gcpBackupPlanInfo"; + /** Backup sourceResource. */ + public sourceResource?: "gcpResource"; + /** * Creates a new Backup instance using the specified properties. * @param [properties] Properties to set @@ -8277,6 +8468,242 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a FetchBackupsForResourceTypeRequest. */ + interface IFetchBackupsForResourceTypeRequest { + + /** FetchBackupsForResourceTypeRequest parent */ + parent?: (string|null); + + /** FetchBackupsForResourceTypeRequest resourceType */ + resourceType?: (string|null); + + /** FetchBackupsForResourceTypeRequest pageSize */ + pageSize?: (number|null); + + /** FetchBackupsForResourceTypeRequest pageToken */ + pageToken?: (string|null); + + /** FetchBackupsForResourceTypeRequest filter */ + filter?: (string|null); + + /** FetchBackupsForResourceTypeRequest orderBy */ + orderBy?: (string|null); + + /** FetchBackupsForResourceTypeRequest view */ + view?: (google.cloud.backupdr.v1.BackupView|keyof typeof google.cloud.backupdr.v1.BackupView|null); + } + + /** Represents a FetchBackupsForResourceTypeRequest. */ + class FetchBackupsForResourceTypeRequest implements IFetchBackupsForResourceTypeRequest { + + /** + * Constructs a new FetchBackupsForResourceTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest); + + /** FetchBackupsForResourceTypeRequest parent. */ + public parent: string; + + /** FetchBackupsForResourceTypeRequest resourceType. */ + public resourceType: string; + + /** FetchBackupsForResourceTypeRequest pageSize. */ + public pageSize: number; + + /** FetchBackupsForResourceTypeRequest pageToken. */ + public pageToken: string; + + /** FetchBackupsForResourceTypeRequest filter. */ + public filter: string; + + /** FetchBackupsForResourceTypeRequest orderBy. */ + public orderBy: string; + + /** FetchBackupsForResourceTypeRequest view. */ + public view: (google.cloud.backupdr.v1.BackupView|keyof typeof google.cloud.backupdr.v1.BackupView); + + /** + * Creates a new FetchBackupsForResourceTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns FetchBackupsForResourceTypeRequest instance + */ + public static create(properties?: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest): google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; + + /** + * Encodes the specified FetchBackupsForResourceTypeRequest message. Does not implicitly {@link google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.verify|verify} messages. + * @param message FetchBackupsForResourceTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FetchBackupsForResourceTypeRequest message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.verify|verify} messages. + * @param message FetchBackupsForResourceTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FetchBackupsForResourceTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FetchBackupsForResourceTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; + + /** + * Decodes a FetchBackupsForResourceTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FetchBackupsForResourceTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; + + /** + * Verifies a FetchBackupsForResourceTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FetchBackupsForResourceTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FetchBackupsForResourceTypeRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest; + + /** + * Creates a plain object from a FetchBackupsForResourceTypeRequest message. Also converts values to other types if specified. + * @param message FetchBackupsForResourceTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FetchBackupsForResourceTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FetchBackupsForResourceTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FetchBackupsForResourceTypeResponse. */ + interface IFetchBackupsForResourceTypeResponse { + + /** FetchBackupsForResourceTypeResponse backups */ + backups?: (google.cloud.backupdr.v1.IBackup[]|null); + + /** FetchBackupsForResourceTypeResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a FetchBackupsForResourceTypeResponse. */ + class FetchBackupsForResourceTypeResponse implements IFetchBackupsForResourceTypeResponse { + + /** + * Constructs a new FetchBackupsForResourceTypeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse); + + /** FetchBackupsForResourceTypeResponse backups. */ + public backups: google.cloud.backupdr.v1.IBackup[]; + + /** FetchBackupsForResourceTypeResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new FetchBackupsForResourceTypeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FetchBackupsForResourceTypeResponse instance + */ + public static create(properties?: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse): google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse; + + /** + * Encodes the specified FetchBackupsForResourceTypeResponse message. Does not implicitly {@link google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.verify|verify} messages. + * @param message FetchBackupsForResourceTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FetchBackupsForResourceTypeResponse message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.verify|verify} messages. + * @param message FetchBackupsForResourceTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FetchBackupsForResourceTypeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FetchBackupsForResourceTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse; + + /** + * Decodes a FetchBackupsForResourceTypeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FetchBackupsForResourceTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse; + + /** + * Verifies a FetchBackupsForResourceTypeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FetchBackupsForResourceTypeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FetchBackupsForResourceTypeResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse; + + /** + * Creates a plain object from a FetchBackupsForResourceTypeResponse message. Also converts values to other types if specified. + * @param message FetchBackupsForResourceTypeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FetchBackupsForResourceTypeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FetchBackupsForResourceTypeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetBackupVaultRequest. */ interface IGetBackupVaultRequest { @@ -9656,6 +10083,9 @@ export namespace google { /** RestoreBackupRequest diskRestoreProperties */ diskRestoreProperties?: (google.cloud.backupdr.v1.IDiskRestoreProperties|null); + + /** RestoreBackupRequest clearOverridesFieldMask */ + clearOverridesFieldMask?: (google.protobuf.IFieldMask|null); } /** Represents a RestoreBackupRequest. */ @@ -9688,6 +10118,9 @@ export namespace google { /** RestoreBackupRequest diskRestoreProperties. */ public diskRestoreProperties?: (google.cloud.backupdr.v1.IDiskRestoreProperties|null); + /** RestoreBackupRequest clearOverridesFieldMask. */ + public clearOverridesFieldMask?: (google.protobuf.IFieldMask|null); + /** RestoreBackupRequest targetEnvironment. */ public targetEnvironment?: ("computeInstanceTargetEnvironment"|"diskTargetEnvironment"|"regionDiskTargetEnvironment"); @@ -10078,6 +10511,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BackupGcpResource. */ + interface IBackupGcpResource { + + /** BackupGcpResource gcpResourcename */ + gcpResourcename?: (string|null); + + /** BackupGcpResource location */ + location?: (string|null); + + /** BackupGcpResource type */ + type?: (string|null); + } + + /** Represents a BackupGcpResource. */ + class BackupGcpResource implements IBackupGcpResource { + + /** + * Constructs a new BackupGcpResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.backupdr.v1.IBackupGcpResource); + + /** BackupGcpResource gcpResourcename. */ + public gcpResourcename: string; + + /** BackupGcpResource location. */ + public location: string; + + /** BackupGcpResource type. */ + public type: string; + + /** + * Creates a new BackupGcpResource instance using the specified properties. + * @param [properties] Properties to set + * @returns BackupGcpResource instance + */ + public static create(properties?: google.cloud.backupdr.v1.IBackupGcpResource): google.cloud.backupdr.v1.BackupGcpResource; + + /** + * Encodes the specified BackupGcpResource message. Does not implicitly {@link google.cloud.backupdr.v1.BackupGcpResource.verify|verify} messages. + * @param message BackupGcpResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.backupdr.v1.IBackupGcpResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackupGcpResource message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.BackupGcpResource.verify|verify} messages. + * @param message BackupGcpResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.backupdr.v1.IBackupGcpResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackupGcpResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackupGcpResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.backupdr.v1.BackupGcpResource; + + /** + * Decodes a BackupGcpResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackupGcpResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.backupdr.v1.BackupGcpResource; + + /** + * Verifies a BackupGcpResource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackupGcpResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackupGcpResource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.backupdr.v1.BackupGcpResource; + + /** + * Creates a plain object from a BackupGcpResource message. Also converts values to other types if specified. + * @param message BackupGcpResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.backupdr.v1.BackupGcpResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackupGcpResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackupGcpResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** BackupConfigState enum. */ enum BackupConfigState { BACKUP_CONFIG_STATE_UNSPECIFIED = 0, @@ -14138,6 +14680,9 @@ export namespace google { /** DataSourceReference dataSourceGcpResourceInfo */ dataSourceGcpResourceInfo?: (google.cloud.backupdr.v1.IDataSourceGcpResourceInfo|null); + + /** DataSourceReference totalStoredBytes */ + totalStoredBytes?: (number|Long|string|null); } /** Represents a DataSourceReference. */ @@ -14170,6 +14715,9 @@ export namespace google { /** DataSourceReference dataSourceGcpResourceInfo. */ public dataSourceGcpResourceInfo?: (google.cloud.backupdr.v1.IDataSourceGcpResourceInfo|null); + /** DataSourceReference totalStoredBytes. */ + public totalStoredBytes?: (number|Long|string|null); + /** * Creates a new DataSourceReference instance using the specified properties. * @param [properties] Properties to set @@ -14566,6 +15114,236 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListDataSourceReferencesRequest. */ + interface IListDataSourceReferencesRequest { + + /** ListDataSourceReferencesRequest parent */ + parent?: (string|null); + + /** ListDataSourceReferencesRequest pageSize */ + pageSize?: (number|null); + + /** ListDataSourceReferencesRequest pageToken */ + pageToken?: (string|null); + + /** ListDataSourceReferencesRequest filter */ + filter?: (string|null); + + /** ListDataSourceReferencesRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListDataSourceReferencesRequest. */ + class ListDataSourceReferencesRequest implements IListDataSourceReferencesRequest { + + /** + * Constructs a new ListDataSourceReferencesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.backupdr.v1.IListDataSourceReferencesRequest); + + /** ListDataSourceReferencesRequest parent. */ + public parent: string; + + /** ListDataSourceReferencesRequest pageSize. */ + public pageSize: number; + + /** ListDataSourceReferencesRequest pageToken. */ + public pageToken: string; + + /** ListDataSourceReferencesRequest filter. */ + public filter: string; + + /** ListDataSourceReferencesRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListDataSourceReferencesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataSourceReferencesRequest instance + */ + public static create(properties?: google.cloud.backupdr.v1.IListDataSourceReferencesRequest): google.cloud.backupdr.v1.ListDataSourceReferencesRequest; + + /** + * Encodes the specified ListDataSourceReferencesRequest message. Does not implicitly {@link google.cloud.backupdr.v1.ListDataSourceReferencesRequest.verify|verify} messages. + * @param message ListDataSourceReferencesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.backupdr.v1.IListDataSourceReferencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDataSourceReferencesRequest message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.ListDataSourceReferencesRequest.verify|verify} messages. + * @param message ListDataSourceReferencesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.backupdr.v1.IListDataSourceReferencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDataSourceReferencesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDataSourceReferencesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.backupdr.v1.ListDataSourceReferencesRequest; + + /** + * Decodes a ListDataSourceReferencesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDataSourceReferencesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.backupdr.v1.ListDataSourceReferencesRequest; + + /** + * Verifies a ListDataSourceReferencesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListDataSourceReferencesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataSourceReferencesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.backupdr.v1.ListDataSourceReferencesRequest; + + /** + * Creates a plain object from a ListDataSourceReferencesRequest message. Also converts values to other types if specified. + * @param message ListDataSourceReferencesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.backupdr.v1.ListDataSourceReferencesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDataSourceReferencesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDataSourceReferencesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListDataSourceReferencesResponse. */ + interface IListDataSourceReferencesResponse { + + /** ListDataSourceReferencesResponse dataSourceReferences */ + dataSourceReferences?: (google.cloud.backupdr.v1.IDataSourceReference[]|null); + + /** ListDataSourceReferencesResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListDataSourceReferencesResponse unreachable */ + unreachable?: (string[]|null); + } + + /** Represents a ListDataSourceReferencesResponse. */ + class ListDataSourceReferencesResponse implements IListDataSourceReferencesResponse { + + /** + * Constructs a new ListDataSourceReferencesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.backupdr.v1.IListDataSourceReferencesResponse); + + /** ListDataSourceReferencesResponse dataSourceReferences. */ + public dataSourceReferences: google.cloud.backupdr.v1.IDataSourceReference[]; + + /** ListDataSourceReferencesResponse nextPageToken. */ + public nextPageToken: string; + + /** ListDataSourceReferencesResponse unreachable. */ + public unreachable: string[]; + + /** + * Creates a new ListDataSourceReferencesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataSourceReferencesResponse instance + */ + public static create(properties?: google.cloud.backupdr.v1.IListDataSourceReferencesResponse): google.cloud.backupdr.v1.ListDataSourceReferencesResponse; + + /** + * Encodes the specified ListDataSourceReferencesResponse message. Does not implicitly {@link google.cloud.backupdr.v1.ListDataSourceReferencesResponse.verify|verify} messages. + * @param message ListDataSourceReferencesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.backupdr.v1.IListDataSourceReferencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDataSourceReferencesResponse message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.ListDataSourceReferencesResponse.verify|verify} messages. + * @param message ListDataSourceReferencesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.backupdr.v1.IListDataSourceReferencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDataSourceReferencesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDataSourceReferencesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.backupdr.v1.ListDataSourceReferencesResponse; + + /** + * Decodes a ListDataSourceReferencesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDataSourceReferencesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.backupdr.v1.ListDataSourceReferencesResponse; + + /** + * Verifies a ListDataSourceReferencesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListDataSourceReferencesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataSourceReferencesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.backupdr.v1.ListDataSourceReferencesResponse; + + /** + * Creates a plain object from a ListDataSourceReferencesResponse message. Also converts values to other types if specified. + * @param message ListDataSourceReferencesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.backupdr.v1.ListDataSourceReferencesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDataSourceReferencesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDataSourceReferencesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a FetchDataSourceReferencesForResourceTypeRequest. */ interface IFetchDataSourceReferencesForResourceTypeRequest { diff --git a/packages/google-cloud-backupdr/protos/protos.js b/packages/google-cloud-backupdr/protos/protos.js index b47e783e9f9d..41d226cbad67 100644 --- a/packages/google-cloud-backupdr/protos/protos.js +++ b/packages/google-cloud-backupdr/protos/protos.js @@ -560,6 +560,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.backupdr.v1.BackupDR|fetchBackupsForResourceType}. + * @memberof google.cloud.backupdr.v1.BackupDR + * @typedef FetchBackupsForResourceTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse} [response] FetchBackupsForResourceTypeResponse + */ + + /** + * Calls FetchBackupsForResourceType. + * @function fetchBackupsForResourceType + * @memberof google.cloud.backupdr.v1.BackupDR + * @instance + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest} request FetchBackupsForResourceTypeRequest message or plain object + * @param {google.cloud.backupdr.v1.BackupDR.FetchBackupsForResourceTypeCallback} callback Node-style callback called with the error, if any, and FetchBackupsForResourceTypeResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BackupDR.prototype.fetchBackupsForResourceType = function fetchBackupsForResourceType(request, callback) { + return this.rpcCall(fetchBackupsForResourceType, $root.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest, $root.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse, request, callback); + }, "name", { value: "FetchBackupsForResourceType" }); + + /** + * Calls FetchBackupsForResourceType. + * @function fetchBackupsForResourceType + * @memberof google.cloud.backupdr.v1.BackupDR + * @instance + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest} request FetchBackupsForResourceTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.backupdr.v1.BackupDR|getBackup}. * @memberof google.cloud.backupdr.v1.BackupDR @@ -1187,6 +1220,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.backupdr.v1.BackupDR|listDataSourceReferences}. + * @memberof google.cloud.backupdr.v1.BackupDR + * @typedef ListDataSourceReferencesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.backupdr.v1.ListDataSourceReferencesResponse} [response] ListDataSourceReferencesResponse + */ + + /** + * Calls ListDataSourceReferences. + * @function listDataSourceReferences + * @memberof google.cloud.backupdr.v1.BackupDR + * @instance + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesRequest} request ListDataSourceReferencesRequest message or plain object + * @param {google.cloud.backupdr.v1.BackupDR.ListDataSourceReferencesCallback} callback Node-style callback called with the error, if any, and ListDataSourceReferencesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BackupDR.prototype.listDataSourceReferences = function listDataSourceReferences(request, callback) { + return this.rpcCall(listDataSourceReferences, $root.google.cloud.backupdr.v1.ListDataSourceReferencesRequest, $root.google.cloud.backupdr.v1.ListDataSourceReferencesResponse, request, callback); + }, "name", { value: "ListDataSourceReferences" }); + + /** + * Calls ListDataSourceReferences. + * @function listDataSourceReferences + * @memberof google.cloud.backupdr.v1.BackupDR + * @instance + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesRequest} request ListDataSourceReferencesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.backupdr.v1.BackupDR|fetchDataSourceReferencesForResourceType}. * @memberof google.cloud.backupdr.v1.BackupDR @@ -13647,7 +13713,9 @@ * @property {string|null} [databaseInstalledVersion] CloudSqlInstanceBackupProperties databaseInstalledVersion * @property {boolean|null} [finalBackup] CloudSqlInstanceBackupProperties finalBackup * @property {string|null} [sourceInstance] CloudSqlInstanceBackupProperties sourceInstance + * @property {google.protobuf.ITimestamp|null} [instanceCreateTime] CloudSqlInstanceBackupProperties instanceCreateTime * @property {string|null} [instanceTier] CloudSqlInstanceBackupProperties instanceTier + * @property {google.protobuf.ITimestamp|null} [instanceDeleteTime] CloudSqlInstanceBackupProperties instanceDeleteTime */ /** @@ -13689,6 +13757,14 @@ */ CloudSqlInstanceBackupProperties.prototype.sourceInstance = ""; + /** + * CloudSqlInstanceBackupProperties instanceCreateTime. + * @member {google.protobuf.ITimestamp|null|undefined} instanceCreateTime + * @memberof google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties + * @instance + */ + CloudSqlInstanceBackupProperties.prototype.instanceCreateTime = null; + /** * CloudSqlInstanceBackupProperties instanceTier. * @member {string} instanceTier @@ -13697,6 +13773,14 @@ */ CloudSqlInstanceBackupProperties.prototype.instanceTier = ""; + /** + * CloudSqlInstanceBackupProperties instanceDeleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} instanceDeleteTime + * @memberof google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties + * @instance + */ + CloudSqlInstanceBackupProperties.prototype.instanceDeleteTime = null; + /** * Creates a new CloudSqlInstanceBackupProperties instance using the specified properties. * @function create @@ -13727,8 +13811,12 @@ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.finalBackup); if (message.sourceInstance != null && Object.hasOwnProperty.call(message, "sourceInstance")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.sourceInstance); + if (message.instanceCreateTime != null && Object.hasOwnProperty.call(message, "instanceCreateTime")) + $root.google.protobuf.Timestamp.encode(message.instanceCreateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.instanceTier != null && Object.hasOwnProperty.call(message, "instanceTier")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.instanceTier); + if (message.instanceDeleteTime != null && Object.hasOwnProperty.call(message, "instanceDeleteTime")) + $root.google.protobuf.Timestamp.encode(message.instanceDeleteTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; @@ -13777,10 +13865,18 @@ message.sourceInstance = reader.string(); break; } + case 5: { + message.instanceCreateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } case 6: { message.instanceTier = reader.string(); break; } + case 8: { + message.instanceDeleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -13825,9 +13921,19 @@ if (message.sourceInstance != null && message.hasOwnProperty("sourceInstance")) if (!$util.isString(message.sourceInstance)) return "sourceInstance: string expected"; + if (message.instanceCreateTime != null && message.hasOwnProperty("instanceCreateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.instanceCreateTime); + if (error) + return "instanceCreateTime." + error; + } if (message.instanceTier != null && message.hasOwnProperty("instanceTier")) if (!$util.isString(message.instanceTier)) return "instanceTier: string expected"; + if (message.instanceDeleteTime != null && message.hasOwnProperty("instanceDeleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.instanceDeleteTime); + if (error) + return "instanceDeleteTime." + error; + } return null; }; @@ -13849,8 +13955,18 @@ message.finalBackup = Boolean(object.finalBackup); if (object.sourceInstance != null) message.sourceInstance = String(object.sourceInstance); + if (object.instanceCreateTime != null) { + if (typeof object.instanceCreateTime !== "object") + throw TypeError(".google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties.instanceCreateTime: object expected"); + message.instanceCreateTime = $root.google.protobuf.Timestamp.fromObject(object.instanceCreateTime); + } if (object.instanceTier != null) message.instanceTier = String(object.instanceTier); + if (object.instanceDeleteTime != null) { + if (typeof object.instanceDeleteTime !== "object") + throw TypeError(".google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties.instanceDeleteTime: object expected"); + message.instanceDeleteTime = $root.google.protobuf.Timestamp.fromObject(object.instanceDeleteTime); + } return message; }; @@ -13871,7 +13987,9 @@ object.databaseInstalledVersion = ""; object.finalBackup = false; object.sourceInstance = ""; + object.instanceCreateTime = null; object.instanceTier = ""; + object.instanceDeleteTime = null; } if (message.databaseInstalledVersion != null && message.hasOwnProperty("databaseInstalledVersion")) object.databaseInstalledVersion = message.databaseInstalledVersion; @@ -13879,8 +13997,12 @@ object.finalBackup = message.finalBackup; if (message.sourceInstance != null && message.hasOwnProperty("sourceInstance")) object.sourceInstance = message.sourceInstance; + if (message.instanceCreateTime != null && message.hasOwnProperty("instanceCreateTime")) + object.instanceCreateTime = $root.google.protobuf.Timestamp.toObject(message.instanceCreateTime, options); if (message.instanceTier != null && message.hasOwnProperty("instanceTier")) object.instanceTier = message.instanceTier; + if (message.instanceDeleteTime != null && message.hasOwnProperty("instanceDeleteTime")) + object.instanceDeleteTime = $root.google.protobuf.Timestamp.toObject(message.instanceDeleteTime, options); return object; }; @@ -14660,6 +14782,7 @@ * @property {google.protobuf.ITimestamp|null} [createTime] BackupVault createTime * @property {google.protobuf.ITimestamp|null} [updateTime] BackupVault updateTime * @property {google.protobuf.IDuration|null} [backupMinimumEnforcedRetentionDuration] BackupVault backupMinimumEnforcedRetentionDuration + * @property {google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|null} [backupRetentionInheritance] BackupVault backupRetentionInheritance * @property {boolean|null} [deletable] BackupVault deletable * @property {string|null} [etag] BackupVault etag * @property {google.cloud.backupdr.v1.BackupVault.State|null} [state] BackupVault state @@ -14670,6 +14793,7 @@ * @property {string|null} [uid] BackupVault uid * @property {Object.|null} [annotations] BackupVault annotations * @property {google.cloud.backupdr.v1.BackupVault.AccessRestriction|null} [accessRestriction] BackupVault accessRestriction + * @property {google.cloud.backupdr.v1.BackupVault.IEncryptionConfig|null} [encryptionConfig] BackupVault encryptionConfig */ /** @@ -14737,6 +14861,14 @@ */ BackupVault.prototype.backupMinimumEnforcedRetentionDuration = null; + /** + * BackupVault backupRetentionInheritance. + * @member {google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|null|undefined} backupRetentionInheritance + * @memberof google.cloud.backupdr.v1.BackupVault + * @instance + */ + BackupVault.prototype.backupRetentionInheritance = null; + /** * BackupVault deletable. * @member {boolean|null|undefined} deletable @@ -14817,6 +14949,14 @@ */ BackupVault.prototype.accessRestriction = 0; + /** + * BackupVault encryptionConfig. + * @member {google.cloud.backupdr.v1.BackupVault.IEncryptionConfig|null|undefined} encryptionConfig + * @memberof google.cloud.backupdr.v1.BackupVault + * @instance + */ + BackupVault.prototype.encryptionConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -14844,6 +14984,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackupVault.prototype, "_backupRetentionInheritance", { + get: $util.oneOfGetter($oneOfFields = ["backupRetentionInheritance"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(BackupVault.prototype, "_deletable", { get: $util.oneOfGetter($oneOfFields = ["deletable"]), @@ -14862,6 +15008,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackupVault.prototype, "_encryptionConfig", { + get: $util.oneOfGetter($oneOfFields = ["encryptionConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new BackupVault instance using the specified properties. * @function create @@ -14920,6 +15072,10 @@ writer.uint32(/* id 22, wireType 2 =*/178).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); if (message.accessRestriction != null && Object.hasOwnProperty.call(message, "accessRestriction")) writer.uint32(/* id 24, wireType 0 =*/192).int32(message.accessRestriction); + if (message.backupRetentionInheritance != null && Object.hasOwnProperty.call(message, "backupRetentionInheritance")) + writer.uint32(/* id 27, wireType 0 =*/216).int32(message.backupRetentionInheritance); + if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig")) + $root.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); return writer; }; @@ -14999,6 +15155,10 @@ message.backupMinimumEnforcedRetentionDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } + case 27: { + message.backupRetentionInheritance = reader.int32(); + break; + } case 8: { message.deletable = reader.bool(); break; @@ -15058,6 +15218,10 @@ message.accessRestriction = reader.int32(); break; } + case 29: { + message.encryptionConfig = $root.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -15134,6 +15298,17 @@ return "backupMinimumEnforcedRetentionDuration." + error; } } + if (message.backupRetentionInheritance != null && message.hasOwnProperty("backupRetentionInheritance")) { + properties._backupRetentionInheritance = 1; + switch (message.backupRetentionInheritance) { + default: + return "backupRetentionInheritance: enum value expected"; + case 0: + case 1: + case 2: + break; + } + } if (message.deletable != null && message.hasOwnProperty("deletable")) { properties._deletable = 1; if (typeof message.deletable !== "boolean") @@ -15195,6 +15370,14 @@ case 4: break; } + if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) { + properties._encryptionConfig = 1; + { + var error = $root.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.verify(message.encryptionConfig); + if (error) + return "encryptionConfig." + error; + } + } return null; }; @@ -15236,6 +15419,26 @@ throw TypeError(".google.cloud.backupdr.v1.BackupVault.backupMinimumEnforcedRetentionDuration: object expected"); message.backupMinimumEnforcedRetentionDuration = $root.google.protobuf.Duration.fromObject(object.backupMinimumEnforcedRetentionDuration); } + switch (object.backupRetentionInheritance) { + default: + if (typeof object.backupRetentionInheritance === "number") { + message.backupRetentionInheritance = object.backupRetentionInheritance; + break; + } + break; + case "BACKUP_RETENTION_INHERITANCE_UNSPECIFIED": + case 0: + message.backupRetentionInheritance = 0; + break; + case "INHERIT_VAULT_RETENTION": + case 1: + message.backupRetentionInheritance = 1; + break; + case "MATCH_BACKUP_EXPIRE_TIME": + case 2: + message.backupRetentionInheritance = 2; + break; + } if (object.deletable != null) message.deletable = Boolean(object.deletable); if (object.etag != null) @@ -15334,6 +15537,11 @@ message.accessRestriction = 4; break; } + if (object.encryptionConfig != null) { + if (typeof object.encryptionConfig !== "object") + throw TypeError(".google.cloud.backupdr.v1.BackupVault.encryptionConfig: object expected"); + message.encryptionConfig = $root.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.fromObject(object.encryptionConfig); + } return message; }; @@ -15437,6 +15645,16 @@ } if (message.accessRestriction != null && message.hasOwnProperty("accessRestriction")) object.accessRestriction = options.enums === String ? $root.google.cloud.backupdr.v1.BackupVault.AccessRestriction[message.accessRestriction] === undefined ? message.accessRestriction : $root.google.cloud.backupdr.v1.BackupVault.AccessRestriction[message.accessRestriction] : message.accessRestriction; + if (message.backupRetentionInheritance != null && message.hasOwnProperty("backupRetentionInheritance")) { + object.backupRetentionInheritance = options.enums === String ? $root.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance[message.backupRetentionInheritance] === undefined ? message.backupRetentionInheritance : $root.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance[message.backupRetentionInheritance] : message.backupRetentionInheritance; + if (options.oneofs) + object._backupRetentionInheritance = "backupRetentionInheritance"; + } + if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) { + object.encryptionConfig = $root.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.toObject(message.encryptionConfig, options); + if (options.oneofs) + object._encryptionConfig = "encryptionConfig"; + } return object; }; @@ -15466,6 +15684,22 @@ return typeUrlPrefix + "/google.cloud.backupdr.v1.BackupVault"; }; + /** + * BackupRetentionInheritance enum. + * @name google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance + * @enum {number} + * @property {number} BACKUP_RETENTION_INHERITANCE_UNSPECIFIED=0 BACKUP_RETENTION_INHERITANCE_UNSPECIFIED value + * @property {number} INHERIT_VAULT_RETENTION=1 INHERIT_VAULT_RETENTION value + * @property {number} MATCH_BACKUP_EXPIRE_TIME=2 MATCH_BACKUP_EXPIRE_TIME value + */ + BackupVault.BackupRetentionInheritance = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "BACKUP_RETENTION_INHERITANCE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INHERIT_VAULT_RETENTION"] = 1; + values[valuesById[2] = "MATCH_BACKUP_EXPIRE_TIME"] = 2; + return values; + })(); + /** * State enum. * @name google.cloud.backupdr.v1.BackupVault.State @@ -15508,6 +15742,224 @@ return values; })(); + BackupVault.EncryptionConfig = (function() { + + /** + * Properties of an EncryptionConfig. + * @memberof google.cloud.backupdr.v1.BackupVault + * @interface IEncryptionConfig + * @property {string|null} [kmsKeyName] EncryptionConfig kmsKeyName + */ + + /** + * Constructs a new EncryptionConfig. + * @memberof google.cloud.backupdr.v1.BackupVault + * @classdesc Represents an EncryptionConfig. + * @implements IEncryptionConfig + * @constructor + * @param {google.cloud.backupdr.v1.BackupVault.IEncryptionConfig=} [properties] Properties to set + */ + function EncryptionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EncryptionConfig kmsKeyName. + * @member {string|null|undefined} kmsKeyName + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @instance + */ + EncryptionConfig.prototype.kmsKeyName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(EncryptionConfig.prototype, "_kmsKeyName", { + get: $util.oneOfGetter($oneOfFields = ["kmsKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EncryptionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @static + * @param {google.cloud.backupdr.v1.BackupVault.IEncryptionConfig=} [properties] Properties to set + * @returns {google.cloud.backupdr.v1.BackupVault.EncryptionConfig} EncryptionConfig instance + */ + EncryptionConfig.create = function create(properties) { + return new EncryptionConfig(properties); + }; + + /** + * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.backupdr.v1.BackupVault.EncryptionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @static + * @param {google.cloud.backupdr.v1.BackupVault.IEncryptionConfig} message EncryptionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EncryptionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kmsKeyName); + return writer; + }; + + /** + * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.BackupVault.EncryptionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @static + * @param {google.cloud.backupdr.v1.BackupVault.IEncryptionConfig} message EncryptionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EncryptionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EncryptionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.backupdr.v1.BackupVault.EncryptionConfig} EncryptionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EncryptionConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.backupdr.v1.BackupVault.EncryptionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.backupdr.v1.BackupVault.EncryptionConfig} EncryptionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EncryptionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EncryptionConfig message. + * @function verify + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EncryptionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) { + properties._kmsKeyName = 1; + if (!$util.isString(message.kmsKeyName)) + return "kmsKeyName: string expected"; + } + return null; + }; + + /** + * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.backupdr.v1.BackupVault.EncryptionConfig} EncryptionConfig + */ + EncryptionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.backupdr.v1.BackupVault.EncryptionConfig) + return object; + var message = new $root.google.cloud.backupdr.v1.BackupVault.EncryptionConfig(); + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @static + * @param {google.cloud.backupdr.v1.BackupVault.EncryptionConfig} message EncryptionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EncryptionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) { + object.kmsKeyName = message.kmsKeyName; + if (options.oneofs) + object._kmsKeyName = "kmsKeyName"; + } + return object; + }; + + /** + * Converts this EncryptionConfig to JSON. + * @function toJSON + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @instance + * @returns {Object.} JSON object + */ + EncryptionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EncryptionConfig + * @function getTypeUrl + * @memberof google.cloud.backupdr.v1.BackupVault.EncryptionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EncryptionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.backupdr.v1.BackupVault.EncryptionConfig"; + }; + + return EncryptionConfig; + })(); + return BackupVault; })(); @@ -18982,6 +19434,7 @@ * @property {google.protobuf.ITimestamp|null} [updateTime] Backup updateTime * @property {Object.|null} [labels] Backup labels * @property {google.protobuf.ITimestamp|null} [enforcedRetentionEndTime] Backup enforcedRetentionEndTime + * @property {google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|null} [backupRetentionInheritance] Backup backupRetentionInheritance * @property {google.protobuf.ITimestamp|null} [expireTime] Backup expireTime * @property {google.protobuf.ITimestamp|null} [consistencyTime] Backup consistencyTime * @property {string|null} [etag] Backup etag @@ -18997,6 +19450,8 @@ * @property {number|Long|null} [resourceSizeBytes] Backup resourceSizeBytes * @property {boolean|null} [satisfiesPzs] Backup satisfiesPzs * @property {boolean|null} [satisfiesPzi] Backup satisfiesPzi + * @property {google.cloud.backupdr.v1.IBackupGcpResource|null} [gcpResource] Backup gcpResource + * @property {Array.|null} [kmsKeyVersions] Backup kmsKeyVersions */ /** @@ -19011,6 +19466,7 @@ this.labels = {}; this.serviceLocks = []; this.backupApplianceLocks = []; + this.kmsKeyVersions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19065,6 +19521,14 @@ */ Backup.prototype.enforcedRetentionEndTime = null; + /** + * Backup backupRetentionInheritance. + * @member {google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance|null|undefined} backupRetentionInheritance + * @memberof google.cloud.backupdr.v1.Backup + * @instance + */ + Backup.prototype.backupRetentionInheritance = null; + /** * Backup expireTime. * @member {google.protobuf.ITimestamp|null|undefined} expireTime @@ -19185,6 +19649,22 @@ */ Backup.prototype.satisfiesPzi = null; + /** + * Backup gcpResource. + * @member {google.cloud.backupdr.v1.IBackupGcpResource|null|undefined} gcpResource + * @memberof google.cloud.backupdr.v1.Backup + * @instance + */ + Backup.prototype.gcpResource = null; + + /** + * Backup kmsKeyVersions. + * @member {Array.} kmsKeyVersions + * @memberof google.cloud.backupdr.v1.Backup + * @instance + */ + Backup.prototype.kmsKeyVersions = $util.emptyArray; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -19212,6 +19692,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Backup.prototype, "_backupRetentionInheritance", { + get: $util.oneOfGetter($oneOfFields = ["backupRetentionInheritance"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Backup.prototype, "_expireTime", { get: $util.oneOfGetter($oneOfFields = ["expireTime"]), @@ -19264,6 +19750,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Backup sourceResource. + * @member {"gcpResource"|undefined} sourceResource + * @memberof google.cloud.backupdr.v1.Backup + * @instance + */ + Object.defineProperty(Backup.prototype, "sourceResource", { + get: $util.oneOfGetter($oneOfFields = ["gcpResource"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new Backup instance using the specified properties. * @function create @@ -19333,6 +19830,13 @@ $root.google.cloud.backupdr.v1.CloudSqlInstanceBackupProperties.encode(message.cloudSqlInstanceBackupProperties, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); if (message.diskBackupProperties != null && Object.hasOwnProperty.call(message, "diskBackupProperties")) $root.google.cloud.backupdr.v1.DiskBackupProperties.encode(message.diskBackupProperties, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.backupRetentionInheritance != null && Object.hasOwnProperty.call(message, "backupRetentionInheritance")) + writer.uint32(/* id 30, wireType 0 =*/240).int32(message.backupRetentionInheritance); + if (message.gcpResource != null && Object.hasOwnProperty.call(message, "gcpResource")) + $root.google.cloud.backupdr.v1.BackupGcpResource.encode(message.gcpResource, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); + if (message.kmsKeyVersions != null && message.kmsKeyVersions.length) + for (var i = 0; i < message.kmsKeyVersions.length; ++i) + writer.uint32(/* id 33, wireType 2 =*/266).string(message.kmsKeyVersions[i]); return writer; }; @@ -19412,6 +19916,10 @@ message.enforcedRetentionEndTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 30: { + message.backupRetentionInheritance = reader.int32(); + break; + } case 7: { message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; @@ -19476,6 +19984,16 @@ message.satisfiesPzi = reader.bool(); break; } + case 31: { + message.gcpResource = $root.google.cloud.backupdr.v1.BackupGcpResource.decode(reader, reader.uint32()); + break; + } + case 33: { + if (!(message.kmsKeyVersions && message.kmsKeyVersions.length)) + message.kmsKeyVersions = []; + message.kmsKeyVersions.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -19552,6 +20070,17 @@ return "enforcedRetentionEndTime." + error; } } + if (message.backupRetentionInheritance != null && message.hasOwnProperty("backupRetentionInheritance")) { + properties._backupRetentionInheritance = 1; + switch (message.backupRetentionInheritance) { + default: + return "backupRetentionInheritance: enum value expected"; + case 0: + case 1: + case 2: + break; + } + } if (message.expireTime != null && message.hasOwnProperty("expireTime")) { properties._expireTime = 1; { @@ -19672,6 +20201,21 @@ if (typeof message.satisfiesPzi !== "boolean") return "satisfiesPzi: boolean expected"; } + if (message.gcpResource != null && message.hasOwnProperty("gcpResource")) { + properties.sourceResource = 1; + { + var error = $root.google.cloud.backupdr.v1.BackupGcpResource.verify(message.gcpResource); + if (error) + return "gcpResource." + error; + } + } + if (message.kmsKeyVersions != null && message.hasOwnProperty("kmsKeyVersions")) { + if (!Array.isArray(message.kmsKeyVersions)) + return "kmsKeyVersions: array expected"; + for (var i = 0; i < message.kmsKeyVersions.length; ++i) + if (!$util.isString(message.kmsKeyVersions[i])) + return "kmsKeyVersions: string[] expected"; + } return null; }; @@ -19713,6 +20257,26 @@ throw TypeError(".google.cloud.backupdr.v1.Backup.enforcedRetentionEndTime: object expected"); message.enforcedRetentionEndTime = $root.google.protobuf.Timestamp.fromObject(object.enforcedRetentionEndTime); } + switch (object.backupRetentionInheritance) { + default: + if (typeof object.backupRetentionInheritance === "number") { + message.backupRetentionInheritance = object.backupRetentionInheritance; + break; + } + break; + case "BACKUP_RETENTION_INHERITANCE_UNSPECIFIED": + case 0: + message.backupRetentionInheritance = 0; + break; + case "INHERIT_VAULT_RETENTION": + case 1: + message.backupRetentionInheritance = 1; + break; + case "MATCH_BACKUP_EXPIRE_TIME": + case 2: + message.backupRetentionInheritance = 2; + break; + } if (object.expireTime != null) { if (typeof object.expireTime !== "object") throw TypeError(".google.cloud.backupdr.v1.Backup.expireTime: object expected"); @@ -19839,6 +20403,18 @@ message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.satisfiesPzi != null) message.satisfiesPzi = Boolean(object.satisfiesPzi); + if (object.gcpResource != null) { + if (typeof object.gcpResource !== "object") + throw TypeError(".google.cloud.backupdr.v1.Backup.gcpResource: object expected"); + message.gcpResource = $root.google.cloud.backupdr.v1.BackupGcpResource.fromObject(object.gcpResource); + } + if (object.kmsKeyVersions) { + if (!Array.isArray(object.kmsKeyVersions)) + throw TypeError(".google.cloud.backupdr.v1.Backup.kmsKeyVersions: array expected"); + message.kmsKeyVersions = []; + for (var i = 0; i < object.kmsKeyVersions.length; ++i) + message.kmsKeyVersions[i] = String(object.kmsKeyVersions[i]); + } return message; }; @@ -19858,6 +20434,7 @@ if (options.arrays || options.defaults) { object.serviceLocks = []; object.backupApplianceLocks = []; + object.kmsKeyVersions = []; } if (options.objects || options.defaults) object.labels = {}; @@ -19968,6 +20545,21 @@ if (options.oneofs) object.backupProperties = "diskBackupProperties"; } + if (message.backupRetentionInheritance != null && message.hasOwnProperty("backupRetentionInheritance")) { + object.backupRetentionInheritance = options.enums === String ? $root.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance[message.backupRetentionInheritance] === undefined ? message.backupRetentionInheritance : $root.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance[message.backupRetentionInheritance] : message.backupRetentionInheritance; + if (options.oneofs) + object._backupRetentionInheritance = "backupRetentionInheritance"; + } + if (message.gcpResource != null && message.hasOwnProperty("gcpResource")) { + object.gcpResource = $root.google.cloud.backupdr.v1.BackupGcpResource.toObject(message.gcpResource, options); + if (options.oneofs) + object.sourceResource = "gcpResource"; + } + if (message.kmsKeyVersions && message.kmsKeyVersions.length) { + object.kmsKeyVersions = []; + for (var j = 0; j < message.kmsKeyVersions.length; ++j) + object.kmsKeyVersions[j] = message.kmsKeyVersions[j]; + } return object; }; @@ -21841,6 +22433,624 @@ return FetchUsableBackupVaultsResponse; })(); + v1.FetchBackupsForResourceTypeRequest = (function() { + + /** + * Properties of a FetchBackupsForResourceTypeRequest. + * @memberof google.cloud.backupdr.v1 + * @interface IFetchBackupsForResourceTypeRequest + * @property {string|null} [parent] FetchBackupsForResourceTypeRequest parent + * @property {string|null} [resourceType] FetchBackupsForResourceTypeRequest resourceType + * @property {number|null} [pageSize] FetchBackupsForResourceTypeRequest pageSize + * @property {string|null} [pageToken] FetchBackupsForResourceTypeRequest pageToken + * @property {string|null} [filter] FetchBackupsForResourceTypeRequest filter + * @property {string|null} [orderBy] FetchBackupsForResourceTypeRequest orderBy + * @property {google.cloud.backupdr.v1.BackupView|null} [view] FetchBackupsForResourceTypeRequest view + */ + + /** + * Constructs a new FetchBackupsForResourceTypeRequest. + * @memberof google.cloud.backupdr.v1 + * @classdesc Represents a FetchBackupsForResourceTypeRequest. + * @implements IFetchBackupsForResourceTypeRequest + * @constructor + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest=} [properties] Properties to set + */ + function FetchBackupsForResourceTypeRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FetchBackupsForResourceTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @instance + */ + FetchBackupsForResourceTypeRequest.prototype.parent = ""; + + /** + * FetchBackupsForResourceTypeRequest resourceType. + * @member {string} resourceType + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @instance + */ + FetchBackupsForResourceTypeRequest.prototype.resourceType = ""; + + /** + * FetchBackupsForResourceTypeRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @instance + */ + FetchBackupsForResourceTypeRequest.prototype.pageSize = 0; + + /** + * FetchBackupsForResourceTypeRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @instance + */ + FetchBackupsForResourceTypeRequest.prototype.pageToken = ""; + + /** + * FetchBackupsForResourceTypeRequest filter. + * @member {string} filter + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @instance + */ + FetchBackupsForResourceTypeRequest.prototype.filter = ""; + + /** + * FetchBackupsForResourceTypeRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @instance + */ + FetchBackupsForResourceTypeRequest.prototype.orderBy = ""; + + /** + * FetchBackupsForResourceTypeRequest view. + * @member {google.cloud.backupdr.v1.BackupView} view + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @instance + */ + FetchBackupsForResourceTypeRequest.prototype.view = 0; + + /** + * Creates a new FetchBackupsForResourceTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @static + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest=} [properties] Properties to set + * @returns {google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest} FetchBackupsForResourceTypeRequest instance + */ + FetchBackupsForResourceTypeRequest.create = function create(properties) { + return new FetchBackupsForResourceTypeRequest(properties); + }; + + /** + * Encodes the specified FetchBackupsForResourceTypeRequest message. Does not implicitly {@link google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @static + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest} message FetchBackupsForResourceTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchBackupsForResourceTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.resourceType); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.view); + return writer; + }; + + /** + * Encodes the specified FetchBackupsForResourceTypeRequest message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @static + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest} message FetchBackupsForResourceTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchBackupsForResourceTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FetchBackupsForResourceTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest} FetchBackupsForResourceTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchBackupsForResourceTypeRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.resourceType = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.filter = reader.string(); + break; + } + case 6: { + message.orderBy = reader.string(); + break; + } + case 7: { + message.view = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FetchBackupsForResourceTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest} FetchBackupsForResourceTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchBackupsForResourceTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FetchBackupsForResourceTypeRequest message. + * @function verify + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FetchBackupsForResourceTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + if (!$util.isString(message.resourceType)) + return "resourceType: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.view != null && message.hasOwnProperty("view")) + switch (message.view) { + default: + return "view: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a FetchBackupsForResourceTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest} FetchBackupsForResourceTypeRequest + */ + FetchBackupsForResourceTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest) + return object; + var message = new $root.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.resourceType != null) + message.resourceType = String(object.resourceType); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + switch (object.view) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; + } + break; + case "BACKUP_VIEW_UNSPECIFIED": + case 0: + message.view = 0; + break; + case "BACKUP_VIEW_BASIC": + case 1: + message.view = 1; + break; + case "BACKUP_VIEW_FULL": + case 2: + message.view = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a FetchBackupsForResourceTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @static + * @param {google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest} message FetchBackupsForResourceTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FetchBackupsForResourceTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.resourceType = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + object.view = options.enums === String ? "BACKUP_VIEW_UNSPECIFIED" : 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = message.resourceType; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.view != null && message.hasOwnProperty("view")) + object.view = options.enums === String ? $root.google.cloud.backupdr.v1.BackupView[message.view] === undefined ? message.view : $root.google.cloud.backupdr.v1.BackupView[message.view] : message.view; + return object; + }; + + /** + * Converts this FetchBackupsForResourceTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @instance + * @returns {Object.} JSON object + */ + FetchBackupsForResourceTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FetchBackupsForResourceTypeRequest + * @function getTypeUrl + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FetchBackupsForResourceTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest"; + }; + + return FetchBackupsForResourceTypeRequest; + })(); + + v1.FetchBackupsForResourceTypeResponse = (function() { + + /** + * Properties of a FetchBackupsForResourceTypeResponse. + * @memberof google.cloud.backupdr.v1 + * @interface IFetchBackupsForResourceTypeResponse + * @property {Array.|null} [backups] FetchBackupsForResourceTypeResponse backups + * @property {string|null} [nextPageToken] FetchBackupsForResourceTypeResponse nextPageToken + */ + + /** + * Constructs a new FetchBackupsForResourceTypeResponse. + * @memberof google.cloud.backupdr.v1 + * @classdesc Represents a FetchBackupsForResourceTypeResponse. + * @implements IFetchBackupsForResourceTypeResponse + * @constructor + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse=} [properties] Properties to set + */ + function FetchBackupsForResourceTypeResponse(properties) { + this.backups = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FetchBackupsForResourceTypeResponse backups. + * @member {Array.} backups + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @instance + */ + FetchBackupsForResourceTypeResponse.prototype.backups = $util.emptyArray; + + /** + * FetchBackupsForResourceTypeResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @instance + */ + FetchBackupsForResourceTypeResponse.prototype.nextPageToken = ""; + + /** + * Creates a new FetchBackupsForResourceTypeResponse instance using the specified properties. + * @function create + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @static + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse=} [properties] Properties to set + * @returns {google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse} FetchBackupsForResourceTypeResponse instance + */ + FetchBackupsForResourceTypeResponse.create = function create(properties) { + return new FetchBackupsForResourceTypeResponse(properties); + }; + + /** + * Encodes the specified FetchBackupsForResourceTypeResponse message. Does not implicitly {@link google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @static + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse} message FetchBackupsForResourceTypeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchBackupsForResourceTypeResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.backups != null && message.backups.length) + for (var i = 0; i < message.backups.length; ++i) + $root.google.cloud.backupdr.v1.Backup.encode(message.backups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified FetchBackupsForResourceTypeResponse message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @static + * @param {google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse} message FetchBackupsForResourceTypeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchBackupsForResourceTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FetchBackupsForResourceTypeResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse} FetchBackupsForResourceTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchBackupsForResourceTypeResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.backups && message.backups.length)) + message.backups = []; + message.backups.push($root.google.cloud.backupdr.v1.Backup.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FetchBackupsForResourceTypeResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse} FetchBackupsForResourceTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchBackupsForResourceTypeResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FetchBackupsForResourceTypeResponse message. + * @function verify + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FetchBackupsForResourceTypeResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.backups != null && message.hasOwnProperty("backups")) { + if (!Array.isArray(message.backups)) + return "backups: array expected"; + for (var i = 0; i < message.backups.length; ++i) { + var error = $root.google.cloud.backupdr.v1.Backup.verify(message.backups[i]); + if (error) + return "backups." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a FetchBackupsForResourceTypeResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse} FetchBackupsForResourceTypeResponse + */ + FetchBackupsForResourceTypeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse) + return object; + var message = new $root.google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse(); + if (object.backups) { + if (!Array.isArray(object.backups)) + throw TypeError(".google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.backups: array expected"); + message.backups = []; + for (var i = 0; i < object.backups.length; ++i) { + if (typeof object.backups[i] !== "object") + throw TypeError(".google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse.backups: object expected"); + message.backups[i] = $root.google.cloud.backupdr.v1.Backup.fromObject(object.backups[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a FetchBackupsForResourceTypeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @static + * @param {google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse} message FetchBackupsForResourceTypeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FetchBackupsForResourceTypeResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.backups = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.backups && message.backups.length) { + object.backups = []; + for (var j = 0; j < message.backups.length; ++j) + object.backups[j] = $root.google.cloud.backupdr.v1.Backup.toObject(message.backups[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this FetchBackupsForResourceTypeResponse to JSON. + * @function toJSON + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @instance + * @returns {Object.} JSON object + */ + FetchBackupsForResourceTypeResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FetchBackupsForResourceTypeResponse + * @function getTypeUrl + * @memberof google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FetchBackupsForResourceTypeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse"; + }; + + return FetchBackupsForResourceTypeResponse; + })(); + v1.GetBackupVaultRequest = (function() { /** @@ -25239,6 +26449,7 @@ * @property {google.cloud.backupdr.v1.IRegionDiskTargetEnvironment|null} [regionDiskTargetEnvironment] RestoreBackupRequest regionDiskTargetEnvironment * @property {google.cloud.backupdr.v1.IComputeInstanceRestoreProperties|null} [computeInstanceRestoreProperties] RestoreBackupRequest computeInstanceRestoreProperties * @property {google.cloud.backupdr.v1.IDiskRestoreProperties|null} [diskRestoreProperties] RestoreBackupRequest diskRestoreProperties + * @property {google.protobuf.IFieldMask|null} [clearOverridesFieldMask] RestoreBackupRequest clearOverridesFieldMask */ /** @@ -25312,6 +26523,14 @@ */ RestoreBackupRequest.prototype.diskRestoreProperties = null; + /** + * RestoreBackupRequest clearOverridesFieldMask. + * @member {google.protobuf.IFieldMask|null|undefined} clearOverridesFieldMask + * @memberof google.cloud.backupdr.v1.RestoreBackupRequest + * @instance + */ + RestoreBackupRequest.prototype.clearOverridesFieldMask = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -25337,6 +26556,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(RestoreBackupRequest.prototype, "_clearOverridesFieldMask", { + get: $util.oneOfGetter($oneOfFields = ["clearOverridesFieldMask"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new RestoreBackupRequest instance using the specified properties. * @function create @@ -25375,6 +26600,8 @@ $root.google.cloud.backupdr.v1.RegionDiskTargetEnvironment.encode(message.regionDiskTargetEnvironment, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.diskRestoreProperties != null && Object.hasOwnProperty.call(message, "diskRestoreProperties")) $root.google.cloud.backupdr.v1.DiskRestoreProperties.encode(message.diskRestoreProperties, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.clearOverridesFieldMask != null && Object.hasOwnProperty.call(message, "clearOverridesFieldMask")) + $root.google.protobuf.FieldMask.encode(message.clearOverridesFieldMask, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; @@ -25439,6 +26666,10 @@ message.diskRestoreProperties = $root.google.cloud.backupdr.v1.DiskRestoreProperties.decode(reader, reader.uint32()); break; } + case 8: { + message.clearOverridesFieldMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -25527,6 +26758,14 @@ return "diskRestoreProperties." + error; } } + if (message.clearOverridesFieldMask != null && message.hasOwnProperty("clearOverridesFieldMask")) { + properties._clearOverridesFieldMask = 1; + { + var error = $root.google.protobuf.FieldMask.verify(message.clearOverridesFieldMask); + if (error) + return "clearOverridesFieldMask." + error; + } + } return null; }; @@ -25571,6 +26810,11 @@ throw TypeError(".google.cloud.backupdr.v1.RestoreBackupRequest.diskRestoreProperties: object expected"); message.diskRestoreProperties = $root.google.cloud.backupdr.v1.DiskRestoreProperties.fromObject(object.diskRestoreProperties); } + if (object.clearOverridesFieldMask != null) { + if (typeof object.clearOverridesFieldMask !== "object") + throw TypeError(".google.cloud.backupdr.v1.RestoreBackupRequest.clearOverridesFieldMask: object expected"); + message.clearOverridesFieldMask = $root.google.protobuf.FieldMask.fromObject(object.clearOverridesFieldMask); + } return message; }; @@ -25620,6 +26864,11 @@ if (options.oneofs) object.instanceProperties = "diskRestoreProperties"; } + if (message.clearOverridesFieldMask != null && message.hasOwnProperty("clearOverridesFieldMask")) { + object.clearOverridesFieldMask = $root.google.protobuf.FieldMask.toObject(message.clearOverridesFieldMask, options); + if (options.oneofs) + object._clearOverridesFieldMask = "clearOverridesFieldMask"; + } return object; }; @@ -26343,6 +27592,258 @@ return GcpResource; })(); + v1.BackupGcpResource = (function() { + + /** + * Properties of a BackupGcpResource. + * @memberof google.cloud.backupdr.v1 + * @interface IBackupGcpResource + * @property {string|null} [gcpResourcename] BackupGcpResource gcpResourcename + * @property {string|null} [location] BackupGcpResource location + * @property {string|null} [type] BackupGcpResource type + */ + + /** + * Constructs a new BackupGcpResource. + * @memberof google.cloud.backupdr.v1 + * @classdesc Represents a BackupGcpResource. + * @implements IBackupGcpResource + * @constructor + * @param {google.cloud.backupdr.v1.IBackupGcpResource=} [properties] Properties to set + */ + function BackupGcpResource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackupGcpResource gcpResourcename. + * @member {string} gcpResourcename + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @instance + */ + BackupGcpResource.prototype.gcpResourcename = ""; + + /** + * BackupGcpResource location. + * @member {string} location + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @instance + */ + BackupGcpResource.prototype.location = ""; + + /** + * BackupGcpResource type. + * @member {string} type + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @instance + */ + BackupGcpResource.prototype.type = ""; + + /** + * Creates a new BackupGcpResource instance using the specified properties. + * @function create + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @static + * @param {google.cloud.backupdr.v1.IBackupGcpResource=} [properties] Properties to set + * @returns {google.cloud.backupdr.v1.BackupGcpResource} BackupGcpResource instance + */ + BackupGcpResource.create = function create(properties) { + return new BackupGcpResource(properties); + }; + + /** + * Encodes the specified BackupGcpResource message. Does not implicitly {@link google.cloud.backupdr.v1.BackupGcpResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @static + * @param {google.cloud.backupdr.v1.IBackupGcpResource} message BackupGcpResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupGcpResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gcpResourcename != null && Object.hasOwnProperty.call(message, "gcpResourcename")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcpResourcename); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.location); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + return writer; + }; + + /** + * Encodes the specified BackupGcpResource message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.BackupGcpResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @static + * @param {google.cloud.backupdr.v1.IBackupGcpResource} message BackupGcpResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupGcpResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackupGcpResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.backupdr.v1.BackupGcpResource} BackupGcpResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackupGcpResource.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.backupdr.v1.BackupGcpResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.gcpResourcename = reader.string(); + break; + } + case 2: { + message.location = reader.string(); + break; + } + case 3: { + message.type = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackupGcpResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.backupdr.v1.BackupGcpResource} BackupGcpResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackupGcpResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackupGcpResource message. + * @function verify + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackupGcpResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gcpResourcename != null && message.hasOwnProperty("gcpResourcename")) + if (!$util.isString(message.gcpResourcename)) + return "gcpResourcename: string expected"; + if (message.location != null && message.hasOwnProperty("location")) + if (!$util.isString(message.location)) + return "location: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + return null; + }; + + /** + * Creates a BackupGcpResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.backupdr.v1.BackupGcpResource} BackupGcpResource + */ + BackupGcpResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.backupdr.v1.BackupGcpResource) + return object; + var message = new $root.google.cloud.backupdr.v1.BackupGcpResource(); + if (object.gcpResourcename != null) + message.gcpResourcename = String(object.gcpResourcename); + if (object.location != null) + message.location = String(object.location); + if (object.type != null) + message.type = String(object.type); + return message; + }; + + /** + * Creates a plain object from a BackupGcpResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @static + * @param {google.cloud.backupdr.v1.BackupGcpResource} message BackupGcpResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackupGcpResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.gcpResourcename = ""; + object.location = ""; + object.type = ""; + } + if (message.gcpResourcename != null && message.hasOwnProperty("gcpResourcename")) + object.gcpResourcename = message.gcpResourcename; + if (message.location != null && message.hasOwnProperty("location")) + object.location = message.location; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + return object; + }; + + /** + * Converts this BackupGcpResource to JSON. + * @function toJSON + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @instance + * @returns {Object.} JSON object + */ + BackupGcpResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackupGcpResource + * @function getTypeUrl + * @memberof google.cloud.backupdr.v1.BackupGcpResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackupGcpResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.backupdr.v1.BackupGcpResource"; + }; + + return BackupGcpResource; + })(); + /** * BackupConfigState enum. * @name google.cloud.backupdr.v1.BackupConfigState @@ -39081,6 +40582,7 @@ * @property {number|Long|null} [dataSourceBackupCount] DataSourceReference dataSourceBackupCount * @property {google.cloud.backupdr.v1.IDataSourceBackupConfigInfo|null} [dataSourceBackupConfigInfo] DataSourceReference dataSourceBackupConfigInfo * @property {google.cloud.backupdr.v1.IDataSourceGcpResourceInfo|null} [dataSourceGcpResourceInfo] DataSourceReference dataSourceGcpResourceInfo + * @property {number|Long|null} [totalStoredBytes] DataSourceReference totalStoredBytes */ /** @@ -39154,6 +40656,23 @@ */ DataSourceReference.prototype.dataSourceGcpResourceInfo = null; + /** + * DataSourceReference totalStoredBytes. + * @member {number|Long|null|undefined} totalStoredBytes + * @memberof google.cloud.backupdr.v1.DataSourceReference + * @instance + */ + DataSourceReference.prototype.totalStoredBytes = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DataSourceReference.prototype, "_totalStoredBytes", { + get: $util.oneOfGetter($oneOfFields = ["totalStoredBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new DataSourceReference instance using the specified properties. * @function create @@ -39192,6 +40711,8 @@ $root.google.cloud.backupdr.v1.DataSourceBackupConfigInfo.encode(message.dataSourceBackupConfigInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.dataSourceGcpResourceInfo != null && Object.hasOwnProperty.call(message, "dataSourceGcpResourceInfo")) $root.google.cloud.backupdr.v1.DataSourceGcpResourceInfo.encode(message.dataSourceGcpResourceInfo, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.totalStoredBytes != null && Object.hasOwnProperty.call(message, "totalStoredBytes")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.totalStoredBytes); return writer; }; @@ -39256,6 +40777,10 @@ message.dataSourceGcpResourceInfo = $root.google.cloud.backupdr.v1.DataSourceGcpResourceInfo.decode(reader, reader.uint32()); break; } + case 8: { + message.totalStoredBytes = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -39291,6 +40816,7 @@ DataSourceReference.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -39324,6 +40850,11 @@ if (error) return "dataSourceGcpResourceInfo." + error; } + if (message.totalStoredBytes != null && message.hasOwnProperty("totalStoredBytes")) { + properties._totalStoredBytes = 1; + if (!$util.isInteger(message.totalStoredBytes) && !(message.totalStoredBytes && $util.isInteger(message.totalStoredBytes.low) && $util.isInteger(message.totalStoredBytes.high))) + return "totalStoredBytes: integer|Long expected"; + } return null; }; @@ -39387,6 +40918,15 @@ throw TypeError(".google.cloud.backupdr.v1.DataSourceReference.dataSourceGcpResourceInfo: object expected"); message.dataSourceGcpResourceInfo = $root.google.cloud.backupdr.v1.DataSourceGcpResourceInfo.fromObject(object.dataSourceGcpResourceInfo); } + if (object.totalStoredBytes != null) + if ($util.Long) + (message.totalStoredBytes = $util.Long.fromValue(object.totalStoredBytes)).unsigned = false; + else if (typeof object.totalStoredBytes === "string") + message.totalStoredBytes = parseInt(object.totalStoredBytes, 10); + else if (typeof object.totalStoredBytes === "number") + message.totalStoredBytes = object.totalStoredBytes; + else if (typeof object.totalStoredBytes === "object") + message.totalStoredBytes = new $util.LongBits(object.totalStoredBytes.low >>> 0, object.totalStoredBytes.high >>> 0).toNumber(); return message; }; @@ -39433,6 +40973,14 @@ object.dataSourceBackupConfigInfo = $root.google.cloud.backupdr.v1.DataSourceBackupConfigInfo.toObject(message.dataSourceBackupConfigInfo, options); if (message.dataSourceGcpResourceInfo != null && message.hasOwnProperty("dataSourceGcpResourceInfo")) object.dataSourceGcpResourceInfo = $root.google.cloud.backupdr.v1.DataSourceGcpResourceInfo.toObject(message.dataSourceGcpResourceInfo, options); + if (message.totalStoredBytes != null && message.hasOwnProperty("totalStoredBytes")) { + if (typeof message.totalStoredBytes === "number") + object.totalStoredBytes = options.longs === String ? String(message.totalStoredBytes) : message.totalStoredBytes; + else + object.totalStoredBytes = options.longs === String ? $util.Long.prototype.toString.call(message.totalStoredBytes) : options.longs === Number ? new $util.LongBits(message.totalStoredBytes.low >>> 0, message.totalStoredBytes.high >>> 0).toNumber() : message.totalStoredBytes; + if (options.oneofs) + object._totalStoredBytes = "totalStoredBytes"; + } return object; }; @@ -40238,6 +41786,594 @@ return GetDataSourceReferenceRequest; })(); + v1.ListDataSourceReferencesRequest = (function() { + + /** + * Properties of a ListDataSourceReferencesRequest. + * @memberof google.cloud.backupdr.v1 + * @interface IListDataSourceReferencesRequest + * @property {string|null} [parent] ListDataSourceReferencesRequest parent + * @property {number|null} [pageSize] ListDataSourceReferencesRequest pageSize + * @property {string|null} [pageToken] ListDataSourceReferencesRequest pageToken + * @property {string|null} [filter] ListDataSourceReferencesRequest filter + * @property {string|null} [orderBy] ListDataSourceReferencesRequest orderBy + */ + + /** + * Constructs a new ListDataSourceReferencesRequest. + * @memberof google.cloud.backupdr.v1 + * @classdesc Represents a ListDataSourceReferencesRequest. + * @implements IListDataSourceReferencesRequest + * @constructor + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesRequest=} [properties] Properties to set + */ + function ListDataSourceReferencesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListDataSourceReferencesRequest parent. + * @member {string} parent + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @instance + */ + ListDataSourceReferencesRequest.prototype.parent = ""; + + /** + * ListDataSourceReferencesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @instance + */ + ListDataSourceReferencesRequest.prototype.pageSize = 0; + + /** + * ListDataSourceReferencesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @instance + */ + ListDataSourceReferencesRequest.prototype.pageToken = ""; + + /** + * ListDataSourceReferencesRequest filter. + * @member {string} filter + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @instance + */ + ListDataSourceReferencesRequest.prototype.filter = ""; + + /** + * ListDataSourceReferencesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @instance + */ + ListDataSourceReferencesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListDataSourceReferencesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @static + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesRequest=} [properties] Properties to set + * @returns {google.cloud.backupdr.v1.ListDataSourceReferencesRequest} ListDataSourceReferencesRequest instance + */ + ListDataSourceReferencesRequest.create = function create(properties) { + return new ListDataSourceReferencesRequest(properties); + }; + + /** + * Encodes the specified ListDataSourceReferencesRequest message. Does not implicitly {@link google.cloud.backupdr.v1.ListDataSourceReferencesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @static + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesRequest} message ListDataSourceReferencesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataSourceReferencesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListDataSourceReferencesRequest message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.ListDataSourceReferencesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @static + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesRequest} message ListDataSourceReferencesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataSourceReferencesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDataSourceReferencesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.backupdr.v1.ListDataSourceReferencesRequest} ListDataSourceReferencesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataSourceReferencesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.backupdr.v1.ListDataSourceReferencesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDataSourceReferencesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.backupdr.v1.ListDataSourceReferencesRequest} ListDataSourceReferencesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataSourceReferencesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDataSourceReferencesRequest message. + * @function verify + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDataSourceReferencesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListDataSourceReferencesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.backupdr.v1.ListDataSourceReferencesRequest} ListDataSourceReferencesRequest + */ + ListDataSourceReferencesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.backupdr.v1.ListDataSourceReferencesRequest) + return object; + var message = new $root.google.cloud.backupdr.v1.ListDataSourceReferencesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; + + /** + * Creates a plain object from a ListDataSourceReferencesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @static + * @param {google.cloud.backupdr.v1.ListDataSourceReferencesRequest} message ListDataSourceReferencesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDataSourceReferencesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListDataSourceReferencesRequest to JSON. + * @function toJSON + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @instance + * @returns {Object.} JSON object + */ + ListDataSourceReferencesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListDataSourceReferencesRequest + * @function getTypeUrl + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDataSourceReferencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.backupdr.v1.ListDataSourceReferencesRequest"; + }; + + return ListDataSourceReferencesRequest; + })(); + + v1.ListDataSourceReferencesResponse = (function() { + + /** + * Properties of a ListDataSourceReferencesResponse. + * @memberof google.cloud.backupdr.v1 + * @interface IListDataSourceReferencesResponse + * @property {Array.|null} [dataSourceReferences] ListDataSourceReferencesResponse dataSourceReferences + * @property {string|null} [nextPageToken] ListDataSourceReferencesResponse nextPageToken + * @property {Array.|null} [unreachable] ListDataSourceReferencesResponse unreachable + */ + + /** + * Constructs a new ListDataSourceReferencesResponse. + * @memberof google.cloud.backupdr.v1 + * @classdesc Represents a ListDataSourceReferencesResponse. + * @implements IListDataSourceReferencesResponse + * @constructor + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesResponse=} [properties] Properties to set + */ + function ListDataSourceReferencesResponse(properties) { + this.dataSourceReferences = []; + this.unreachable = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListDataSourceReferencesResponse dataSourceReferences. + * @member {Array.} dataSourceReferences + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @instance + */ + ListDataSourceReferencesResponse.prototype.dataSourceReferences = $util.emptyArray; + + /** + * ListDataSourceReferencesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @instance + */ + ListDataSourceReferencesResponse.prototype.nextPageToken = ""; + + /** + * ListDataSourceReferencesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @instance + */ + ListDataSourceReferencesResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListDataSourceReferencesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @static + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesResponse=} [properties] Properties to set + * @returns {google.cloud.backupdr.v1.ListDataSourceReferencesResponse} ListDataSourceReferencesResponse instance + */ + ListDataSourceReferencesResponse.create = function create(properties) { + return new ListDataSourceReferencesResponse(properties); + }; + + /** + * Encodes the specified ListDataSourceReferencesResponse message. Does not implicitly {@link google.cloud.backupdr.v1.ListDataSourceReferencesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @static + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesResponse} message ListDataSourceReferencesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataSourceReferencesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataSourceReferences != null && message.dataSourceReferences.length) + for (var i = 0; i < message.dataSourceReferences.length; ++i) + $root.google.cloud.backupdr.v1.DataSourceReference.encode(message.dataSourceReferences[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListDataSourceReferencesResponse message, length delimited. Does not implicitly {@link google.cloud.backupdr.v1.ListDataSourceReferencesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @static + * @param {google.cloud.backupdr.v1.IListDataSourceReferencesResponse} message ListDataSourceReferencesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDataSourceReferencesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDataSourceReferencesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.backupdr.v1.ListDataSourceReferencesResponse} ListDataSourceReferencesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataSourceReferencesResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.backupdr.v1.ListDataSourceReferencesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.dataSourceReferences && message.dataSourceReferences.length)) + message.dataSourceReferences = []; + message.dataSourceReferences.push($root.google.cloud.backupdr.v1.DataSourceReference.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDataSourceReferencesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.backupdr.v1.ListDataSourceReferencesResponse} ListDataSourceReferencesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDataSourceReferencesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDataSourceReferencesResponse message. + * @function verify + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDataSourceReferencesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataSourceReferences != null && message.hasOwnProperty("dataSourceReferences")) { + if (!Array.isArray(message.dataSourceReferences)) + return "dataSourceReferences: array expected"; + for (var i = 0; i < message.dataSourceReferences.length; ++i) { + var error = $root.google.cloud.backupdr.v1.DataSourceReference.verify(message.dataSourceReferences[i]); + if (error) + return "dataSourceReferences." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; + + /** + * Creates a ListDataSourceReferencesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.backupdr.v1.ListDataSourceReferencesResponse} ListDataSourceReferencesResponse + */ + ListDataSourceReferencesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.backupdr.v1.ListDataSourceReferencesResponse) + return object; + var message = new $root.google.cloud.backupdr.v1.ListDataSourceReferencesResponse(); + if (object.dataSourceReferences) { + if (!Array.isArray(object.dataSourceReferences)) + throw TypeError(".google.cloud.backupdr.v1.ListDataSourceReferencesResponse.dataSourceReferences: array expected"); + message.dataSourceReferences = []; + for (var i = 0; i < object.dataSourceReferences.length; ++i) { + if (typeof object.dataSourceReferences[i] !== "object") + throw TypeError(".google.cloud.backupdr.v1.ListDataSourceReferencesResponse.dataSourceReferences: object expected"); + message.dataSourceReferences[i] = $root.google.cloud.backupdr.v1.DataSourceReference.fromObject(object.dataSourceReferences[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.backupdr.v1.ListDataSourceReferencesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; + + /** + * Creates a plain object from a ListDataSourceReferencesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @static + * @param {google.cloud.backupdr.v1.ListDataSourceReferencesResponse} message ListDataSourceReferencesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDataSourceReferencesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dataSourceReferences = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.dataSourceReferences && message.dataSourceReferences.length) { + object.dataSourceReferences = []; + for (var j = 0; j < message.dataSourceReferences.length; ++j) + object.dataSourceReferences[j] = $root.google.cloud.backupdr.v1.DataSourceReference.toObject(message.dataSourceReferences[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; + + /** + * Converts this ListDataSourceReferencesResponse to JSON. + * @function toJSON + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @instance + * @returns {Object.} JSON object + */ + ListDataSourceReferencesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListDataSourceReferencesResponse + * @function getTypeUrl + * @memberof google.cloud.backupdr.v1.ListDataSourceReferencesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDataSourceReferencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.backupdr.v1.ListDataSourceReferencesResponse"; + }; + + return ListDataSourceReferencesResponse; + })(); + v1.FetchDataSourceReferencesForResourceTypeRequest = (function() { /** diff --git a/packages/google-cloud-backupdr/protos/protos.json b/packages/google-cloud-backupdr/protos/protos.json index 8629664fb398..ad1b78a1c71c 100644 --- a/packages/google-cloud-backupdr/protos/protos.json +++ b/packages/google-cloud-backupdr/protos/protos.json @@ -333,6 +333,24 @@ } ] }, + "FetchBackupsForResourceType": { + "requestType": "FetchBackupsForResourceTypeRequest", + "responseType": "FetchBackupsForResourceTypeResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups:fetchForResourceType", + "(google.api.method_signature)": "parent,resource_type" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups:fetchForResourceType" + } + }, + { + "(google.api.method_signature)": "parent,resource_type" + } + ] + }, "GetBackup": { "requestType": "GetBackupRequest", "responseType": "Backup", @@ -769,6 +787,24 @@ } ] }, + "ListDataSourceReferences": { + "requestType": "ListDataSourceReferencesRequest", + "responseType": "ListDataSourceReferencesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/dataSourceReferences", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/dataSourceReferences" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, "FetchDataSourceReferencesForResourceType": { "requestType": "FetchDataSourceReferencesForResourceTypeRequest", "responseType": "FetchDataSourceReferencesForResourceTypeResponse", @@ -2283,12 +2319,26 @@ "(google.api.resource_reference).type": "sqladmin.googleapis.com/Instance" } }, + "instanceCreateTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "instanceTier": { "type": "string", "id": 6, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "instanceDeleteTime": { + "type": "google.protobuf.Timestamp", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -2384,6 +2434,11 @@ "backupMinimumEnforcedRetentionDuration" ] }, + "_backupRetentionInheritance": { + "oneof": [ + "backupRetentionInheritance" + ] + }, "_deletable": { "oneof": [ "deletable" @@ -2398,6 +2453,11 @@ "oneof": [ "effectiveTime" ] + }, + "_encryptionConfig": { + "oneof": [ + "encryptionConfig" + ] } }, "fields": { @@ -2448,6 +2508,14 @@ "proto3_optional": true } }, + "backupRetentionInheritance": { + "type": "BackupRetentionInheritance", + "id": 27, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "deletable": { "type": "bool", "id": 8, @@ -2522,9 +2590,24 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "encryptionConfig": { + "type": "EncryptionConfig", + "id": 29, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } } }, "nested": { + "BackupRetentionInheritance": { + "values": { + "BACKUP_RETENTION_INHERITANCE_UNSPECIFIED": 0, + "INHERIT_VAULT_RETENTION": 1, + "MATCH_BACKUP_EXPIRE_TIME": 2 + } + }, "State": { "values": { "STATE_UNSPECIFIED": 0, @@ -2543,6 +2626,26 @@ "UNRESTRICTED": 3, "WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA": 4 } + }, + "EncryptionConfig": { + "oneofs": { + "_kmsKeyName": { + "oneof": [ + "kmsKeyName" + ] + } + }, + "fields": { + "kmsKeyName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "cloudkms.googleapis.com/CryptoKey", + "proto3_optional": true + } + } + } } } }, @@ -2997,6 +3100,11 @@ "enforcedRetentionEndTime" ] }, + "_backupRetentionInheritance": { + "oneof": [ + "backupRetentionInheritance" + ] + }, "_expireTime": { "oneof": [ "expireTime" @@ -3034,6 +3142,11 @@ "oneof": [ "satisfiesPzi" ] + }, + "sourceResource": { + "oneof": [ + "gcpResource" + ] } }, "fields": { @@ -3084,6 +3197,14 @@ "proto3_optional": true } }, + "backupRetentionInheritance": { + "type": "BackupVault.BackupRetentionInheritance", + "id": 30, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, "expireTime": { "type": "google.protobuf.Timestamp", "id": 7, @@ -3195,6 +3316,22 @@ "(google.api.field_behavior)": "OPTIONAL", "proto3_optional": true } + }, + "gcpResource": { + "type": "BackupGcpResource", + "id": 31, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "kmsKeyVersions": { + "rule": "repeated", + "type": "string", + "id": 33, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "cloudkms.googleapis.com/CryptoKeyVersion" + } } }, "nested": { @@ -3405,6 +3542,73 @@ } } }, + "FetchBackupsForResourceTypeRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "backupdr.googleapis.com/Backup" + } + }, + "resourceType": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pageSize": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "filter": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "orderBy": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "view": { + "type": "BackupView", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "FetchBackupsForResourceTypeResponse": { + "fields": { + "backups": { + "rule": "repeated", + "type": "Backup", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "GetBackupVaultRequest": { "fields": { "name": { @@ -3770,6 +3974,11 @@ "computeInstanceRestoreProperties", "diskRestoreProperties" ] + }, + "_clearOverridesFieldMask": { + "oneof": [ + "clearOverridesFieldMask" + ] } }, "fields": { @@ -3808,6 +4017,14 @@ "diskRestoreProperties": { "type": "DiskRestoreProperties", "id": 7 + }, + "clearOverridesFieldMask": { + "type": "google.protobuf.FieldMask", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } } } }, @@ -3850,6 +4067,22 @@ } } }, + "BackupGcpResource": { + "fields": { + "gcpResourcename": { + "type": "string", + "id": 1 + }, + "location": { + "type": "string", + "id": 2 + }, + "type": { + "type": "string", + "id": 3 + } + } + }, "BackupConfigState": { "values": { "BACKUP_CONFIG_STATE_UNSPECIFIED": 0, @@ -6063,6 +6296,13 @@ "(google.api.resource).plural": "dataSourceReferences", "(google.api.resource).singular": "dataSourceReference" }, + "oneofs": { + "_totalStoredBytes": { + "oneof": [ + "totalStoredBytes" + ] + } + }, "fields": { "name": { "type": "string", @@ -6113,6 +6353,14 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "totalStoredBytes": { + "type": "int64", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } } } }, @@ -6185,6 +6433,64 @@ } } }, + "ListDataSourceReferencesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "backupdr.googleapis.com/DataSourceReference" + } + }, + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "filter": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "orderBy": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListDataSourceReferencesResponse": { + "fields": { + "dataSourceReferences": { + "rule": "repeated", + "type": "DataSourceReference", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, "FetchDataSourceReferencesForResourceTypeRequest": { "fields": { "parent": { diff --git a/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.fetch_backups_for_resource_type.js b/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.fetch_backups_for_resource_type.js new file mode 100644 index 000000000000..9306acf839ca --- /dev/null +++ b/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.fetch_backups_for_resource_type.js @@ -0,0 +1,104 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, resourceType) { + // [START backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Datasources are the parent resource for the backups. + * Format: + * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} + */ + // const parent = 'abc123' + /** + * Required. The type of the GCP resource. + * Ex: sqladmin.googleapis.com/Instance + */ + // const resourceType = 'abc123' + /** + * Optional. The maximum number of Backups to return. The service may + * return fewer than this value. If unspecified, at most 50 + * Backups will be returned. The maximum value is 100; values + * above 100 will be coerced to 100. + */ + // const pageSize = 1234 + /** + * Optional. A page token, received from a previous call of + * `FetchBackupsForResourceType`. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `FetchBackupsForResourceType` must match + * the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * Optional. A filter expression that filters the results fetched in the + * response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. Supported + * fields: + */ + // const filter = 'abc123' + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. + */ + // const orderBy = 'abc123' + /** + * Optional. This parameter is used to specify the view of the backup. + * If not specified, the default view is BASIC. + */ + // const view = {} + + // Imports the Backupdr library + const {BackupDRClient} = require('@google-cloud/backupdr').v1; + + // Instantiates a client + const backupdrClient = new BackupDRClient(); + + async function callFetchBackupsForResourceType() { + // Construct request + const request = { + parent, + resourceType, + }; + + // Run request + const iterable = backupdrClient.fetchBackupsForResourceTypeAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callFetchBackupsForResourceType(); + // [END backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.list_data_source_references.js b/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.list_data_source_references.js new file mode 100644 index 000000000000..94a13d6c9ad6 --- /dev/null +++ b/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.list_data_source_references.js @@ -0,0 +1,96 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START backupdr_v1_generated_BackupDR_ListDataSourceReferences_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. + * Format: projects/{project}/locations/{location} + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of DataSourceReferences to return. The service + * may return fewer than this value. If unspecified, at most 50 + * DataSourceReferences will be returned. The maximum value is 100; values + * above 100 will be coerced to 100. + */ + // const pageSize = 1234 + /** + * Optional. A page token, received from a previous `ListDataSourceReferences` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDataSourceReferences` must match the call that provided the page + * token. + */ + // const pageToken = 'abc123' + /** + * Optional. A filter expression that filters the results listed in the + * response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. + * The following field and operator combinations are supported: + * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=` + * * data_source_gcp_resource_info.type with `=`, `!=` + */ + // const filter = 'abc123' + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. + * Supported fields: + * * data_source + * * data_source_gcp_resource_info.gcp_resourcename + */ + // const orderBy = 'abc123' + + // Imports the Backupdr library + const {BackupDRClient} = require('@google-cloud/backupdr').v1; + + // Instantiates a client + const backupdrClient = new BackupDRClient(); + + async function callListDataSourceReferences() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = backupdrClient.listDataSourceReferencesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListDataSourceReferences(); + // [END backupdr_v1_generated_BackupDR_ListDataSourceReferences_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.restore_backup.js b/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.restore_backup.js index 1ff5579f62b9..2ab1df9ec149 100644 --- a/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.restore_backup.js +++ b/packages/google-cloud-backupdr/samples/generated/v1/backup_d_r.restore_backup.js @@ -67,6 +67,18 @@ function main(name) { * Disk properties to be overridden during restore. */ // const diskRestoreProperties = {} + /** + * Optional. A field mask used to clear server-side default values + * for fields within the `instance_properties` oneof. + * When a field in this mask is cleared, the server will not apply its + * default logic (like inheriting a value from the source) for that field. + * The most common current use case is clearing default encryption keys. + * Examples of field mask paths: + * - Compute Instance Disks: + * `compute_instance_restore_properties.disks.*.disk_encryption_key` + * - Single Disk: `disk_restore_properties.disk_encryption_key` + */ + // const clearOverridesFieldMask = {} // Imports the Backupdr library const {BackupDRClient} = require('@google-cloud/backupdr').v1; diff --git a/packages/google-cloud-backupdr/samples/generated/v1/snippet_metadata_google.cloud.backupdr.v1.json b/packages/google-cloud-backupdr/samples/generated/v1/snippet_metadata_google.cloud.backupdr.v1.json index 6eb50167d88d..38a5feace790 100644 --- a/packages/google-cloud-backupdr/samples/generated/v1/snippet_metadata_google.cloud.backupdr.v1.json +++ b/packages/google-cloud-backupdr/samples/generated/v1/snippet_metadata_google.cloud.backupdr.v1.json @@ -751,6 +751,70 @@ } } }, + { + "regionTag": "backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_async", + "title": "BackupDR fetchBackupsForResourceType Sample", + "origin": "API_DEFINITION", + "description": " Fetch Backups for a given resource type.", + "canonical": true, + "file": "backup_d_r.fetch_backups_for_resource_type.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 96, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FetchBackupsForResourceType", + "fullName": "google.cloud.backupdr.v1.BackupDR.FetchBackupsForResourceType", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "resource_type", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.cloud.backupdr.v1.BackupView" + } + ], + "resultType": ".google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse", + "client": { + "shortName": "BackupDRClient", + "fullName": "google.cloud.backupdr.v1.BackupDRClient" + }, + "method": { + "shortName": "FetchBackupsForResourceType", + "fullName": "google.cloud.backupdr.v1.BackupDR.FetchBackupsForResourceType", + "service": { + "shortName": "BackupDR", + "fullName": "google.cloud.backupdr.v1.BackupDR" + } + } + } + }, { "regionTag": "backupdr_v1_generated_BackupDR_GetBackup_async", "title": "BackupDR getBackup Sample", @@ -898,7 +962,7 @@ "segments": [ { "start": 25, - "end": 89, + "end": 101, "type": "FULL" } ], @@ -934,6 +998,10 @@ { "name": "disk_restore_properties", "type": ".google.cloud.backupdr.v1.DiskRestoreProperties" + }, + { + "name": "clear_overrides_field_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.longrunning.Operation", @@ -1663,6 +1731,62 @@ } } }, + { + "regionTag": "backupdr_v1_generated_BackupDR_ListDataSourceReferences_async", + "title": "BackupDR listDataSourceReferences Sample", + "origin": "API_DEFINITION", + "description": " Lists DataSourceReferences for a given project and location.", + "canonical": true, + "file": "backup_d_r.list_data_source_references.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 88, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDataSourceReferences", + "fullName": "google.cloud.backupdr.v1.BackupDR.ListDataSourceReferences", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.backupdr.v1.ListDataSourceReferencesResponse", + "client": { + "shortName": "BackupDRClient", + "fullName": "google.cloud.backupdr.v1.BackupDRClient" + }, + "method": { + "shortName": "ListDataSourceReferences", + "fullName": "google.cloud.backupdr.v1.BackupDR.ListDataSourceReferences", + "service": { + "shortName": "BackupDR", + "fullName": "google.cloud.backupdr.v1.BackupDR" + } + } + } + }, { "regionTag": "backupdr_v1_generated_BackupDR_FetchDataSourceReferencesForResourceType_async", "title": "BackupDR fetchDataSourceReferencesForResourceType Sample", diff --git a/packages/google-cloud-backupdr/samples/package.json b/packages/google-cloud-backupdr/samples/package.json index aeae8beaf0b6..3602cc942686 100644 --- a/packages/google-cloud-backupdr/samples/package.json +++ b/packages/google-cloud-backupdr/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@google-cloud/backupdr": "^0.5.1" + "@google-cloud/backupdr": "^0.7.0" }, "devDependencies": { "c8": "^9.0.0", diff --git a/packages/google-cloud-backupdr/src/v1/backup_d_r_client.ts b/packages/google-cloud-backupdr/src/v1/backup_d_r_client.ts index 3e39da8cb821..7f2b6f2e8a21 100644 --- a/packages/google-cloud-backupdr/src/v1/backup_d_r_client.ts +++ b/packages/google-cloud-backupdr/src/v1/backup_d_r_client.ts @@ -233,6 +233,8 @@ export class BackupDRClient { new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'dataSources'), listBackups: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'backups'), + fetchBackupsForResourceType: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'backups'), listBackupPlans: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'backupPlans'), listBackupPlanRevisions: @@ -241,6 +243,8 @@ export class BackupDRClient { new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'backupPlanAssociations'), fetchBackupPlanAssociationsForResourceType: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'backupPlanAssociations'), + listDataSourceReferences: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'dataSourceReferences'), fetchDataSourceReferencesForResourceType: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'dataSourceReferences') }; @@ -441,7 +445,7 @@ export class BackupDRClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const backupDRStubMethods = - ['listManagementServers', 'getManagementServer', 'createManagementServer', 'deleteManagementServer', 'createBackupVault', 'listBackupVaults', 'fetchUsableBackupVaults', 'getBackupVault', 'updateBackupVault', 'deleteBackupVault', 'listDataSources', 'getDataSource', 'updateDataSource', 'listBackups', 'getBackup', 'updateBackup', 'deleteBackup', 'restoreBackup', 'createBackupPlan', 'updateBackupPlan', 'getBackupPlan', 'listBackupPlans', 'deleteBackupPlan', 'getBackupPlanRevision', 'listBackupPlanRevisions', 'createBackupPlanAssociation', 'updateBackupPlanAssociation', 'getBackupPlanAssociation', 'listBackupPlanAssociations', 'fetchBackupPlanAssociationsForResourceType', 'deleteBackupPlanAssociation', 'triggerBackup', 'getDataSourceReference', 'fetchDataSourceReferencesForResourceType', 'initializeService']; + ['listManagementServers', 'getManagementServer', 'createManagementServer', 'deleteManagementServer', 'createBackupVault', 'listBackupVaults', 'fetchUsableBackupVaults', 'getBackupVault', 'updateBackupVault', 'deleteBackupVault', 'listDataSources', 'getDataSource', 'updateDataSource', 'listBackups', 'fetchBackupsForResourceType', 'getBackup', 'updateBackup', 'deleteBackup', 'restoreBackup', 'createBackupPlan', 'updateBackupPlan', 'getBackupPlan', 'listBackupPlans', 'deleteBackupPlan', 'getBackupPlanRevision', 'listBackupPlanRevisions', 'createBackupPlanAssociation', 'updateBackupPlanAssociation', 'getBackupPlanAssociation', 'listBackupPlanAssociations', 'fetchBackupPlanAssociationsForResourceType', 'deleteBackupPlanAssociation', 'triggerBackup', 'getDataSourceReference', 'listDataSourceReferences', 'fetchDataSourceReferencesForResourceType', 'initializeService']; for (const methodName of backupDRStubMethods) { const callPromise = this.backupDRStub.then( stub => (...args: Array<{}>) => { @@ -2378,6 +2382,19 @@ export class BackupDRClient { * Compute Engine instance properties to be overridden during restore. * @param {google.cloud.backupdr.v1.DiskRestoreProperties} request.diskRestoreProperties * Disk properties to be overridden during restore. + * @param {google.protobuf.FieldMask} [request.clearOverridesFieldMask] + * Optional. A field mask used to clear server-side default values + * for fields within the `instance_properties` oneof. + * + * When a field in this mask is cleared, the server will not apply its + * default logic (like inheriting a value from the source) for that field. + * + * The most common current use case is clearing default encryption keys. + * + * Examples of field mask paths: + * - Compute Instance Disks: + * `compute_instance_restore_properties.disks.*.disk_encryption_key` + * - Single Disk: `disk_restore_properties.disk_encryption_key` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4619,6 +4636,272 @@ export class BackupDRClient { ) as AsyncIterable; } /** + * Fetch Backups for a given resource type. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Datasources are the parent resource for the backups. + * Format: + * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} + * @param {string} request.resourceType + * Required. The type of the GCP resource. + * Ex: sqladmin.googleapis.com/Instance + * @param {number} [request.pageSize] + * Optional. The maximum number of Backups to return. The service may + * return fewer than this value. If unspecified, at most 50 + * Backups will be returned. The maximum value is 100; values + * above 100 will be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous call of + * `FetchBackupsForResourceType`. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `FetchBackupsForResourceType` must match + * the call that provided the page token. + * @param {string} [request.filter] + * Optional. A filter expression that filters the results fetched in the + * response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. Supported + * fields: + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. + * @param {google.cloud.backupdr.v1.BackupView} [request.view] + * Optional. This parameter is used to specify the view of the backup. + * If not specified, the default view is BASIC. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.backupdr.v1.Backup|Backup}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `fetchBackupsForResourceTypeAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + fetchBackupsForResourceType( + request?: protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.backupdr.v1.IBackup[], + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest|null, + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse + ]>; + fetchBackupsForResourceType( + request: protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse|null|undefined, + protos.google.cloud.backupdr.v1.IBackup>): void; + fetchBackupsForResourceType( + request: protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + callback: PaginationCallback< + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse|null|undefined, + protos.google.cloud.backupdr.v1.IBackup>): void; + fetchBackupsForResourceType( + request?: protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse|null|undefined, + protos.google.cloud.backupdr.v1.IBackup>, + callback?: PaginationCallback< + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse|null|undefined, + protos.google.cloud.backupdr.v1.IBackup>): + Promise<[ + protos.google.cloud.backupdr.v1.IBackup[], + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest|null, + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'parent': request.parent ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse|null|undefined, + protos.google.cloud.backupdr.v1.IBackup>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('fetchBackupsForResourceType values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('fetchBackupsForResourceType request %j', request); + return this.innerApiCalls + .fetchBackupsForResourceType(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.backupdr.v1.IBackup[], + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest|null, + protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeResponse + ]) => { + this._log.info('fetchBackupsForResourceType values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `fetchBackupsForResourceType`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Datasources are the parent resource for the backups. + * Format: + * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} + * @param {string} request.resourceType + * Required. The type of the GCP resource. + * Ex: sqladmin.googleapis.com/Instance + * @param {number} [request.pageSize] + * Optional. The maximum number of Backups to return. The service may + * return fewer than this value. If unspecified, at most 50 + * Backups will be returned. The maximum value is 100; values + * above 100 will be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous call of + * `FetchBackupsForResourceType`. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `FetchBackupsForResourceType` must match + * the call that provided the page token. + * @param {string} [request.filter] + * Optional. A filter expression that filters the results fetched in the + * response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. Supported + * fields: + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. + * @param {google.cloud.backupdr.v1.BackupView} [request.view] + * Optional. This parameter is used to specify the view of the backup. + * If not specified, the default view is BASIC. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.backupdr.v1.Backup|Backup} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `fetchBackupsForResourceTypeAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + fetchBackupsForResourceTypeStream( + request?: protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'parent': request.parent ?? '', + }); + const defaultCallSettings = this._defaults['fetchBackupsForResourceType']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('fetchBackupsForResourceType stream %j', request); + return this.descriptors.page.fetchBackupsForResourceType.createStream( + this.innerApiCalls.fetchBackupsForResourceType as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `fetchBackupsForResourceType`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Datasources are the parent resource for the backups. + * Format: + * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} + * @param {string} request.resourceType + * Required. The type of the GCP resource. + * Ex: sqladmin.googleapis.com/Instance + * @param {number} [request.pageSize] + * Optional. The maximum number of Backups to return. The service may + * return fewer than this value. If unspecified, at most 50 + * Backups will be returned. The maximum value is 100; values + * above 100 will be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous call of + * `FetchBackupsForResourceType`. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `FetchBackupsForResourceType` must match + * the call that provided the page token. + * @param {string} [request.filter] + * Optional. A filter expression that filters the results fetched in the + * response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. Supported + * fields: + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. + * @param {google.cloud.backupdr.v1.BackupView} [request.view] + * Optional. This parameter is used to specify the view of the backup. + * If not specified, the default view is BASIC. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.backupdr.v1.Backup|Backup}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/backup_d_r.fetch_backups_for_resource_type.js + * region_tag:backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_async + */ + fetchBackupsForResourceTypeAsync( + request?: protos.google.cloud.backupdr.v1.IFetchBackupsForResourceTypeRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'parent': request.parent ?? '', + }); + const defaultCallSettings = this._defaults['fetchBackupsForResourceType']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('fetchBackupsForResourceType iterate %j', request); + return this.descriptors.page.fetchBackupsForResourceType.asyncIterate( + this.innerApiCalls['fetchBackupsForResourceType'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** * Lists BackupPlans in a given project and location. * * @param {Object} request @@ -5587,6 +5870,275 @@ export class BackupDRClient { ) as AsyncIterable; } /** + * Lists DataSourceReferences for a given project and location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent resource name. + * Format: projects/{project}/locations/{location} + * @param {number} [request.pageSize] + * Optional. The maximum number of DataSourceReferences to return. The service + * may return fewer than this value. If unspecified, at most 50 + * DataSourceReferences will be returned. The maximum value is 100; values + * above 100 will be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `ListDataSourceReferences` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDataSourceReferences` must match the call that provided the page + * token. + * @param {string} [request.filter] + * Optional. A filter expression that filters the results listed in the + * response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. + * + * The following field and operator combinations are supported: + * + * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=` + * * data_source_gcp_resource_info.type with `=`, `!=` + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. + * + * Supported fields: + * + * * data_source + * * data_source_gcp_resource_info.gcp_resourcename + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.backupdr.v1.DataSourceReference|DataSourceReference}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDataSourceReferencesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listDataSourceReferences( + request?: protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.backupdr.v1.IDataSourceReference[], + protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest|null, + protos.google.cloud.backupdr.v1.IListDataSourceReferencesResponse + ]>; + listDataSourceReferences( + request: protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + protos.google.cloud.backupdr.v1.IListDataSourceReferencesResponse|null|undefined, + protos.google.cloud.backupdr.v1.IDataSourceReference>): void; + listDataSourceReferences( + request: protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + callback: PaginationCallback< + protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + protos.google.cloud.backupdr.v1.IListDataSourceReferencesResponse|null|undefined, + protos.google.cloud.backupdr.v1.IDataSourceReference>): void; + listDataSourceReferences( + request?: protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + protos.google.cloud.backupdr.v1.IListDataSourceReferencesResponse|null|undefined, + protos.google.cloud.backupdr.v1.IDataSourceReference>, + callback?: PaginationCallback< + protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + protos.google.cloud.backupdr.v1.IListDataSourceReferencesResponse|null|undefined, + protos.google.cloud.backupdr.v1.IDataSourceReference>): + Promise<[ + protos.google.cloud.backupdr.v1.IDataSourceReference[], + protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest|null, + protos.google.cloud.backupdr.v1.IListDataSourceReferencesResponse + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'parent': request.parent ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + protos.google.cloud.backupdr.v1.IListDataSourceReferencesResponse|null|undefined, + protos.google.cloud.backupdr.v1.IDataSourceReference>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('listDataSourceReferences values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('listDataSourceReferences request %j', request); + return this.innerApiCalls + .listDataSourceReferences(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.backupdr.v1.IDataSourceReference[], + protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest|null, + protos.google.cloud.backupdr.v1.IListDataSourceReferencesResponse + ]) => { + this._log.info('listDataSourceReferences values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `listDataSourceReferences`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent resource name. + * Format: projects/{project}/locations/{location} + * @param {number} [request.pageSize] + * Optional. The maximum number of DataSourceReferences to return. The service + * may return fewer than this value. If unspecified, at most 50 + * DataSourceReferences will be returned. The maximum value is 100; values + * above 100 will be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `ListDataSourceReferences` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDataSourceReferences` must match the call that provided the page + * token. + * @param {string} [request.filter] + * Optional. A filter expression that filters the results listed in the + * response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. + * + * The following field and operator combinations are supported: + * + * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=` + * * data_source_gcp_resource_info.type with `=`, `!=` + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. + * + * Supported fields: + * + * * data_source + * * data_source_gcp_resource_info.gcp_resourcename + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.backupdr.v1.DataSourceReference|DataSourceReference} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDataSourceReferencesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listDataSourceReferencesStream( + request?: protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'parent': request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listDataSourceReferences']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('listDataSourceReferences stream %j', request); + return this.descriptors.page.listDataSourceReferences.createStream( + this.innerApiCalls.listDataSourceReferences as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `listDataSourceReferences`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent resource name. + * Format: projects/{project}/locations/{location} + * @param {number} [request.pageSize] + * Optional. The maximum number of DataSourceReferences to return. The service + * may return fewer than this value. If unspecified, at most 50 + * DataSourceReferences will be returned. The maximum value is 100; values + * above 100 will be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous `ListDataSourceReferences` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDataSourceReferences` must match the call that provided the page + * token. + * @param {string} [request.filter] + * Optional. A filter expression that filters the results listed in the + * response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. + * + * The following field and operator combinations are supported: + * + * * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=` + * * data_source_gcp_resource_info.type with `=`, `!=` + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. + * + * Supported fields: + * + * * data_source + * * data_source_gcp_resource_info.gcp_resourcename + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.backupdr.v1.DataSourceReference|DataSourceReference}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/backup_d_r.list_data_source_references.js + * region_tag:backupdr_v1_generated_BackupDR_ListDataSourceReferences_async + */ + listDataSourceReferencesAsync( + request?: protos.google.cloud.backupdr.v1.IListDataSourceReferencesRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'parent': request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listDataSourceReferences']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('listDataSourceReferences iterate %j', request); + return this.descriptors.page.listDataSourceReferences.asyncIterate( + this.innerApiCalls['listDataSourceReferences'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** * Fetch DataSourceReferences for a given project, location and resource type. * * @param {Object} request diff --git a/packages/google-cloud-backupdr/src/v1/backup_d_r_client_config.json b/packages/google-cloud-backupdr/src/v1/backup_d_r_client_config.json index 34ad74b61ba0..4621626acd4b 100644 --- a/packages/google-cloud-backupdr/src/v1/backup_d_r_client_config.json +++ b/packages/google-cloud-backupdr/src/v1/backup_d_r_client_config.json @@ -102,6 +102,10 @@ "retry_codes_name": "unavailable", "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" }, + "FetchBackupsForResourceType": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetBackup": { "timeout_millis": 60000, "retry_codes_name": "unavailable", @@ -181,6 +185,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListDataSourceReferences": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "FetchDataSourceReferencesForResourceType": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-backupdr/src/v1/gapic_metadata.json b/packages/google-cloud-backupdr/src/v1/gapic_metadata.json index 107b71498425..99e4f4b41c41 100644 --- a/packages/google-cloud-backupdr/src/v1/gapic_metadata.json +++ b/packages/google-cloud-backupdr/src/v1/gapic_metadata.json @@ -170,6 +170,13 @@ "listBackupsAsync" ] }, + "FetchBackupsForResourceType": { + "methods": [ + "fetchBackupsForResourceType", + "fetchBackupsForResourceTypeStream", + "fetchBackupsForResourceTypeAsync" + ] + }, "ListBackupPlans": { "methods": [ "listBackupPlans", @@ -198,6 +205,13 @@ "fetchBackupPlanAssociationsForResourceTypeAsync" ] }, + "ListDataSourceReferences": { + "methods": [ + "listDataSourceReferences", + "listDataSourceReferencesStream", + "listDataSourceReferencesAsync" + ] + }, "FetchDataSourceReferencesForResourceType": { "methods": [ "fetchDataSourceReferencesForResourceType", @@ -370,6 +384,13 @@ "listBackupsAsync" ] }, + "FetchBackupsForResourceType": { + "methods": [ + "fetchBackupsForResourceType", + "fetchBackupsForResourceTypeStream", + "fetchBackupsForResourceTypeAsync" + ] + }, "ListBackupPlans": { "methods": [ "listBackupPlans", @@ -398,6 +419,13 @@ "fetchBackupPlanAssociationsForResourceTypeAsync" ] }, + "ListDataSourceReferences": { + "methods": [ + "listDataSourceReferences", + "listDataSourceReferencesStream", + "listDataSourceReferencesAsync" + ] + }, "FetchDataSourceReferencesForResourceType": { "methods": [ "fetchDataSourceReferencesForResourceType", diff --git a/packages/google-cloud-backupdr/test/gapic_backup_d_r_v1.ts b/packages/google-cloud-backupdr/test/gapic_backup_d_r_v1.ts index aefe7cc28307..985f77897d23 100644 --- a/packages/google-cloud-backupdr/test/gapic_backup_d_r_v1.ts +++ b/packages/google-cloud-backupdr/test/gapic_backup_d_r_v1.ts @@ -5002,6 +5002,251 @@ describe('v1.BackupDRClient', () => { }); }); + describe('fetchBackupsForResourceType', () => { + it('invokes fetchBackupsForResourceType without error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + ]; + client.innerApiCalls.fetchBackupsForResourceType = stubSimpleCall(expectedResponse); + const [response] = await client.fetchBackupsForResourceType(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.fetchBackupsForResourceType as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.fetchBackupsForResourceType as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchBackupsForResourceType without error using callback', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + ]; + client.innerApiCalls.fetchBackupsForResourceType = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.fetchBackupsForResourceType( + request, + (err?: Error|null, result?: protos.google.cloud.backupdr.v1.IBackup[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.fetchBackupsForResourceType as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.fetchBackupsForResourceType as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchBackupsForResourceType with error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.fetchBackupsForResourceType = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.fetchBackupsForResourceType(request), expectedError); + const actualRequest = (client.innerApiCalls.fetchBackupsForResourceType as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.fetchBackupsForResourceType as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchBackupsForResourceTypeStream without error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + ]; + client.descriptors.page.fetchBackupsForResourceType.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.fetchBackupsForResourceTypeStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.backupdr.v1.Backup[] = []; + stream.on('data', (response: protos.google.cloud.backupdr.v1.Backup) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.fetchBackupsForResourceType.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.fetchBackupsForResourceType, request)); + assert( + (client.descriptors.page.fetchBackupsForResourceType.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes fetchBackupsForResourceTypeStream with error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.fetchBackupsForResourceType.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.fetchBackupsForResourceTypeStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.backupdr.v1.Backup[] = []; + stream.on('data', (response: protos.google.cloud.backupdr.v1.Backup) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.fetchBackupsForResourceType.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.fetchBackupsForResourceType, request)); + assert( + (client.descriptors.page.fetchBackupsForResourceType.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with fetchBackupsForResourceType without error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.Backup()), + ]; + client.descriptors.page.fetchBackupsForResourceType.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.backupdr.v1.IBackup[] = []; + const iterable = client.fetchBackupsForResourceTypeAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.fetchBackupsForResourceType.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.fetchBackupsForResourceType.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with fetchBackupsForResourceType with error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.FetchBackupsForResourceTypeRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.fetchBackupsForResourceType.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.fetchBackupsForResourceTypeAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.backupdr.v1.IBackup[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.fetchBackupsForResourceType.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.fetchBackupsForResourceType.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('listBackupPlans', () => { it('invokes listBackupPlans without error', async () => { const client = new backupdrModule.v1.BackupDRClient({ @@ -5982,6 +6227,251 @@ describe('v1.BackupDRClient', () => { }); }); + describe('listDataSourceReferences', () => { + it('invokes listDataSourceReferences without error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.ListDataSourceReferencesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.ListDataSourceReferencesRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + ]; + client.innerApiCalls.listDataSourceReferences = stubSimpleCall(expectedResponse); + const [response] = await client.listDataSourceReferences(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.listDataSourceReferences as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.listDataSourceReferences as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataSourceReferences without error using callback', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.ListDataSourceReferencesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.ListDataSourceReferencesRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + ]; + client.innerApiCalls.listDataSourceReferences = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDataSourceReferences( + request, + (err?: Error|null, result?: protos.google.cloud.backupdr.v1.IDataSourceReference[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.listDataSourceReferences as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.listDataSourceReferences as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataSourceReferences with error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.ListDataSourceReferencesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.ListDataSourceReferencesRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.listDataSourceReferences = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.listDataSourceReferences(request), expectedError); + const actualRequest = (client.innerApiCalls.listDataSourceReferences as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.listDataSourceReferences as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataSourceReferencesStream without error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.ListDataSourceReferencesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.ListDataSourceReferencesRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + ]; + client.descriptors.page.listDataSourceReferences.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listDataSourceReferencesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.backupdr.v1.DataSourceReference[] = []; + stream.on('data', (response: protos.google.cloud.backupdr.v1.DataSourceReference) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.listDataSourceReferences.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.listDataSourceReferences, request)); + assert( + (client.descriptors.page.listDataSourceReferences.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listDataSourceReferencesStream with error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.ListDataSourceReferencesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.ListDataSourceReferencesRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.listDataSourceReferences.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listDataSourceReferencesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.backupdr.v1.DataSourceReference[] = []; + stream.on('data', (response: protos.google.cloud.backupdr.v1.DataSourceReference) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.listDataSourceReferences.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.listDataSourceReferences, request)); + assert( + (client.descriptors.page.listDataSourceReferences.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataSourceReferences without error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.ListDataSourceReferencesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.ListDataSourceReferencesRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + generateSampleMessage(new protos.google.cloud.backupdr.v1.DataSourceReference()), + ]; + client.descriptors.page.listDataSourceReferences.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.backupdr.v1.IDataSourceReference[] = []; + const iterable = client.listDataSourceReferencesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listDataSourceReferences.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.listDataSourceReferences.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataSourceReferences with error', async () => { + const client = new backupdrModule.v1.BackupDRClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.backupdr.v1.ListDataSourceReferencesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.backupdr.v1.ListDataSourceReferencesRequest', ['parent']); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.listDataSourceReferences.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDataSourceReferencesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.backupdr.v1.IDataSourceReference[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listDataSourceReferences.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.listDataSourceReferences.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('fetchDataSourceReferencesForResourceType', () => { it('invokes fetchDataSourceReferencesForResourceType without error', async () => { const client = new backupdrModule.v1.BackupDRClient({ diff --git a/packages/google-cloud-batch/CHANGELOG.md b/packages/google-cloud-batch/CHANGELOG.md index 70e812578198..f28dc04762a5 100644 --- a/packages/google-cloud-batch/CHANGELOG.md +++ b/packages/google-cloud-batch/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.0](https://github.com/googleapis/google-cloud-node/compare/batch-v2.2.1...batch-v2.3.0) (2025-11-21) + + +### Features + +* [batch] added new provisioning models ([#6902](https://github.com/googleapis/google-cloud-node/issues/6902)) ([ea62cf5](https://github.com/googleapis/google-cloud-node/commit/ea62cf5717fb0fcb8eb4d3e37260c9f89c3b8076)) + ## [2.2.1](https://github.com/googleapis/google-cloud-node/compare/batch-v2.2.0...batch-v2.2.1) (2025-10-13) diff --git a/packages/google-cloud-batch/package.json b/packages/google-cloud-batch/package.json index 0340bdf95195..04c755a1bb7f 100644 --- a/packages/google-cloud-batch/package.json +++ b/packages/google-cloud-batch/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/batch", - "version": "2.2.1", + "version": "2.3.0", "description": "Batch client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto index 14c1e576103d..99192f80876a 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto @@ -559,7 +559,14 @@ message AllocationPolicy { // old preemptible VM model (indicated by this field) is the older model, // and has been migrated to use the SPOT model as the underlying technology. // This old model will still be supported. - PREEMPTIBLE = 3; + PREEMPTIBLE = 3 [deprecated = true]; + + // Bound to the lifecycle of the reservation in which it is provisioned. + RESERVATION_BOUND = 4; + + // Instance is provisioned with DWS Flex Start and has limited max run + // duration. + FLEX_START = 5; } // Location where compute resources should be allocated for the Job. diff --git a/packages/google-cloud-batch/protos/protos.d.ts b/packages/google-cloud-batch/protos/protos.d.ts index 85eaad5308a0..1fb4b52f1b79 100644 --- a/packages/google-cloud-batch/protos/protos.d.ts +++ b/packages/google-cloud-batch/protos/protos.d.ts @@ -3494,7 +3494,9 @@ export namespace google { PROVISIONING_MODEL_UNSPECIFIED = 0, STANDARD = 1, SPOT = 2, - PREEMPTIBLE = 3 + PREEMPTIBLE = 3, + RESERVATION_BOUND = 4, + FLEX_START = 5 } } diff --git a/packages/google-cloud-batch/protos/protos.js b/packages/google-cloud-batch/protos/protos.js index 1cd8f833b274..e09fe802bf11 100644 --- a/packages/google-cloud-batch/protos/protos.js +++ b/packages/google-cloud-batch/protos/protos.js @@ -4829,6 +4829,8 @@ case 1: case 2: case 3: + case 4: + case 5: break; } if (message.taskPack != null && message.hasOwnProperty("taskPack")) @@ -4879,6 +4881,14 @@ case 3: message.provisioningModel = 3; break; + case "RESERVATION_BOUND": + case 4: + message.provisioningModel = 4; + break; + case "FLEX_START": + case 5: + message.provisioningModel = 5; + break; } if (object.taskPack != null) if ($util.Long) @@ -7723,6 +7733,8 @@ case 1: case 2: case 3: + case 4: + case 5: break; } if (message.accelerators != null && message.hasOwnProperty("accelerators")) { @@ -7793,6 +7805,14 @@ case 3: message.provisioningModel = 3; break; + case "RESERVATION_BOUND": + case 4: + message.provisioningModel = 4; + break; + case "FLEX_START": + case 5: + message.provisioningModel = 5; + break; } if (object.accelerators) { if (!Array.isArray(object.accelerators)) @@ -8958,6 +8978,8 @@ * @property {number} STANDARD=1 STANDARD value * @property {number} SPOT=2 SPOT value * @property {number} PREEMPTIBLE=3 PREEMPTIBLE value + * @property {number} RESERVATION_BOUND=4 RESERVATION_BOUND value + * @property {number} FLEX_START=5 FLEX_START value */ AllocationPolicy.ProvisioningModel = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -8965,6 +8987,8 @@ values[valuesById[1] = "STANDARD"] = 1; values[valuesById[2] = "SPOT"] = 2; values[valuesById[3] = "PREEMPTIBLE"] = 3; + values[valuesById[4] = "RESERVATION_BOUND"] = 4; + values[valuesById[5] = "FLEX_START"] = 5; return values; })(); diff --git a/packages/google-cloud-batch/protos/protos.json b/packages/google-cloud-batch/protos/protos.json index 9682e3d7d273..21166635e367 100644 --- a/packages/google-cloud-batch/protos/protos.json +++ b/packages/google-cloud-batch/protos/protos.json @@ -873,11 +873,18 @@ } }, "ProvisioningModel": { + "valuesOptions": { + "PREEMPTIBLE": { + "deprecated": true + } + }, "values": { "PROVISIONING_MODEL_UNSPECIFIED": 0, "STANDARD": 1, "SPOT": 2, - "PREEMPTIBLE": 3 + "PREEMPTIBLE": 3, + "RESERVATION_BOUND": 4, + "FLEX_START": 5 } } } diff --git a/packages/google-cloud-batch/samples/package.json b/packages/google-cloud-batch/samples/package.json index 1b057b921956..790d718a11a2 100644 --- a/packages/google-cloud-batch/samples/package.json +++ b/packages/google-cloud-batch/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@google-cloud/batch": "^2.2.1" + "@google-cloud/batch": "^2.3.0" }, "devDependencies": { "c8": "^9.0.0", diff --git a/packages/google-cloud-bigquery-analyticshub/CHANGELOG.md b/packages/google-cloud-bigquery-analyticshub/CHANGELOG.md index fc69397ac15d..fe405a849250 100644 --- a/packages/google-cloud-bigquery-analyticshub/CHANGELOG.md +++ b/packages/google-cloud-bigquery-analyticshub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.4.0](https://github.com/googleapis/google-cloud-node/compare/bigquery-analyticshub-v2.3.1...bigquery-analyticshub-v2.4.0) (2025-11-11) + + +### Features + +* [bigquery-analyticshub] add Stored Procedure Sharing support for analyticshub listings ([#6866](https://github.com/googleapis/google-cloud-node/issues/6866)) ([e4faaba](https://github.com/googleapis/google-cloud-node/commit/e4faaba9f6d3c28cf81d816fbd3758af80b6a45d)) + ## [2.3.1](https://github.com/googleapis/google-cloud-node/compare/bigquery-analyticshub-v2.3.0...bigquery-analyticshub-v2.3.1) (2025-10-13) diff --git a/packages/google-cloud-bigquery-analyticshub/package.json b/packages/google-cloud-bigquery-analyticshub/package.json index 7a0ed2c40341..96fe813fd011 100644 --- a/packages/google-cloud-bigquery-analyticshub/package.json +++ b/packages/google-cloud-bigquery-analyticshub/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/bigquery-analyticshub", - "version": "2.3.1", + "version": "2.4.0", "description": "Analytics Hub API client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/analyticshub.proto b/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/analyticshub.proto index bc5f41fd0171..19c98207bdf9 100644 --- a/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/analyticshub.proto +++ b/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/analyticshub.proto @@ -1100,6 +1100,11 @@ message Listing { RestrictedExportConfig restricted_export_config = 13 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If set, stored procedure configuration will be propagated and + // enforced on the linked dataset. + StoredProcedureConfig stored_procedure_config = 20 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Type of discovery of the listing on the discovery page. optional DiscoveryType discovery_type = 14 [(google.api.field_behavior) = OPTIONAL]; @@ -1124,6 +1129,26 @@ message Listing { [(google.api.field_behavior) = OPTIONAL]; } +// Stored procedure configuration, used to configure stored procedure sharing +// on linked dataset. +message StoredProcedureConfig { + // Enum to specify the type of stored procedure to share. + enum StoredProcedureType { + // Default value. This value is unused. + STORED_PROCEDURE_TYPE_UNSPECIFIED = 0; + + // SQL stored procedure. + SQL_PROCEDURE = 1; + } + + // Optional. If true, enable sharing of stored procedure. + bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Types of stored procedure supported to share. + repeated StoredProcedureType allowed_stored_procedure_types = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A subscription represents a subscribers' access to a particular set of // published data. It contains references to associated listings, // data exchanges, and linked datasets. diff --git a/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/pubsub.proto b/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/pubsub.proto index 4a92405d1b16..7d1be83a4345 100644 --- a/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/pubsub.proto +++ b/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/pubsub.proto @@ -162,6 +162,16 @@ message PubSubSubscription { // subscribers. Transforms are applied in the order specified. repeated MessageTransform message_transforms = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // "123/environment": "production", + // "123/costCenter": "marketing" + map tags = 26 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A policy that specifies how Pub/Sub retries message delivery. diff --git a/packages/google-cloud-bigquery-analyticshub/protos/protos.d.ts b/packages/google-cloud-bigquery-analyticshub/protos/protos.d.ts index d3610e0d9314..98189bad9038 100644 --- a/packages/google-cloud-bigquery-analyticshub/protos/protos.d.ts +++ b/packages/google-cloud-bigquery-analyticshub/protos/protos.d.ts @@ -2795,6 +2795,9 @@ export namespace google { /** Listing restrictedExportConfig */ restrictedExportConfig?: (google.cloud.bigquery.analyticshub.v1.Listing.IRestrictedExportConfig|null); + /** Listing storedProcedureConfig */ + storedProcedureConfig?: (google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig|null); + /** Listing discoveryType */ discoveryType?: (google.cloud.bigquery.analyticshub.v1.DiscoveryType|keyof typeof google.cloud.bigquery.analyticshub.v1.DiscoveryType|null); @@ -2862,6 +2865,9 @@ export namespace google { /** Listing restrictedExportConfig. */ public restrictedExportConfig?: (google.cloud.bigquery.analyticshub.v1.Listing.IRestrictedExportConfig|null); + /** Listing storedProcedureConfig. */ + public storedProcedureConfig?: (google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig|null); + /** Listing discoveryType. */ public discoveryType?: (google.cloud.bigquery.analyticshub.v1.DiscoveryType|keyof typeof google.cloud.bigquery.analyticshub.v1.DiscoveryType|null); @@ -3881,6 +3887,118 @@ export namespace google { } } + /** Properties of a StoredProcedureConfig. */ + interface IStoredProcedureConfig { + + /** StoredProcedureConfig enabled */ + enabled?: (boolean|null); + + /** StoredProcedureConfig allowedStoredProcedureTypes */ + allowedStoredProcedureTypes?: (google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType[]|null); + } + + /** Represents a StoredProcedureConfig. */ + class StoredProcedureConfig implements IStoredProcedureConfig { + + /** + * Constructs a new StoredProcedureConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig); + + /** StoredProcedureConfig enabled. */ + public enabled: boolean; + + /** StoredProcedureConfig allowedStoredProcedureTypes. */ + public allowedStoredProcedureTypes: google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType[]; + + /** + * Creates a new StoredProcedureConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns StoredProcedureConfig instance + */ + public static create(properties?: google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig): google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig; + + /** + * Encodes the specified StoredProcedureConfig message. Does not implicitly {@link google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.verify|verify} messages. + * @param message StoredProcedureConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StoredProcedureConfig message, length delimited. Does not implicitly {@link google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.verify|verify} messages. + * @param message StoredProcedureConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StoredProcedureConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StoredProcedureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig; + + /** + * Decodes a StoredProcedureConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StoredProcedureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig; + + /** + * Verifies a StoredProcedureConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StoredProcedureConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StoredProcedureConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig; + + /** + * Creates a plain object from a StoredProcedureConfig message. Also converts values to other types if specified. + * @param message StoredProcedureConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StoredProcedureConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StoredProcedureConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StoredProcedureConfig { + + /** StoredProcedureType enum. */ + enum StoredProcedureType { + STORED_PROCEDURE_TYPE_UNSPECIFIED = 0, + SQL_PROCEDURE = 1 + } + } + /** Properties of a Subscription. */ interface ISubscription { @@ -7467,6 +7585,9 @@ export namespace google { /** PubSubSubscription messageTransforms */ messageTransforms?: (google.cloud.bigquery.analyticshub.v1.IMessageTransform[]|null); + + /** PubSubSubscription tags */ + tags?: ({ [k: string]: string }|null); } /** Represents a PubSubSubscription. */ @@ -7526,6 +7647,9 @@ export namespace google { /** PubSubSubscription messageTransforms. */ public messageTransforms: google.cloud.bigquery.analyticshub.v1.IMessageTransform[]; + /** PubSubSubscription tags. */ + public tags: { [k: string]: string }; + /** * Creates a new PubSubSubscription instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-bigquery-analyticshub/protos/protos.js b/packages/google-cloud-bigquery-analyticshub/protos/protos.js index a3b912c70a90..feaf31373779 100644 --- a/packages/google-cloud-bigquery-analyticshub/protos/protos.js +++ b/packages/google-cloud-bigquery-analyticshub/protos/protos.js @@ -6134,6 +6134,7 @@ * @property {google.cloud.bigquery.analyticshub.v1.IPublisher|null} [publisher] Listing publisher * @property {string|null} [requestAccess] Listing requestAccess * @property {google.cloud.bigquery.analyticshub.v1.Listing.IRestrictedExportConfig|null} [restrictedExportConfig] Listing restrictedExportConfig + * @property {google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig|null} [storedProcedureConfig] Listing storedProcedureConfig * @property {google.cloud.bigquery.analyticshub.v1.DiscoveryType|null} [discoveryType] Listing discoveryType * @property {google.cloud.bigquery.analyticshub.v1.SharedResourceType|null} [resourceType] Listing resourceType * @property {google.cloud.bigquery.analyticshub.v1.Listing.ICommercialInfo|null} [commercialInfo] Listing commercialInfo @@ -6269,6 +6270,14 @@ */ Listing.prototype.restrictedExportConfig = null; + /** + * Listing storedProcedureConfig. + * @member {google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig|null|undefined} storedProcedureConfig + * @memberof google.cloud.bigquery.analyticshub.v1.Listing + * @instance + */ + Listing.prototype.storedProcedureConfig = null; + /** * Listing discoveryType. * @member {google.cloud.bigquery.analyticshub.v1.DiscoveryType|null|undefined} discoveryType @@ -6413,6 +6422,8 @@ writer.uint32(/* id 18, wireType 0 =*/144).bool(message.logLinkedDatasetQueryUserEmail); if (message.allowOnlyMetadataSharing != null && Object.hasOwnProperty.call(message, "allowOnlyMetadataSharing")) writer.uint32(/* id 19, wireType 0 =*/152).bool(message.allowOnlyMetadataSharing); + if (message.storedProcedureConfig != null && Object.hasOwnProperty.call(message, "storedProcedureConfig")) + $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.encode(message.storedProcedureConfig, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); return writer; }; @@ -6512,6 +6523,10 @@ message.restrictedExportConfig = $root.google.cloud.bigquery.analyticshub.v1.Listing.RestrictedExportConfig.decode(reader, reader.uint32()); break; } + case 20: { + message.storedProcedureConfig = $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.decode(reader, reader.uint32()); + break; + } case 14: { message.discoveryType = reader.int32(); break; @@ -6661,6 +6676,11 @@ if (error) return "restrictedExportConfig." + error; } + if (message.storedProcedureConfig != null && message.hasOwnProperty("storedProcedureConfig")) { + var error = $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.verify(message.storedProcedureConfig); + if (error) + return "storedProcedureConfig." + error; + } if (message.discoveryType != null && message.hasOwnProperty("discoveryType")) { properties._discoveryType = 1; switch (message.discoveryType) { @@ -6869,6 +6889,11 @@ throw TypeError(".google.cloud.bigquery.analyticshub.v1.Listing.restrictedExportConfig: object expected"); message.restrictedExportConfig = $root.google.cloud.bigquery.analyticshub.v1.Listing.RestrictedExportConfig.fromObject(object.restrictedExportConfig); } + if (object.storedProcedureConfig != null) { + if (typeof object.storedProcedureConfig !== "object") + throw TypeError(".google.cloud.bigquery.analyticshub.v1.Listing.storedProcedureConfig: object expected"); + message.storedProcedureConfig = $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.fromObject(object.storedProcedureConfig); + } switch (object.discoveryType) { default: if (typeof object.discoveryType === "number") { @@ -6955,6 +6980,7 @@ object.requestAccess = ""; object.restrictedExportConfig = null; object.resourceType = options.enums === String ? "SHARED_RESOURCE_TYPE_UNSPECIFIED" : 0; + object.storedProcedureConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -7015,6 +7041,8 @@ if (options.oneofs) object._allowOnlyMetadataSharing = "allowOnlyMetadataSharing"; } + if (message.storedProcedureConfig != null && message.hasOwnProperty("storedProcedureConfig")) + object.storedProcedureConfig = $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.toObject(message.storedProcedureConfig, options); return object; }; @@ -9346,6 +9374,292 @@ return Listing; })(); + v1.StoredProcedureConfig = (function() { + + /** + * Properties of a StoredProcedureConfig. + * @memberof google.cloud.bigquery.analyticshub.v1 + * @interface IStoredProcedureConfig + * @property {boolean|null} [enabled] StoredProcedureConfig enabled + * @property {Array.|null} [allowedStoredProcedureTypes] StoredProcedureConfig allowedStoredProcedureTypes + */ + + /** + * Constructs a new StoredProcedureConfig. + * @memberof google.cloud.bigquery.analyticshub.v1 + * @classdesc Represents a StoredProcedureConfig. + * @implements IStoredProcedureConfig + * @constructor + * @param {google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig=} [properties] Properties to set + */ + function StoredProcedureConfig(properties) { + this.allowedStoredProcedureTypes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StoredProcedureConfig enabled. + * @member {boolean} enabled + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @instance + */ + StoredProcedureConfig.prototype.enabled = false; + + /** + * StoredProcedureConfig allowedStoredProcedureTypes. + * @member {Array.} allowedStoredProcedureTypes + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @instance + */ + StoredProcedureConfig.prototype.allowedStoredProcedureTypes = $util.emptyArray; + + /** + * Creates a new StoredProcedureConfig instance using the specified properties. + * @function create + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @static + * @param {google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig=} [properties] Properties to set + * @returns {google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig} StoredProcedureConfig instance + */ + StoredProcedureConfig.create = function create(properties) { + return new StoredProcedureConfig(properties); + }; + + /** + * Encodes the specified StoredProcedureConfig message. Does not implicitly {@link google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @static + * @param {google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig} message StoredProcedureConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StoredProcedureConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.allowedStoredProcedureTypes != null && message.allowedStoredProcedureTypes.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.allowedStoredProcedureTypes.length; ++i) + writer.int32(message.allowedStoredProcedureTypes[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified StoredProcedureConfig message, length delimited. Does not implicitly {@link google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @static + * @param {google.cloud.bigquery.analyticshub.v1.IStoredProcedureConfig} message StoredProcedureConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StoredProcedureConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StoredProcedureConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig} StoredProcedureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StoredProcedureConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + if (!(message.allowedStoredProcedureTypes && message.allowedStoredProcedureTypes.length)) + message.allowedStoredProcedureTypes = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.allowedStoredProcedureTypes.push(reader.int32()); + } else + message.allowedStoredProcedureTypes.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StoredProcedureConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig} StoredProcedureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StoredProcedureConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StoredProcedureConfig message. + * @function verify + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StoredProcedureConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.allowedStoredProcedureTypes != null && message.hasOwnProperty("allowedStoredProcedureTypes")) { + if (!Array.isArray(message.allowedStoredProcedureTypes)) + return "allowedStoredProcedureTypes: array expected"; + for (var i = 0; i < message.allowedStoredProcedureTypes.length; ++i) + switch (message.allowedStoredProcedureTypes[i]) { + default: + return "allowedStoredProcedureTypes: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a StoredProcedureConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig} StoredProcedureConfig + */ + StoredProcedureConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig) + return object; + var message = new $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.allowedStoredProcedureTypes) { + if (!Array.isArray(object.allowedStoredProcedureTypes)) + throw TypeError(".google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.allowedStoredProcedureTypes: array expected"); + message.allowedStoredProcedureTypes = []; + for (var i = 0; i < object.allowedStoredProcedureTypes.length; ++i) + switch (object.allowedStoredProcedureTypes[i]) { + default: + if (typeof object.allowedStoredProcedureTypes[i] === "number") { + message.allowedStoredProcedureTypes[i] = object.allowedStoredProcedureTypes[i]; + break; + } + case "STORED_PROCEDURE_TYPE_UNSPECIFIED": + case 0: + message.allowedStoredProcedureTypes[i] = 0; + break; + case "SQL_PROCEDURE": + case 1: + message.allowedStoredProcedureTypes[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a StoredProcedureConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @static + * @param {google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig} message StoredProcedureConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StoredProcedureConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.allowedStoredProcedureTypes = []; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.allowedStoredProcedureTypes && message.allowedStoredProcedureTypes.length) { + object.allowedStoredProcedureTypes = []; + for (var j = 0; j < message.allowedStoredProcedureTypes.length; ++j) + object.allowedStoredProcedureTypes[j] = options.enums === String ? $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType[message.allowedStoredProcedureTypes[j]] === undefined ? message.allowedStoredProcedureTypes[j] : $root.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType[message.allowedStoredProcedureTypes[j]] : message.allowedStoredProcedureTypes[j]; + } + return object; + }; + + /** + * Converts this StoredProcedureConfig to JSON. + * @function toJSON + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @instance + * @returns {Object.} JSON object + */ + StoredProcedureConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StoredProcedureConfig + * @function getTypeUrl + * @memberof google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StoredProcedureConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig"; + }; + + /** + * StoredProcedureType enum. + * @name google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig.StoredProcedureType + * @enum {number} + * @property {number} STORED_PROCEDURE_TYPE_UNSPECIFIED=0 STORED_PROCEDURE_TYPE_UNSPECIFIED value + * @property {number} SQL_PROCEDURE=1 SQL_PROCEDURE value + */ + StoredProcedureConfig.StoredProcedureType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STORED_PROCEDURE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "SQL_PROCEDURE"] = 1; + return values; + })(); + + return StoredProcedureConfig; + })(); + v1.Subscription = (function() { /** @@ -17766,6 +18080,7 @@ * @property {boolean|null} [detached] PubSubSubscription detached * @property {boolean|null} [enableExactlyOnceDelivery] PubSubSubscription enableExactlyOnceDelivery * @property {Array.|null} [messageTransforms] PubSubSubscription messageTransforms + * @property {Object.|null} [tags] PubSubSubscription tags */ /** @@ -17779,6 +18094,7 @@ function PubSubSubscription(properties) { this.labels = {}; this.messageTransforms = []; + this.tags = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17913,6 +18229,14 @@ */ PubSubSubscription.prototype.messageTransforms = $util.emptyArray; + /** + * PubSubSubscription tags. + * @member {Object.} tags + * @memberof google.cloud.bigquery.analyticshub.v1.PubSubSubscription + * @instance + */ + PubSubSubscription.prototype.tags = $util.emptyObject; + /** * Creates a new PubSubSubscription instance using the specified properties. * @function create @@ -17971,6 +18295,9 @@ if (message.messageTransforms != null && message.messageTransforms.length) for (var i = 0; i < message.messageTransforms.length; ++i) $root.google.cloud.bigquery.analyticshub.v1.MessageTransform.encode(message.messageTransforms[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 26, wireType 2 =*/210).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); return writer; }; @@ -18092,6 +18419,29 @@ message.messageTransforms.push($root.google.cloud.bigquery.analyticshub.v1.MessageTransform.decode(reader, reader.uint32())); break; } + case 26: { + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -18200,6 +18550,14 @@ return "messageTransforms." + error; } } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } return null; }; @@ -18281,6 +18639,13 @@ message.messageTransforms[i] = $root.google.cloud.bigquery.analyticshub.v1.MessageTransform.fromObject(object.messageTransforms[i]); } } + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".google.cloud.bigquery.analyticshub.v1.PubSubSubscription.tags: object expected"); + message.tags = {}; + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); + } return message; }; @@ -18299,8 +18664,10 @@ var object = {}; if (options.arrays || options.defaults) object.messageTransforms = []; - if (options.objects || options.defaults) + if (options.objects || options.defaults) { object.labels = {}; + object.tags = {}; + } if (options.defaults) { object.name = ""; object.pushConfig = null; @@ -18356,6 +18723,11 @@ for (var j = 0; j < message.messageTransforms.length; ++j) object.messageTransforms[j] = $root.google.cloud.bigquery.analyticshub.v1.MessageTransform.toObject(message.messageTransforms[j], options); } + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (var j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } return object; }; diff --git a/packages/google-cloud-bigquery-analyticshub/protos/protos.json b/packages/google-cloud-bigquery-analyticshub/protos/protos.json index 477ce192f4b4..4838746a49bb 100644 --- a/packages/google-cloud-bigquery-analyticshub/protos/protos.json +++ b/packages/google-cloud-bigquery-analyticshub/protos/protos.json @@ -1278,6 +1278,13 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "storedProcedureConfig": { + "type": "StoredProcedureConfig", + "id": 20, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "discoveryType": { "type": "DiscoveryType", "id": 14, @@ -1606,6 +1613,33 @@ } } }, + "StoredProcedureConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "allowedStoredProcedureTypes": { + "rule": "repeated", + "type": "StoredProcedureType", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "StoredProcedureType": { + "values": { + "STORED_PROCEDURE_TYPE_UNSPECIFIED": 0, + "SQL_PROCEDURE": 1 + } + } + } + }, "Subscription": { "options": { "(google.api.resource).type": "analyticshub.googleapis.com/Subscription", @@ -2439,6 +2473,14 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "tags": { + "keyType": "string", + "type": "string", + "id": 26, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, diff --git a/packages/google-cloud-bigquery-analyticshub/samples/package.json b/packages/google-cloud-bigquery-analyticshub/samples/package.json index 298053a638f0..8ed9f794b186 100644 --- a/packages/google-cloud-bigquery-analyticshub/samples/package.json +++ b/packages/google-cloud-bigquery-analyticshub/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@google-cloud/bigquery-analyticshub": "^2.3.1" + "@google-cloud/bigquery-analyticshub": "^2.4.0" }, "devDependencies": { "c8": "^9.0.0", diff --git a/packages/google-cloud-capacityplanner/CHANGELOG.md b/packages/google-cloud-capacityplanner/CHANGELOG.md index 32a4076e3c73..96ebec12c4d3 100644 --- a/packages/google-cloud-capacityplanner/CHANGELOG.md +++ b/packages/google-cloud-capacityplanner/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.1.2](https://github.com/googleapis/google-cloud-node/compare/capacityplanner-v0.1.1...capacityplanner-v0.1.2) (2025-11-11) + + +### Bug Fixes + +* Doc linter issues ([e1c953a](https://github.com/googleapis/google-cloud-node/commit/e1c953ae47d7f6697bd9f048d82d5584239ba0d1)) + ## [0.1.1](https://github.com/googleapis/google-cloud-node/compare/capacityplanner-v0.1.0...capacityplanner-v0.1.1) (2025-10-13) diff --git a/packages/google-cloud-capacityplanner/README.md b/packages/google-cloud-capacityplanner/README.md index 9dee976e7e68..0aab016d96cd 100644 --- a/packages/google-cloud-capacityplanner/README.md +++ b/packages/google-cloud-capacityplanner/README.md @@ -142,4 +142,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local -[//]: # "partials.introduction" \ No newline at end of file +[//]: # "partials.introduction" diff --git a/packages/google-cloud-capacityplanner/package.json b/packages/google-cloud-capacityplanner/package.json index 86ed031af8bc..01ae48dfd1bd 100644 --- a/packages/google-cloud-capacityplanner/package.json +++ b/packages/google-cloud-capacityplanner/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/capacityplanner", - "version": "0.1.1", + "version": "0.1.2", "description": "Capacity Planner API client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-compute/CHANGELOG.md b/packages/google-cloud-compute/CHANGELOG.md index a0581fb0d775..8e84c48fa3bb 100644 --- a/packages/google-cloud-compute/CHANGELOG.md +++ b/packages/google-cloud-compute/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/compute?activeTab=versions +## [6.5.0](https://github.com/googleapis/google-cloud-node/compare/compute-v6.4.0...compute-v6.5.0) (2025-11-21) + + +### Features + +* [compute] Update Compute Engine v1beta API to revision 20251019 ([#6869](https://github.com/googleapis/google-cloud-node/issues/6869)) ([68d767e](https://github.com/googleapis/google-cloud-node/commit/68d767e5690cee2f953657ef74412d18212e056e)) + ## [6.4.0](https://github.com/googleapis/google-cloud-node/compare/compute-v6.3.0...compute-v6.4.0) (2025-10-13) diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index cdbaebe52b71..499431160890 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -941,6 +941,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.update.js) | | add signed url key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.add_signed_url_key.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete.js) | | delete signed url key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete_signed_url_key.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.get.js) | @@ -1085,6 +1086,8 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.list.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.patch.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/global_vm_extension_policies.aggregated_list.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/global_vm_extension_policies.get.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/health_checks.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/health_checks.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/health_checks.get.js) | @@ -1118,6 +1121,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | delete instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_instances.js) | | delete per instance configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_per_instance_configs.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.get.js) | +| get available accelerator topologies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.get_available_accelerator_topologies.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list.js) | | list errors | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_errors.js) | @@ -1432,6 +1436,15 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.patch.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.update.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.get.js) | +| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.get_iam_policy.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.list.js) | +| list usable | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.list_usable.js) | +| patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.patch.js) | +| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.set_iam_policy.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.test_iam_permissions.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.get.js) | | get health | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.get_health.js) | @@ -1451,6 +1464,13 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update.js) | | update reservations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update_reservations.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.aggregated_list.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.get.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.list.js) | +| patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.patch.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.test_iam_permissions.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_disk_settings.get.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_disk_settings.patch.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_disk_types.get.js) | @@ -1472,6 +1492,13 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | stop group async replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_disks.stop_group_async_replication.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_disks.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_disks.update.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.aggregated_list.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.get.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.list.js) | +| patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.patch.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.test_iam_permissions.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.insert.js) | @@ -1657,12 +1684,18 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/regions.get.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/regions.list.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.get.js) | +| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.get_iam_policy.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.list.js) | | perform maintenance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.perform_maintenance.js) | +| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.set_iam_policy.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.test_iam_permissions.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get.js) | +| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get_iam_policy.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.list.js) | | perform maintenance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.perform_maintenance.js) | | report faulty | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.report_faulty.js) | +| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.set_iam_policy.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.test_iam_permissions.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservations.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservations.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservations.get.js) | @@ -1884,6 +1917,11 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.get.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.list.js) | | wait | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.wait.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.get.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.list.js) | +| update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.update.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zones.get.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/zones.list.js) | | aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1small/addresses.aggregated_list.js) | diff --git a/packages/google-cloud-compute/package.json b/packages/google-cloud-compute/package.json index b3cde62baae1..7c4155404af6 100644 --- a/packages/google-cloud-compute/package.json +++ b/packages/google-cloud-compute/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/compute", "description": "Google Compute Engine Client Library for Node.js", - "version": "6.4.0", + "version": "6.5.0", "license": "Apache-2.0", "author": "Google LLC", "engines": { diff --git a/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto index 081f27b72a48..c1c6642abf0f 100644 --- a/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto +++ b/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1beta.json -// Source file revision: 20250916 +// Source file revision: 20251019 // API name: compute // API version: v1beta @@ -43,18 +43,29 @@ option ruby_package = "Google::Cloud::Compute::V1beta"; // // Messages // -// Contains the configurations necessary to generate a signature for access to private storage buckets that support Signature Version 4 for authentication. The service name for generating the authentication header will always default to 's3'. +// Contains the configurations necessary to generate a signature for access to +// private storage buckets that support Signature Version 4 for authentication. +// The service name for generating the authentication header will always default +// to 's3'. message AWSV4Signature { - // The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST API GET request. @InputOnly + // The access key used for s3 bucket authentication. Required for updating or + // creating a backend that uses AWS v4 signature authentication, but will not + // be returned as part of the configuration when queried with a REST API GET + // request. + // + // @InputOnly optional string access_key = 468922628; // The identifier of an access key used for s3 bucket authentication. optional string access_key_id = 292975158; - // The optional version identifier for the access key. You can use this to keep track of different iterations of your access key. + // The optional version identifier for the access key. You can use this to + // keep track of different iterations of your access key. optional string access_key_version = 80261277; - // The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI. + // The name of the cloud region of your origin. This is a free-form field with + // the name of the region your cloud uses to host your origin. For example, + // "us-east-1" for AWS or "us-ashburn-1" for OCI. optional string origin_region = 265305645; } @@ -73,10 +84,23 @@ message AbandonInstancesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -104,24 +128,93 @@ message AbandonInstancesRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersAbandonInstancesRequest region_instance_group_managers_abandon_instances_request_resource = 488499491 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } -// A specification of the type and number of accelerator cards attached to the instance. +// A specification of the type and number of accelerator cards attached to the +// instance. message AcceleratorConfig { // The number of the guest accelerator cards exposed to this instance. optional int32 accelerator_count = 504879675; - // Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types. + // Full or partial URL of the accelerator type resource to attach to this + // instance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 + // If you are creating an instance template, specify only the + // accelerator name. + // See GPUs on Compute Engine + // for a full list of accelerator types. optional string accelerator_type = 138031246; } -// Represents an Accelerator Type resource. Google Cloud Platform provides graphics processing units (accelerators) that you can add to VM instances to improve or accelerate performance when working with intensive workloads. For more information, read GPUs on Compute Engine. +// Info for accelerator topologies within a densely packed reservation. +message AcceleratorTopologiesInfo { + // Info for each accelerator topology. + repeated AcceleratorTopologiesInfoAcceleratorTopologyInfo accelerator_topology_infos = 219451401; + +} + +// Info for a slice of a given topology. +message AcceleratorTopologiesInfoAcceleratorTopologyInfo { + // The accelerator topology. + optional string accelerator_topology = 389323203; + + // Info for each topology state. + repeated AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState info_per_topology_states = 183777695; + +} + +// Info for each topology state. +message AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState { + // The state of the accelerator topology. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // The accelerator topology is available. + AVAILABLE = 442079913; + + // The accelerator topology is running. + RUNNING = 121282975; + + // The state of the topology is unspecified. + TOPOLOGY_STATE_UNSPECIFIED = 188327545; + + // The accelerator topology is unhealthy. + UNHEALTHY = 462118084; + + } + + // The number of accelerator topologies in this state. + optional int32 count = 94851343; + + // The state of the accelerator topology. + // Check the State enum for the list of possible values. + optional string state = 109757585; + +} + +// Represents an Accelerator Type resource. +// +// Google Cloud Platform provides graphics processing units (accelerators) that +// you can add to VM instances to improve or accelerate performance when working +// with intensive workloads. For more information, readGPUs on Compute Engine. message AcceleratorType { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 text format. optional string creation_timestamp = 30525366; // [Output Only] The deprecation status associated with this accelerator type. @@ -130,10 +223,11 @@ message AcceleratorType { // [Output Only] An optional textual description of the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] The type of the resource. Always compute#acceleratorType for accelerator types. + // [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. optional string kind = 3292052; // [Output Only] Maximum number of accelerator cards allowed per instance. @@ -145,7 +239,10 @@ message AcceleratorType { // [Output Only] Server-defined, fully qualified URL for this resource. optional string self_link = 456214797; - // [Output Only] The name of the zone where the accelerator type resides, such as us-central1-a. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] The name of the zone where the accelerator type resides, + // such as us-central1-a. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string zone = 3744684; } @@ -158,10 +255,15 @@ message AcceleratorTypeAggregatedList { // A list of AcceleratorTypesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#acceleratorTypeAggregatedList for aggregated lists of accelerator types. + // [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for aggregated lists of + // accelerator types. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -183,10 +285,14 @@ message AcceleratorTypeList { // A list of AcceleratorType resources. repeated AcceleratorType items = 100526016; - // [Output Only] Type of resource. Always compute#acceleratorTypeList for lists of accelerator types. + // [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator types. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -202,7 +308,8 @@ message AcceleratorTypesScopedList { // [Output Only] A list of accelerator types contained in this scope. repeated AcceleratorType accelerator_types = 520872357; - // [Output Only] An informational warning that appears when the accelerator types list is empty. + // [Output Only] An informational warning that appears when the accelerator + // types list is empty. optional Warning warning = 50704284; } @@ -212,14 +319,23 @@ message Accelerators { // Number of accelerator cards exposed to the guest. optional int32 guest_accelerator_count = 479079316; - // The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4. + // The accelerator type resource name, not a full URL, e.g.nvidia-tesla-t4. optional string guest_accelerator_type = 293064725; } -// An access configuration attached to an instance's network interface. Only one access config per instance is supported. +// An access configuration attached to an instance's network interface. +// Only one access config per instance is supported. message AccessConfig { - // This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP. + // This signifies the networking tier used for configuring this access + // configuration and can only take the following values: PREMIUM,STANDARD. + // + // If an AccessConfig is specified without a valid external IP address, an + // ephemeral IP will be created with this networkTier. + // + // If an AccessConfig with a valid external IP address is specified, it must + // match that of the networkTier associated with the Address resource owning + // that IP. enum NetworkTier { // A value indicating that the enum field is not set. UNDEFINED_NETWORK_TIER = 0; @@ -227,18 +343,22 @@ message AccessConfig { // Public internet quality with fixed bandwidth. FIXED_STANDARD = 310464328; - // High quality, Google-grade network tier, support for all networking products. + // High quality, Google-grade network tier, support for all networking + // products. PREMIUM = 399530551; - // Public internet quality, only limited support for other networking products. + // Public internet quality, only limited support for other networking + // products. STANDARD = 484642493; - // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured. + // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier + // is expired or not configured. STANDARD_OVERRIDES_FIXED_STANDARD = 465847234; } - // The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6. + // The type of configuration. In accessConfigs (IPv4), the + // default and only option is ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -249,35 +369,66 @@ message AccessConfig { } - // Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork. + // Applies to ipv6AccessConfigs only. + // The first IPv6 address of the external IPv6 range associated + // with this instance, prefix length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To + // use a static external IP address, it must be unused and in the same region + // as the instance's zone. If not specified, Google Cloud will automatically + // assign an external IPv6 address from the instance's subnetwork. optional string external_ipv6 = 532703707; - // Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range. + // Applies to ipv6AccessConfigs only. The prefix length of the + // external IPv6 range. optional int32 external_ipv6_prefix_length = 425672143; - // [Output Only] Type of the resource. Always compute#accessConfig for access configs. + // [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. optional string kind = 3292052; - // The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6. + // The name of this access configuration. In accessConfigs + // (IPv4), the default and recommended name is External NAT, but + // you can use any arbitrary string, such as My external IP orNetwork Access. In ipv6AccessConfigs, the + // recommend name is External IPv6. optional string name = 3373707; - // Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. + // Applies to accessConfigs (IPv4) only. Anexternal IP + // address associated with this instance. Specify an unused static + // external IP address available to the project or leave this field undefined + // to use an IP from a shared ephemeral IP address pool. If you specify a + // static external IP address, it must live in the same region as the zone of + // the instance. optional string nat_i_p = 117634556; - // This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP. + // This signifies the networking tier used for configuring this access + // configuration and can only take the following values: PREMIUM,STANDARD. + // + // If an AccessConfig is specified without a valid external IP address, an + // ephemeral IP will be created with this networkTier. + // + // If an AccessConfig with a valid external IP address is specified, it must + // match that of the networkTier associated with the Address resource owning + // that IP. // Check the NetworkTier enum for the list of possible values. optional string network_tier = 517397843; - // The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be created for first IP in associated external IPv6 range. + // The DNS domain name for the public PTR record. + // + // You can set this field only if the `setPublicPtr` field is enabled inaccessConfig. If this field is unspecified inipv6AccessConfig, a default PTR record will be created for + // first IP in associated external IPv6 range. optional string public_ptr_domain_name = 316599167; - // The resource URL for the security policy associated with this access config. + // The resource URL for the security policy associated with this access + // config. optional string security_policy = 171082513; - // Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated. + // Specifies whether a public DNS 'PTR' record should be created to map the + // external IP address of the instance to a DNS domain name. + // + // This field is not used in ipv6AccessConfig. A default PTR + // record will be created if the VM has external IPv6 range associated. optional bool set_public_ptr = 523870229; - // The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6. + // The type of configuration. In accessConfigs (IPv4), the + // default and only option is ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -300,7 +451,19 @@ message AddAccessConfigInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -319,10 +482,24 @@ message AddAssociationFirewallPolicyRequest { // The body resource for this request FirewallPolicyAssociation firewall_policy_association_resource = 259546170 [(google.api.field_behavior) = REQUIRED]; - // Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists. + // Indicates whether or not to replace it if an association of the attachment + // already exists. This is false by default, in which case an error will be + // returned if an association already exists. optional bool replace_existing_association = 209541240; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -341,20 +518,48 @@ message AddAssociationNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists. + // Indicates whether or not to replace it if an association of the attachment + // already exists. This is false by default, in which case an error will be + // returned if an association already exists. optional bool replace_existing_association = 209541240; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for OrganizationSecurityPolicies.AddAssociation. See the method description for details. message AddAssociationOrganizationSecurityPolicyRequest { - // Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists. + // Indicates whether or not to replace it if an association of the attachment + // already exists. This is false by default, in which case an error will be + // returned if an association already exists. optional bool replace_existing_association = 209541240; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -367,7 +572,9 @@ message AddAssociationOrganizationSecurityPolicyRequest { // A request message for RegionNetworkFirewallPolicies.AddAssociation. See the method description for details. message AddAssociationRegionNetworkFirewallPolicyRequest { - // Name of the firewall policy associated with the target network to swap association with. This field is mutually exclusive with 'replace_existing_association'. + // Name of the firewall policy associated with the target network to swap + // association with. This field is mutually exclusive with + // 'replace_existing_association'. optional string associated_policy_to_be_replaced = 240901404; // Name of the firewall policy to update. @@ -388,10 +595,24 @@ message AddAssociationRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // Indicates whether or not to replace it if an association already exists. This is false by default, in which case an error will be returned if an association already exists. + // Indicates whether or not to replace it if an association already exists. + // This is false by default, in which case an error will be returned if an + // association already exists. optional bool replace_existing_association = 209541240; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -416,7 +637,19 @@ message AddAssociationRegionNetworkPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -435,7 +668,19 @@ message AddHealthCheckTargetPoolRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the target pool to add a health check to. @@ -460,7 +705,19 @@ message AddInstanceTargetPoolRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetPool resource to add instances to. @@ -485,10 +742,23 @@ message AddInstancesInstanceGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the instance group is located. + // The name of the zone + // where the instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -498,7 +768,8 @@ message AddInstancesInstanceGroupRequest { // A request message for Instances.AddNetworkInterface. See the method description for details. message AddNetworkInterfaceInstanceRequest { - // The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer. + // The instance name for this request stored as resource_id. + // Name should conform to RFC1035 or be an unsigned long integer. string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -510,7 +781,19 @@ message AddNetworkInterfaceInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -535,7 +818,19 @@ message AddNodesNodeGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -554,7 +849,19 @@ message AddPacketMirroringRuleFirewallPolicyRequest { // The body resource for this request FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -567,10 +874,12 @@ message AddPacketMirroringRuleNetworkFirewallPolicyRequest { // The body resource for this request FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(google.api.field_behavior) = REQUIRED]; - // When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + // When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + // This field is exclusive with rule.priority. optional int32 max_priority = 329635359; - // When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + // When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + // This field is exclusive with rule.priority. optional int32 min_priority = 267190513; // Project ID for this request. @@ -579,7 +888,19 @@ message AddPacketMirroringRuleNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -598,7 +919,19 @@ message AddPeeringNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -617,7 +950,19 @@ message AddResourcePoliciesDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -642,7 +987,19 @@ message AddResourcePoliciesInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -673,7 +1030,19 @@ message AddResourcePoliciesRegionDiskRequest { // The body resource for this request RegionDisksAddResourcePoliciesRequest region_disks_add_resource_policies_request_resource = 284196750 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -686,7 +1055,19 @@ message AddRuleFirewallPolicyRequest { // The body resource for this request FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -699,10 +1080,12 @@ message AddRuleNetworkFirewallPolicyRequest { // The body resource for this request FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(google.api.field_behavior) = REQUIRED]; - // When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + // When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + // This field is exclusive with rule.priority. optional int32 max_priority = 329635359; - // When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + // When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + // This field is exclusive with rule.priority. optional int32 min_priority = 267190513; // Project ID for this request. @@ -711,14 +1094,38 @@ message AddRuleNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for OrganizationSecurityPolicies.AddRule. See the method description for details. message AddRuleOrganizationSecurityPolicyRequest { - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -737,10 +1144,12 @@ message AddRuleRegionNetworkFirewallPolicyRequest { // The body resource for this request FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(google.api.field_behavior) = REQUIRED]; - // When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + // When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + // This field is exclusive with rule.priority. optional int32 max_priority = 329635359; - // When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + // When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + // This field is exclusive with rule.priority. optional int32 min_priority = 267190513; // Project ID for this request. @@ -755,7 +1164,19 @@ message AddRuleRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -806,7 +1227,8 @@ message AddRuleSecurityPolicyRequest { // A request message for BackendBuckets.AddSignedUrlKey. See the method description for details. message AddSignedUrlKeyBackendBucketRequest { - // Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. + // Name of the BackendBucket resource to which the Signed URL Key should be + // added. The name should conform to RFC1035. string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -815,7 +1237,19 @@ message AddSignedUrlKeyBackendBucketRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -825,7 +1259,8 @@ message AddSignedUrlKeyBackendBucketRequest { // A request message for BackendServices.AddSignedUrlKey. See the method description for details. message AddSignedUrlKeyBackendServiceRequest { - // Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. + // Name of the BackendService resource to which the Signed URL Key should be + // added. The name should conform to RFC1035. string backend_service = 306946058 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -834,7 +1269,19 @@ message AddSignedUrlKeyBackendServiceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -862,14 +1309,36 @@ message AddTrafficClassificationRuleRegionNetworkPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } -// Represents an IP Address resource. Google Compute Engine has two IP Address resources: * [Global (external and internal)](https://cloud.google.com/compute/docs/reference/rest/beta/globalAddresses) * [Regional (external and internal)](https://cloud.google.com/compute/docs/reference/rest/beta/addresses) For more information, see Reserving a static external IP address. +// Represents an IP Address resource. +// +// Google Compute Engine has two IP Address resources: +// +// * [Global (external and +// internal)](https://cloud.google.com/compute/docs/reference/rest/beta/globalAddresses) +// * [Regional (external and +// internal)](https://cloud.google.com/compute/docs/reference/rest/beta/addresses) +// +// For more information, see +// Reserving a static external IP address. message Address { - // The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. + // The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL. enum AddressType { // A value indicating that the enum field is not set. UNDEFINED_ADDRESS_TYPE = 0; @@ -877,14 +1346,15 @@ message Address { // A publicly visible external IP address. EXTERNAL = 35607499; - // A private network IP address, for use with an Instance or Internal Load Balancer forwarding rule. + // A private network IP address, for use with an Instance or Internal Load + // Balancer forwarding rule. INTERNAL = 279295677; UNSPECIFIED_TYPE = 53933922; } - // The IP version that will be used by this address. Valid options are IPV4 or IPV6. + // The IP version that will be used by this address. Valid options areIPV4 or IPV6. enum IpVersion { // A value indicating that the enum field is not set. UNDEFINED_IP_VERSION = 0; @@ -897,7 +1367,9 @@ message Address { } - // The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. + // The endpoint type of this address, which should be VM + // or NETLB. This is used for deciding which type of endpoint + // this address can be used after the external IPv6 address reservation. enum Ipv6EndpointType { // A value indicating that the enum field is not set. UNDEFINED_IPV6_ENDPOINT_TYPE = 0; @@ -910,7 +1382,12 @@ message Address { } - // This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM. + // This signifies the networking tier used for configuring this address and + // can only take the following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; + // global external IP addresses are always Premium Tier; regional external IP + // addresses can be either Standard or Premium Tier. + // + // If this field is not specified, it is assumed to be PREMIUM. enum NetworkTier { // A value indicating that the enum field is not set. UNDEFINED_NETWORK_TIER = 0; @@ -918,18 +1395,45 @@ message Address { // Public internet quality with fixed bandwidth. FIXED_STANDARD = 310464328; - // High quality, Google-grade network tier, support for all networking products. + // High quality, Google-grade network tier, support for all networking + // products. PREMIUM = 399530551; - // Public internet quality, only limited support for other networking products. + // Public internet quality, only limited support for other networking + // products. STANDARD = 484642493; - // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured. + // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier + // is expired or not configured. STANDARD_OVERRIDES_FIXED_STANDARD = 465847234; } - // The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. + // The purpose of this resource, which can be one of the following values: + // + // + // - GCE_ENDPOINT for addresses that are used by VM + // instances, alias IP ranges, load balancers, and similar resources. + // - DNS_RESOLVER for a DNS resolver address in a subnetwork + // for a Cloud DNS inbound + // forwarder IP addresses (regional internal IP address in a subnet of + // a VPC network) + // - VPC_PEERING for global internal IP addresses used for + // + // private services access allocated ranges. + // - NAT_AUTO for the regional external IP addresses used by + // Cloud NAT when allocating addresses using + // + // automatic NAT IP address allocation. + // - IPSEC_INTERCONNECT for addresses created from a private + // IP range that are reserved for a VLAN attachment in an + // *HA VPN over Cloud Interconnect* configuration. These addresses + // are regional resources. + // - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned + // to multiple internal forwarding rules. + // - `PRIVATE_SERVICE_CONNECT` for a private network address that is + // used to configure Private Service Connect. Only global internal addresses + // can use this purpose. enum Purpose { // A value indicating that the enum field is not set. UNDEFINED_PURPOSE = 0; @@ -940,19 +1444,27 @@ message Address { // VM internal/alias IP, Internal LB service IP, etc. GCE_ENDPOINT = 230515243; - // A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range. + // A regional internal IP address range reserved for the VLAN attachment + // that is used in HA VPN over Cloud Interconnect. This regional + // internal IP address range must not overlap with any IP address range + // of subnet/route in the VPC network and its peering networks. After the + // VLAN attachment is created with the reserved IP address range, when + // creating a new VPN gateway, its interface IP address is allocated + // from the associated VLAN attachment’s IP address range. IPSEC_INTERCONNECT = 340437251; // External IP automatically reserved for Cloud NAT. NAT_AUTO = 163666477; - // A private network IP address that can be used to configure Private Service Connect. This purpose can be specified only for GLOBAL addresses of Type INTERNAL + // A private network IP address that can be used to configure Private + // Service Connect. This purpose can be specified only forGLOBAL addresses of Type INTERNAL PRIVATE_SERVICE_CONNECT = 48134724; // A regional internal IP address range reserved for Serverless. SERVERLESS = 270492508; - // A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules. + // A private network IP address that can be shared by multiple Internal + // Load Balancer forwarding rules. SHARED_LOADBALANCER_VIP = 294447572; // IP range for peer networks. @@ -960,7 +1472,11 @@ message Address { } - // [Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. + // [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. + // An address that is RESERVING is currently in the process of + // being reserved. A RESERVED address is currently reserved and + // available to use. An IN_USE address is currently being used + // by another resource and is not available. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -979,67 +1495,141 @@ message Address { // The static IP address represented by this resource. optional string address = 462920692; - // The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. + // The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL. // Check the AddressType enum for the list of possible values. optional string address_type = 264307877; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this field when you create the resource. + // An optional description of this resource. Provide this field when you + // create the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4 allocations. Use one of the following formats to specify a PDP when reserving an external IPv4 address using BYOIP. - Full resource URL, as in https://www.googleapis.com/compute/v1/projects/projectId/regions/region /publicDelegatedPrefixes/pdp-name - Partial URL, as in - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - regions/region/publicDelegatedPrefixes/pdp-name + // Reference to the source of external IPv4 addresses, + // like a PublicDelegatedPrefix (PDP) for BYOIP. + // The PDP must support enhanced IPv4 allocations. + // + // Use one of the following formats to specify a PDP when reserving an + // external IPv4 address using BYOIP. + // + // - + // Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name + // - + // Partial URL, as in + // + // + // - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name + // - regions/region/publicDelegatedPrefixes/pdp-name optional string ip_collection = 176818358; - // The IP version that will be used by this address. Valid options are IPV4 or IPV6. + // The IP version that will be used by this address. Valid options areIPV4 or IPV6. // Check the IpVersion enum for the list of possible values. optional string ip_version = 294959552; - // The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. + // The endpoint type of this address, which should be VM + // or NETLB. This is used for deciding which type of endpoint + // this address can be used after the external IPv6 address reservation. // Check the Ipv6EndpointType enum for the list of possible values. optional string ipv6_endpoint_type = 97501004; - // [Output Only] Type of the resource. Always compute#address for addresses. + // [Output Only] Type of the resource. Always compute#address for + // addresses. optional string kind = 3292052; - // A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address. + // A fingerprint for the labels being applied to this Address, which is + // essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve an Address. optional string label_fingerprint = 178124825; - // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. + // Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. + // Label values may be empty. map labels = 500195327; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character + // must be a lowercase letter, and all following characters (except for the + // last character) must be a dash, lowercase letter, or digit. The last + // character must be a lowercase letter or digit. optional string name = 3373707; - // The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose. + // The URL of the network in which to reserve the address. This field can + // only be used with INTERNAL type with theVPC_PEERING purpose. optional string network = 232872494; - // This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM. + // This signifies the networking tier used for configuring this address and + // can only take the following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; + // global external IP addresses are always Premium Tier; regional external IP + // addresses can be either Standard or Premium Tier. + // + // If this field is not specified, it is assumed to be PREMIUM. // Check the NetworkTier enum for the list of possible values. optional string network_tier = 517397843; // The prefix length if the resource represents an IP range. optional int32 prefix_length = 453565747; - // The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. + // The purpose of this resource, which can be one of the following values: + // + // + // - GCE_ENDPOINT for addresses that are used by VM + // instances, alias IP ranges, load balancers, and similar resources. + // - DNS_RESOLVER for a DNS resolver address in a subnetwork + // for a Cloud DNS inbound + // forwarder IP addresses (regional internal IP address in a subnet of + // a VPC network) + // - VPC_PEERING for global internal IP addresses used for + // + // private services access allocated ranges. + // - NAT_AUTO for the regional external IP addresses used by + // Cloud NAT when allocating addresses using + // + // automatic NAT IP address allocation. + // - IPSEC_INTERCONNECT for addresses created from a private + // IP range that are reserved for a VLAN attachment in an + // *HA VPN over Cloud Interconnect* configuration. These addresses + // are regional resources. + // - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned + // to multiple internal forwarding rules. + // - `PRIVATE_SERVICE_CONNECT` for a private network address that is + // used to configure Private Service Connect. Only global internal addresses + // can use this purpose. // Check the Purpose enum for the list of possible values. optional string purpose = 316407070; - // [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. *This field is not applicable to global addresses.* + // [Output Only] The URL of the region where a regional address resides. + // For regional addresses, you must specify the region as a path parameter in + // the HTTP request URL. *This field is not applicable to global + // addresses.* optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. + // [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. + // An address that is RESERVING is currently in the process of + // being reserved. A RESERVED address is currently reserved and + // available to use. An IN_USE address is currently being used + // by another resource and is not available. // Check the Status enum for the list of possible values. optional string status = 181260274; - // The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose. + // The URL of the subnetwork in which to reserve the address. If an IP address + // is specified, it must be within the subnetwork's IP range. This field can + // only be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose. optional string subnetwork = 307827694; // [Output Only] The URLs of the resources that are using this address. @@ -1055,10 +1645,15 @@ message AddressAggregatedList { // A list of AddressesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. + // [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of + // addresses. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -1080,10 +1675,15 @@ message AddressList { // A list of Address resources. repeated Address items = 100526016; - // [Output Only] Type of resource. Always compute#addressList for lists of addresses. + // [Output Only] Type of resource. Always compute#addressList for + // lists of addresses. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -1099,12 +1699,17 @@ message AddressesScopedList { // [Output Only] A list of addresses contained in this scope. repeated Address addresses = 337673122; - // [Output Only] Informational warning which replaces the list of addresses when the list is empty. + // [Output Only] Informational warning which replaces the list of addresses + // when the list is empty. optional Warning warning = 50704284; } -// Specifies options for controlling advanced machine features. Options that would traditionally be configured in a BIOS belong here. Features that require operating system support may have corresponding entries in the GuestOsFeatures of an Image (e.g., whether or not the OS in the Image supports nested virtualization being enabled or disabled). +// Specifies options for controlling advanced machine features. +// Options that would traditionally be configured in a BIOS belong +// here. Features that require operating system support may have +// corresponding entries in the GuestOsFeatures of anImage (e.g., whether or not the OS in theImage supports nested virtualization being enabled or +// disabled). message AdvancedMachineFeatures { // Type of Performance Monitoring Unit requested on instance. enum PerformanceMonitoringUnit { @@ -1134,1402 +1739,6062 @@ message AdvancedMachineFeatures { // Check the PerformanceMonitoringUnit enum for the list of possible values. optional string performance_monitoring_unit = 533618956; - // The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed. + // The number of threads per physical core. To disable simultaneous + // multithreading (SMT) set this to 1. If unset, the maximum number + // of threads supported per core by the underlying processor is + // assumed. optional int32 threads_per_core = 352611671; - // Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode. + // Turbo frequency mode to use for the instance. + // Supported modes include: + // * ALL_CORE_MAX + // + // Using empty string or not setting this field will use the platform-specific + // default turbo mode. optional string turbo_mode = 432965412; - // The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width. + // The number of physical cores to expose to an instance. Multiply by + // the number of threads per core to compute the total number of virtual + // CPUs to expose to the instance. If unset, the number of cores is + // inferred from the instance's nominal CPU count and the underlying + // platform's SMT width. optional int32 visible_core_count = 193198684; } // A request message for AcceleratorTypes.AggregatedList. See the method description for details. message AggregatedListAcceleratorTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for Addresses.AggregatedList. See the method description for details. message AggregatedListAddressesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for Autoscalers.AggregatedList. See the method description for details. message AggregatedListAutoscalersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. + optional int64 service_project_number = 316757497; + +} + +// A request message for BackendBuckets.AggregatedList. See the method description for details. +message AggregatedListBackendBucketsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. + optional bool include_all_scopes = 391327988; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Name of the project scoping this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for BackendServices.AggregatedList. See the method description for details. message AggregatedListBackendServicesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for DiskTypes.AggregatedList. See the method description for details. message AggregatedListDiskTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for Disks.AggregatedList. See the method description for details. message AggregatedListDisksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for ForwardingRules.AggregatedList. See the method description for details. message AggregatedListForwardingRulesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for FutureReservations.AggregatedList. See the method description for details. message AggregatedListFutureReservationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for GlobalOperations.AggregatedList. See the method description for details. message AggregatedListGlobalOperationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. + optional int64 service_project_number = 316757497; + +} + +// A request message for GlobalVmExtensionPolicies.AggregatedList. See the method description for details. +message AggregatedListGlobalVmExtensionPoliciesRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. + optional bool include_all_scopes = 391327988; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Name of the project scoping this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for HealthChecks.AggregatedList. See the method description for details. message AggregatedListHealthChecksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for InstanceGroupManagers.AggregatedList. See the method description for details. message AggregatedListInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for InstanceGroups.AggregatedList. See the method description for details. message AggregatedListInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for InstanceTemplates.AggregatedList. See the method description for details. message AggregatedListInstanceTemplatesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for Instances.AggregatedList. See the method description for details. message AggregatedListInstancesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for InstantSnapshots.AggregatedList. See the method description for details. message AggregatedListInstantSnapshotsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for InterconnectAttachments.AggregatedList. See the method description for details. message AggregatedListInterconnectAttachmentsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for MachineTypes.AggregatedList. See the method description for details. message AggregatedListMachineTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for NetworkAttachments.AggregatedList. See the method description for details. message AggregatedListNetworkAttachmentsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for NetworkEdgeSecurityServices.AggregatedList. See the method description for details. message AggregatedListNetworkEdgeSecurityServicesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for NetworkEndpointGroups.AggregatedList. See the method description for details. message AggregatedListNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for NetworkFirewallPolicies.AggregatedList. See the method description for details. message AggregatedListNetworkFirewallPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for NodeGroups.AggregatedList. See the method description for details. message AggregatedListNodeGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for NodeTemplates.AggregatedList. See the method description for details. message AggregatedListNodeTemplatesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for NodeTypes.AggregatedList. See the method description for details. message AggregatedListNodeTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for PacketMirrorings.AggregatedList. See the method description for details. message AggregatedListPacketMirroringsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for PublicDelegatedPrefixes.AggregatedList. See the method description for details. message AggregatedListPublicDelegatedPrefixesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for RegionCommitments.AggregatedList. See the method description for details. message AggregatedListRegionCommitmentsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. - optional string filter = 336120696; - - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. - optional bool include_all_scopes = 391327988; + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. + optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. + optional int64 service_project_number = 316757497; + +} + +// A request message for RegionCompositeHealthChecks.AggregatedList. See the method description for details. +message AggregatedListRegionCompositeHealthChecksRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. + optional bool include_all_scopes = 391327988; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Name of the project scoping this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. + optional int64 service_project_number = 316757497; + +} + +// A request message for RegionHealthAggregationPolicies.AggregatedList. See the method description for details. +message AggregatedListRegionHealthAggregationPoliciesRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. + optional bool include_all_scopes = 391327988; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Name of the project scoping this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for RegionHealthSources.AggregatedList. See the method description for details. message AggregatedListRegionHealthSourcesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for RegionNetworkPolicies.AggregatedList. See the method description for details. message AggregatedListRegionNetworkPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for Reservations.AggregatedList. See the method description for details. message AggregatedListReservationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for ResourcePolicies.AggregatedList. See the method description for details. message AggregatedListResourcePoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for Routers.AggregatedList. See the method description for details. message AggregatedListRoutersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for SecurityPolicies.AggregatedList. See the method description for details. message AggregatedListSecurityPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for ServiceAttachments.AggregatedList. See the method description for details. message AggregatedListServiceAttachmentsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for Snapshots.AggregatedList. See the method description for details. message AggregatedListSnapshotsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for SslCertificates.AggregatedList. See the method description for details. message AggregatedListSslCertificatesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for SslPolicies.AggregatedList. See the method description for details. message AggregatedListSslPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for StoragePoolTypes.AggregatedList. See the method description for details. message AggregatedListStoragePoolTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for StoragePools.AggregatedList. See the method description for details. message AggregatedListStoragePoolsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for Subnetworks.AggregatedList. See the method description for details. message AggregatedListSubnetworksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. + enum Views { + // A value indicating that the enum field is not set. + UNDEFINED_VIEWS = 0; + + DEFAULT = 115302945; + + // Utilization data is included in the response. + WITH_UTILIZATION = 504090633; + + } + + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. + // Check the Views enum for the list of possible values. + optional string views = 112204398; + } // A request message for TargetHttpProxies.AggregatedList. See the method description for details. message AggregatedListTargetHttpProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for TargetHttpsProxies.AggregatedList. See the method description for details. message AggregatedListTargetHttpsProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for TargetInstances.AggregatedList. See the method description for details. message AggregatedListTargetInstancesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for TargetPools.AggregatedList. See the method description for details. message AggregatedListTargetPoolsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for TargetTcpProxies.AggregatedList. See the method description for details. message AggregatedListTargetTcpProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for TargetVpnGateways.AggregatedList. See the method description for details. message AggregatedListTargetVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for UrlMaps.AggregatedList. See the method description for details. message AggregatedListUrlMapsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Name of the project scoping this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for VpnGateways.AggregatedList. See the method description for details. message AggregatedListVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // A request message for VpnTunnels.AggregatedList. See the method description for details. message AggregatedListVpnTunnelsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. optional bool include_all_scopes = 391327988; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } // An alias IP range attached to an instance's network interface. message AliasIpRange { - // The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24). + // The IP alias ranges to allocate for this interface. This IP CIDR range + // must belong to the specified subnetwork and cannot contain IP addresses + // reserved by system or used by other network interfaces. This range may be + // a single IP address (such as 10.2.3.4), a netmask (such as/24) or a CIDR-formatted string (such as10.1.2.0/24). optional string ip_cidr_range = 98117322; - // The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used. + // The name of a subnetwork secondary IP range from which to allocate an IP + // alias range. If not specified, the primary range of the subnetwork is used. optional string subnetwork_range_name = 387995966; } -// This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can account for multiple instance SKUs. In other words, one can create instances of varying shapes against this reservation. +// This reservation type is specified by total resource amounts (e.g. total +// count of CPUs) and can account for multiple instance SKUs. In other words, +// one can create instances of varying shapes against this reservation. message AllocationAggregateReservation { - // The VM family that all instances scheduled against this reservation must belong to. + // The VM family that all instances scheduled against this reservation must + // belong to. enum VmFamily { // A value indicating that the enum field is not set. UNDEFINED_VM_FAMILY = 0; @@ -2548,6 +7813,8 @@ message AllocationAggregateReservation { VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 517384438; + VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X = 485271888; + } // The workload type of the instances that will target this reservation. @@ -2555,20 +7822,24 @@ message AllocationAggregateReservation { // A value indicating that the enum field is not set. UNDEFINED_WORKLOAD_TYPE = 0; - // Reserved resources will be optimized for BATCH workloads, such as ML training. + // Reserved resources will be optimized for BATCH workloads, such as ML + // training. BATCH = 62971674; - // Reserved resources will be optimized for SERVING workloads, such as ML inference. + // Reserved resources will be optimized for SERVING workloads, such as ML + // inference. SERVING = 17781740; UNSPECIFIED = 526786327; } - // Count of reserved hosts of specified VM family. The host has fixed number of accelerators based on the accelerator/vm-family selected. + // Count of reserved hosts of specified VM family. The host has fixed number + // of accelerators based on the accelerator/vm-family selected. optional int32 host_count = 297782200; - // Number of hosts currently in use. If there is one or more Instances running on the host, it is considered in use. + // Number of hosts currently in use. If there is one or more Instances + // running on the host, it is considered in use. optional int32 in_use_host_count = 364069834; // Number of instances currently in use in this reservation. @@ -2580,7 +7851,8 @@ message AllocationAggregateReservation { // List of reserved resources (CPUs, memory, accelerators). repeated AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; - // The VM family that all instances scheduled against this reservation must belong to. + // The VM family that all instances scheduled against this reservation must + // belong to. // Check the VmFamily enum for the list of possible values. optional string vm_family = 125017580; @@ -2602,7 +7874,8 @@ message AllocationAggregateReservationReservedResourceInfoAccelerator { // Number of accelerators of specified type. optional int32 accelerator_count = 504879675; - // Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" + // Full or partial URL to accelerator type. e.g. + // "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" optional string accelerator_type = 138031246; } @@ -2681,14 +7954,17 @@ message AllocationResourceStatusSpecificSKUAllocation { // ID of the instance template used to populate reservation properties. optional string source_instance_template_id = 111196154; - // Per service utilization breakdown. The Key is the Google Cloud managed service name. + // Per service utilization breakdown. The Key is the Google Cloud managed + // service name. map utilizations = 402495121; } // message AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk { - // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. + // Specifies the disk interface to use for attaching this disk, which is + // either SCSI or NVME. The default isSCSI. + // For performance characteristics of SCSI over NVMe, seeLocal SSD performance. enum Interface { // A value indicating that the enum field is not set. UNDEFINED_INTERFACE = 0; @@ -2702,26 +7978,41 @@ message AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk { // Specifies the size of the disk in base-2 GB. optional int64 disk_size_gb = 316263735; - // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. + // Specifies the disk interface to use for attaching this disk, which is + // either SCSI or NVME. The default isSCSI. + // For performance characteristics of SCSI over NVMe, seeLocal SSD performance. // Check the Interface enum for the list of possible values. optional string interface = 502623545; } -// Properties of the SKU instances being reserved. Next ID: 9 +// Properties of the SKU instances being reserved. +// Next ID: 9 message AllocationSpecificSKUAllocationReservedInstanceProperties { - // Specifies the frequency of planned maintenance events. The accepted values are: `PERIODIC`. + // Specifies the frequency of planned maintenance events. The accepted + // values are: `PERIODIC`. enum MaintenanceInterval { // A value indicating that the enum field is not set. UNDEFINED_MAINTENANCE_INTERVAL = 0; - // VMs are eligible to receive infrastructure and hypervisor updates as they become available. This may result in more maintenance operations (live migrations or terminations) for the VM than the PERIODIC and RECURRENT options. + // VMs are eligible to receive infrastructure and hypervisor updates as they + // become available. This may result in more maintenance operations (live + // migrations or terminations) for the VM than the PERIODIC andRECURRENT options. AS_NEEDED = 500724834; - // VMs receive infrastructure and hypervisor updates on a periodic basis, minimizing the number of maintenance operations (live migrations or terminations) on an individual VM. This may mean a VM will take longer to receive an update than if it was configured for AS_NEEDED. Security updates will still be applied as soon as they are available. + // VMs receive infrastructure and hypervisor updates on a periodic basis, + // minimizing the number of maintenance operations (live migrations or + // terminations) on an individual VM. This may mean a VM will take longer + // to receive an update than if it was configured forAS_NEEDED. Security updates will still be applied as soon + // as they are available. PERIODIC = 142804635; - // VMs receive infrastructure and hypervisor updates on a periodic basis, minimizing the number of maintenance operations (live migrations or terminations) on an individual VM. This may mean a VM will take longer to receive an update than if it was configured for AS_NEEDED. Security updates will still be applied as soon as they are available. RECURRENT is used for GEN3 and Slice of Hardware VMs. + // VMs receive infrastructure and hypervisor updates on a periodic basis, + // minimizing the number of maintenance operations (live migrations or + // terminations) on an individual VM. This may mean a VM will take longer + // to receive an update than if it was configured forAS_NEEDED. Security updates will still be applied as soon + // as they are available. RECURRENT is used for GEN3 and Slice + // of Hardware VMs. RECURRENT = 194244550; } @@ -2729,19 +8020,26 @@ message AllocationSpecificSKUAllocationReservedInstanceProperties { // Specifies accelerator type and count. repeated AcceleratorConfig guest_accelerators = 463595119; - // Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. + // Specifies amount of local ssd to reserve with each instance. The type + // of disk is local-ssd. repeated AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299; - // An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. + // An opaque location hint used to place the allocation close to other + // resources. + // This field is for use by internal tools that use the public API. optional string location_hint = 350519505; - // Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. + // Specifies type of machine (name only) which has fixed number of vCPUs + // and fixed amount of memory. This also includes specifying custom + // machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. optional string machine_type = 227711026; - // Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. + // Specifies the number of hours after reservation creation where + // instances using the reservation won't be scheduled for maintenance. optional int32 maintenance_freeze_duration_hours = 371662624; - // Specifies the frequency of planned maintenance events. The accepted values are: `PERIODIC`. + // Specifies the frequency of planned maintenance events. The accepted + // values are: `PERIODIC`. // Check the MaintenanceInterval enum for the list of possible values. optional string maintenance_interval = 403368049; @@ -2750,7 +8048,8 @@ message AllocationSpecificSKUAllocationReservedInstanceProperties { } -// This reservation type allows to pre allocate specific instance configuration. +// This reservation type allows to pre allocate specific instance +// configuration. message AllocationSpecificSKUReservation { // [Output Only] Indicates how many instances are actually usable currently. optional int64 assured_count = 281197645; @@ -2764,17 +8063,34 @@ message AllocationSpecificSKUReservation { // The instance properties for the reservation. optional AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165; - // Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate + // Specifies the instance template to create the reservation. If you use + // this field, you must exclude the instanceProperties field. + // + // This field is optional, and it can be a full or partial URL. For example, + // the following are all valid URLs to an instance template: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + // - projects/project/global/instanceTemplates/instanceTemplate + // - global/instanceTemplates/instanceTemplate optional string source_instance_template = 332423616; } // message Allowed { - // The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number. + // The IP protocol to which this rule applies. The protocol type is + // required when creating a firewall rule. This value can either be one of the + // following well known protocol strings (tcp, udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. optional string I_p_protocol = 488094525; - // An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + // An optional list of ports to which this rule applies. + // This field is only applicable for the UDP or TCP protocol. + // Each entry must be either an integer or a range. + // If not specified, this rule applies to connections through any port. + // + // Example inputs include: ["22"], ["80","443"], + // and ["12345-12349"]. repeated string ports = 106854418; } @@ -2790,7 +8106,19 @@ message AnnouncePublicAdvertisedPrefixeRequest { // The name of the public advertised prefix. It should comply with RFC1035. string public_advertised_prefix = 101874590 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -2806,13 +8134,26 @@ message AnnouncePublicDelegatedPrefixeRequest { // The name of the public delegated prefix. It should comply with RFC1035. string public_delegated_prefix = 204238440 [(google.api.field_behavior) = REQUIRED]; - // The name of the region where the public delegated prefix is located. It should comply with RFC1035. + // The name of theregion where + // the public delegated prefix is located. It should comply with RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -2831,7 +8172,8 @@ message ApplyUpdatesToInstancesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the zone where the managed instance group is located. Should conform to RFC1035. + // The name of thezone + // where the managed instance group is located. Should conform to RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -2866,7 +8208,9 @@ message AttachDiskInstanceRequest { // The body resource for this request AttachedDisk attached_disk_resource = 90605845 [(google.api.field_behavior) = REQUIRED]; - // Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error. + // Whether to force attach the regional disk even if it's currently attached + // to another instance. If you try to force attach a zonal disk to an + // instance, you will receive an error. optional bool force_attach = 142758425; // The instance name for this request. @@ -2878,7 +8222,19 @@ message AttachDiskInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -2894,7 +8250,8 @@ message AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest { // The body resource for this request GlobalNetworkEndpointGroupsAttachEndpointsRequest global_network_endpoint_groups_attach_endpoints_request_resource = 30691563 [(google.api.field_behavior) = REQUIRED]; - // The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + // The name of the network endpoint group where you are attaching network + // endpoints to. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -2903,14 +8260,27 @@ message AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for NetworkEndpointGroups.AttachNetworkEndpoints. See the method description for details. message AttachNetworkEndpointsNetworkEndpointGroupRequest { - // The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + // The name of the network endpoint group where you are attaching network + // endpoints to. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -2922,10 +8292,23 @@ message AttachNetworkEndpointsNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the network endpoint group is located. It should comply with RFC1035. + // The name of the zone where + // the network endpoint group is located. It should comply with RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -2935,7 +8318,8 @@ message AttachNetworkEndpointsNetworkEndpointGroupRequest { // A request message for RegionNetworkEndpointGroups.AttachNetworkEndpoints. See the method description for details. message AttachNetworkEndpointsRegionNetworkEndpointGroupRequest { - // The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + // The name of the network endpoint group where you are attaching network + // endpoints to. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -2944,7 +8328,9 @@ message AttachNetworkEndpointsRegionNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region where you want to create the network endpoint group. It should comply with RFC1035. + // The name of the region where + // you want to create the network endpoint group. It should comply with + // RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -2953,14 +8339,27 @@ message AttachNetworkEndpointsRegionNetworkEndpointGroupRequest { // The body resource for this request RegionNetworkEndpointGroupsAttachEndpointsRequest region_network_endpoint_groups_attach_endpoints_request_resource = 334986492 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // An instance-attached disk resource. message AttachedDisk { - // [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + // [Output Only] The architecture of the attached disk. Valid values are ARM64 + // or X86_64. enum Architecture { // A value indicating that the enum field is not set. UNDEFINED_ARCHITECTURE = 0; @@ -2976,7 +8375,12 @@ message AttachedDisk { } - // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. + // Specifies the disk interface to use for attaching this disk, which is + // either SCSI or NVME. For most machine types, the + // default is SCSI. Local SSDs can use either NVME or SCSI. + // In certain configurations, persistent disks can use NVMe. For more + // information, seeAbout + // persistent disks. enum Interface { // A value indicating that the enum field is not set. UNDEFINED_INTERFACE = 0; @@ -2987,20 +8391,27 @@ message AttachedDisk { } - // The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. + // The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the disk + // in READ_WRITE mode. enum Mode { // A value indicating that the enum field is not set. UNDEFINED_MODE = 0; - // Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time. + // Attaches this disk in read-only mode. Multiple virtual machines can use + // a disk in read-only mode at a time. READ_ONLY = 91950261; - // *[Default]* Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode. + // *[Default]* Attaches this disk in read-write mode. Only one + // virtual machine at a time can be attached to a disk in read-write mode. READ_WRITE = 173607894; } - // For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. + // For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this + // field is set to PRESERVED if the LocalSSD data has been saved + // to a persistent location by customer request. (see the + // discard_local_ssd option on Stop/Suspend). + // Read-only in the api. enum SavedState { // A value indicating that the enum field is not set. UNDEFINED_SAVED_STATE = 0; @@ -3013,7 +8424,7 @@ message AttachedDisk { } - // Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. + // Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default isPERSISTENT. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -3024,76 +8435,156 @@ message AttachedDisk { } - // [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + // [Output Only] The architecture of the attached disk. Valid values are ARM64 + // or X86_64. // Check the Architecture enum for the list of possible values. optional string architecture = 302803283; - // Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). + // Specifies whether the disk will be auto-deleted when the instance is + // deleted (but not when the disk is detached from the instance). optional bool auto_delete = 464761403; - // Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. + // Indicates that this is a boot disk. The virtual machine will use the first + // partition of the disk for its root filesystem. optional bool boot = 3029746; - // Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks. + // Specifies a unique device name of your choice that is reflected into the/dev/disk/by-id/google-* tree of a Linux operating system + // running within the instance. This name can be used to reference the device + // for mounting, resizing, and so on, from within the instance. + // + // If not specified, the server chooses a default device name to apply to this + // disk, in the form persistent-disk-x, where x is a number + // assigned by Google Compute Engine. This field is only applicable for + // persistent disks. optional string device_name = 67541716; - // Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Note: Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method. + // Encrypts or decrypts a disk using acustomer-supplied + // encryption key. + // + // If you are creating a new disk, this field encrypts the new disk using + // an encryption key that you provide. If you are attaching an existing + // disk that is already encrypted, this field decrypts the disk using + // the customer-supplied encryption key. + // + // If you encrypt a disk using a customer-supplied key, you must provide the + // same key again when you attempt to use this resource at a later time. For + // example, you must provide the key when you create a snapshot or an image + // from the disk or when you attach the disk to a virtual machine instance. + // + // If you do not provide an encryption key, then the disk will be encrypted + // using an automatically generated key and you do not need to provide a key + // to use the disk later. + // + // Note: + // + // Instance templates do not storecustomer-supplied + // encryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group. + // + // You cannot create VMs that have disks with customer-supplied keys using + // the bulk + // insert method. optional CustomerEncryptionKey disk_encryption_key = 271660677; // The size of the disk in GB. optional int64 disk_size_gb = 316263735; - // [Input Only] Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error. + // [Input Only] Whether to force attach the regional disk even if it's + // currently attached to another instance. If you try to force attach a zonal + // disk to an instance, you will receive an error. optional bool force_attach = 142758425; - // A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. + // A list of features to enable on the guest operating system. Applicable + // only for bootable images. Read + // Enabling guest operating system features to see a list of available + // options. repeated GuestOsFeature guest_os_features = 79294545; - // [Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number. + // [Output Only] A zero-based index to this disk, where 0 is reserved for the + // boot disk. If you have many disks attached to an instance, each + // disk would have a unique index number. optional int32 index = 100346066; - // [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. + // [Input Only] Specifies the parameters for a new disk that will be created + // alongside the new instance. Use initialization parameters to create boot + // disks or local SSDs attached to the new instance. + // + // This property is mutually exclusive with the source property; + // you can only define one or the other, but not both. optional AttachedDiskInitializeParams initialize_params = 17697045; - // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. + // Specifies the disk interface to use for attaching this disk, which is + // either SCSI or NVME. For most machine types, the + // default is SCSI. Local SSDs can use either NVME or SCSI. + // In certain configurations, persistent disks can use NVMe. For more + // information, seeAbout + // persistent disks. // Check the Interface enum for the list of possible values. optional string interface = 502623545; - // [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. + // [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. optional string kind = 3292052; // [Output Only] Any valid publicly visible licenses. repeated string licenses = 337642578; - // [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed to be detached from the instance, or to be used as the source of the snapshot creation, and the image creation. The instance with at least one locked attached disk is not allow to be used as source of machine image creation, instant snapshot creation, and not allowed to be deleted with --keep-disk parameter set to true for locked disks. + // [Output Only] Whether to indicate the attached disk is locked. The locked + // disk is not allowed to be detached from the instance, or to be used as the + // source of the snapshot creation, and the image creation. The instance with + // at least one locked attached disk is not allow to be used as source of + // machine image creation, instant snapshot creation, and not allowed to be + // deleted with --keep-disk parameter set to true for locked disks. optional bool locked = 513159946; - // The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. + // The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the disk + // in READ_WRITE mode. // Check the Mode enum for the list of possible values. optional string mode = 3357091; - // For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. + // For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this + // field is set to PRESERVED if the LocalSSD data has been saved + // to a persistent location by customer request. (see the + // discard_local_ssd option on Stop/Suspend). + // Read-only in the api. // Check the SavedState enum for the list of possible values. optional string saved_state = 411587801; // [Output Only] shielded vm initial state stored on disk optional InitialStateConfig shielded_instance_initial_state = 192356867; - // Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance boot disk, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk. + // Specifies a valid partial or full URL to an existing Persistent Disk + // resource. When creating a new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source + // is required. + // + // If desired, you can also attach existing non-root persistent disks using + // this property. This field is only applicable for persistent disks. + // + // Note that for InstanceTemplate, specify the disk name for zonal disk, + // and the URL for regional disk. optional string source = 177235995; - // Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. + // Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default isPERSISTENT. // Check the Type enum for the list of possible values. optional string type = 3575610; - // [Output Only] A list of user provided licenses. It represents a list of URLs to the license resource. Unlike regular licenses, user provided licenses can be modified after the disk is created. + // [Output Only] A list of user provided licenses. It represents a list of + // URLs to the license resource. Unlike regular licenses, user provided + // licenses can be modified after the disk is created. repeated string user_licenses = 388193862; } -// [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This field is persisted and returned for instanceTemplate and not returned in the context of instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. +// [Input Only] Specifies the parameters for a new disk that will be created +// alongside the new instance. Use initialization parameters to create boot +// disks or local SSDs attached to the new instance. +// +// This field is persisted and returned for instanceTemplate and not returned +// in the context of instance. +// +// This property is mutually exclusive with the source property; +// you can only define one or the other, but not both. message AttachedDiskInitializeParams { - // The architecture of the attached disk. Valid values are arm64 or x86_64. + // The architecture of the attached disk. Valid values are + // arm64 or x86_64. enum Architecture { // A value indicating that the enum field is not set. UNDEFINED_ARCHITECTURE = 0; @@ -3109,7 +8600,8 @@ message AttachedDiskInitializeParams { } - // Specifies which action to take on instance update with this disk. Default is to use the existing disk. + // Specifies which action to take on instance update with this disk. Default + // is to use the existing disk. enum OnUpdateAction { // A value indicating that the enum field is not set. UNDEFINED_ON_UPDATE_ACTION = 0; @@ -3117,7 +8609,8 @@ message AttachedDiskInitializeParams { // Always recreate the disk. RECREATE_DISK = 494767853; - // Recreate the disk if source (image, snapshot) of this disk is different from source of existing disk. + // Recreate the disk if source (image, snapshot) of this disk is different + // from source of existing disk. RECREATE_DISK_IF_SOURCE_CHANGED = 398099712; // Use the existing disk, this is the default behaviour. @@ -3125,89 +8618,278 @@ message AttachedDiskInitializeParams { } - // The architecture of the attached disk. Valid values are arm64 or x86_64. + // The architecture of the attached disk. Valid values are + // arm64 or x86_64. // Check the Architecture enum for the list of possible values. optional string architecture = 302803283; // An optional description. Provide this property when creating the disk. optional string description = 422937596; - // Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created. + // Specifies the disk name. If not specified, the default is to use the name + // of the instance. If a disk with the same name already exists in the given + // region, the existing disk is attached to the new instance and the + // new disk is not created. optional string disk_name = 92807149; - // Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB. + // Specifies the size of the disk in base-2 GB. The size must be at least + // 10 GB. If you specify a sourceImage, which is required for + // boot disks, the default size is the size of the sourceImage. + // If you do not specify a sourceImage, the default disk size + // is 500 GB. optional int64 disk_size_gb = 316263735; - // Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard. + // Specifies the disk type to use to create the instance. If not specified, + // the default is pd-standard, specified using the full URL. + // For example: + // + // https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard + // + // + // For a full list of acceptable values, seePersistent disk + // types. If you specify this field when creating a VM, you can provide + // either the full or partial URL. For example, the following values are + // valid: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType + // - projects/project/zones/zone/diskTypes/diskType + // - zones/zone/diskTypes/diskType + // + // + // If you specify this field when creating or updating an instance template + // or all-instances configuration, specify the type of the disk, not the + // URL. For example: pd-standard. optional string disk_type = 93009052; // Whether this disk is using confidential compute mode. optional bool enable_confidential_compute = 102135228; - // A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. Guest OS features are applied by merging initializeParams.guestOsFeatures and disks.guestOsFeatures + // A list of features to enable on the guest operating system. Applicable + // only for bootable images. Read + // Enabling guest operating system features to see a list of available + // options. + // + // Guest OS features are applied by merginginitializeParams.guestOsFeatures anddisks.guestOsFeatures repeated GuestOsFeature guest_os_features = 79294545; - // Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. + // Labels to apply to this disk. These can be later modified by thedisks.setLabels method. This field is only applicable for + // persistent disks. map labels = 500195327; // A list of publicly visible licenses. Reserved for Google's use. repeated string licenses = 337642578; - // Indicates whether or not the disk can be read/write attached to more than one instance. + // Indicates whether or not the disk can be read/write attached to + // more than one instance. optional bool multi_writer = 528165433; - // Specifies which action to take on instance update with this disk. Default is to use the existing disk. + // Specifies which action to take on instance update with this disk. Default + // is to use the existing disk. // Check the OnUpdateAction enum for the list of possible values. optional string on_update_action = 202451980; - // Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation. + // Indicates how many IOPS to provision for the disk. This sets the number + // of I/O operations per second that the disk can handle. Values must be + // between 10,000 and 120,000. For more details, see theExtreme persistent + // disk documentation. optional int64 provisioned_iops = 186769108; - // Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must greater than or equal to 1. + // Indicates how much throughput to provision for the disk. This sets the + // number of throughput mb per second that the disk can handle. Values must + // greater than or equal to 1. optional int64 provisioned_throughput = 526524181; - // Required for each regional disk associated with the instance. Specify the URLs of the zones where the disk should be replicated to. You must provide exactly two replica zones, and one zone must be the same as the instance zone. + // Required for each regional disk associated with the instance. Specify + // the URLs of the zones where the disk should be replicated to. + // You must provide exactly two replica zones, and one zone must be the same + // as the instance zone. repeated string replica_zones = 48438272; - // Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + // Resource manager tags to be bound to the disk. Tag keys and values + // have the same definition as resource + // manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and + // values are in the format `tagValues/456`. The field is ignored (both PUT + // & PATCH) when empty. map resource_manager_tags = 377671164; - // Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name. + // Resource policies applied to this disk for automatic snapshot creations. + // Specified using the full or partial URL. For instance template, specify + // only the resource policy name. repeated string resource_policies = 22220385; - // The source image to create this disk. When creating a new instance boot disk, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set. + // The source image to create this disk. When creating a new instance boot + // disk, one of initializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source + // is required. + // + // To create a disk with one of the public operating system + // images, specify the image by its family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: + // + // projects/debian-cloud/global/images/family/debian-9 + // + // + // Alternatively, use a specific version of a public operating system image: + // + // projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + // + // + // To create a disk with a custom image that you created, specify the + // image name in the following format: + // + // global/images/my-custom-image + // + // + // You can also specify a custom image by its image family, which returns + // the latest version of the image in that family. Replace the image name + // with family/family-name: + // + // global/images/family/my-image-family + // + // + // If the source image is deleted later, this field will not be set. optional string source_image = 50443319; - // The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. + // Thecustomer-supplied + // encryption key of the source image. Required if the source image is + // protected by a customer-supplied encryption key. + // + // InstanceTemplate and InstancePropertiesPatch do not storecustomer-supplied + // encryption keys, so you cannot create disks for instances in a managed instance group if the + // source images are encrypted with your own keys. optional CustomerEncryptionKey source_image_encryption_key = 381503659; - // The source instant-snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceInstantSnapshot initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: us-central1-a/instantSnapshots/my-backup If the source instant-snapshot is deleted later, this field will not be set. + // The source instant-snapshot to create this disk. When creating a new + // instance boot disk, one of initializeParams.sourceSnapshot + // or initializeParams.sourceInstantSnapshotinitializeParams.sourceImage or disks.source + // is required. + // + // To create a disk with a snapshot that you created, specify the + // snapshot name in the following format: + // + // us-central1-a/instantSnapshots/my-backup + // + // + // If the source instant-snapshot is deleted later, this field will not be + // set. optional string source_instant_snapshot = 219202054; - // The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method. + // The source snapshot to create this disk. When creating a new instance + // boot disk, one of initializeParams.sourceSnapshot orinitializeParams.sourceImage or disks.source + // is required. + // + // To create a disk with a snapshot that you created, specify the + // snapshot name in the following format: + // + // global/snapshots/my-backup + // + // + // If the source snapshot is deleted later, this field will not be set. + // + // Note: You cannot create VMs in bulk using a snapshot as the source. Use + // an image instead when you create VMs using + // the bulk + // insert method. optional string source_snapshot = 126061928; - // The customer-supplied encryption key of the source snapshot. + // Thecustomer-supplied + // encryption key of the source snapshot. optional CustomerEncryptionKey source_snapshot_encryption_key = 303679322; - // The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /storagePools/storagePool - projects/project/zones/zone/storagePools/storagePool - zones/zone/storagePools/storagePool + // The storage pool in which the new disk is created. You can provide + // this as a partial or full URL to the resource. For example, the following + // are valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + // - projects/project/zones/zone/storagePools/storagePool + // - zones/zone/storagePools/storagePool optional string storage_pool = 360473440; } -// Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging. +// Specifies the audit configuration for a service. +// The configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. +// An AuditConfig must have one or more AuditLogConfigs. +// +// If there are AuditConfigs for both `allServices` and a specific service, +// the union of the two AuditConfigs is used for that service: the log_types +// specified in each AuditConfig are enabled, and the exempted_members in each +// AuditLogConfig are exempted. +// +// Example Policy with multiple AuditConfigs: +// +// { +// "audit_configs": [ +// { +// "service": "allServices", +// "audit_log_configs": [ +// { +// "log_type": "DATA_READ", +// "exempted_members": [ +// "user:jose@example.com" +// ] +// }, +// { +// "log_type": "DATA_WRITE" +// }, +// { +// "log_type": "ADMIN_READ" +// } +// ] +// }, +// { +// "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ +// { +// "log_type": "DATA_READ" +// }, +// { +// "log_type": "DATA_WRITE", +// "exempted_members": [ +// "user:aliya@example.com" +// ] +// } +// ] +// } +// ] +// } +// +// For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts `jose@example.com` from DATA_READ logging, and +// `aliya@example.com` from DATA_WRITE logging. message AuditConfig { // The configuration for logging of each type of permission. repeated AuditLogConfig audit_log_configs = 488420626; repeated string exempted_members = 232615576; - // Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. + // Specifies a service that will be enabled for audit logging. + // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + // `allServices` is a special value that covers all services. optional string service = 373540533; } -// Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging. +// Provides the configuration for logging a type of permissions. +// Example: +// +// { +// "audit_log_configs": [ +// { +// "log_type": "DATA_READ", +// "exempted_members": [ +// "user:jose@example.com" +// ] +// }, +// { +// "log_type": "DATA_WRITE" +// } +// ] +// } +// +// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting +// jose@example.com from DATA_READ logging. message AuditLogConfig { // The log type that this config enables. enum LogType { @@ -3228,7 +8910,9 @@ message AuditLogConfig { } - // Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. + // Specifies the identities that do not cause logging for this type of + // permission. + // Follows the same format of Binding.members. repeated string exempted_members = 232615576; optional bool ignore_child_exemptions = 70141850; @@ -3239,9 +8923,38 @@ message AuditLogConfig { } -// Represents an Autoscaler resource. Google Compute Engine has two Autoscaler resources: * [Zonal](/compute/docs/reference/rest/beta/autoscalers) * [Regional](/compute/docs/reference/rest/beta/regionAutoscalers) Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource. +// Represents an Autoscaler resource. +// +// Google Compute Engine has two Autoscaler resources: +// +// * [Zonal](/compute/docs/reference/rest/beta/autoscalers) +// * [Regional](/compute/docs/reference/rest/beta/regionAutoscalers) +// +// Use autoscalers to automatically add or delete instances from a +// managed instance group according to your defined autoscaling policy. +// For more information, read Autoscaling Groups of Instances. +// +// For zonal managed instance groups resource, use the autoscaler +// resource. +// +// For regional managed instance groups, use theregionAutoscalers resource. message Autoscaler { - // [Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. + // [Output Only] The status of the autoscaler configuration. Current set of + // possible values: + // + // - PENDING: + // Autoscaler backend hasn't read new/updated configuration. + // - DELETING: + // Configuration is being deleted. + // - ACTIVE: + // Configuration is acknowledged to be effective. Some warnings might + // be present in the statusDetails field. + // - ERROR: + // Configuration has errors. Actionable for users. Details are present in + // the statusDetails field. + // + // + // New values might be added in the future. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -3260,28 +8973,47 @@ message Autoscaler { } - // The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%. + // The configuration parameters for the autoscaling algorithm. You can define + // one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. + // + // If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%. optional AutoscalingPolicy autoscaling_policy = 221950041; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + // [Output Only] Type of the resource. Always compute#autoscaler + // for autoscalers. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // [Output Only] Target recommended MIG size (number of instances) computed by autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is different from ON. This field is empty when autoscaler is not connected to an existing managed instance group or autoscaler did not generate its prediction. + // [Output Only] Target recommended MIG size (number of instances) computed by + // autoscaler. Autoscaler calculates the recommended MIG size even when the + // autoscaling policy mode is different from ON. This field is empty when + // autoscaler is not connected to an existing managed instance group or + // autoscaler did not generate its prediction. optional int32 recommended_size = 257915749; - // [Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope). + // [Output Only] URL of theregion + // where the instance group resides (for autoscalers living in regional + // scope). optional string region = 138946292; // [Output Only] Status information of existing scaling schedules. @@ -3290,17 +9022,37 @@ message Autoscaler { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. + // [Output Only] The status of the autoscaler configuration. Current set of + // possible values: + // + // - PENDING: + // Autoscaler backend hasn't read new/updated configuration. + // - DELETING: + // Configuration is being deleted. + // - ACTIVE: + // Configuration is acknowledged to be effective. Some warnings might + // be present in the statusDetails field. + // - ERROR: + // Configuration has errors. Actionable for users. Details are present in + // the statusDetails field. + // + // + // New values might be added in the future. // Check the Status enum for the list of possible values. optional string status = 181260274; - // [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter. + // [Output Only] Human-readable details about the current state of the + // autoscaler. Read the documentation forCommonly + // returned status messages for examples of status messages you might + // encounter. repeated AutoscalerStatusDetails status_details = 363353845; - // URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler. + // URL of the managed instance group that this autoscaler will scale. This + // field is required when creating an autoscaler. optional string target = 192835985; - // [Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope). + // [Output Only] URL of thezone + // where the instance group resides (for autoscalers living in zonal scope). optional string zone = 3744684; } @@ -3313,16 +9065,22 @@ message AutoscalerAggregatedList { // A list of AutoscalersScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#autoscalerAggregatedList for aggregated lists of autoscalers. + // [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for aggregated lists of + // autoscalers. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -3338,10 +9096,15 @@ message AutoscalerList { // A list of Autoscaler resources. repeated Autoscaler items = 100526016; - // [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + // [Output Only] Type of resource. Always compute#autoscalerList + // for lists of autoscalers. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -3354,7 +9117,60 @@ message AutoscalerList { // message AutoscalerStatusDetails { - // The type of error, warning, or notice returned. Current set of possible values: - ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends a size greater than maxNumReplicas. - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does not have the necessary labels. - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance group. - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to scale based on a load balancing signal but the instance group has not received any requests from the load balancer. - MODE_OFF (WARNING): Autoscaling is turned off. The number of instances in the group won't change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has more than one backend service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): Shown only for regional autoscalers: there is a resource stockout in the chosen region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: in at least one of the zones you're using there is a resource stockout. New values might be added in the future. Some of the values might not be available in all API versions. + // The type of error, warning, or notice returned. Current set of possible + // values: + // + // - ALL_INSTANCES_UNHEALTHY (WARNING): + // All instances in the instance group are unhealthy (not in RUNNING + // state). + // - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): + // There is no backend service attached to the instance group. + // - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): + // Autoscaler recommends a size greater than maxNumReplicas. + // - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): + // The custom metric samples are not exported often enough to be + // a credible base for autoscaling. + // - CUSTOM_METRIC_INVALID (ERROR): + // The custom metric that was specified does not exist or does not have + // the necessary labels. + // - MIN_EQUALS_MAX (WARNING): + // The minNumReplicas is equal to maxNumReplicas. This means the + // autoscaler cannot add or remove instances from the instance group. + // - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): + // The autoscaler did not receive any data from the custom metric + // configured for autoscaling. + // - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): + // The autoscaler is configured to scale based on a load balancing signal + // but the instance group has not received any requests from the load + // balancer. + // - MODE_OFF (WARNING): + // Autoscaling is turned off. The number of instances in the group won't + // change automatically. The autoscaling configuration is preserved. + // - MODE_ONLY_UP (WARNING): + // Autoscaling is in the "Autoscale only out" mode. The autoscaler can add + // instances but not remove any. + // - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): + // The instance group cannot be autoscaled because it has more than one + // backend service attached to it. + // - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): + // There is insufficient quota for the necessary resources, such as CPU or + // number of instances. + // - REGION_RESOURCE_STOCKOUT (ERROR): + // Shown only for regional autoscalers: there is a resource stockout in + // the chosen region. + // - SCALING_TARGET_DOES_NOT_EXIST (ERROR): + // The target to be scaled does not exist. + // - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION + // (ERROR): Autoscaling does not work with an HTTP/S load balancer that + // has been configured for maxRate. + // - ZONE_RESOURCE_STOCKOUT (ERROR): + // For zonal autoscalers: there is a resource stockout in the chosen zone. + // For regional autoscalers: in at least one of the zones you're using + // there is a resource stockout. + // + // + // New values might be added in the future. Some of the values might not be + // available in all API versions. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -3368,54 +9184,73 @@ message AutoscalerStatusDetails { // Autoscaler recommends a size greater than maxNumReplicas. CAPPED_AT_MAX_NUM_REPLICAS = 518617; - // The custom metric samples are not exported often enough to be a credible base for autoscaling. + // The custom metric samples are not exported often enough to be a credible + // base for autoscaling. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE = 328964659; - // The custom metric that was specified does not exist or does not have the necessary labels. + // The custom metric that was specified does not exist or does not have the + // necessary labels. CUSTOM_METRIC_INVALID = 204430550; - // The minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance group. + // The minNumReplicas is equal to maxNumReplicas. This means the autoscaler + // cannot add or remove instances from the instance group. MIN_EQUALS_MAX = 2821361; - // The autoscaler did not receive any data from the custom metric configured for autoscaling. + // The autoscaler did not receive any data from the custom metric configured + // for autoscaling. MISSING_CUSTOM_METRIC_DATA_POINTS = 94885086; - // The autoscaler is configured to scale based on a load balancing signal but the instance group has not received any requests from the load balancer. + // The autoscaler is configured to scale based on a load balancing signal + // but the instance group has not received any requests from the load + // balancer. MISSING_LOAD_BALANCING_DATA_POINTS = 509858898; - // Autoscaling is turned off. The number of instances in the group won't change automatically. The autoscaling configuration is preserved. + // Autoscaling is turned off. The number of instances in the group won't + // change automatically. The autoscaling configuration is preserved. MODE_OFF = 164169907; - // Autoscaling is in the "Autoscale only scale out" mode. Instances in the group will be only added. + // Autoscaling is in the "Autoscale only scale out" mode. + // Instances in the group will be only added. MODE_ONLY_SCALE_OUT = 3840994; - // Autoscaling is in the "Autoscale only out" mode. Instances in the group will be only added. + // Autoscaling is in the "Autoscale only out" mode. Instances in the group + // will be only added. MODE_ONLY_UP = 100969842; - // The instance group cannot be autoscaled because it has more than one backend service attached to it. + // The instance group cannot be autoscaled because it has more than one + // backend service attached to it. MORE_THAN_ONE_BACKEND_SERVICE = 151922141; - // There is insufficient quota for the necessary resources, such as CPU or number of instances. + // There is insufficient quota for the necessary resources, such as CPU or + // number of instances. NOT_ENOUGH_QUOTA_AVAILABLE = 403101631; - // Showed only for regional autoscalers: there is a resource stockout in the chosen region. + // Showed only for regional autoscalers: there is a resource stockout in + // the chosen region. REGION_RESOURCE_STOCKOUT = 528622846; // The target to be scaled does not exist. SCALING_TARGET_DOES_NOT_EXIST = 122636699; - // For some scaling schedules minRequiredReplicas is greater than maxNumReplicas. Autoscaler always recommends at most maxNumReplicas instances. + // For some scaling schedules minRequiredReplicas is greater than + // maxNumReplicas. Autoscaler always recommends at most maxNumReplicas + // instances. SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX = 29275586; - // For some scaling schedules minRequiredReplicas is less than minNumReplicas. Autoscaler always recommends at least minNumReplicas instances. + // For some scaling schedules minRequiredReplicas is less than + // minNumReplicas. Autoscaler always recommends at least minNumReplicas + // instances. SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN = 398287669; UNKNOWN = 433141802; - // Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. + // Autoscaling does not work with an HTTP/S load balancer that has been + // configured for maxRate. UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION = 330845009; - // For zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: in at least one of the zones you're using there is a resource stockout. + // For zonal autoscalers: there is a resource stockout in the chosen zone. + // For regional autoscalers: in at least one of the zones you're using there + // is a resource stockout. ZONE_RESOURCE_STOCKOUT = 210200502; } @@ -3423,7 +9258,60 @@ message AutoscalerStatusDetails { // The status message. optional string message = 418054151; - // The type of error, warning, or notice returned. Current set of possible values: - ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends a size greater than maxNumReplicas. - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does not have the necessary labels. - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance group. - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to scale based on a load balancing signal but the instance group has not received any requests from the load balancer. - MODE_OFF (WARNING): Autoscaling is turned off. The number of instances in the group won't change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has more than one backend service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): Shown only for regional autoscalers: there is a resource stockout in the chosen region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: in at least one of the zones you're using there is a resource stockout. New values might be added in the future. Some of the values might not be available in all API versions. + // The type of error, warning, or notice returned. Current set of possible + // values: + // + // - ALL_INSTANCES_UNHEALTHY (WARNING): + // All instances in the instance group are unhealthy (not in RUNNING + // state). + // - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): + // There is no backend service attached to the instance group. + // - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): + // Autoscaler recommends a size greater than maxNumReplicas. + // - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): + // The custom metric samples are not exported often enough to be + // a credible base for autoscaling. + // - CUSTOM_METRIC_INVALID (ERROR): + // The custom metric that was specified does not exist or does not have + // the necessary labels. + // - MIN_EQUALS_MAX (WARNING): + // The minNumReplicas is equal to maxNumReplicas. This means the + // autoscaler cannot add or remove instances from the instance group. + // - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): + // The autoscaler did not receive any data from the custom metric + // configured for autoscaling. + // - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): + // The autoscaler is configured to scale based on a load balancing signal + // but the instance group has not received any requests from the load + // balancer. + // - MODE_OFF (WARNING): + // Autoscaling is turned off. The number of instances in the group won't + // change automatically. The autoscaling configuration is preserved. + // - MODE_ONLY_UP (WARNING): + // Autoscaling is in the "Autoscale only out" mode. The autoscaler can add + // instances but not remove any. + // - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): + // The instance group cannot be autoscaled because it has more than one + // backend service attached to it. + // - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): + // There is insufficient quota for the necessary resources, such as CPU or + // number of instances. + // - REGION_RESOURCE_STOCKOUT (ERROR): + // Shown only for regional autoscalers: there is a resource stockout in + // the chosen region. + // - SCALING_TARGET_DOES_NOT_EXIST (ERROR): + // The target to be scaled does not exist. + // - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION + // (ERROR): Autoscaling does not work with an HTTP/S load balancer that + // has been configured for maxRate. + // - ZONE_RESOURCE_STOCKOUT (ERROR): + // For zonal autoscalers: there is a resource stockout in the chosen zone. + // For regional autoscalers: in at least one of the zones you're using + // there is a resource stockout. + // + // + // New values might be added in the future. Some of the values might not be + // available in all API versions. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -3434,36 +9322,66 @@ message AutoscalersScopedList { // [Output Only] A list of autoscalers contained in this scope. repeated Autoscaler autoscalers = 465771644; - // [Output Only] Informational warning which replaces the list of autoscalers when the list is empty. + // [Output Only] Informational warning which replaces the list of autoscalers + // when the list is empty. optional Warning warning = 50704284; } // Cloud Autoscaler policy. message AutoscalingPolicy { - // Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler" + // Defines the operating mode for this policy. + // The following modes are available: + // + // - OFF: Disables the autoscaler but maintains its + // configuration. + // - ONLY_SCALE_OUT: Restricts the autoscaler to add + // VM instances only. + // - ON: Enables all autoscaler activities according to its + // policy. + // + // + // For more information, see + // "Turning off or restricting an autoscaler" enum Mode { // A value indicating that the enum field is not set. UNDEFINED_MODE = 0; - // Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. + // Do not automatically scale the MIG in or out. + // The recommended_size field contains the size of MIG that would be set if + // the actuation mode was enabled. OFF = 78159; // Automatically scale the MIG in and out according to the policy. ON = 2527; - // Automatically create VMs according to the policy, but do not scale the MIG in. + // Automatically create VMs according to the policy, but do not scale + // the MIG in. ONLY_SCALE_OUT = 152713670; - // Automatically create VMs according to the policy, but do not scale the MIG in. + // Automatically create VMs according to the policy, but do not scale + // the MIG in. ONLY_UP = 478095374; } - // The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process. + // The number of seconds that your application takes to initialize on a VM + // instance. This is referred to as the + // [initialization period](/compute/docs/autoscaler#cool_down_period). + // Specifying an accurate initialization period improves + // autoscaler decisions. For example, when scaling out, the autoscaler ignores + // data from VMs that are still initializing because those VMs might not yet + // represent normal usage of your application. The default initialization + // period is 60 seconds. + // + // Initialization periods might vary because of numerous + // factors. We recommend that you test how long your application takes to + // initialize. To do this, create a VM and time your application's startup + // process. optional int32 cool_down_period_sec = 107692954; - // Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group. + // Defines the CPU utilization policy that allows the autoscaler to scale + // based on the average CPU utilization of a managed instance group. optional AutoscalingPolicyCpuUtilization cpu_utilization = 381211147; // Configuration parameters of autoscaling based on a custom metric. @@ -3472,13 +9390,29 @@ message AutoscalingPolicy { // Configuration parameters of autoscaling based on load balancer. optional AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403; - // The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas. + // The maximum number of instances that the autoscaler can scale out to. This + // is required when creating or updating an autoscaler. The maximum number + // of replicas must not be lower than minimal number of replicas. optional int32 max_num_replicas = 62327375; - // The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed. + // The minimum number of replicas that the autoscaler can scale in to. + // This cannot be less than 0. If not provided, autoscaler chooses a + // default value depending on maximum number of instances allowed. optional int32 min_num_replicas = 535329825; - // Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler" + // Defines the operating mode for this policy. + // The following modes are available: + // + // - OFF: Disables the autoscaler but maintains its + // configuration. + // - ONLY_SCALE_OUT: Restricts the autoscaler to add + // VM instances only. + // - ON: Enables all autoscaler activities according to its + // policy. + // + // + // For more information, see + // "Turning off or restricting an autoscaler" // Check the Mode enum for the list of possible values. optional string mode = 3357091; @@ -3486,68 +9420,166 @@ message AutoscalingPolicy { optional AutoscalingPolicyScaleInControl scale_in_control = 527670872; - // Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed. + // Scaling schedules defined for an autoscaler. Multiple schedules + // can be set on an autoscaler, and they can overlap. During overlapping + // periods the greatest min_required_replicas of all scaling schedules is + // applied. Up to 128 scaling schedules are allowed. map scaling_schedules = 355416580; } // CPU utilization policy. message AutoscalingPolicyCpuUtilization { - // Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand. + // Indicates whether predictive autoscaling based on CPU metric is enabled. + // Valid values are: + // + // * NONE (default). No predictive method is used. The autoscaler scales the + // group to meet current demand based on real-time metrics. + // * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by + // monitoring daily and weekly load patterns and scaling out ahead of + // anticipated demand. enum PredictiveMethod { // A value indicating that the enum field is not set. UNDEFINED_PREDICTIVE_METHOD = 0; - // No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics + // No predictive method is used. The autoscaler scales the group to meet + // current demand based on real-time metrics NONE = 2402104; - // Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand. + // Predictive autoscaling improves availability by monitoring daily and + // weekly load patterns and scaling out ahead of anticipated demand. OPTIMIZE_AVAILABILITY = 11629437; PREDICTIVE_METHOD_UNSPECIFIED = 52410265; } - // Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand. + // Indicates whether predictive autoscaling based on CPU metric is enabled. + // Valid values are: + // + // * NONE (default). No predictive method is used. The autoscaler scales the + // group to meet current demand based on real-time metrics. + // * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by + // monitoring daily and weekly load patterns and scaling out ahead of + // anticipated demand. // Check the PredictiveMethod enum for the list of possible values. optional string predictive_method = 390220737; - // The target CPU utilization that the autoscaler maintains. Must be a float value in the range (0, 1]. If not specified, the default is 0.6. If the CPU level is below the target utilization, the autoscaler scales in the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales out until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization. + // The target CPU utilization that the autoscaler maintains. Must be + // a float value in the range (0, 1]. If not specified, the default is0.6. + // + // If the CPU level is below the target utilization, the autoscaler scales + // in the number of instances until it reaches the minimum number of + // instances you specified or until the average CPU of your instances + // reaches the target utilization. + // + // If the average CPU is above the target utilization, the autoscaler + // scales out until it reaches the maximum number of instances you + // specified or until the average utilization reaches the target + // utilization. optional double utilization_target = 215905870; } // Custom utilization metric policy. message AutoscalingPolicyCustomMetricUtilization { - // Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. + // Defines how target utilization value is expressed for a Stackdriver + // Monitoring metric. Either GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE. enum UtilizationTargetType { // A value indicating that the enum field is not set. UNDEFINED_UTILIZATION_TARGET_TYPE = 0; - // Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute. + // Sets the utilization target value for a cumulative or delta metric, + // expressed as the rate of growth per minute. DELTA_PER_MINUTE = 87432861; - // Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second. + // Sets the utilization target value for a cumulative or delta metric, + // expressed as the rate of growth per second. DELTA_PER_SECOND = 255180029; - // Sets the utilization target value for a gauge metric. The autoscaler will collect the average utilization of the virtual machines from the last couple of minutes, and compare the value to the utilization target value to perform autoscaling. + // Sets the utilization target value for a gauge metric. The autoscaler + // will collect the average utilization of the virtual machines from the + // last couple of minutes, and compare the value to the utilization + // target value to perform autoscaling. GAUGE = 67590361; } - // A filter string, compatible with a Stackdriver Monitoring filter string for TimeSeries.list API call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to determine whether the metric is exporting per-instance or per-group data. For the filter to be valid for autoscaling purposes, the following rules apply: - You can only use the AND operator for joining selectors. - You can only use direct equality comparison operator (=) without any functions for each selector. - You can specify the metric in both the filter string and in the metric field. However, if specified in both places, the metric must be identical. - The monitored resource type determines what kind of values are expected for the metric. If it is a gce_instance, the autoscaler expects the metric to include a separate TimeSeries for each instance in a group. In such a case, you cannot filter on resource labels. If the resource type is any other value, the autoscaler expects this metric to contain values that apply to the entire autoscaled instance group and resource label filtering can be performed to point autoscaler at the correct TimeSeries to scale upon. This is called a *per-group metric* for the purpose of autoscaling. If not specified, the type defaults to gce_instance. Try to provide a filter that is selective enough to pick just one TimeSeries for the autoscaled group or for each of the instances (if you are using gce_instance resource type). If multiple TimeSeries are returned upon the query execution, the autoscaler will sum their respective values to obtain its scaling value. + // A filter string, compatible with a Stackdriver Monitoringfilter string forTimeSeries.list API call. This filter is + // used to select a specific TimeSeries for the purpose of autoscaling and + // to determine whether the metric is exporting per-instance or + // per-group data. + // + // For the filter to be valid for autoscaling purposes, the following rules + // apply: + // + // + // - You can only use the AND operator for joining + // selectors. + // - You can only use direct equality comparison operator + // (=) without any functions for each selector. + // - You can specify the metric in both the filter string and in the + // metric field. However, if specified in both places, the metric must + // be identical. + // - The monitored resource type + // determines what kind of values are expected for the metric. If it is + // a gce_instance, the autoscaler expects the metric to + // include a separate TimeSeries for each instance in a group. In such a + // case, you cannot filter on resource labels. + // + // + // If the resource type is any other value, the autoscaler expects + // this metric to contain values that apply to the entire autoscaled + // instance group and resource label filtering can be performed to + // point autoscaler at the correct TimeSeries to scale upon. This is + // called a *per-group metric* for the purpose of autoscaling. + // + // If not specified, the type defaults to + // gce_instance. + // + // + // + // Try to provide a filter that is selective enough to pick just one + // TimeSeries for the autoscaled group or for each of the instances (if you + // are using gce_instance resource type). If multiple + // TimeSeries are returned upon the query execution, the autoscaler will sum + // their respective values to obtain its scaling value. optional string filter = 336120696; - // The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values. The metric must have a value type of INT64 or DOUBLE. + // The identifier (type) of the Stackdriver Monitoring metric. The metric + // cannot have negative values. + // + // The metric must have a value type of INT64 orDOUBLE. optional string metric = 533067184; - // If scaling is based on a per-group metric value that represents the total amount of work to be done or resource usage, set this value to an amount assigned for a single instance of the scaled group. Autoscaler keeps the number of instances proportional to the value of this metric. The metric itself does not change value due to group resizing. A good metric to use with the target is for example pubsub.googleapis.com/subscription/num_undelivered_messages or a custom metric exporting the total number of requests coming to your instances. A bad example would be a metric exporting an average or median latency, since this value can't include a chunk assignable to a single instance, it could be better used with utilization_target instead. + // If scaling is based on a per-group metric value that represents the + // total amount of work to be done or resource usage, set this value to an + // amount assigned for a single instance of the scaled group. Autoscaler + // keeps the number of instances proportional to the value of this + // metric. The metric itself does not change value due to group + // resizing. + // + // A good metric to use with the target is for examplepubsub.googleapis.com/subscription/num_undelivered_messages + // or a custom metric exporting the total number of requests coming to + // your instances. + // + // A bad example would be a metric exporting an average or median latency, + // since this value can't include a chunk assignable to a single instance, + // it could be better used with utilization_target instead. optional double single_instance_assignment = 504768064; - // The target value of the metric that autoscaler maintains. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric. For example, a good metric to use as a utilization_target is https://www.googleapis.com/compute/v1/instance/network/received_bytes_count. The autoscaler works to keep this value constant for each of the instances. + // The target value of the metric that autoscaler maintains. This + // must be a positive value. A utilization metric scales number of + // virtual machines handling requests to increase or decrease + // proportionally to the metric. + // + // For example, a good metric to use as a utilization_target ishttps://www.googleapis.com/compute/v1/instance/network/received_bytes_count. + // The autoscaler works to keep this value constant for each of the + // instances. optional double utilization_target = 215905870; - // Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. + // Defines how target utilization value is expressed for a Stackdriver + // Monitoring metric. Either GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE. // Check the UtilizationTargetType enum for the list of possible values. optional string utilization_target_type = 340169355; @@ -3555,56 +9587,100 @@ message AutoscalingPolicyCustomMetricUtilization { // Configuration parameters of autoscaling based on load balancing. message AutoscalingPolicyLoadBalancingUtilization { - // Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the autoscaler maintains. Must be a positive float value. If not defined, the default is 0.8. + // Fraction of backend capacity utilization (set in HTTP(S) load balancing + // configuration) that the autoscaler maintains. Must be a positive float + // value. If not defined, the default is 0.8. optional double utilization_target = 215905870; } -// Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt scale in of a MIG, it will be throttled as specified by the parameters below. +// Configuration that allows for slower scale in so that even if Autoscaler +// recommends an abrupt scale in of a MIG, it will be throttled as specified +// by the parameters below. message AutoscalingPolicyScaleDownControl { - // Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step. + // Maximum allowed number (or %) of VMs that can be deducted from the peak + // recommendation during the window autoscaler looks at when computing + // recommendations. Possibly all these VMs can be deleted at once so user + // service needs to be prepared to lose that many VMs in one step. optional FixedOrPercent max_scaled_down_replicas = 47461006; - // How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above. + // How far back autoscaling looks when computing recommendations to + // include directives regarding slower scale in, as described above. optional int32 time_window_sec = 36405300; } -// Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt scale in of a MIG, it will be throttled as specified by the parameters below. +// Configuration that allows for slower scale in so that even if Autoscaler +// recommends an abrupt scale in of a MIG, it will be throttled as specified +// by the parameters below. message AutoscalingPolicyScaleInControl { - // Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step. + // Maximum allowed number (or %) of VMs that can be deducted from the peak + // recommendation during the window autoscaler looks at when computing + // recommendations. Possibly all these VMs can be deleted at once so user + // service needs to be prepared to lose that many VMs in one step. optional FixedOrPercent max_scaled_in_replicas = 180710123; - // How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above. + // How far back autoscaling looks when computing recommendations to + // include directives regarding slower scale in, as described above. optional int32 time_window_sec = 36405300; } -// Scaling based on user-defined schedule. The message describes a single scaling schedule. A scaling schedule changes the minimum number of VM instances an autoscaler can recommend, which can trigger scaling out. +// Scaling based on user-defined schedule. The message describes a single +// scaling schedule. A scaling schedule changes the minimum number of VM +// instances an autoscaler can recommend, which can trigger scaling out. message AutoscalingPolicyScalingSchedule { // A description of a scaling schedule. optional string description = 422937596; - // A boolean value that specifies whether a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect. This field is optional, and its value is false by default. + // A boolean value that specifies whether a scaling schedule can influence + // autoscaler recommendations. If set to true, then a scaling schedule has + // no effect. This field is optional, and its value is false by default. optional bool disabled = 270940796; - // The duration of time intervals, in seconds, for which this scaling schedule is to run. The minimum allowed value is 300. This field is required. + // The duration of time intervals, in seconds, for which this + // scaling schedule is to run. The minimum allowed value is 300. + // This field is required. optional int32 duration_sec = 212356902; - // The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule. This field is required. + // The minimum number of VM instances that the autoscaler will + // recommend in time intervals starting according to schedule. This field is + // required. optional int32 min_required_replicas = 365514414; - // The start timestamps of time intervals when this scaling schedule is to provide a scaling signal. This field uses the extended cron format (with an optional year field). The expression can describe a single timestamp if the optional year is set, in which case the scaling schedule runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: These timestamps only describe when autoscaler starts providing the scaling signal. The VMs need additional time to become serving. + // The start timestamps of time intervals when this scaling + // schedule is to provide a scaling signal. This field uses the extended + // cron format (with an optional year field). The expression can describe a + // single timestamp if the optional year is set, in which case the scaling + // schedule runs once. The schedule is interpreted with respect to + // time_zone. This field is required. Note: These timestamps only describe + // when autoscaler starts providing the scaling signal. The VMs + // need additional time to become serving. optional string schedule = 375820951; - // The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: https://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of "UTC" if left empty. + // The time zone to use when interpreting the schedule. + // The value of this field must be a time zone name from the tz database: + // https://en.wikipedia.org/wiki/Tz_database. This field is assigned a + // default value of "UTC" if left empty. optional string time_zone = 36848094; } // Message containing information of one individual backend. message Backend { - // Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected. + // Specifies how to determine whether the backend of a load balancer can + // handle additional traffic or is fully loaded. For usage guidelines, see + // Connection balancing mode. + // + // Backends must use compatible balancing modes. For more information, see + // Supported balancing modes and target capacity settings and + // Restrictions and guidance for instance groups. + // + // Note: Currently, if you use the API to configure incompatible balancing + // modes, the configuration might be accepted even though it has no impact + // and is ignored. Specifically, Backend.maxUtilization is ignored when + // Backend.balancingMode is RATE. In the future, this incompatible combination + // will be rejected. enum BalancingMode { // A value indicating that the enum field is not set. UNDEFINED_BALANCING_MODE = 0; @@ -3626,7 +9702,16 @@ message Backend { } - // This field indicates whether this backend should be fully utilized before sending traffic to backends with default preference. The possible values are: - PREFERRED: Backends with this preference level will be filled up to their capacity limits first, based on RTT. - DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be used and traffic would be assigned based on the load balancing algorithm you use. This is the default + // This field indicates whether this backend should be fully utilized before + // sending traffic to backends with default preference. The possible values + // are: + // + // - PREFERRED: Backends with this preference level will be + // filled up to their capacity limits first, based on RTT. + // - DEFAULT: If preferred backends don't have enough + // capacity, backends in this layer would be used and traffic would be + // assigned based on the load balancing algorithm you use. This is the + // default enum Preference { // A value indicating that the enum field is not set. UNDEFINED_PREFERENCE = 0; @@ -3647,7 +9732,8 @@ message Backend { // A value indicating that the enum field is not set. UNDEFINED_TRAFFIC_DURATION = 0; - // Most of the requests are expected to take more than multiple seconds to finish. + // Most of the requests are expected to take more than multiple seconds to + // finish. LONG = 2342524; // Most requests are expected to finish with a sub-second latency. @@ -3658,56 +9744,137 @@ message Backend { } - // Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected. + // Specifies how to determine whether the backend of a load balancer can + // handle additional traffic or is fully loaded. For usage guidelines, see + // Connection balancing mode. + // + // Backends must use compatible balancing modes. For more information, see + // Supported balancing modes and target capacity settings and + // Restrictions and guidance for instance groups. + // + // Note: Currently, if you use the API to configure incompatible balancing + // modes, the configuration might be accepted even though it has no impact + // and is ignored. Specifically, Backend.maxUtilization is ignored when + // Backend.balancingMode is RATE. In the future, this incompatible combination + // will be rejected. // Check the BalancingMode enum for the list of possible values. optional string balancing_mode = 430286217; - // A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. Not available with backends that don't support using a balancingMode. This includes backends such as global internet NEGs, regional serverless NEGs, and PSC NEGs. + // A multiplier applied to the backend's target capacity of its balancing + // mode. + // The default value is 1, which means the group serves up to + // 100% of its configured capacity (depending onbalancingMode). A setting of 0 means the group is + // completely drained, offering 0% of its available capacity. The valid ranges + // are 0.0 and [0.1,1.0]. + // You cannot configure a setting larger than 0 and smaller than0.1. + // You cannot configure a setting of 0 when there is only one + // backend attached to the backend service. + // + // Not available with backends that don't support using abalancingMode. This includes backends such as global + // internet NEGs, regional serverless NEGs, and PSC NEGs. optional float capacity_scaler = 315958157; - // List of custom metrics that are used for CUSTOM_METRICS BalancingMode. + // List of custom metrics that are used for CUSTOM_METRICS + // BalancingMode. repeated BackendCustomMetric custom_metrics = 429453813; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService. + // This field designates whether this is a failover backend. More than one + // failover backend can be configured for a given BackendService. optional bool failover = 138892530; - // The fully-qualified URL of an instance group or network endpoint group (NEG) resource. To determine what types of backends a load balancer supports, see the [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). You must use the *fully-qualified* URL (starting with https://www.googleapis.com/) to specify the instance group or NEG. Partial URLs are not supported. If haPolicy is specified, backends must refer to NEG resources of type GCE_VM_IP. + // The fully-qualified URL of aninstance + // group or network endpoint + // group (NEG) resource. To determine what types of backends a load + // balancer supports, see the [Backend services + // overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). + // + // You must use the *fully-qualified* URL (starting withhttps://www.googleapis.com/) to specify the instance group + // or NEG. Partial URLs are not supported. + // + // If haPolicy is specified, backends must refer to NEG resources of type + // GCE_VM_IP. optional string group = 98629247; - // Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE. + // Defines a target maximum number of simultaneous connections. For usage + // guidelines, seeConnection + // balancing mode and Utilization + // balancing mode. Not available if the backend'sbalancingMode is RATE. optional int32 max_connections = 110652154; - // Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE. + // Defines a target maximum number of simultaneous connections. For usage + // guidelines, seeConnection + // balancing mode and Utilization + // balancing mode. + // + // Not available if the backend's balancingMode isRATE. optional int32 max_connections_per_endpoint = 216904604; - // Defines a target maximum number of simultaneous connections. For usage guidelines, see Connection balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is RATE. + // Defines a target maximum number of simultaneous connections. + // For usage guidelines, seeConnection + // balancing mode and Utilization + // balancing mode. + // + // Not available if the backend's balancingMode isRATE. optional int32 max_connections_per_instance = 104671900; - // Defines a maximum number of in-flight requests for the whole NEG or instance group. Not available if backend's balancingMode is RATE or CONNECTION. + // Defines a maximum number of in-flight requests for the whole NEG or + // instance group. Not available if backend's balancingMode isRATE or CONNECTION. optional int32 max_in_flight_requests = 273269332; - // Defines a maximum number of in-flight requests for a single endpoint. Not available if backend's balancingMode is RATE or CONNECTION. + // Defines a maximum number of in-flight requests for a single endpoint. + // Not available if backend's balancingMode is RATE + // or CONNECTION. optional int32 max_in_flight_requests_per_endpoint = 307928706; - // Defines a maximum number of in-flight requests for a single VM. Not available if backend's balancingMode is RATE or CONNECTION. + // Defines a maximum number of in-flight requests for a single VM. + // Not available if backend's balancingMode is RATE + // or CONNECTION. optional int32 max_in_flight_requests_per_instance = 195696002; - // Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION. + // Defines a maximum number of HTTP requests per second (RPS). For + // usage guidelines, seeRate + // balancing mode and Utilization + // balancing mode. + // + // Not available if the backend's balancingMode isCONNECTION. optional int32 max_rate = 408035035; - // Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION. + // Defines a maximum target for requests per second (RPS). For usage + // guidelines, seeRate + // balancing mode and Utilization + // balancing mode. + // + // Not available if the backend's balancingMode isCONNECTION. optional float max_rate_per_endpoint = 129832283; - // Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION. + // Defines a maximum target for requests per second (RPS). For usage + // guidelines, seeRate + // balancing mode and Utilization + // balancing mode. + // + // Not available if the backend's balancingMode isCONNECTION. optional float max_rate_per_instance = 17599579; - // Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. + // Optional parameter to define a target capacity for theUTILIZATION balancing mode. The valid range is[0.0, 1.0]. + // + // For usage guidelines, seeUtilization + // balancing mode. optional float max_utilization = 148192199; - // This field indicates whether this backend should be fully utilized before sending traffic to backends with default preference. The possible values are: - PREFERRED: Backends with this preference level will be filled up to their capacity limits first, based on RTT. - DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be used and traffic would be assigned based on the load balancing algorithm you use. This is the default + // This field indicates whether this backend should be fully utilized before + // sending traffic to backends with default preference. The possible values + // are: + // + // - PREFERRED: Backends with this preference level will be + // filled up to their capacity limits first, based on RTT. + // - DEFAULT: If preferred backends don't have enough + // capacity, backends in this layer would be used and traffic would be + // assigned based on the load balancing algorithm you use. This is the + // default // Check the Preference enum for the list of possible values. optional string preference = 150781147; @@ -3717,26 +9884,41 @@ message Backend { } -// Represents a Cloud Storage Bucket resource. This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more information, read Backend Buckets. +// Represents a Cloud Storage Bucket resource. +// +// This Cloud Storage bucket resource is referenced by a URL map of a load +// balancer. For more information, readBackend Buckets. message BackendBucket { - // Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. + // Compress text responses using Brotli or gzip compression, based on + // the client's Accept-Encoding header. enum CompressionMode { // A value indicating that the enum field is not set. UNDEFINED_COMPRESSION_MODE = 0; - // Automatically uses the best compression based on the Accept-Encoding header sent by the client. + // Automatically uses the best compression based on the Accept-Encoding + // header sent by the client. AUTOMATIC = 165298699; - // Disables compression. Existing compressed responses cached by Cloud CDN will not be served to clients. + // Disables compression. Existing compressed responses cached by + // Cloud CDN will not be served to clients. DISABLED = 516696700; } - // The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. If loadBalancingScheme is not specified, the backend bucket can be used by classic global external load balancers, or global application external load balancers, or both. + // The value can only be INTERNAL_MANAGED for cross-region internal layer 7 + // load balancer. + // + // If loadBalancingScheme is not specified, the backend bucket can be used by + // classic global external load balancers, or global application external load + // balancers, or both. enum LoadBalancingScheme { // A value indicating that the enum field is not set. UNDEFINED_LOAD_BALANCING_SCHEME = 0; + // Signifies that this will be used for regional external Application Load + // Balancers. + EXTERNAL_MANAGED = 512006923; + // Signifies that this will be used for internal Application Load Balancers. INTERNAL_MANAGED = 37350397; @@ -3748,20 +9930,24 @@ message BackendBucket { // Cloud CDN configuration for this BackendBucket. optional BackendBucketCdnPolicy cdn_policy = 213976452; - // Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. + // Compress text responses using Brotli or gzip compression, based on + // the client's Accept-Encoding header. // Check the CompressionMode enum for the list of possible values. optional string compression_mode = 95520988; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // Headers that the Application Load Balancer should add to proxied responses. repeated string custom_response_headers = 387539094; - // An optional textual description of the resource; provided by the client when the resource is created. + // An optional textual description of the resource; provided by the client + // when the resource is created. optional string description = 422937596; - // [Output Only] The resource URL for the edge security policy associated with this backend bucket. + // [Output Only] The resource URL for the edge security policy associated with + // this backend bucket. optional string edge_security_policy = 41036943; // If true, enable Cloud CDN for this BackendBucket. @@ -3773,16 +9959,34 @@ message BackendBucket { // Type of the resource. optional string kind = 3292052; - // The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. If loadBalancingScheme is not specified, the backend bucket can be used by classic global external load balancers, or global application external load balancers, or both. + // The value can only be INTERNAL_MANAGED for cross-region internal layer 7 + // load balancer. + // + // If loadBalancingScheme is not specified, the backend bucket can be used by + // classic global external load balancers, or global application external load + // balancers, or both. // Check the LoadBalancingScheme enum for the list of possible values. optional string load_balancing_scheme = 363890244; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional BackendBucketParams params = 78313862; + // [Output Only] URL of the region where the regional backend bucket + // resides. This field is not applicable to global backend buckets. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. + optional string region = 138946292; + // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; @@ -3791,58 +9995,194 @@ message BackendBucket { } +// +message BackendBucketAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of BackendBucketsScopedList resources. + map items = 100526016; + + // Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // Message containing Cloud CDN configuration for a backend bucket. message BackendBucketCdnPolicy { - // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + // Specifies the cache setting for all responses from this backend. + // The possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching + // headers to cache content. Responses without these headers will not be + // cached at Google's edge, and will require a full trip to the origin on + // every request, potentially impacting performance and increasing load on + // the origin server.FORCE_CACHE_ALL Cache all content, ignoring any "private", + // "no-store" or "no-cache" directives in Cache-Control response headers. + // Warning: this may result in Cloud CDN caching private, + // per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content, + // including common image formats, media (video and audio), and web assets + // (JavaScript and CSS). Requests and responses that are marked as + // uncacheable, as well as dynamic content (including HTML), will not be + // cached. + // + // If no value is provided for cdnPolicy.cacheMode, it defaults + // to CACHE_ALL_STATIC. enum CacheMode { // A value indicating that the enum field is not set. UNDEFINED_CACHE_MODE = 0; - // Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. + // Automatically cache static content, including common image formats, + // media (video and audio), and web assets (JavaScript and CSS). + // Requests and responses that are marked as uncacheable, as well as + // dynamic content (including HTML), will not be cached. CACHE_ALL_STATIC = 355027945; - // Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. + // Cache all content, ignoring any "private", "no-store" or "no-cache" + // directives in Cache-Control response headers. + // Warning: this may result in Cloud CDN caching private, + // per-user (user identifiable) content. FORCE_CACHE_ALL = 486026928; INVALID_CACHE_MODE = 381295560; - // Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. + // Requires the origin to set valid caching headers to cache content. + // Responses without these headers will not be cached at Google's edge, + // and will require a full trip to the origin on every request, + // potentially impacting performance and increasing load on the + // origin server. USE_ORIGIN_HEADERS = 55380261; } - // Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. + // Bypass the cache when the specified request headers are matched - e.g. + // Pragma or Authorization headers. Up to 5 headers can be specified. + // The cache is bypassed for all cdnPolicy.cacheMode settings. repeated BackendBucketCdnPolicyBypassCacheOnRequestHeader bypass_cache_on_request_headers = 486203082; // The CacheKeyPolicy for this CdnPolicy. optional BackendBucketCdnPolicyCacheKeyPolicy cache_key_policy = 159263727; - // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + // Specifies the cache setting for all responses from this backend. + // The possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching + // headers to cache content. Responses without these headers will not be + // cached at Google's edge, and will require a full trip to the origin on + // every request, potentially impacting performance and increasing load on + // the origin server.FORCE_CACHE_ALL Cache all content, ignoring any "private", + // "no-store" or "no-cache" directives in Cache-Control response headers. + // Warning: this may result in Cloud CDN caching private, + // per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content, + // including common image formats, media (video and audio), and web assets + // (JavaScript and CSS). Requests and responses that are marked as + // uncacheable, as well as dynamic content (including HTML), will not be + // cached. + // + // If no value is provided for cdnPolicy.cacheMode, it defaults + // to CACHE_ALL_STATIC. // Check the CacheMode enum for the list of possible values. optional string cache_mode = 28877888; - // Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the response max-age directive, along with a "public" directive. For cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if specified), or else sets the response max-age directive to the lesser of the client_ttl and default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s (1 year). + // Specifies a separate client (e.g. browser client) maximum TTL. This is + // used to clamp the max-age (or Expires) value sent to the client. With + // FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the + // response max-age directive, along with a "public" directive. For + // cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age + // from the origin (if specified), or else sets the response max-age + // directive to the lesser of the client_ttl and default_ttl, and also + // ensures a "public" cache-control directive is present. + // If a client TTL is not specified, a default value (1 hour) will be used. + // The maximum allowed value is 31,622,400s (1 year). optional int32 client_ttl = 29034360; - // Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. + // Specifies the default TTL for cached content served by this origin for + // responses that do not have an existing valid TTL (max-age or s-maxage). + // Setting a TTL of "0" means "always revalidate". + // The value of defaultTTL cannot be set to a value greater than that of + // maxTTL, but can be equal. + // When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL + // will overwrite the TTL set in all responses. The maximum allowed value is + // 31,622,400s (1 year), noting that infrequently accessed objects may be + // evicted from the cache before the defined TTL. optional int32 default_ttl = 100253422; - // Specifies the maximum allowed TTL for cached content served by this origin. Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. + // Specifies the maximum allowed TTL for cached content served by this + // origin. + // Cache directives that attempt to set a max-age or s-maxage higher than + // this, or an Expires header more than maxTTL seconds in the future will + // be capped at the value of maxTTL, as if it were the value of an + // s-maxage Cache-Control directive. + // Headers sent to the client will not be modified. + // Setting a TTL of "0" means "always revalidate". + // The maximum allowed value is 31,622,400s (1 year), noting that + // infrequently accessed objects may be evicted from the cache before + // the defined TTL. optional int32 max_ttl = 307578001; - // Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. + // Negative caching allows per-status code TTLs to be set, in order + // to apply fine-grained caching for common errors or redirects. + // This can reduce the load on your origin and improve end-user + // experience by reducing response latency. + // When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, + // negative caching applies to responses with the specified response code + // that lack any Cache-Control, Expires, or Pragma: no-cache directives. + // When the cache mode is set to FORCE_CACHE_ALL, negative caching applies + // to all responses with the specified response code, and override any + // caching headers. + // By default, Cloud CDN will apply the following default TTLs to these + // status codes: + // HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m + // HTTP 404 (Not Found), 410 (Gone), + // 451 (Unavailable For Legal Reasons): 120s + // HTTP 405 (Method Not Found), 501 (Not Implemented): 60s. + // These defaults can be overridden in negative_caching_policy. optional bool negative_caching = 336110005; - // Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled will use Cloud CDN's default cache TTLs. Note that when specifying an explicit negative_caching_policy, you should take care to specify a cache TTL for all response codes that you wish to cache. Cloud CDN will not apply any default negative caching when a policy exists. + // Sets a cache TTL for the specified HTTP status code. + // negative_caching must be enabled to configure negative_caching_policy. + // Omitting the policy and leaving negative_caching enabled will use + // Cloud CDN's default cache TTLs. + // Note that when specifying an explicit negative_caching_policy, you + // should take care to specify a cache TTL for all response codes + // that you wish to cache. Cloud CDN will not apply any default + // negative caching when a policy exists. repeated BackendBucketCdnPolicyNegativeCachingPolicy negative_caching_policy = 155359996; - // If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin. + // If true then Cloud CDN will combine multiple concurrent cache fill + // requests into a small number of requests to the origin. optional bool request_coalescing = 532808276; - // Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. This setting defines the default "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale responses that exceed the TTL configured here will not be served. The default limit (max-stale) is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max-age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this to zero (0) to disable serve-while-stale. + // Serve existing content from the cache (if available) when revalidating + // content with the origin, or when an error is encountered when refreshing + // the cache. + // This setting defines the default "max-stale" duration for any cached + // responses that do not specify a max-stale directive. Stale responses that + // exceed the TTL configured here will not be served. The default limit + // (max-stale) is 86400s (1 day), which will allow stale content to be + // served up to this limit beyond the max-age (or s-maxage) of a cached + // response. + // The maximum allowed value is 604800 (1 week). + // Set this to zero (0) to disable serve-while-stale. optional int32 serve_while_stale = 236682203; - // Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. Defaults to 1hr (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered. + // Maximum number of seconds the response to a signed URL request will be + // considered fresh. After this time period, the response will be + // revalidated before being served. Defaults to 1hr (3600s). When serving + // responses to signed URL requests, Cloud CDN will internally behave as + // though all responses from this backend had a "Cache-Control: + // public, max-age=[TTL]" header, regardless of any existing + // Cache-Control header. The actual headers served in responses will not be + // altered. optional int64 signed_url_cache_max_age_sec = 269374534; // [Output Only] Names of the keys for signing request URLs. @@ -3850,29 +10190,42 @@ message BackendBucketCdnPolicy { } -// Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization headers. Values are case insensitive. The presence of such a header overrides the cache_mode setting. +// Bypass the cache when the specified request headers are present, +// e.g. Pragma or Authorization headers. Values are case insensitive. +// The presence of such a header overrides the cache_mode setting. message BackendBucketCdnPolicyBypassCacheOnRequestHeader { - // The header field name to match on when bypassing cache. Values are case-insensitive. + // The header field name to match on when bypassing cache. + // Values are case-insensitive. optional string header_name = 110223613; } -// Message containing what to include in the cache key for a request for Cloud CDN. +// Message containing what to include in the cache key for a request for +// Cloud CDN. message BackendBucketCdnPolicyCacheKeyPolicy { // Allows HTTP request headers (by name) to be used in the cache key. repeated string include_http_headers = 2489606; - // Names of query string parameters to include in cache keys. Default parameters are always included. '&' and '=' will be percent encoded and not treated as delimiters. + // Names of query string parameters to include in cache keys. Default + // parameters are always included. '&' and '=' will be percent encoded + // and not treated as delimiters. repeated string query_string_whitelist = 52456496; } // Specify CDN TTLs for response error codes. message BackendBucketCdnPolicyNegativeCachingPolicy { - // The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once. + // The HTTP status code to define a TTL against. Only HTTP status codes + // 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be + // specified as values, and you cannot specify a status code more than + // once. optional int32 code = 3059181; - // The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. + // The TTL (in seconds) for which to cache responses with the + // corresponding status code. + // The maximum allowed value is 1800s (30 minutes), noting that + // infrequently accessed objects may be evicted from the cache before the + // defined TTL. optional int32 ttl = 115180; } @@ -3888,7 +10241,11 @@ message BackendBucketList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -3907,10 +10264,15 @@ message BackendBucketListUsable { // A list of BackendBucket resources. repeated BackendBucket items = 100526016; - // [Output Only] Type of resource. Always compute#usableBackendBucketList for lists of usable backend buckets. + // [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend + // buckets. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -3923,47 +10285,113 @@ message BackendBucketListUsable { // Additional Backend Bucket parameters. message BackendBucketParams { - // Tag keys/values directly bound to this resource. Tag keys and values have the same definition as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {"123/environment" : "tagValues/444"} is invalid. + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. map resource_manager_tags = 377671164; } // message BackendBucketUsedBy { - // [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + // [Output Only] Server-defined URL for UrlMaps referencing that + // BackendBucket. optional string reference = 148586315; } +// +message BackendBucketsScopedList { + // A list of BackendBuckets contained in this scope. + repeated BackendBucket backend_buckets = 158780702; + + // Informational warning which replaces the list of + // backend services when the list is empty. + optional Warning warning = 50704284; + +} + // Custom Metrics are used for CUSTOM_METRICS balancing_mode. message BackendCustomMetric { - // If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing. + // If true, the metric data is collected and reported to Cloud + // Monitoring, but is not used for load balancing. optional bool dry_run = 323854839; - // Optional parameter to define a target utilization for the Custom Metrics balancing mode. The valid range is [0.0, 1.0]. + // Optional parameter to define a target utilization for the Custom Metrics + // balancing mode. The valid range is [0.0, 1.0]. optional float max_utilization = 148192199; - // Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means that the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + // Name of a custom utilization signal. The name must be 1-64 characters + // long and match the regular expression + // `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the + // first character must be a lowercase letter, and all following + // characters must be a dash, period, underscore, lowercase letter, or + // digit, except the last character, which cannot be a dash, period, or + // underscore. For usage guidelines, see Custom Metrics balancing mode. This + // field can only be used for a global or regional backend service with the + // loadBalancingScheme set to EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. optional string name = 3373707; } -// Represents a Backend Service resource. A backend service defines how Google Cloud load balancers distribute traffic. The backend service configuration contains a set of values, such as the protocol used to connect to backends, various distribution and session settings, health checks, and timeouts. These settings provide fine-grained control over how your load balancer behaves. Most of the settings have default values that allow for easy configuration if you need to get started quickly. Backend services in Google Compute Engine can be either regionally or globally scoped. * [Global](https://cloud.google.com/compute/docs/reference/rest/beta/backendServices) * [Regional](https://cloud.google.com/compute/docs/reference/rest/beta/regionBackendServices) For more information, see Backend Services. +// Represents a Backend Service resource. +// +// A backend service defines how Google Cloud load balancers distribute traffic. +// The backend service configuration contains a set of values, such as the +// protocol used to connect to backends, various distribution and session +// settings, health checks, and timeouts. These settings provide fine-grained +// control over how your load balancer behaves. Most of the settings have +// default values that allow for easy configuration if you need to get started +// quickly. +// +// Backend services in Google Compute Engine can be either regionally or +// globally scoped. +// +// * [Global](https://cloud.google.com/compute/docs/reference/rest/beta/backendServices) +// * [Regional](https://cloud.google.com/compute/docs/reference/rest/beta/regionBackendServices) +// +// For more information, seeBackend +// Services. message BackendService { - // Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. + // Compress text responses using Brotli or gzip compression, based on + // the client's Accept-Encoding header. enum CompressionMode { // A value indicating that the enum field is not set. UNDEFINED_COMPRESSION_MODE = 0; - // Automatically uses the best compression based on the Accept-Encoding header sent by the client. + // Automatically uses the best compression based on the Accept-Encoding + // header sent by the client. AUTOMATIC = 165298699; - // Disables compression. Existing compressed responses cached by Cloud CDN will not be served to clients. + // Disables compression. Existing compressed responses cached by + // Cloud CDN will not be served to clients. DISABLED = 516696700; } - // Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by percentage using externalManagedMigrationTestingPercentage. Rolling back a migration requires the states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + // Specifies the canary migration state. Possible values are PREPARE, + // TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. + // + // To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be + // changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before + // the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate traffic by percentage using + // externalManagedMigrationTestingPercentage. + // + // Rolling back a migration requires the states to be set in reverse order. So + // changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to + // be set to TEST_ALL_TRAFFIC at the same time. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + // EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. enum ExternalManagedMigrationState { // A value indicating that the enum field is not set. UNDEFINED_EXTERNAL_MANAGED_MIGRATION_STATE = 0; @@ -3976,37 +10404,84 @@ message BackendService { } - // Specifies a preference for traffic sent from the proxy to the backend (or from the client to the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 health checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health checks are used to check the health of the backends. This field is applicable to either: - Advanced global external Application Load Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load Balancer, - Internal proxy Network Load Balancer (load balancing scheme INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED). + // Specifies a preference for traffic sent from the proxy to the backend (or + // from the client to the backend for proxyless gRPC). + // The possible values are: + // + // - IPV4_ONLY: Only send IPv4 traffic to the backends of the + // backend service (Instance Group, Managed Instance Group, Network Endpoint + // Group), regardless of traffic from the client to the proxy. Only IPv4 + // health checks are used to check the health of the backends. This is the + // default setting. + // - PREFER_IPV6: Prioritize the connection to the endpoint's + // IPv6 address over its IPv4 address (provided there is a healthy IPv6 + // address). + // - IPV6_ONLY: Only send IPv6 traffic to the backends of the + // backend service (Instance Group, Managed Instance Group, Network Endpoint + // Group), regardless of traffic from the client to the proxy. Only IPv6 + // health checks are used to check the health of the backends. + // + // + // + // This field is applicable to either: + // + // - Advanced global external Application Load Balancer (load balancing + // scheme EXTERNAL_MANAGED), + // - Regional external Application Load + // Balancer, + // - Internal proxy Network Load Balancer (load balancing + // scheme INTERNAL_MANAGED), + // - Regional internal Application Load + // Balancer (load balancing scheme INTERNAL_MANAGED), + // - Traffic + // Director with Envoy proxies and proxyless gRPC (load balancing scheme + // INTERNAL_SELF_MANAGED). enum IpAddressSelectionPolicy { // A value indicating that the enum field is not set. UNDEFINED_IP_ADDRESS_SELECTION_POLICY = 0; - // Only send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv4 health-checks are used to check the health of the backends. This is the default setting. + // Only send IPv4 traffic to the backends of the Backend Service + // (Instance Group, Managed Instance Group, Network Endpoint Group) + // regardless of traffic from the client to the proxy. + // Only IPv4 health-checks are used to check the health of the backends. + // This is the default setting. IPV4_ONLY = 22373798; - // Only send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv6 health-checks are used to check the health of the backends. + // Only send IPv6 traffic to the backends of the Backend Service + // (Instance Group, Managed Instance Group, Network Endpoint Group) + // regardless of traffic from the client to the proxy. Only IPv6 + // health-checks are used to check the health of the backends. IPV6_ONLY = 79632100; // Unspecified IP address selection policy. IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED = 36210144; - // Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). + // Prioritize the connection to the endpoints IPv6 address + // over its IPv4 address (provided there is a healthy IPv6 address). PREFER_IPV6 = 408601302; } - // Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. + // Specifies the load balancer type. A backend service + // created for one type of load balancer cannot be used with another. + // For more information, refer toChoosing + // a load balancer. enum LoadBalancingScheme { // A value indicating that the enum field is not set. UNDEFINED_LOAD_BALANCING_SCHEME = 0; - // Signifies that this will be used for classic Application Load Balancers, global external proxy Network Load Balancers, or external passthrough Network Load Balancers. + // Signifies that this will be used for classic Application Load Balancers, + // global external proxy Network Load Balancers, + // or external passthrough Network Load Balancers. EXTERNAL = 35607499; - // Signifies that this will be used for global external Application Load Balancers, regional external Application Load Balancers, or regional external proxy Network Load Balancers. + // Signifies that this will be used for global external Application Load + // Balancers, regional external Application Load Balancers, or regional + // external proxy Network Load Balancers. EXTERNAL_MANAGED = 512006923; - // Signifies that this will be used for internal passthrough Network Load Balancers. + // Signifies that this will be used for internal passthrough Network Load + // Balancers. INTERNAL = 279295677; // Signifies that this will be used for internal Application Load Balancers. @@ -4019,43 +10494,130 @@ message BackendService { } - // The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via the customMetrics field. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not configured—that is, if session affinity remains at the default value of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to a value other than NONE, then the default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. localityLbPolicy cannot be specified with haPolicy. + // The load balancing algorithm used within the scope of the locality. The + // possible values are: + // + // - ROUND_ROBIN: This is a simple policy in which each healthy + // backend is selected in round robin order. This is the default. + // - LEAST_REQUEST: An O(1) algorithm which + // selects two random healthy hosts and picks the host which has fewer active + // requests. + // - RING_HASH: The ring/modulo hash load balancer implements + // consistent hashing to backends. The algorithm has the property that the + // addition/removal of a host from a set of N hosts only affects 1/N of the + // requests. + // - RANDOM: The load balancer selects a random healthy + // host. + // - ORIGINAL_DESTINATION: Backend host is selected + // based on the client connection metadata, i.e., connections are opened to + // the same address as the destination address of the incoming connection + // before the connection was redirected to the load balancer. + // - MAGLEV: used as a drop in replacement for the ring hash + // load balancer. Maglev is not as stable as ring hash but has faster table + // lookup build times and host selection times. For more information about + // Maglev, see Maglev: + // A Fast and Reliable Software Network Load Balancer. + // - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin + // Load Balancing using weights computed from Backend reported Custom Metrics. + // If set, the Backend Service responses are expected to contain non-standard + // HTTP response header field Endpoint-Load-Metrics. The reported + // metrics to use for computing the weights are specified via thecustomMetrics field. + // + // This field is applicable to either: + // - A regional backend service with the service_protocol set to HTTP, + // HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + // INTERNAL_MANAGED. + // - A global backend service with the + // load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or + // EXTERNAL_MANAGED. + // + // + // If sessionAffinity is not configured—that is, if session + // affinity remains at the default value of NONE—then the + // default value for localityLbPolicy + // is ROUND_ROBIN. If session affinity is set to a value other + // than NONE, + // then the default value for localityLbPolicy isMAGLEV. + // + // Only ROUND_ROBIN and RING_HASH are supported + // when the backend service is referenced by a URL map that is bound to + // target gRPC proxy that has validateForProxyless field set to true. + // + // localityLbPolicy cannot be specified with haPolicy. enum LocalityLbPolicy { // A value indicating that the enum field is not set. UNDEFINED_LOCALITY_LB_POLICY = 0; INVALID_LB_POLICY = 323318707; - // An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. + // An O(1) algorithm which selects two random healthy hosts and + // picks the host which has fewer active requests. LEAST_REQUEST = 46604921; - // This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. + // This algorithm implements consistent hashing to backends. Maglev can be + // used as a drop in replacement for the ring hash load balancer. Maglev is + // not as stable as ring hash but has faster table lookup build times and + // host selection times. For more information about Maglev, seeMaglev: + // A Fast and Reliable Software Network Load Balancer. MAGLEV = 119180266; - // Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. + // Backend host is selected based on the client connection metadata, i.e., + // connections are opened to the same address as the destination address of + // the incoming connection before the connection was redirected to the load + // balancer. ORIGINAL_DESTINATION = 166297216; // The load balancer selects a random healthy host. RANDOM = 262527171; - // The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. + // The ring/modulo hash load balancer implements consistent hashing to + // backends. The algorithm has the property that the addition/removal + // of a host from a set of N hosts only affects 1/N of the requests. RING_HASH = 432795069; - // This is a simple policy in which each healthy backend is selected in round robin order. This is the default. + // This is a simple policy in which each healthy backend is selected + // in round robin order. This is the default. ROUND_ROBIN = 153895801; - // Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing. + // Per-instance weighted Load Balancing via health check reported weights. + // In internal passthrough network load balancing, it is weighted + // rendezvous hashing. + // This option is only supported in internal passthrough network load + // balancing. WEIGHTED_GCP_RENDEZVOUS = 82501640; - // Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing. + // Per-instance weighted Load Balancing via health check reported weights. + // If set, the Backend Service must configure a non legacy HTTP-based Health + // Check, and health check replies are expected to contain non-standard HTTP + // response header field X-Load-Balancing-Endpoint-Weight to specify the + // per-instance weights. + // If set, Load Balancing is weighted based on the + // per-instance weights reported in the last processed health check replies, + // as long as every instance either reported a valid weight or had + // UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. + // This option is only supported in Network Load Balancing. WEIGHTED_MAGLEV = 254930962; - // Per-endpoint weighted round-robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via the customMetrics fields. + // Per-endpoint weighted round-robin Load Balancing using weights computed + // from Backend reported Custom Metrics. If set, the Backend Service + // responses are expected to contain non-standard HTTP response header field + // Endpoint-Load-Metrics. The reported metrics + // to use for computing the weights are specified via the + // customMetrics fields. WEIGHTED_ROUND_ROBIN = 5584977; } - // The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. + // The protocol this BackendService uses to communicate + // with backends. + // + // Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. + // depending on the chosen load balancer or Traffic Director configuration. + // Refer to the documentation for the load balancers or for Traffic Director + // for more information. + // + // Must be set to GRPC when the backend service is referenced by a URL map + // that is bound to target gRPC proxy. enum Protocol { // A value indicating that the enum field is not set. UNDEFINED_PROTOCOL = 0; @@ -4082,29 +10644,54 @@ message BackendService { // UDP. UDP = 83873; - // If a Backend Service has UNSPECIFIED as its protocol, it can be used with any L3/L4 Forwarding Rules. + // If a Backend Service has UNSPECIFIED as its protocol, it can be used with + // any L3/L4 Forwarding Rules. UNSPECIFIED = 526786327; } - // Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). sessionAffinity cannot be specified with haPolicy. + // Type of session affinity to use. The default is NONE. + // + // Only NONE and HEADER_FIELD are supported + // when the backend service is referenced by a URL map that is bound to + // target gRPC proxy that has validateForProxyless field set to true. + // + // For more details, see: + // [Session + // Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). + // + // sessionAffinity cannot be specified with haPolicy. enum SessionAffinity { // A value indicating that the enum field is not set. UNDEFINED_SESSION_AFFINITY = 0; - // 2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. + // 2-tuple hash on packet's source and destination IP addresses. Connections + // from the same source IP address to the same destination IP address will be + // served by the same backend VM while that VM remains healthy. CLIENT_IP = 345665051; - // 1-tuple hash only on packet's source IP address. Connections from the same source IP address will be served by the same backend VM while that VM remains healthy. This option can only be used for Internal TCP/UDP Load Balancing. + // 1-tuple hash only on packet's source IP address. Connections from the + // same source IP address will be served by the same backend VM while that VM + // remains healthy. This option can only be used for Internal TCP/UDP + // Load Balancing. CLIENT_IP_NO_DESTINATION = 106122516; - // 5-tuple hash on packet's source and destination IP addresses, IP protocol, and source and destination ports. Connections for the same IP protocol from the same source IP address and port to the same destination IP address and port will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing. + // 5-tuple hash on packet's source and destination IP addresses, IP protocol, + // and source and destination ports. Connections for the same IP protocol + // from the same source IP address and port to the same destination IP address + // and port will be served by the same backend VM while that VM remains + // healthy. This option cannot be used for HTTP(S) load balancing. CLIENT_IP_PORT_PROTO = 221722926; - // 3-tuple hash on packet's source and destination IP addresses, and IP protocol. Connections for the same IP protocol from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing. + // 3-tuple hash on packet's source and destination IP addresses, and IP + // protocol. Connections for the same IP protocol from the same source IP + // address to the same destination IP address will be served by the same + // backend VM while that VM remains healthy. This option cannot be used for + // HTTP(S) load balancing. CLIENT_IP_PROTO = 25322148; - // Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing. + // Hash based on a cookie generated by the L7 loadbalancer. + // Only valid for HTTP(S) load balancing. GENERATED_COOKIE = 370321204; // The hash is based on a user specified header field. @@ -4113,171 +10700,510 @@ message BackendService { // The hash is based on a user provided cookie. HTTP_COOKIE = 494981627; - // No session affinity. Connections from the same client IP may go to any instance in the pool. + // No session affinity. Connections from the same client IP may go + // to any instance in the pool. NONE = 2402104; - // Strong cookie-based affinity. Connections bearing the same cookie will be served by the same backend VM while that VM remains healthy, as long as the cookie has not expired. + // Strong cookie-based affinity. Connections bearing the same cookie will be + // served by the same backend VM while that VM remains healthy, as long as the + // cookie has not expired. STRONG_COOKIE_AFFINITY = 438628091; } - // Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // Lifetime of cookies in seconds. This setting is applicable to Application + // Load Balancers and Traffic Director and requires + // GENERATED_COOKIE or HTTP_COOKIE session affinity. + // + // If set to 0, the cookie is non-persistent and lasts only until + // the end of the browser session (or equivalent). The maximum allowed value + // is two weeks (1,209,600). + // + // Not supported when the backend service is referenced by a URL map that is + // bound to target gRPC proxy that has validateForProxyless field set to true. optional int32 affinity_cookie_ttl_sec = 369996954; // The list of backends that serve this BackendService. repeated Backend backends = 510839903; - // Cloud CDN configuration for this BackendService. Only available for specified load balancer types. + // Cloud CDN configuration for this BackendService. Only available for + // specified load balancer types. optional BackendServiceCdnPolicy cdn_policy = 213976452; optional CircuitBreakers circuit_breakers = 421340061; - // Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. + // Compress text responses using Brotli or gzip compression, based on + // the client's Accept-Encoding header. // Check the CompressionMode enum for the list of possible values. optional string compression_mode = 95520988; // connectionDraining cannot be specified with haPolicy. optional ConnectionDraining connection_draining = 461096747; - // Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for external passthrough Network Load Balancers and internal passthrough Network Load Balancers. connectionTrackingPolicy cannot be specified with haPolicy. + // Connection Tracking configuration for this BackendService. Connection + // tracking policy settings are only available for external passthrough + // Network Load Balancers and internal passthrough Network Load Balancers. + // + // connectionTrackingPolicy cannot be specified with haPolicy. optional BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969; - // Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. + // Consistent Hash-based load balancing can be used to provide soft session + // affinity based on HTTP headers, cookies or other properties. This load + // balancing policy is applicable only for HTTP connections. The affinity to a + // particular destination host will be lost when one or more hosts are + // added/removed from the destination service. This field specifies parameters + // that control consistent hashing. This field is only applicable whenlocalityLbPolicy is set to MAGLEV orRING_HASH. + // + // This field is applicable to either: + // + // - A regional backend service with the service_protocol set to HTTP, + // HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + // INTERNAL_MANAGED. + // - A global backend service with the + // load_balancing_scheme set to INTERNAL_SELF_MANAGED. optional ConsistentHashLoadBalancerSettings consistent_hash = 905883; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // List of custom metrics that are used for the WEIGHTED_ROUND_ROBIN locality_lb_policy. + // List of custom metrics that are used for theWEIGHTED_ROUND_ROBIN locality_lb_policy. repeated BackendServiceCustomMetric custom_metrics = 429453813; - // Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers). + // Headers that the load balancer adds to proxied requests. See [Creating + // custom + // headers](https://cloud.google.com/load-balancing/docs/custom-headers). repeated string custom_request_headers = 27977992; - // Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers). + // Headers that the load balancer adds to proxied responses. See [Creating + // custom + // headers](https://cloud.google.com/load-balancing/docs/custom-headers). repeated string custom_response_headers = 387539094; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Dynamic forwarding configuration. This field is used to configure the backend service with dynamic forwarding feature which together with Service Extension allows customized and complex routing logic. + // Dynamic forwarding configuration. This field is used to configure the + // backend service with dynamic forwarding feature which together with Service + // Extension allows customized and complex routing logic. optional BackendServiceDynamicForwarding dynamic_forwarding = 719613; - // [Output Only] The resource URL for the edge security policy associated with this backend service. + // [Output Only] The resource URL for the edge security policy associated with + // this backend service. optional string edge_security_policy = 41036943; - // If true, enables Cloud CDN for the backend service of a global external Application Load Balancer. + // If true, enables Cloud CDN for the backend service of a + // global external Application Load Balancer. optional bool enable_c_d_n = 250733499; - // Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by percentage using externalManagedMigrationTestingPercentage. Rolling back a migration requires the states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + // Specifies the canary migration state. Possible values are PREPARE, + // TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. + // + // To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be + // changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before + // the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate traffic by percentage using + // externalManagedMigrationTestingPercentage. + // + // Rolling back a migration requires the states to be set in reverse order. So + // changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to + // be set to TEST_ALL_TRAFFIC at the same time. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + // EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. // Check the ExternalManagedMigrationState enum for the list of possible values. optional string external_managed_migration_state = 66947020; - // Determines the fraction of requests that should be processed by the Global external Application Load Balancer. The value of this field must be in the range [0, 100]. Session affinity options will slightly affect this routing behavior, for more details, see: Session Affinity. This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when using the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE. + // Determines the fraction of requests that should be processed by the Global + // external Application Load Balancer. + // + // The value of this field must be in the range [0, 100]. + // + // Session affinity options will slightly affect this routing behavior, for + // more details, see:Session + // Affinity. + // + // This value can only be set if the loadBalancingScheme in the BackendService + // is set to EXTERNAL (when using the classic Application Load Balancer) and + // the migration state is TEST_BY_PERCENTAGE. optional float external_managed_migration_testing_percentage = 507232462; - // Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). failoverPolicy cannot be specified with haPolicy. + // Requires at least one backend instance group to be defined + // as a backup (failover) backend. + // For load balancers that have configurable failover: + // [Internal passthrough Network Load + // Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) + // and [external passthrough Network Load + // Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). + // + // failoverPolicy cannot be specified with haPolicy. optional BackendServiceFailoverPolicy failover_policy = 105658655; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a BackendService. An up-to-date fingerprint must be provided in + // order to update the BackendService, otherwise the request will + // fail with error 412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a BackendService. optional string fingerprint = 234678500; - // Configures self-managed High Availability (HA) for External and Internal Protocol Forwarding. The backends of this regional backend service must only specify zonal network endpoint groups (NEGs) of type GCE_VM_IP. When haPolicy is set for an Internal Passthrough Network Load Balancer, the regional backend service must set the network field. All zonal NEGs must belong to the same network. However, individual NEGs can belong to different subnetworks of that network. When haPolicy is specified, the set of attached network endpoints across all backends comprise an High Availability domain from which one endpoint is selected as the active endpoint (the leader) that receives all traffic. haPolicy can be added only at backend service creation time. Once set up, it cannot be deleted. Note that haPolicy is not for load balancing, and therefore cannot be specified with sessionAffinity, connectionTrackingPolicy, and failoverPolicy. haPolicy requires customers to be responsible for tracking backend endpoint health and electing a leader among the healthy endpoints. Therefore, haPolicy cannot be specified with healthChecks. haPolicy can only be specified for External Passthrough Network Load Balancers and Internal Passthrough Network Load Balancers. + // Configures self-managed High Availability (HA) for External and Internal + // Protocol Forwarding. + // + // The backends of this regional backend service must only specify zonal + // network endpoint groups (NEGs) of type GCE_VM_IP. + // + // When haPolicy is set for an Internal Passthrough Network Load Balancer, the + // regional backend service must set the network field. All zonal NEGs must + // belong to the same network. However, individual NEGs can + // belong to different subnetworks of that network. + // + // When haPolicy is specified, the set of attached network endpoints across + // all backends comprise an High Availability domain from which one endpoint + // is selected as the active endpoint (the leader) that receives all + // traffic. + // + // haPolicy can be added only at backend service creation time. Once set up, + // it cannot be deleted. + // + // Note that haPolicy is not for load balancing, and therefore cannot be + // specified with sessionAffinity, connectionTrackingPolicy, and + // failoverPolicy. + // + // haPolicy requires customers to be responsible for tracking backend + // endpoint health and electing a leader among the healthy endpoints. + // Therefore, haPolicy cannot be specified with healthChecks. + // + // haPolicy can only be specified for External Passthrough Network Load + // Balancers and Internal Passthrough Network Load Balancers. optional BackendServiceHAPolicy ha_policy = 519879480; - // The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check unless haPolicy is specified. Backend services with internet or serverless NEG backends must not have a health check. healthChecks[] cannot be specified with haPolicy. + // The list of URLs to the healthChecks, httpHealthChecks (legacy), or + // httpsHealthChecks (legacy) resource for health checking this backend + // service. Not all backend services support legacy health checks. See + // Load balancer guide. Currently, at most one health check can be + // specified for each backend service. Backend services with + // instance group or zonal NEG backends must have a health check unless + // haPolicy is specified. Backend services with internet or serverless NEG + // backends must not have a health check. + // + // healthChecks[] cannot be specified with haPolicy. repeated string health_checks = 448370606; - // The configurations for Identity-Aware Proxy on this resource. Not available for internal passthrough Network Load Balancers and external passthrough Network Load Balancers. + // The configurations for Identity-Aware Proxy on this resource. + // Not available for internal passthrough Network Load Balancers and external + // passthrough Network Load Balancers. optional BackendServiceIAP iap = 104024; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // Specifies a preference for traffic sent from the proxy to the backend (or from the client to the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 health checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health checks are used to check the health of the backends. This field is applicable to either: - Advanced global external Application Load Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load Balancer, - Internal proxy Network Load Balancer (load balancing scheme INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED). + // Specifies a preference for traffic sent from the proxy to the backend (or + // from the client to the backend for proxyless gRPC). + // The possible values are: + // + // - IPV4_ONLY: Only send IPv4 traffic to the backends of the + // backend service (Instance Group, Managed Instance Group, Network Endpoint + // Group), regardless of traffic from the client to the proxy. Only IPv4 + // health checks are used to check the health of the backends. This is the + // default setting. + // - PREFER_IPV6: Prioritize the connection to the endpoint's + // IPv6 address over its IPv4 address (provided there is a healthy IPv6 + // address). + // - IPV6_ONLY: Only send IPv6 traffic to the backends of the + // backend service (Instance Group, Managed Instance Group, Network Endpoint + // Group), regardless of traffic from the client to the proxy. Only IPv6 + // health checks are used to check the health of the backends. + // + // + // + // This field is applicable to either: + // + // - Advanced global external Application Load Balancer (load balancing + // scheme EXTERNAL_MANAGED), + // - Regional external Application Load + // Balancer, + // - Internal proxy Network Load Balancer (load balancing + // scheme INTERNAL_MANAGED), + // - Regional internal Application Load + // Balancer (load balancing scheme INTERNAL_MANAGED), + // - Traffic + // Director with Envoy proxies and proxyless gRPC (load balancing scheme + // INTERNAL_SELF_MANAGED). // Check the IpAddressSelectionPolicy enum for the list of possible values. optional string ip_address_selection_policy = 77600840; - // [Output Only] Type of resource. Always compute#backendService for backend services. + // [Output Only] Type of resource. Always compute#backendService + // for backend services. optional string kind = 3292052; - // Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. + // Specifies the load balancer type. A backend service + // created for one type of load balancer cannot be used with another. + // For more information, refer toChoosing + // a load balancer. // Check the LoadBalancingScheme enum for the list of possible values. optional string load_balancing_scheme = 363890244; - // A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration. + // A list of locality load-balancing policies to be used in order of + // preference. When you use localityLbPolicies, you must set at least one + // value for either the localityLbPolicies[].policy or the + // localityLbPolicies[].customPolicy field. localityLbPolicies overrides any + // value set in the localityLbPolicy field. + // + // For an example of how to use this field, seeDefine + // a list of preferred policies. + // + // Caution: This field and its children are intended for use in a service mesh + // that includes gRPC clients only. Envoy proxies can't use backend services + // that have this configuration. repeated BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557; - // The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via the customMetrics field. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not configured—that is, if session affinity remains at the default value of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to a value other than NONE, then the default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. localityLbPolicy cannot be specified with haPolicy. + // The load balancing algorithm used within the scope of the locality. The + // possible values are: + // + // - ROUND_ROBIN: This is a simple policy in which each healthy + // backend is selected in round robin order. This is the default. + // - LEAST_REQUEST: An O(1) algorithm which + // selects two random healthy hosts and picks the host which has fewer active + // requests. + // - RING_HASH: The ring/modulo hash load balancer implements + // consistent hashing to backends. The algorithm has the property that the + // addition/removal of a host from a set of N hosts only affects 1/N of the + // requests. + // - RANDOM: The load balancer selects a random healthy + // host. + // - ORIGINAL_DESTINATION: Backend host is selected + // based on the client connection metadata, i.e., connections are opened to + // the same address as the destination address of the incoming connection + // before the connection was redirected to the load balancer. + // - MAGLEV: used as a drop in replacement for the ring hash + // load balancer. Maglev is not as stable as ring hash but has faster table + // lookup build times and host selection times. For more information about + // Maglev, see Maglev: + // A Fast and Reliable Software Network Load Balancer. + // - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin + // Load Balancing using weights computed from Backend reported Custom Metrics. + // If set, the Backend Service responses are expected to contain non-standard + // HTTP response header field Endpoint-Load-Metrics. The reported + // metrics to use for computing the weights are specified via thecustomMetrics field. + // + // This field is applicable to either: + // - A regional backend service with the service_protocol set to HTTP, + // HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + // INTERNAL_MANAGED. + // - A global backend service with the + // load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or + // EXTERNAL_MANAGED. + // + // + // If sessionAffinity is not configured—that is, if session + // affinity remains at the default value of NONE—then the + // default value for localityLbPolicy + // is ROUND_ROBIN. If session affinity is set to a value other + // than NONE, + // then the default value for localityLbPolicy isMAGLEV. + // + // Only ROUND_ROBIN and RING_HASH are supported + // when the backend service is referenced by a URL map that is bound to + // target gRPC proxy that has validateForProxyless field set to true. + // + // localityLbPolicy cannot be specified with haPolicy. // Check the LocalityLbPolicy enum for the list of possible values. optional string locality_lb_policy = 131431487; - // This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver. + // This field denotes the logging options for the load balancer traffic served + // by this backend service. If logging is enabled, logs will be exported to + // Stackdriver. optional BackendServiceLogConfig log_config = 351299741; - // Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED. + // Specifies the default maximum duration (timeout) for streams to this + // service. Duration is computed from the beginning of the stream until the + // response has been completely processed, including all retries. A stream + // that does not complete in this duration is closed. + // + // If not specified, there will be no timeout limit, i.e. the maximum + // duration is infinite. + // + // This value can be overridden in the PathMatcher configuration of the + // UrlMap that references this backend service. + // + // This field is only allowed when the loadBalancingScheme of + // the backend service is INTERNAL_SELF_MANAGED. optional Duration max_stream_duration = 61428376; - // Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH + // Deployment metadata associated with the resource to be set by a GKE hub + // controller and read by the backend RCTH map metadatas = 8514340; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // The URL of the network to which this backend service belongs. This field must be set for Internal Passthrough Network Load Balancers when the haPolicy is enabled, and for External Passthrough Network Load Balancers when the haPolicy fastIpMove is enabled. This field can only be specified when the load balancing scheme is set to INTERNAL, or when the load balancing scheme is set to EXTERNAL and haPolicy fastIpMove is enabled. + // The URL of the network to which this backend service belongs. + // + // This field must be set for Internal Passthrough Network Load Balancers when + // the haPolicy is enabled, and for External Passthrough Network Load + // Balancers when the haPolicy fastIpMove is enabled. + // + // This field can only be specified when the load balancing scheme is set toINTERNAL, or when the load balancing scheme is set toEXTERNAL and haPolicy fastIpMove is enabled. optional string network = 232872494; - // Configures traffic steering properties of internal passthrough Network Load Balancers. networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. + // Configures traffic steering properties of internal passthrough Network + // Load Balancers. + // + // networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. optional BackendServiceNetworkPassThroughLbTrafficPolicy network_pass_through_lb_traffic_policy = 230323750; - // Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // Settings controlling the ejection of unhealthy backend endpoints from the + // load balancing pool of each individual proxy instance that processes the + // traffic for the given backend service. If not set, this feature is + // considered disabled. + // + // Results of the outlier detection algorithm (ejection of endpoints from the + // load balancing pool and returning them back to the pool) are executed + // independently by each proxy instance of the load balancer. In most cases, + // more than one proxy instance handles the traffic received by a backend + // service. Thus, it is possible that an unhealthy endpoint is detected and + // ejected by only some of the proxies, and while this happens, other proxies + // may continue to send requests to the same unhealthy endpoint until they + // detect and eject the unhealthy endpoint. + // + // Applicable backend endpoints can be: + // + // - VM instances in an Instance Group + // - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) + // - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) + // - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud + // Functions Services + // - Private Service Connect NEGs, that resolve to + // Google-managed regional API endpoints or managed services published using + // Private Service Connect + // + // + // + // Applicable backend service types can be: + // + // - A global backend service with the loadBalancingScheme set to + // INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. + // - A regional backend + // service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + // loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not + // supported for Serverless NEGs. + // + // + // + // Not supported when the backend service is referenced by a URL map that is + // bound to target gRPC proxy that has validateForProxyless field set to true. optional OutlierDetection outlier_detection = 354625086; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional BackendServiceParams params = 78313862; - // Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For internal passthrough Network Load Balancers and external passthrough Network Load Balancers, omit port. + // Deprecated in favor of portName. The TCP port to connect on + // the backend. The default value is 80. + // For internal passthrough Network Load Balancers and external passthrough + // Network Load Balancers, omit port. optional int32 port = 3446913; - // A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For internal passthrough Network Load Balancers and external passthrough Network Load Balancers, omit port_name. + // A named port on a backend instance group representing the port for + // communication to the backend VMs in that group. The + // named port must be [defined on each backend instance + // group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). + // This parameter has no meaning if the backends are NEGs. For internal + // passthrough Network Load Balancers and external passthrough Network Load + // Balancers, omit port_name. optional string port_name = 41534345; - // The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. + // The protocol this BackendService uses to communicate + // with backends. + // + // Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. + // depending on the chosen load balancer or Traffic Director configuration. + // Refer to the documentation for the load balancers or for Traffic Director + // for more information. + // + // Must be set to GRPC when the backend service is referenced by a URL map + // that is bound to target gRPC proxy. // Check the Protocol enum for the list of possible values. optional string protocol = 84577944; - // [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the regional backend service + // resides. This field is not applicable to global backend services. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; - // [Output Only] The resource URL for the security policy associated with this backend service. + // [Output Only] The resource URL for the security policy associated with this + // backend service. optional string security_policy = 171082513; - // This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. + // This field specifies the security settings that apply to this backend + // service. This field is applicable to a global backend service with the + // load_balancing_scheme set to INTERNAL_SELF_MANAGED. optional SecuritySettings security_settings = 478649922; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty. + // URLs of networkservices.ServiceBinding resources. + // + // Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. + // If set, lists of backends and health checks must be both empty. repeated string service_bindings = 133581016; - // URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global. + // URL to networkservices.ServiceLbPolicy resource. + // + // Can only be set if load balancing scheme is EXTERNAL_MANAGED, + // INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global. optional string service_lb_policy = 94848785; - // Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). sessionAffinity cannot be specified with haPolicy. + // Type of session affinity to use. The default is NONE. + // + // Only NONE and HEADER_FIELD are supported + // when the backend service is referenced by a URL map that is bound to + // target gRPC proxy that has validateForProxyless field set to true. + // + // For more details, see: + // [Session + // Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). + // + // sessionAffinity cannot be specified with haPolicy. // Check the SessionAffinity enum for the list of possible values. optional string session_affinity = 463888561; - // Describes the HTTP cookie used for stateful session affinity. This field is applicable and required if the sessionAffinity is set to STRONG_COOKIE_AFFINITY. + // Describes the HTTP cookie used for stateful session affinity. This field is + // applicable and required if the sessionAffinity is set toSTRONG_COOKIE_AFFINITY. optional BackendServiceHttpCookie strong_session_affinity_cookie = 238195722; // subsetting cannot be specified with haPolicy. optional Subsetting subsetting = 450283536; - // The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. + // The backend service timeout has a different meaning depending on the + // type of load balancer. For more information see, + // Backend service settings. + // The default is 30 seconds. + // The full range of timeout values allowed goes from 1 + // through 2,147,483,647 seconds. + // + // This value can be overridden in the PathMatcher configuration of the + // UrlMap that references this backend service. + // + // Not supported when the backend service is referenced by a URL map that is + // bound to target gRPC proxy that has validateForProxyless field set to true. + // Instead, use maxStreamDuration. optional int32 timeout_sec = 79994995; - // Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2. + // Configuration for Backend Authenticated TLS and mTLS. May only be specified + // when the backend protocol is SSL, HTTPS or HTTP2. optional BackendServiceTlsSettings tls_settings = 81794791; // [Output Only] List of resources referencing given backend service. @@ -4296,7 +11222,11 @@ message BackendServiceAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -4312,56 +11242,166 @@ message BackendServiceAggregatedList { // Message containing Cloud CDN configuration for a backend service. message BackendServiceCdnPolicy { - // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + // Specifies the cache setting for all responses from this backend. + // The possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching + // headers to cache content. Responses without these headers will not be + // cached at Google's edge, and will require a full trip to the origin on + // every request, potentially impacting performance and increasing load on + // the origin server.FORCE_CACHE_ALL Cache all content, ignoring any "private", + // "no-store" or "no-cache" directives in Cache-Control response headers. + // Warning: this may result in Cloud CDN caching private, + // per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content, + // including common image formats, media (video and audio), and web assets + // (JavaScript and CSS). Requests and responses that are marked as + // uncacheable, as well as dynamic content (including HTML), will not be + // cached. + // + // If no value is provided for cdnPolicy.cacheMode, it defaults + // to CACHE_ALL_STATIC. enum CacheMode { // A value indicating that the enum field is not set. UNDEFINED_CACHE_MODE = 0; - // Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. + // Automatically cache static content, including common image formats, + // media (video and audio), and web assets (JavaScript and CSS). + // Requests and responses that are marked as uncacheable, as well as + // dynamic content (including HTML), will not be cached. CACHE_ALL_STATIC = 355027945; - // Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. + // Cache all content, ignoring any "private", "no-store" or "no-cache" + // directives in Cache-Control response headers. + // Warning: this may result in Cloud CDN caching private, + // per-user (user identifiable) content. FORCE_CACHE_ALL = 486026928; INVALID_CACHE_MODE = 381295560; - // Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. + // Requires the origin to set valid caching headers to cache content. + // Responses without these headers will not be cached at Google's edge, + // and will require a full trip to the origin on every request, + // potentially impacting performance and increasing load on the + // origin server. USE_ORIGIN_HEADERS = 55380261; } - // Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. + // Bypass the cache when the specified request headers are matched - e.g. + // Pragma or Authorization headers. Up to 5 headers can be specified. + // The cache is bypassed for all cdnPolicy.cacheMode settings. repeated BackendServiceCdnPolicyBypassCacheOnRequestHeader bypass_cache_on_request_headers = 486203082; // The CacheKeyPolicy for this CdnPolicy. optional CacheKeyPolicy cache_key_policy = 159263727; - // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + // Specifies the cache setting for all responses from this backend. + // The possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching + // headers to cache content. Responses without these headers will not be + // cached at Google's edge, and will require a full trip to the origin on + // every request, potentially impacting performance and increasing load on + // the origin server.FORCE_CACHE_ALL Cache all content, ignoring any "private", + // "no-store" or "no-cache" directives in Cache-Control response headers. + // Warning: this may result in Cloud CDN caching private, + // per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content, + // including common image formats, media (video and audio), and web assets + // (JavaScript and CSS). Requests and responses that are marked as + // uncacheable, as well as dynamic content (including HTML), will not be + // cached. + // + // If no value is provided for cdnPolicy.cacheMode, it defaults + // to CACHE_ALL_STATIC. // Check the CacheMode enum for the list of possible values. optional string cache_mode = 28877888; - // Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the response max-age directive, along with a "public" directive. For cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if specified), or else sets the response max-age directive to the lesser of the client_ttl and default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s (1 year). + // Specifies a separate client (e.g. browser client) maximum TTL. This is + // used to clamp the max-age (or Expires) value sent to the client. With + // FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the + // response max-age directive, along with a "public" directive. For + // cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age + // from the origin (if specified), or else sets the response max-age + // directive to the lesser of the client_ttl and default_ttl, and also + // ensures a "public" cache-control directive is present. + // If a client TTL is not specified, a default value (1 hour) will be used. + // The maximum allowed value is 31,622,400s (1 year). optional int32 client_ttl = 29034360; - // Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. + // Specifies the default TTL for cached content served by this origin for + // responses that do not have an existing valid TTL (max-age or s-maxage). + // Setting a TTL of "0" means "always revalidate". + // The value of defaultTTL cannot be set to a value greater than that of + // maxTTL, but can be equal. + // When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL + // will overwrite the TTL set in all responses. The maximum allowed value is + // 31,622,400s (1 year), noting that infrequently accessed objects may be + // evicted from the cache before the defined TTL. optional int32 default_ttl = 100253422; - // Specifies the maximum allowed TTL for cached content served by this origin. Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. + // Specifies the maximum allowed TTL for cached content served by this + // origin. + // Cache directives that attempt to set a max-age or s-maxage higher than + // this, or an Expires header more than maxTTL seconds in the future will + // be capped at the value of maxTTL, as if it were the value of an + // s-maxage Cache-Control directive. + // Headers sent to the client will not be modified. + // Setting a TTL of "0" means "always revalidate". + // The maximum allowed value is 31,622,400s (1 year), noting that + // infrequently accessed objects may be evicted from the cache before + // the defined TTL. optional int32 max_ttl = 307578001; - // Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. + // Negative caching allows per-status code TTLs to be set, in order + // to apply fine-grained caching for common errors or redirects. + // This can reduce the load on your origin and improve end-user + // experience by reducing response latency. + // When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, + // negative caching applies to responses with the specified response code + // that lack any Cache-Control, Expires, or Pragma: no-cache directives. + // When the cache mode is set to FORCE_CACHE_ALL, negative caching applies + // to all responses with the specified response code, and override any + // caching headers. + // By default, Cloud CDN will apply the following default TTLs to these + // status codes: + // HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m + // HTTP 404 (Not Found), 410 (Gone), + // 451 (Unavailable For Legal Reasons): 120s + // HTTP 405 (Method Not Found), 501 (Not Implemented): 60s. + // These defaults can be overridden in negative_caching_policy. optional bool negative_caching = 336110005; - // Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled will use Cloud CDN's default cache TTLs. Note that when specifying an explicit negative_caching_policy, you should take care to specify a cache TTL for all response codes that you wish to cache. Cloud CDN will not apply any default negative caching when a policy exists. + // Sets a cache TTL for the specified HTTP status code. + // negative_caching must be enabled to configure negative_caching_policy. + // Omitting the policy and leaving negative_caching enabled will use + // Cloud CDN's default cache TTLs. + // Note that when specifying an explicit negative_caching_policy, you + // should take care to specify a cache TTL for all response codes + // that you wish to cache. Cloud CDN will not apply any default + // negative caching when a policy exists. repeated BackendServiceCdnPolicyNegativeCachingPolicy negative_caching_policy = 155359996; - // If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin. + // If true then Cloud CDN will combine multiple concurrent cache fill + // requests into a small number of requests to the origin. optional bool request_coalescing = 532808276; - // Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. This setting defines the default "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale responses that exceed the TTL configured here will not be served. The default limit (max-stale) is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max-age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this to zero (0) to disable serve-while-stale. + // Serve existing content from the cache (if available) when revalidating + // content with the origin, or when an error is encountered when refreshing + // the cache. + // This setting defines the default "max-stale" duration for any cached + // responses that do not specify a max-stale directive. Stale responses that + // exceed the TTL configured here will not be served. The default limit + // (max-stale) is 86400s (1 day), which will allow stale content to be + // served up to this limit beyond the max-age (or s-maxage) of a cached + // response. + // The maximum allowed value is 604800 (1 week). + // Set this to zero (0) to disable serve-while-stale. optional int32 serve_while_stale = 236682203; - // Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. Defaults to 1hr (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered. + // Maximum number of seconds the response to a signed URL request will be + // considered fresh. After this time period, the response will be + // revalidated before being served. Defaults to 1hr (3600s). When serving + // responses to signed URL requests, Cloud CDN will internally behave as + // though all responses from this backend had a "Cache-Control: + // public, max-age=[TTL]" header, regardless of any existing + // Cache-Control header. The actual headers served in responses will not be + // altered. optional int64 signed_url_cache_max_age_sec = 269374534; // [Output Only] Names of the keys for signing request URLs. @@ -4369,26 +11409,57 @@ message BackendServiceCdnPolicy { } -// Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization headers. Values are case insensitive. The presence of such a header overrides the cache_mode setting. +// Bypass the cache when the specified request headers are present, +// e.g. Pragma or Authorization headers. Values are case insensitive. +// The presence of such a header overrides the cache_mode setting. message BackendServiceCdnPolicyBypassCacheOnRequestHeader { - // The header field name to match on when bypassing cache. Values are case-insensitive. + // The header field name to match on when bypassing cache. + // Values are case-insensitive. optional string header_name = 110223613; } // Specify CDN TTLs for response error codes. message BackendServiceCdnPolicyNegativeCachingPolicy { - // The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once. + // The HTTP status code to define a TTL against. Only HTTP status codes + // 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be + // specified as values, and you cannot specify a status code more than + // once. optional int32 code = 3059181; - // The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. + // The TTL (in seconds) for which to cache responses with the + // corresponding status code. + // The maximum allowed value is 1800s (30 minutes), noting that + // infrequently accessed objects may be evicted from the cache before the + // defined TTL. optional int32 ttl = 115180; } // Connection Tracking configuration for this BackendService. message BackendServiceConnectionTrackingPolicy { - // Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). + // Specifies connection persistence when backends are unhealthy. The default + // value is DEFAULT_FOR_PROTOCOL. + // + // If set to DEFAULT_FOR_PROTOCOL, the existing connections + // persist on unhealthy backends only for connection-oriented protocols + // (TCP and SCTP) and only if the Tracking Mode isPER_CONNECTION (default tracking mode) or the Session + // Affinity is configured for 5-tuple. They do not persist forUDP. + // + // If set to NEVER_PERSIST, after a backend becomes unhealthy, + // the existing connections on the unhealthy backend are never persisted on + // the unhealthy backend. They are always diverted to newly selected healthy + // backends (unless all backends are unhealthy). + // + // If set to ALWAYS_PERSIST, existing connections always + // persist on unhealthy backends regardless of protocol and session + // affinity. It is generally not recommended to use this mode overriding the + // default. + // + // For more details, see [Connection Persistence for Network Load + // Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) + // and [Connection Persistence for Internal TCP/UDP Load + // Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). enum ConnectionPersistenceOnUnhealthyBackends { // A value indicating that the enum field is not set. UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS = 0; @@ -4401,7 +11472,22 @@ message BackendServiceConnectionTrackingPolicy { } - // Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). + // Specifies the key used for connection tracking. There are two + // options: + // + // - PER_CONNECTION: This is the default mode. The Connection + // Tracking is performed as per the Connection Key (default Hash Method) for + // the specific protocol. + // - PER_SESSION: The Connection Tracking is performed as per + // the configured Session Affinity. It matches the configured Session + // Affinity. + // + // + // + // For more details, see [Tracking Mode for Network Load + // Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) + // and [Tracking Mode for Internal TCP/UDP Load + // Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). enum TrackingMode { // A value indicating that the enum field is not set. UNDEFINED_TRACKING_MODE = 0; @@ -4414,28 +11500,87 @@ message BackendServiceConnectionTrackingPolicy { } - // Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). + // Specifies connection persistence when backends are unhealthy. The default + // value is DEFAULT_FOR_PROTOCOL. + // + // If set to DEFAULT_FOR_PROTOCOL, the existing connections + // persist on unhealthy backends only for connection-oriented protocols + // (TCP and SCTP) and only if the Tracking Mode isPER_CONNECTION (default tracking mode) or the Session + // Affinity is configured for 5-tuple. They do not persist forUDP. + // + // If set to NEVER_PERSIST, after a backend becomes unhealthy, + // the existing connections on the unhealthy backend are never persisted on + // the unhealthy backend. They are always diverted to newly selected healthy + // backends (unless all backends are unhealthy). + // + // If set to ALWAYS_PERSIST, existing connections always + // persist on unhealthy backends regardless of protocol and session + // affinity. It is generally not recommended to use this mode overriding the + // default. + // + // For more details, see [Connection Persistence for Network Load + // Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) + // and [Connection Persistence for Internal TCP/UDP Load + // Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). // Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values. optional string connection_persistence_on_unhealthy_backends = 152439033; - // Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is not available publicly. + // Enable Strong Session Affinity for external passthrough Network Load + // Balancers. This option is not available publicly. optional bool enable_strong_affinity = 24539924; - // Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds). For internal passthrough Network Load Balancers: - The minimum (default) is 10 minutes and the maximum is 16 hours. - It can be set only if Connection Tracking is less than 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION, CLIENT_IP or CLIENT_IP_PROTO, and Tracking Mode is PER_SESSION). For external passthrough Network Load Balancers the default is 60 seconds. This option is not available publicly. + // Specifies how long to keep a Connection Tracking entry while there is no + // matching traffic (in seconds). + // + // For internal passthrough Network Load Balancers: + // + // - The minimum (default) is 10 minutes and the maximum is 16 hours. + // - It can be set only if Connection Tracking is less than 5-tuple + // (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and Tracking + // Mode is PER_SESSION). + // + // + // + // For external passthrough Network Load Balancers the default is 60 + // seconds. This option is not available publicly. optional int32 idle_timeout_sec = 24977544; - // Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). + // Specifies the key used for connection tracking. There are two + // options: + // + // - PER_CONNECTION: This is the default mode. The Connection + // Tracking is performed as per the Connection Key (default Hash Method) for + // the specific protocol. + // - PER_SESSION: The Connection Tracking is performed as per + // the configured Session Affinity. It matches the configured Session + // Affinity. + // + // + // + // For more details, see [Tracking Mode for Network Load + // Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) + // and [Tracking Mode for Internal TCP/UDP Load + // Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). // Check the TrackingMode enum for the list of possible values. optional string tracking_mode = 127757867; } -// Custom Metrics are used for WEIGHTED_ROUND_ROBIN locality_lb_policy. +// Custom Metrics are used for WEIGHTED_ROUND_ROBIN +// locality_lb_policy. message BackendServiceCustomMetric { // If true, the metric data is not used for load balancing. optional bool dry_run = 323854839; - // Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means that the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + // Name of a custom utilization signal. The name must be 1-64 characters + // long and match the regular expression + // `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the + // first character must be a lowercase letter, and all following + // characters must be a dash, period, underscore, lowercase letter, or + // digit, except the last character, which cannot be a dash, period, or + // underscore. For usage guidelines, see Custom Metrics balancing mode. This + // field can only be used for a global or regional backend service with the + // loadBalancingScheme set to EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. optional string name = 3373707; } @@ -4447,22 +11592,61 @@ message BackendServiceDynamicForwarding { } -// Defines a IP:PORT based dynamic forwarding configuration for the backend service. Some ranges are restricted: Restricted ranges. +// Defines a IP:PORT based dynamic forwarding configuration for the backend +// service. Some ranges are restricted: Restricted +// ranges. message BackendServiceDynamicForwardingIpPortSelection { // A boolean flag enabling IP:PORT based dynamic forwarding. optional bool enabled = 1018689; } -// For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). On failover or failback, this field indicates whether connection draining will be honored. Google Cloud has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes). +// For load balancers that have configurable +// failover: +// [Internal passthrough Network Load +// Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) +// and [external passthrough +// Network Load +// Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). +// On failover or failback, this field indicates whether connection draining +// will be honored. Google Cloud has a fixed connection draining timeout of +// 10 minutes. A setting of true terminates existing TCP +// connections to the active pool during failover and failback, immediately +// draining traffic. A setting of false allows existing TCP +// connections to persist, even on VMs no longer in the active pool, for up +// to the duration of the connection draining timeout (10 minutes). message BackendServiceFailoverPolicy { - // This can be set to true only if the protocol is TCP. The default is false. + // This can be set to true only if the protocol isTCP. + // + // The default is false. optional bool disable_connection_drain_on_failover = 182150753; - // If set to true, connections to the load balancer are dropped when all primary and all backup backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs when all primary and all backup backend VMs are unhealthy. For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). The default is false. + // If set to true, connections to the + // load balancer are dropped when all primary and all backup backend VMs are + // unhealthy.If set to false, connections are distributed + // among all primary VMs when all primary and all backup backend VMs are + // unhealthy. + // For load balancers that have configurable + // failover: + // [Internal passthrough + // Network Load + // Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) + // and [external passthrough + // Network Load + // Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). + // The default is false. optional bool drop_traffic_if_unhealthy = 112289428; - // The value of the field must be in the range [0, 1]. If the value is 0, the load balancer performs a failover when the number of healthy primary VMs equals zero. For all other values, the load balancer performs a failover when the total number of healthy primary VMs is less than this ratio. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). + // The value of the field must be in the range[0, 1]. If the value is 0, the load balancer performs a + // failover when the number of healthy primary VMs equals zero. + // For all other values, the load balancer performs a failover when the + // total number of healthy primary VMs is less than this ratio. + // For load balancers that have configurable + // failover: + // [Internal TCP/UDP Load + // Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) + // and [external TCP/UDP Load + // Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). optional float failover_ratio = 212667006; } @@ -4472,17 +11656,93 @@ message BackendServiceGroupHealth { // Metadata defined as annotations on the network endpoint group. map annotations = 112032548; - // Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks. + // Health state of the backend instances or endpoints in requested instance or + // network endpoint group, determined based on configured health checks. repeated HealthStatus health_status = 380545845; - // [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services. + // [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of backend + // services. optional string kind = 3292052; } // message BackendServiceHAPolicy { - // Specifies whether fast IP move is enabled, and if so, the mechanism to achieve it. Supported values are: - DISABLED: Fast IP Move is disabled. You can only use the haPolicy.leader API to update the leader. - >GARP_RA: Provides a method to very quickly define a new network endpoint as the leader. This method is faster than updating the leader using the haPolicy.leader API. Fast IP move works as follows: The VM hosting the network endpoint that should become the new leader sends either a Gratuitous ARP (GARP) packet (IPv4) or an ICMPv6 Router Advertisement(RA) packet (IPv6). Google Cloud immediately but temporarily associates the forwarding rule IP address with that VM, and both new and in-flight packets are quickly delivered to that VM. Note the important properties of the Fast IP Move functionality: - The GARP/RA-initiated re-routing stays active for approximately 20 minutes. After triggering fast failover, you must also appropriately set the haPolicy.leader. - The new leader instance should continue to send GARP/RA packets periodically every 10 seconds until at least 10 minutes after updating the haPolicy.leader (but stop immediately if it is no longer the leader). - After triggering a fast failover, we recommend that you wait at least 3 seconds before sending another GARP/RA packet from a different VM instance to avoid race conditions. - Don't send GARP/RA packets from different VM instances at the same time. If multiple instances continue to send GARP/RA packets, traffic might be routed to different destinations in an alternating order. This condition ceases when a single instance issues a GARP/RA packet. - The GARP/RA request always takes priority over the leader API. Using the haPolicy.leader API to change the leader to a different instance will have no effect until the GARP/RA request becomes inactive. - The GARP/RA packets should follow the GARP/RA Packet Specifications.. - When multiple forwarding rules refer to a regional backend service, you need only send a GARP or RA packet for a single forwarding rule virtual IP. The virtual IPs for all forwarding rules targeting the same backend service will also be moved to the sender of the GARP or RA packet. The following are the Fast IP Move limitations (that is, when fastIPMove is not DISABLED): - Multiple forwarding rules cannot use the same IP address if one of them refers to a regional backend service with fastIPMove. - The regional backend service must set the network field, and all NEGs must belong to that network. However, individual NEGs can belong to different subnetworks of that network. - The maximum number of network endpoints across all backends of a backend service with fastIPMove is 32. - The maximum number of backend services with fastIPMove that can have the same network endpoint attached to one of its backends is 64. - The maximum number of backend services with fastIPMove in a VPC in a region is 64. - The network endpoints that are attached to a backend of a backend service with fastIPMove cannot resolve to Gen3+ machines for IPv6. - Traffic directed to the leader by a static route next hop will not be redirected to a new leader by fast failover. Such traffic will only be redirected once an haPolicy.leader update has taken effect. Only traffic to the forwarding rule's virtual IP will be redirected to a new leader by fast failover. haPolicy.fastIPMove can be set only at backend service creation time. Once set, it cannot be updated. By default, fastIpMove is set to DISABLED. + // Specifies whether fast IP move is enabled, and if so, the mechanism to + // achieve it. + // + // Supported values are: + // + // - DISABLED: Fast IP Move is disabled. You can only use the + // haPolicy.leader API to update the leader. + // - >GARP_RA: Provides a method to very quickly define a new network + // endpoint as the leader. This method is faster than updating the leader + // using the haPolicy.leader API. Fast IP move works as follows: The VM + // hosting the network endpoint that should become the new leader sends + // either a Gratuitous ARP (GARP) packet (IPv4) or an ICMPv6 Router + // Advertisement(RA) packet (IPv6). Google Cloud immediately but + // temporarily associates the forwarding rule IP address with that VM, and + // both new and in-flight packets are quickly delivered to that VM. + // + // + // + // Note the important properties of the Fast IP Move functionality: + // + // - The GARP/RA-initiated re-routing stays active for approximately 20 + // minutes. After triggering fast failover, you must also + // appropriately set the haPolicy.leader. + // - The new leader instance should continue to send GARP/RA packets + // periodically every 10 seconds until at least 10 minutes after updating + // the haPolicy.leader (but stop immediately if it is no longer the leader). + // - After triggering a fast failover, we recommend that you wait at least + // 3 seconds before sending another GARP/RA packet from a different VM + // instance to avoid race conditions. + // - Don't send GARP/RA packets from different VM + // instances at the same time. If multiple instances continue to send + // GARP/RA packets, traffic might be routed to different destinations in an + // alternating order. This condition ceases when a single instance + // issues a GARP/RA packet. + // - The GARP/RA request always takes priority over the leader API. + // Using the haPolicy.leader API to change the leader to a different + // instance will have no effect until the GARP/RA request becomes + // inactive. + // - The GARP/RA packets should follow the GARP/RA + // Packet Specifications.. + // - When multiple forwarding rules refer to a regional backend service, + // you need only send a GARP or RA packet for a single forwarding rule + // virtual IP. The virtual IPs for all forwarding rules targeting the same + // backend service will also be moved to the sender of the GARP or RA + // packet. + // + // + // + // The following are the Fast IP Move limitations (that is, when fastIPMove + // is not DISABLED): + // + // - Multiple forwarding rules cannot use the same IP address if one of + // them refers to a regional backend service with fastIPMove. + // - The regional backend service must set the network field, and all + // NEGs must belong to that network. However, individual + // NEGs can belong to different subnetworks of that network. + // - The maximum number of network endpoints across all backends of a + // backend service with fastIPMove is 32. + // - The maximum number of backend services with fastIPMove that can have + // the same network endpoint attached to one of its backends is 64. + // - The maximum number of backend services with fastIPMove in a VPC in a + // region is 64. + // - The network endpoints that are attached to a backend of a backend + // service with fastIPMove cannot resolve to Gen3+ machines for IPv6. + // - Traffic directed to the leader by a static route next hop will not be + // redirected to a new leader by fast failover. Such traffic will only be + // redirected once an haPolicy.leader update has taken effect. Only traffic + // to the forwarding rule's virtual IP will be redirected to a new leader by + // fast failover. + // + // + // haPolicy.fastIPMove can be set only at backend service creation time. + // Once set, it cannot be updated. + // + // By default, fastIpMove is set to DISABLED. enum FastIPMove { // A value indicating that the enum field is not set. UNDEFINED_FAST_I_P_MOVE = 0; @@ -4493,28 +11753,129 @@ message BackendServiceHAPolicy { } - // Specifies whether fast IP move is enabled, and if so, the mechanism to achieve it. Supported values are: - DISABLED: Fast IP Move is disabled. You can only use the haPolicy.leader API to update the leader. - >GARP_RA: Provides a method to very quickly define a new network endpoint as the leader. This method is faster than updating the leader using the haPolicy.leader API. Fast IP move works as follows: The VM hosting the network endpoint that should become the new leader sends either a Gratuitous ARP (GARP) packet (IPv4) or an ICMPv6 Router Advertisement(RA) packet (IPv6). Google Cloud immediately but temporarily associates the forwarding rule IP address with that VM, and both new and in-flight packets are quickly delivered to that VM. Note the important properties of the Fast IP Move functionality: - The GARP/RA-initiated re-routing stays active for approximately 20 minutes. After triggering fast failover, you must also appropriately set the haPolicy.leader. - The new leader instance should continue to send GARP/RA packets periodically every 10 seconds until at least 10 minutes after updating the haPolicy.leader (but stop immediately if it is no longer the leader). - After triggering a fast failover, we recommend that you wait at least 3 seconds before sending another GARP/RA packet from a different VM instance to avoid race conditions. - Don't send GARP/RA packets from different VM instances at the same time. If multiple instances continue to send GARP/RA packets, traffic might be routed to different destinations in an alternating order. This condition ceases when a single instance issues a GARP/RA packet. - The GARP/RA request always takes priority over the leader API. Using the haPolicy.leader API to change the leader to a different instance will have no effect until the GARP/RA request becomes inactive. - The GARP/RA packets should follow the GARP/RA Packet Specifications.. - When multiple forwarding rules refer to a regional backend service, you need only send a GARP or RA packet for a single forwarding rule virtual IP. The virtual IPs for all forwarding rules targeting the same backend service will also be moved to the sender of the GARP or RA packet. The following are the Fast IP Move limitations (that is, when fastIPMove is not DISABLED): - Multiple forwarding rules cannot use the same IP address if one of them refers to a regional backend service with fastIPMove. - The regional backend service must set the network field, and all NEGs must belong to that network. However, individual NEGs can belong to different subnetworks of that network. - The maximum number of network endpoints across all backends of a backend service with fastIPMove is 32. - The maximum number of backend services with fastIPMove that can have the same network endpoint attached to one of its backends is 64. - The maximum number of backend services with fastIPMove in a VPC in a region is 64. - The network endpoints that are attached to a backend of a backend service with fastIPMove cannot resolve to Gen3+ machines for IPv6. - Traffic directed to the leader by a static route next hop will not be redirected to a new leader by fast failover. Such traffic will only be redirected once an haPolicy.leader update has taken effect. Only traffic to the forwarding rule's virtual IP will be redirected to a new leader by fast failover. haPolicy.fastIPMove can be set only at backend service creation time. Once set, it cannot be updated. By default, fastIpMove is set to DISABLED. + // Specifies whether fast IP move is enabled, and if so, the mechanism to + // achieve it. + // + // Supported values are: + // + // - DISABLED: Fast IP Move is disabled. You can only use the + // haPolicy.leader API to update the leader. + // - >GARP_RA: Provides a method to very quickly define a new network + // endpoint as the leader. This method is faster than updating the leader + // using the haPolicy.leader API. Fast IP move works as follows: The VM + // hosting the network endpoint that should become the new leader sends + // either a Gratuitous ARP (GARP) packet (IPv4) or an ICMPv6 Router + // Advertisement(RA) packet (IPv6). Google Cloud immediately but + // temporarily associates the forwarding rule IP address with that VM, and + // both new and in-flight packets are quickly delivered to that VM. + // + // + // + // Note the important properties of the Fast IP Move functionality: + // + // - The GARP/RA-initiated re-routing stays active for approximately 20 + // minutes. After triggering fast failover, you must also + // appropriately set the haPolicy.leader. + // - The new leader instance should continue to send GARP/RA packets + // periodically every 10 seconds until at least 10 minutes after updating + // the haPolicy.leader (but stop immediately if it is no longer the leader). + // - After triggering a fast failover, we recommend that you wait at least + // 3 seconds before sending another GARP/RA packet from a different VM + // instance to avoid race conditions. + // - Don't send GARP/RA packets from different VM + // instances at the same time. If multiple instances continue to send + // GARP/RA packets, traffic might be routed to different destinations in an + // alternating order. This condition ceases when a single instance + // issues a GARP/RA packet. + // - The GARP/RA request always takes priority over the leader API. + // Using the haPolicy.leader API to change the leader to a different + // instance will have no effect until the GARP/RA request becomes + // inactive. + // - The GARP/RA packets should follow the GARP/RA + // Packet Specifications.. + // - When multiple forwarding rules refer to a regional backend service, + // you need only send a GARP or RA packet for a single forwarding rule + // virtual IP. The virtual IPs for all forwarding rules targeting the same + // backend service will also be moved to the sender of the GARP or RA + // packet. + // + // + // + // The following are the Fast IP Move limitations (that is, when fastIPMove + // is not DISABLED): + // + // - Multiple forwarding rules cannot use the same IP address if one of + // them refers to a regional backend service with fastIPMove. + // - The regional backend service must set the network field, and all + // NEGs must belong to that network. However, individual + // NEGs can belong to different subnetworks of that network. + // - The maximum number of network endpoints across all backends of a + // backend service with fastIPMove is 32. + // - The maximum number of backend services with fastIPMove that can have + // the same network endpoint attached to one of its backends is 64. + // - The maximum number of backend services with fastIPMove in a VPC in a + // region is 64. + // - The network endpoints that are attached to a backend of a backend + // service with fastIPMove cannot resolve to Gen3+ machines for IPv6. + // - Traffic directed to the leader by a static route next hop will not be + // redirected to a new leader by fast failover. Such traffic will only be + // redirected once an haPolicy.leader update has taken effect. Only traffic + // to the forwarding rule's virtual IP will be redirected to a new leader by + // fast failover. + // + // + // haPolicy.fastIPMove can be set only at backend service creation time. + // Once set, it cannot be updated. + // + // By default, fastIpMove is set to DISABLED. // Check the FastIPMove enum for the list of possible values. optional string fast_i_p_move = 222633817; - // Selects one of the network endpoints attached to the backend NEGs of this service as the active endpoint (the leader) that receives all traffic. When the leader changes, there is no connection draining to persist existing connections on the old leader. You are responsible for selecting a suitable endpoint as the leader. For example, preferring a healthy endpoint over unhealthy ones. Note that this service does not track backend endpoint health, and selects the configured leader unconditionally. + // Selects one of the network endpoints attached to the backend NEGs of + // this service as the active endpoint (the leader) that receives all + // traffic. + // + // When the leader changes, there is no connection draining to persist + // existing connections on the old leader. + // + // You are responsible for selecting a suitable endpoint as the + // leader. For example, preferring a healthy endpoint over unhealthy ones. + // Note that this service does not track backend endpoint health, and + // selects the configured leader unconditionally. optional BackendServiceHAPolicyLeader leader = 503858441; } // message BackendServiceHAPolicyLeader { - // A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. The leader's backendGroup must already be specified as a backend of this backend service. Removing a backend that is designated as the leader's backendGroup is not permitted. + // A fully-qualified URL (starting with https://www.googleapis.com/) + // of the zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints + // that the leader is attached to. + // + // The leader's backendGroup must already be specified as a backend of + // this backend service. Removing a backend that is designated as the + // leader's backendGroup is not permitted. optional string backend_group = 457777428; - // The network endpoint within the leader.backendGroup that is designated as the leader. This network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the leader is removed from the haPolicy. + // The network endpoint within the leader.backendGroup that is + // designated as the leader. + // + // This network endpoint cannot be detached from the NEG specified in + // the haPolicy.leader.backendGroup until the leader is updated with + // another network endpoint, or the leader is removed from the haPolicy. optional BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126; } // message BackendServiceHAPolicyLeaderNetworkEndpoint { - // The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the haPolicy.leader.backendGroup. The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the following IAM permission on the specified resource instance: compute.instances.use + // The name of the VM instance of the leader network endpoint. The + // instance must already be attached to the NEG specified in the + // haPolicy.leader.backendGroup. + // + // The name must be 1-63 characters long, and comply with RFC1035. + // Authorization requires the following IAM permission on the + // specified resource instance: compute.instances.use optional string instance = 18257045; } @@ -4534,13 +11895,19 @@ message BackendServiceHttpCookie { // Identity-Aware Proxy message BackendServiceIAP { - // Whether the serving infrastructure will authenticate and authorize all incoming requests. + // Whether the serving infrastructure will authenticate and authorize all + // incoming requests. optional bool enabled = 1018689; // OAuth2 client ID to use for the authentication flow. optional string oauth2_client_id = 314017611; - // OAuth2 client secret to use for the authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field. @InputOnly + // OAuth2 client secret to use for the authentication flow. + // For security reasons, this value cannot be retrieved via the API. + // Instead, the SHA-256 hash of the value is returned in the + // oauth2ClientSecretSha256 field. + // + // @InputOnly optional string oauth2_client_secret = 50999520; // [Output Only] SHA256 hash value for the field oauth2_client_secret above. @@ -4556,10 +11923,14 @@ message BackendServiceList { // A list of BackendService resources. repeated BackendService items = 100526016; - // [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services. + // [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -4578,10 +11949,15 @@ message BackendServiceListUsable { // A list of BackendService resources. repeated BackendService items = 100526016; - // [Output Only] Type of resource. Always compute#usableBackendServiceList for lists of usable backend services. + // [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable backend + // services. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -4592,7 +11968,8 @@ message BackendServiceListUsable { } -// Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented by the end user. +// Container for either a built-in LB policy supported by gRPC or Envoy or +// a custom one implemented by the end user. message BackendServiceLocalityLoadBalancingPolicyConfig { optional BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368; @@ -4600,63 +11977,119 @@ message BackendServiceLocalityLoadBalancingPolicyConfig { } -// The configuration for a custom policy implemented by the user and deployed with the client. +// The configuration for a custom policy implemented by the user and +// deployed with the client. message BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy { - // An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation. + // An optional, arbitrary JSON object with configuration data, understood + // by a locally installed custom policy implementation. optional string data = 3076010; - // Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy. + // Identifies the custom policy. + // + // The value should match the name of a custom implementation registered + // on the gRPC clients. It should follow protocol buffer message naming + // conventions and include the full path (for example, + // myorg.CustomLbPolicy). The maximum length is 256 characters. + // + // Do not specify the same custom policy more than once for a + // backend. If you do, the configuration is rejected. + // + // For an example of how to use this field, seeUse + // a custom policy. optional string name = 3373707; } // The configuration for a built-in load balancing policy. message BackendServiceLocalityLoadBalancingPolicyConfigPolicy { - // The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected. + // The name of a locality load-balancing policy. Valid values include + // ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information + // about these values, see the description of localityLbPolicy. + // + // Do not specify the same policy more than once for a + // backend. If you do, the configuration is rejected. enum Name { // A value indicating that the enum field is not set. UNDEFINED_NAME = 0; INVALID_LB_POLICY = 323318707; - // An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. + // An O(1) algorithm which selects two random healthy hosts and + // picks the host which has fewer active requests. LEAST_REQUEST = 46604921; - // This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. + // This algorithm implements consistent hashing to backends. Maglev can be + // used as a drop in replacement for the ring hash load balancer. Maglev is + // not as stable as ring hash but has faster table lookup build times and + // host selection times. For more information about Maglev, seeMaglev: + // A Fast and Reliable Software Network Load Balancer. MAGLEV = 119180266; - // Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. + // Backend host is selected based on the client connection metadata, i.e., + // connections are opened to the same address as the destination address of + // the incoming connection before the connection was redirected to the load + // balancer. ORIGINAL_DESTINATION = 166297216; // The load balancer selects a random healthy host. RANDOM = 262527171; - // The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. + // The ring/modulo hash load balancer implements consistent hashing to + // backends. The algorithm has the property that the addition/removal + // of a host from a set of N hosts only affects 1/N of the requests. RING_HASH = 432795069; - // This is a simple policy in which each healthy backend is selected in round robin order. This is the default. + // This is a simple policy in which each healthy backend is selected + // in round robin order. This is the default. ROUND_ROBIN = 153895801; - // Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing. + // Per-instance weighted Load Balancing via health check reported weights. + // In internal passthrough network load balancing, it is weighted + // rendezvous hashing. + // This option is only supported in internal passthrough network load + // balancing. WEIGHTED_GCP_RENDEZVOUS = 82501640; - // Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing. + // Per-instance weighted Load Balancing via health check reported weights. + // If set, the Backend Service must configure a non legacy HTTP-based Health + // Check, and health check replies are expected to contain non-standard HTTP + // response header field X-Load-Balancing-Endpoint-Weight to specify the + // per-instance weights. + // If set, Load Balancing is weighted based on the + // per-instance weights reported in the last processed health check replies, + // as long as every instance either reported a valid weight or had + // UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. + // This option is only supported in Network Load Balancing. WEIGHTED_MAGLEV = 254930962; - // Per-endpoint weighted round-robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via the customMetrics fields. + // Per-endpoint weighted round-robin Load Balancing using weights computed + // from Backend reported Custom Metrics. If set, the Backend Service + // responses are expected to contain non-standard HTTP response header field + // Endpoint-Load-Metrics. The reported metrics + // to use for computing the weights are specified via the + // customMetrics fields. WEIGHTED_ROUND_ROBIN = 5584977; } - // The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected. + // The name of a locality load-balancing policy. Valid values include + // ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information + // about these values, see the description of localityLbPolicy. + // + // Do not specify the same policy more than once for a + // backend. If you do, the configuration is rejected. // Check the Name enum for the list of possible values. optional string name = 3373707; } -// The available logging options for the load balancer traffic served by this backend service. +// The available logging options for the load balancer traffic served by this +// backend service. message BackendServiceLogConfig { - // This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. + // This field can only be specified if logging is enabled for this backend + // service. Configures whether all, none or a subset of optional fields + // should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, + // EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. enum OptionalMode { // A value indicating that the enum field is not set. UNDEFINED_OPTIONAL_MODE = 0; @@ -4672,31 +12105,60 @@ message BackendServiceLogConfig { } - // Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false. + // Denotes whether to enable logging for the load balancer + // traffic served by this backend service. The default value is false. optional bool enable = 311764355; - // This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace + // This field can only be specified if logging is enabled for this backend + // service and "logConfig.optionalMode" was set to CUSTOM. Contains a list + // of optional fields you want to include in the logs. For example: + // serverInstance, serverGkeDetails.cluster, + // serverGkeDetails.pod.podNamespace repeated string optional_fields = 528589944; - // This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. + // This field can only be specified if logging is enabled for this backend + // service. Configures whether all, none or a subset of optional fields + // should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, + // EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. // Check the OptionalMode enum for the list of possible values. optional string optional_mode = 128697122; - // This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0. + // This field can only be specified if logging is enabled for this backend + // service. The value of the field must be in [0, 1]. This configures the + // sampling rate of requests to the load balancer where 1.0 means all logged + // requests are reported and 0.0 means no logged requests are reported. The + // default value is 1.0. optional float sample_rate = 153193045; } // message BackendServiceNetworkPassThroughLbTrafficPolicy { - // When configured, new connections are load balanced across healthy backend endpoints in the local zone. + // When configured, new connections are load balanced across healthy backend + // endpoints in the local zone. optional BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity zonal_affinity = 536266051; } // message BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity { - // This field indicates whether zonal affinity is enabled or not. The possible values are: - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer distributes new connections to all healthy backend endpoints across all zones. - ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there are no healthy backend endpoints in the local zone, the load balancer distributes new connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there aren't enough healthy backend endpoints in the local zone, the load balancer distributes new connections to all healthy backend endpoints across all zones. + // This field indicates whether zonal affinity is enabled or not. The + // possible values are: + // + // - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity + // is disabled. The load balancer distributes new connections to all + // healthy backend endpoints across all zones. + // - ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is + // enabled. The load balancer distributes new connections to all healthy + // backend endpoints in the local zone only. If there are no healthy + // backend endpoints in the local zone, the load balancer distributes + // new connections to all backend endpoints in the local zone. + // - ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is + // enabled. The load balancer distributes new connections to all healthy + // backend endpoints in the local zone only. If there aren't enough + // healthy backend endpoints in the local zone, the load balancer + // distributes new connections to all healthy backend endpoints across all + // zones. enum Spillover { // A value indicating that the enum field is not set. UNDEFINED_SPILLOVER = 0; @@ -4709,18 +12171,52 @@ message BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity { } - // This field indicates whether zonal affinity is enabled or not. The possible values are: - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer distributes new connections to all healthy backend endpoints across all zones. - ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there are no healthy backend endpoints in the local zone, the load balancer distributes new connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is enabled. The load balancer distributes new connections to all healthy backend endpoints in the local zone only. If there aren't enough healthy backend endpoints in the local zone, the load balancer distributes new connections to all healthy backend endpoints across all zones. + // This field indicates whether zonal affinity is enabled or not. The + // possible values are: + // + // - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity + // is disabled. The load balancer distributes new connections to all + // healthy backend endpoints across all zones. + // - ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is + // enabled. The load balancer distributes new connections to all healthy + // backend endpoints in the local zone only. If there are no healthy + // backend endpoints in the local zone, the load balancer distributes + // new connections to all backend endpoints in the local zone. + // - ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is + // enabled. The load balancer distributes new connections to all healthy + // backend endpoints in the local zone only. If there aren't enough + // healthy backend endpoints in the local zone, the load balancer + // distributes new connections to all healthy backend endpoints across all + // zones. // Check the Spillover enum for the list of possible values. optional string spillover = 505501440; - // The value of the field must be in [0, 1]. When the ratio of the count of healthy backend endpoints in a zone to the count of backend endpoints in that same zone is equal to or above this threshold, the load balancer distributes new connections to all healthy endpoints in the local zone only. When the ratio of the count of healthy backend endpoints in a zone to the count of backend endpoints in that same zone is below this threshold, the load balancer distributes all new connections to all healthy endpoints across all zones. + // The value of the field must be in [0, 1]. When the ratio of the count + // of healthy backend endpoints in a zone to the count of backend + // endpoints in that same zone is equal to or above this threshold, the + // load balancer distributes new connections to all healthy endpoints in + // the local zone only. When the ratio of the count of healthy backend + // endpoints in a zone to the count of backend endpoints in that same + // zone is below this threshold, the load balancer distributes all new + // connections to all healthy endpoints across all zones. optional float spillover_ratio = 135580172; } // Additional Backend Service parameters. message BackendServiceParams { - // Tag keys/values directly bound to this resource. Tag keys and values have the same definition as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {"123/environment" : "tagValues/444"} is invalid. + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. map resource_manager_tags = 377671164; } @@ -4733,18 +12229,77 @@ message BackendServiceReference { // message BackendServiceTlsSettings { - // Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE. + // Reference to the BackendAuthenticationConfig resource from the + // networksecurity.googleapis.com namespace. Can be used in authenticating + // TLS connections to the backend, as specified by the authenticationMode + // field. Can only be specified if authenticationMode is not NONE. optional string authentication_config = 408053481; - // Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[]. + // Assigns the Managed Identity for the BackendService Workload. + // + // + // Use this property to configure the load balancer back-end to use + // certificates and roots of trust provisioned by the Managed Workload + // Identity system. + // + // The `identity` property is the + // fully-specified SPIFFE ID to use in the SVID presented by the Load + // Balancer Workload. + // + // The SPIFFE ID must be a resource starting with the + // `trustDomain` property value, followed by the path to the Managed + // Workload Identity. + // + // Supported SPIFFE ID format: + // + // - ///ns//sa/ + // + // + // The Trust Domain within the Managed Identity must refer to a valid + // Workload Identity Pool. The TrustConfig and CertificateIssuanceConfig + // will be inherited from the Workload Identity Pool. + // + // Restrictions: + // + // - If you set the `identity` property, you cannot manually set + // the following fields: + // - tlsSettings.sni + // - tlsSettings.subjectAltNames + // - tlsSettings.authenticationConfig + // + // + // When defining a `identity` for a RegionBackendServices, the + // corresponding Workload Identity Pool must have a ca_pool + // configured in the same region. + // + // The system will set up a read-onlytlsSettings.authenticationConfig for the Managed Identity. + optional string identity = 401109182; + + // Server Name Indication - see RFC3546 section 3.1. If set, the load + // balancer sends this string as the SNI hostname in the TLS connection to + // the backend, and requires that this string match a Subject Alternative + // Name (SAN) in the backend's server certificate. With a Regional Internet + // NEG backend, if the SNI is specified here, the load balancer uses it + // regardless of whether the Regional Internet NEG is specified with FQDN or + // IP address and port. When both sni and subjectAltNames[] are specified, + // the load balancer matches the backend certificate's SAN only to + // subjectAltNames[]. optional string sni = 114030; - // A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[]. + // A list of Subject Alternative Names (SANs) that the Load Balancer + // verifies during a TLS handshake with the backend. When the server + // presents its X.509 certificate to the Load Balancer, the Load Balancer + // inspects the certificate's SAN field, and requires that at least one SAN + // match one of the subjectAltNames in the list. This field is limited to 5 + // entries. When both sni and subjectAltNames[] are specified, the load + // balancer matches the backend certificate's SAN only to subjectAltNames[]. repeated BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; } -// A Subject Alternative Name that the load balancer matches against the SAN field in the TLS certificate provided by the backend, specified as either a DNS name or a URI, in accordance with RFC 5280 4.2.1.6 +// A Subject Alternative Name that the load balancer matches against the SAN +// field in the TLS certificate provided by the backend, specified as either +// a DNS name or a URI, in accordance with RFC 5280 4.2.1.6 message BackendServiceTlsSettingsSubjectAltName { // The SAN specified as a DNS Name. optional string dns_name = 411992033; @@ -4756,7 +12311,9 @@ message BackendServiceTlsSettingsSubjectAltName { // message BackendServiceUsedBy { - // [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. + // [Output Only] Server-defined URL for resources referencing given + // BackendService like UrlMaps, TargetTcpProxies, TargetSslProxies + // and ForwardingRule. optional string reference = 148586315; } @@ -4773,14 +12330,18 @@ message BackendServicesScopedList { // A list of BackendServices contained in this scope. repeated BackendService backend_services = 388522409; - // Informational warning which replaces the list of backend services when the list is empty. + // Informational warning which replaces the list of + // backend services when the list is empty. optional Warning warning = 50704284; } // message BfdPacket { - // The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 + // The diagnostic code specifies the local system's reason for the last change + // in session state. This allows remote systems to determine the reason that + // the previous session failed, for example. These diagnostic codes are + // specified in section 4.1 ofRFC5880 enum Diagnostic { // A value indicating that the enum field is not set. UNDEFINED_DIAGNOSTIC = 0; @@ -4807,7 +12368,8 @@ message BfdPacket { } - // The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 + // The current BFD session state as seen by the transmitting system. These + // states are specified in section 4.1 ofRFC5880 enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -4824,61 +12386,78 @@ message BfdPacket { } - // The Authentication Present bit of the BFD packet. This is specified in section 4.1 of RFC5880 + // The Authentication Present bit of the BFD packet. This is specified in + // section 4.1 ofRFC5880 optional bool authentication_present = 105974260; - // The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 of RFC5880 + // The Control Plane Independent bit of the BFD packet. This is specified in + // section 4.1 ofRFC5880 optional bool control_plane_independent = 62363573; - // The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880 + // The demand bit of the BFD packet. This is specified in section 4.1 ofRFC5880 optional bool demand = 275180107; - // The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 + // The diagnostic code specifies the local system's reason for the last change + // in session state. This allows remote systems to determine the reason that + // the previous session failed, for example. These diagnostic codes are + // specified in section 4.1 ofRFC5880 // Check the Diagnostic enum for the list of possible values. optional string diagnostic = 62708647; - // The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880 + // The Final bit of the BFD packet. This is specified in section 4.1 ofRFC5880 optional bool final = 97436022; - // The length of the BFD Control packet in bytes. This is specified in section 4.1 of RFC5880 + // The length of the BFD Control packet in bytes. This is specified in section + // 4.1 ofRFC5880 optional uint32 length = 504249062; - // The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 + // The Required Min Echo RX Interval value in the BFD packet. This is + // specified in section 4.1 ofRFC5880 optional uint32 min_echo_rx_interval_ms = 97286868; - // The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 + // The Required Min RX Interval value in the BFD packet. This is specified in + // section 4.1 ofRFC5880 optional uint32 min_rx_interval_ms = 463399028; - // The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 + // The Desired Min TX Interval value in the BFD packet. This is specified in + // section 4.1 ofRFC5880 optional uint32 min_tx_interval_ms = 526023602; - // The detection time multiplier of the BFD packet. This is specified in section 4.1 of RFC5880 + // The detection time multiplier of the BFD packet. This is specified in + // section 4.1 ofRFC5880 optional uint32 multiplier = 191331777; - // The multipoint bit of the BFD packet. This is specified in section 4.1 of RFC5880 + // The multipoint bit of the BFD packet. This is specified in section 4.1 ofRFC5880 optional bool multipoint = 191421431; - // The My Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880 + // The My Discriminator value in the BFD packet. This is specified in section + // 4.1 ofRFC5880 optional uint32 my_discriminator = 76663113; - // The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880 + // The Poll bit of the BFD packet. This is specified in section 4.1 ofRFC5880 optional bool poll = 3446719; - // The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 + // The current BFD session state as seen by the transmitting system. These + // states are specified in section 4.1 ofRFC5880 // Check the State enum for the list of possible values. optional string state = 109757585; - // The version number of the BFD protocol, as specified in section 4.1 of RFC5880. + // The version number of the BFD protocol, as specified in section 4.1 ofRFC5880. optional uint32 version = 351608024; - // The Your Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880 + // The Your Discriminator value in the BFD packet. This is specified in + // section 4.1 ofRFC5880 optional uint32 your_discriminator = 515634064; } // Next free: 15 message BfdStatus { - // The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. + // The BFD session initialization mode for this BGP peer. + // If set to ACTIVE, the Cloud Router will initiate the BFD session for + // this BGP peer. If set to PASSIVE, the Cloud Router will wait for the + // peer router to initiate the BFD session for this BGP peer. If set to + // DISABLED, BFD is disabled for this BGP peer. enum BfdSessionInitializationMode { // A value indicating that the enum field is not set. UNDEFINED_BFD_SESSION_INITIALIZATION_MODE = 0; @@ -4891,7 +12470,10 @@ message BfdStatus { } - // The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 + // The diagnostic code specifies the local system's reason for the last change + // in session state. This allows remote systems to determine the reason that + // the previous session failed, for example. These diagnostic codes are + // specified in section 4.1 ofRFC5880 enum LocalDiagnostic { // A value indicating that the enum field is not set. UNDEFINED_LOCAL_DIAGNOSTIC = 0; @@ -4918,7 +12500,8 @@ message BfdStatus { } - // The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 + // The current BFD session state as seen by the transmitting system. These + // states are specified in section 4.1 ofRFC5880 enum LocalState { // A value indicating that the enum field is not set. UNDEFINED_LOCAL_STATE = 0; @@ -4935,7 +12518,11 @@ message BfdStatus { } - // The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. + // The BFD session initialization mode for this BGP peer. + // If set to ACTIVE, the Cloud Router will initiate the BFD session for + // this BGP peer. If set to PASSIVE, the Cloud Router will wait for the + // peer router to initiate the BFD session for this BGP peer. If set to + // DISABLED, BFD is disabled for this BGP peer. // Check the BfdSessionInitializationMode enum for the list of possible values. optional string bfd_session_initialization_mode = 218156954; @@ -4948,11 +12535,15 @@ message BfdStatus { // Inter-packet time interval statistics for control packets. repeated PacketIntervals control_packet_intervals = 500806649; - // The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 + // The diagnostic code specifies the local system's reason for the last change + // in session state. This allows remote systems to determine the reason that + // the previous session failed, for example. These diagnostic codes are + // specified in section 4.1 ofRFC5880 // Check the LocalDiagnostic enum for the list of possible values. optional string local_diagnostic = 463737083; - // The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 + // The current BFD session state as seen by the transmitting system. These + // states are specified in section 4.1 ofRFC5880 // Check the LocalState enum for the list of possible values. optional string local_state = 149195453; @@ -4972,16 +12563,20 @@ message BfdStatus { // message BfdStatusPacketCounts { - // Number of packets received since the beginning of the current BFD session. + // Number of packets received since the beginning of the current BFD + // session. optional uint32 num_rx = 39375263; - // Number of packets received that were rejected because of errors since the beginning of the current BFD session. + // Number of packets received that were rejected because of errors since the + // beginning of the current BFD session. optional uint32 num_rx_rejected = 281007902; - // Number of packets received that were successfully processed since the beginning of the current BFD session. + // Number of packets received that were successfully processed since the + // beginning of the current BFD session. optional uint32 num_rx_successful = 455361850; - // Number of packets transmitted since the beginning of the current BFD session. + // Number of packets transmitted since the beginning of the current BFD + // session. optional uint32 num_tx = 39375325; } @@ -5007,7 +12602,8 @@ message BgpRoute { // [Output only] BGP communities in human-readable A:B format. repeated string communities = 188262983; - // [Output only] Destination IP range for the route, in human-readable CIDR format + // [Output only] Destination IP range for the route, in human-readable CIDR + // format optional BgpRouteNetworkLayerReachabilityInformation destination = 180765710; // [Output only] BGP multi-exit discriminator @@ -5032,10 +12628,13 @@ message BgpRouteAsPath { } - // [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + // [Output only] ASNs in the path segment. When type is SEQUENCE, these are + // ordered. repeated int32 asns = 3003767; - // [Output only] ASNs in the path segment. This field is for better support of 32 bit ASNs as the other asns field suffers from overflow when the ASN is larger. When type is SEQUENCE, these are ordered. + // [Output only] ASNs in the path segment. This field is for better + // support of 32 bit ASNs as the other asns field suffers from overflow when + // the ASN is larger. When type is SEQUENCE, these are ordered. repeated uint32 asns32 = 202267158; // [Output only] Type of AS-PATH segment (SEQUENCE or SET) @@ -5046,7 +12645,8 @@ message BgpRouteAsPath { // Network Layer Reachability Information (NLRI) for a route. message BgpRouteNetworkLayerReachabilityInformation { - // If the BGP session supports multiple paths (RFC 7911), the path identifier for this route. + // If the BGP session supports multiple paths (RFC 7911), the path + // identifier for this route. optional uint32 path_id = 282287989; // Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16. @@ -5058,13 +12658,111 @@ message BgpRouteNetworkLayerReachabilityInformation { message Binding { optional string binding_id = 441088277; - // The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + // The condition that is associated with this binding. + // + // If the condition evaluates to `true`, then this binding applies to the + // current request. + // + // If the condition evaluates to `false`, then this binding does not apply to + // the current request. However, a different role binding might grant the same + // role to one or more of the principals in this binding. + // + // To learn which resources support conditions in their IAM policies, see the + // [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-policies). optional Expr condition = 212430107; - // Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + // Specifies the principals requesting access for a Google Cloud resource. + // `members` can have the following values: + // + // * `allUsers`: A special identifier that represents anyone who is + // on the internet; with or without a Google account. + // + // * `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. + // Does not include identities that come from external identity providers + // (IdPs) through identity federation. + // + // * `user:{emailid}`: An email address that represents a specific Google + // account. For example, `alice@example.com` . + // + // + // * `serviceAccount:{emailid}`: An email address that represents a Google + // service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. + // + // * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An + // identifier for a + // [Kubernetes service + // account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. + // + // * `group:{emailid}`: An email address that represents a Google group. + // For example, `admins@example.com`. + // + // + // * `domain:{domain}`: The G Suite domain (primary) that represents all the + // users of that domain. For example, `google.com` or `example.com`. + // + // + // + // + // * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: + // A single identity in a workforce identity pool. + // + // * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + // All workforce identities in a group. + // + // * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: + // All workforce identities with a specific attribute value. + // + // * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: + // All identities in a workforce identity pool. + // + // * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: + // A single identity in a workload identity pool. + // + // * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: + // A workload identity pool group. + // + // * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: + // All identities in a workload identity pool with a certain attribute. + // + // * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: + // All identities in a workload identity pool. + // + // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + // identifier) representing a user that has been recently deleted. For + // example, `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered user + // retains the role in the binding. + // + // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a service account that has been recently + // deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. + // + // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + // identifier) representing a Google group that has been recently + // deleted. For example, `admins@example.com?uid=123456789012345678901`. If + // the group is recovered, this value reverts to `group:{emailid}` and the + // recovered group retains the role in the binding. + // + // * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: + // Deleted single identity in a workforce identity pool. For example, + // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. repeated string members = 412010777; - // Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + // Role that is assigned to the list of `members`, or principals. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // + // For an overview of the IAM roles and permissions, see the + // [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For + // a list of the available pre-defined roles, see + // [here](https://cloud.google.com/iam/docs/understanding-roles). optional string role = 3506294; } @@ -5080,7 +12778,19 @@ message BulkInsertDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -5091,9 +12801,22 @@ message BulkInsertDiskRequest { } -// A transient resource used in compute.disks.bulkInsert and compute.regionDisks.bulkInsert. It is only used to process requests and is not persisted. +// A transient resource used in compute.disks.bulkInsert and +// compute.regionDisks.bulkInsert. It is only used to process +// requests and is not persisted. message BulkInsertDiskResource { - // The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full or partial URL, such as: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy + // The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. + // This may be a full or partial URL, such as: + // + // + // - + // https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy + // + // - + // projects/project/regions/region/resourcePolicies/resourcePolicy + // + // - + // regions/region/resourcePolicies/resourcePolicy optional string source_consistency_group_policy = 19616093; } @@ -5109,7 +12832,19 @@ message BulkInsertInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -5120,34 +12855,69 @@ message BulkInsertInstanceRequest { } -// A transient resource used in compute.instances.bulkInsert and compute.regionInstances.bulkInsert . This resource is not persisted anywhere, it is used only for processing the requests. +// A transient resource used in compute.instances.bulkInsert and +// compute.regionInstances.bulkInsert . This resource is not persisted +// anywhere, it is used only for processing the requests. message BulkInsertInstanceResource { // The maximum number of instances to create. optional int64 count = 94851343; - // The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided. + // The instance properties defining the VM instances to be created. Required + // if sourceInstanceTemplate is not provided. optional InstanceProperties instance_properties = 215355165; - // Policy for choosing target zone. For more information, see Create VMs in bulk. + // Policy for choosing target zone. For more information, seeCreate VMs in + // bulk. optional LocationPolicy location_policy = 465689852; - // The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted. + // The minimum number of instances to create. If no min_count is + // specified then count is used as the default value. Ifmin_count instances cannot be created, then no instances will + // be created and instances already created will be deleted. optional int64 min_count = 523228386; - // The string pattern used for the names of the VMs. Either name_pattern or per_instance_properties must be set. The pattern must contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: a name_pattern of inst-#### generates instance names such as inst-0001 and inst-0002. If existing instances in the same project and zone have names that match the name pattern then the generated instance numbers start after the biggest existing number. For example, if there exists an instance with name inst-0050, then instance names generated using the pattern inst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters. + // The string pattern used for the names of the VMs. + // Either name_pattern or per_instance_properties + // must be set. The pattern must contain one continuous sequence of + // placeholder hash characters (#) with each character corresponding to one + // digit of the generated instance name. Example: a name_pattern + // of inst-#### generates instance names such asinst-0001 and inst-0002. If existing instances + // in the same project and zone have names that match the name pattern + // then the generated instance numbers start after the biggest + // existing number. For example, if there exists an instance with nameinst-0050, then instance names generated using the patterninst-#### begin with inst-0051. The name pattern + // placeholder #...# can contain up to 18 characters. optional string name_pattern = 413815260; - // Per-instance properties to be set on individual instances. Keys of this map specify requested instance names. Can be empty if name_pattern is used. + // Per-instance properties to be set on individual instances. + // Keys of this map specify requested instance names. + // Can be empty if name_pattern is used. map per_instance_properties = 108502267; - // Specifies the instance template from which to create instances. You may combine sourceInstanceTemplate with instanceProperties to override specific values from an existing instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate This field is optional. + // Specifies the instance template from which to create instances. You may + // combine sourceInstanceTemplate withinstanceProperties to override specific values from an + // existing instance template. Bulk API follows the semantics of JSON Merge + // Patch described by RFC + // 7396. + // + // It can be a full or partial URL. For example, the following are + // all valid URLs to an instance template: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + // - projects/project/global/instanceTemplates/instanceTemplate + // - global/instanceTemplates/instanceTemplate + // + // + // + // This field is optional. optional string source_instance_template = 332423616; } -// Per-instance properties to be set on individual instances. To be extended in the future. +// Per-instance properties to be set on individual instances. +// To be extended in the future. message BulkInsertInstanceResourcePerInstanceProperties { - // Specifies the hostname of the instance. More details in: https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention + // Specifies the hostname of the instance. More details in: + // https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention optional string hostname = 237067315; // This field is only temporary. It will be removed. Do not use it. @@ -5157,7 +12927,8 @@ message BulkInsertInstanceResourcePerInstanceProperties { // message BulkInsertOperationStatus { - // [Output Only] Creation status of BulkInsert operation - information if the flow is rolling forward or rolling back. + // [Output Only] Creation status of BulkInsert operation - information + // if the flow is rolling forward or rolling back. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -5181,10 +12952,12 @@ message BulkInsertOperationStatus { // [Output Only] Count of VMs that got deleted during rollback. optional int32 deleted_vm_count = 271756013; - // [Output Only] Count of VMs that started creating but encountered an error. + // [Output Only] Count of VMs that started creating but encountered an + // error. optional int32 failed_to_create_vm_count = 58384104; - // [Output Only] Creation status of BulkInsert operation - information if the flow is rolling forward or rolling back. + // [Output Only] Creation status of BulkInsert operation - information + // if the flow is rolling forward or rolling back. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -5210,7 +12983,19 @@ message BulkInsertRegionDiskRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -5232,7 +13017,19 @@ message BulkInsertRegionInstanceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -5248,7 +13045,19 @@ message BulkSetLabelsDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -5264,7 +13073,12 @@ message BulkSetLabelsDiskRequest { // message BulkSetLabelsRequest { - // The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You may optionally provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint. + // The fingerprint of the previous set of labels for this resource, + // used to detect conflicts. The fingerprint is initially generated by Compute + // Engine and changes after every request to modify or update labels. You may + // optionally provide an up-to-date fingerprint hash in order to update or + // change labels. Make a get() request to the resource to get the + // latest fingerprint. optional string label_fingerprint = 178124825; // The labels to set for this resource. @@ -5290,17 +13104,30 @@ message BundledLocalSsds { // message CacheInvalidationRule { - // A list of cache tags used to identify cached objects. - Cache tags are specified when the response is first cached, by setting the `Cache-Tag` response header at the origin. - Multiple cache tags in the same invalidation request are treated as Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. - If other fields are also specified, these are treated as Boolean `AND` with any tags. Up to 10 tags can be specified in a single invalidation request. + // A list of cache tags used to identify cached objects. + // + // + // - Cache tags are specified when the response is first cached, by setting + // the `Cache-Tag` response header at the origin. + // - Multiple cache tags in the same invalidation request are treated as + // Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. + // - If other fields are also specified, these are treated as Boolean `AND` + // with any tags. + // + // + // Up to 10 tags can be specified in a single invalidation request. repeated string cache_tags = 29073078; - // If set, this invalidation rule will only apply to requests with a Host header matching host. + // If set, this invalidation rule will only apply to requests with a Host + // header matching host. optional string host = 3208616; optional string path = 3433509; } -// Message containing what to include in the cache key for a request for Cloud CDN. +// Message containing what to include in the cache key for a request for Cloud +// CDN. message CacheKeyPolicy { // If true, requests to different hosts will be cached separately. optional bool include_host = 486867679; @@ -5308,33 +13135,50 @@ message CacheKeyPolicy { // Allows HTTP request headers (by name) to be used in the cache key. repeated string include_http_headers = 2489606; - // Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates. + // Allows HTTP cookies (by name) to be used in the cache key. + // The name=value pair will be used in the cache key Cloud CDN generates. repeated string include_named_cookies = 87316530; // If true, http and https requests will be cached separately. optional bool include_protocol = 303507535; - // If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. + // If true, include query string parameters in the cache key according to + // query_string_whitelist and query_string_blacklist. If neither is set, the + // entire query string will be included. If false, the query string will be + // excluded from the cache key entirely. optional bool include_query_string = 474036639; - // Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. + // Names of query string parameters to exclude in cache keys. All other + // parameters will be included. Either specify query_string_whitelist or + // query_string_blacklist, not both. '&' and '=' will be percent encoded and + // not treated as delimiters. repeated string query_string_blacklist = 354964742; - // Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. + // Names of query string parameters to include in cache keys. All other + // parameters will be excluded. Either specify query_string_whitelist or + // query_string_blacklist, not both. '&' and '=' will be percent encoded and + // not treated as delimiters. repeated string query_string_whitelist = 52456496; } -// A request to recommend the best way to consume the specified resources in the future. +// A request to recommend the best way to consume the specified resources in the +// future. message CalendarModeAdviceRequest { - // Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map. + // Specification of resources to create in the future. + // The key of the map is an arbitrary string specified by the caller. + // Value of the map is a specification of required resources and their + // constraints. Currently only one value is allowed in this map. map future_resources_specs = 255012610; } -// A response containing the recommended way of creating the specified resources in the future. It contains (will contain) multiple recommendations that can be analyzed by the customer and the best one can be picked. +// A response containing the recommended way of creating the specified resources +// in the future. It contains (will contain) multiple recommendations that can +// be analyzed by the customer and the best one can be picked. message CalendarModeAdviceResponse { - // Recommendations where, how and when to create the requested resources in order to maximize their obtainability and minimize cost. + // Recommendations where, how and when to create the requested resources + // in order to maximize their obtainability and minimize cost. repeated CalendarModeRecommendation recommendations = 324515802; } @@ -5352,9 +13196,13 @@ message CalendarModeAdviceRpcRequest { } -// A single recommendation to create requested resources. Contains detailed recommendations for every future resources specification specified in CalendarModeAdviceRequest. +// A single recommendation to create requested resources. Contains detailed +// recommendations for every future resources specification specified in +// CalendarModeAdviceRequest. message CalendarModeRecommendation { - // Recommendations for every future resource specification passed in CalendarModeAdviceRequest. Keys of the map correspond to keys specified in the request. + // Recommendations for every future resource specification passed in + // CalendarModeAdviceRequest. Keys of the map correspond to keys + // specified in the request. map recommendations_per_spec = 61331554; } @@ -5370,7 +13218,19 @@ message CancelFutureReservationRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the zone for this request. Name should conform to RFC1035. @@ -5383,7 +13243,8 @@ message CancelFutureReservationRequest { // A request message for InstanceGroupManagerResizeRequests.Cancel. See the method description for details. message CancelInstanceGroupManagerResizeRequestRequest { - // The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. + // The name of the managed instance group. + // The name should conform to RFC1035 or be a resource ID. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -5392,13 +13253,27 @@ message CancelInstanceGroupManagerResizeRequestRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the resize request to cancel. The name should conform to RFC1035 or be a resource ID. + // The name of the resize request to cancel. + // The name should conform to RFC1035 or be a resource ID. string resize_request = 216941060 [(google.api.field_behavior) = REQUIRED]; - // The name of the zone where the managed instance group is located. The name should conform to RFC1035. + // The name of thezone where the managed + // instance group is located. The name should conform to RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -5408,7 +13283,8 @@ message CancelInstanceGroupManagerResizeRequestRequest { // A request message for RegionInstanceGroupManagerResizeRequests.Cancel. See the method description for details. message CancelRegionInstanceGroupManagerResizeRequestRequest { - // The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + // The name of the managed instance group. + // Name should conform to RFC1035 or be a resource ID. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -5417,38 +13293,72 @@ message CancelRegionInstanceGroupManagerResizeRequestRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region scoping this request. Name should conform to RFC1035. + // The name of the region + // scoping this request. Name should conform to RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the resize request to cancel. Name should conform to RFC1035 or be a resource ID. + // The name of the resize request to cancel. + // Name should conform to RFC1035 or be a resource ID. string resize_request = 216941060 [(google.api.field_behavior) = REQUIRED]; } -// Settings controlling the volume of requests, connections and retries to this backend service. +// Settings controlling the volume of requests, connections and retries to this +// backend service. message CircuitBreakers { // The timeout for new network connections to hosts. optional Duration connect_timeout = 495510284; - // The maximum number of connections to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // The maximum number of connections to the backend service. If not specified, + // there is no limit. + // + // Not supported when the backend service is referenced by a URL map that is + // bound to target gRPC proxy that has validateForProxyless field set to true. optional int32 max_connections = 110652154; - // The maximum number of pending requests allowed to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // The maximum number of pending requests allowed to the backend service. If + // not specified, there is no limit. + // + // Not supported when the backend service is referenced by a URL map that is + // bound to target gRPC proxy that has validateForProxyless field set to true. optional int32 max_pending_requests = 375558887; - // The maximum number of parallel requests that allowed to the backend service. If not specified, there is no limit. + // The maximum number of parallel requests that allowed to the backend + // service. If not specified, there is no limit. optional int32 max_requests = 28097599; - // Maximum requests for a single connection to the backend service. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // Maximum requests for a single connection to the backend service. + // This parameter is respected by both the HTTP/1.1 and HTTP/2 + // implementations. If not specified, there is no limit. Setting this + // parameter to 1 will effectively disable keep alive. + // + // Not supported when the backend service is referenced by a URL map that is + // bound to target gRPC proxy that has validateForProxyless field set to true. optional int32 max_requests_per_connection = 361630528; - // The maximum number of parallel retries allowed to the backend cluster. If not specified, the default is 1. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // The maximum number of parallel retries allowed to the backend cluster. If + // not specified, the default is 1. + // + // Not supported when the backend service is referenced by a URL map that is + // bound to target gRPC proxy that has validateForProxyless field set to true. optional int32 max_retries = 55546219; } @@ -5458,7 +13368,19 @@ message CloneRulesFirewallPolicyRequest { // Name of the firewall policy to update. string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The firewall policy from which to copy rules. @@ -5477,7 +13399,19 @@ message CloneRulesNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The firewall policy from which to copy rules. @@ -5502,7 +13436,19 @@ message CloneRulesRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The firewall policy from which to copy rules. @@ -5510,9 +13456,22 @@ message CloneRulesRegionNetworkFirewallPolicyRequest { } -// Represents a regional resource-based commitment resource. Creating this commitment resource means that you are purchasing a resource-based committed use contract, with an explicit start and end time. You can purchase resource-based commitments for both hardware and software resources. For more information, read Resource-based committed use discounts +// Represents a regional resource-based commitment resource. +// +// Creating this commitment resource means that you are purchasing a +// resource-based committed use contract, with an explicit start and end time. +// You can purchase resource-based commitments for both hardware and software +// resources. For more information, read +// Resource-based committed use discounts message Commitment { - // The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to. + // The category of the commitment; specifies whether the commitment is for + // hardware or software resources. Category MACHINE specifies + // that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources. + // Category LICENSE specifies that you are committing to software + // licenses, listed in licenseResources. + // Note that if you specify MACHINE commitments, then you must + // also specify a type to indicate the machine series of the + // hardware resource that you are committing to. enum Category { // A value indicating that the enum field is not set. UNDEFINED_CATEGORY = 0; @@ -5525,7 +13484,12 @@ message Commitment { } - // The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). + // The minimum time duration that you commit to purchasing resources. + // The plan that you choose determines the preset term length of the + // commitment (which is 1 year or 3 years) and affects the discount rate that + // you receive for your resources. Committing to a longer time duration + // typically gives you a higher discount rate. The supported values for this + // field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). enum Plan { // A value indicating that the enum field is not set. UNDEFINED_PLAN = 0; @@ -5538,14 +13502,17 @@ message Commitment { } - // [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED. + // [Output Only] Status of the commitment with regards to eventual expiration + // (each commitment has an end date defined). Status can be one of the + // following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; ACTIVE = 314733318; - // Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation. + // Deprecate CANCELED status. Will use separate status to differentiate + // cancel by mergeCud or manual cancellation. CANCELLED = 41957681; CREATING = 455564985; @@ -5556,7 +13523,18 @@ message Commitment { } - // The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series. + // The type of commitment; specifies the + // machine series for which you want to commit to purchasing resources. + // The choice of machine series affects the discount rate and the eligible + // resource types. + // + // The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, + // COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. + // For example, type MEMORY_OPTIMIZED specifies a commitment + // that applies only to eligible resources of memory optimized M1 and M2 + // machine series. Type GENERAL_PURPOSE specifies a commitment + // that applies only to eligible resources of general purpose N1 machine + // series. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -5619,80 +13597,141 @@ message Commitment { STORAGE_OPTIMIZED_Z3 = 316796085; - // Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type. + // Note for internal users: When adding a new enum Type for v1, make sure + // to also add it in the comment for the `optional Type type` definition. + // This ensures that the public documentation displays the new enum Type. TYPE_UNSPECIFIED = 437714322; } - // Specifies whether to automatically renew the commitment at the end of its current term. The default value is false. If you set the field to true, each time your commitment reaches the end of its term, Compute Engine automatically renews it for another term. You can update this field anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027. + // Specifies whether to automatically renew the commitment at the end of its + // current term. The default value is false. If you set the field + // to true, each time your commitment reaches the end of its + // term, Compute Engine automatically renews it for another term. You can + // update this field anytime before the commitment expires. For example, if + // the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can + // update this field until 11:59 PM UTC-8 on January 2, 2027. optional bool auto_renew = 495520765; - // The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to. + // The category of the commitment; specifies whether the commitment is for + // hardware or software resources. Category MACHINE specifies + // that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources. + // Category LICENSE specifies that you are committing to software + // licenses, listed in licenseResources. + // Note that if you specify MACHINE commitments, then you must + // also specify a type to indicate the machine series of the + // hardware resource that you are committing to. // Check the Category enum for the list of possible values. optional string category = 50511102; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // [Input Only] Optional, specifies the requested commitment end time in RFC3339 text format. Use this option when the desired commitment's end date is later than the start date + term duration. + // [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired + // commitment's end date is later than the start date + term duration. optional string custom_end_timestamp = 181770852; - // An optional description of the commitment. You can provide this property when you create the resource. + // An optional description of the commitment. You can provide this property + // when you create the resource. optional string description = 422937596; - // [Output Only] Commitment end time in RFC3339 text format. + // [Output Only] Commitment end time inRFC3339 + // text format. optional string end_timestamp = 468096690; repeated string existing_reservations = 493028443; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#commitment for commitments. + // [Output Only] Type of the resource. Always compute#commitment + // for commitments. optional string kind = 3292052; // The license specification required as part of a license commitment. optional LicenseResourceCommitment license_resource = 437955148; - // The list of source commitments that you are merging to create the new merged commitment. For more information, see Merging commitments. + // The list of source commitments that you are merging to create the new + // merged commitment. For more information, see + // Merging commitments. repeated string merge_source_commitments = 188093761; - // Name of the commitment. You must specify a name when you purchase the commitment. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the commitment. You must specify a name when you purchase the + // commitment. The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). + // The minimum time duration that you commit to purchasing resources. + // The plan that you choose determines the preset term length of the + // commitment (which is 1 year or 3 years) and affects the discount rate that + // you receive for your resources. Committing to a longer time duration + // typically gives you a higher discount rate. The supported values for this + // field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). // Check the Plan enum for the list of possible values. optional string plan = 3443497; - // [Output Only] URL of the region where the commitment and committed resources are located. + // [Output Only] URL of the region where the commitment and committed + // resources are located. optional string region = 138946292; - // The list of new reservations that you want to create and attach to this commitment. You must attach reservations to your commitment if your commitment specifies any GPUs or Local SSD disks. For more information, see Attach reservations to resource-based commitments. Specify this property only if you want to create new reservations to attach. To attach existing reservations, specify the existingReservations property instead. + // The list of new reservations that you want to create and attach to this + // commitment. + // + // You must attach reservations to your commitment if your commitment + // specifies any GPUs or Local SSD disks. For more information, see + // Attach reservations to resource-based commitments. + // + // Specify this property only if you want to create new + // reservations to attach. To attach existing reservations, specify theexistingReservations property instead. repeated Reservation reservations = 399717927; // [Output Only] Status information for Commitment resource. optional CommitmentResourceStatus resource_status = 249429315; - // The list of all the hardware resources, with their types and amounts, that you want to commit to. Specify as a separate entry in the list for each individual resource type. + // The list of all the hardware resources, with their types and amounts, that + // you want to commit to. Specify as a separate entry in the list for each + // individual resource type. repeated ResourceCommitment resources = 164412965; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The source commitment from which you are transferring resources to create the new split commitment. For more information, see Split commitments. + // The source commitment from which you are transferring resources to create + // the new split commitment. For more information, see + // Split commitments. optional string split_source_commitment = 402611156; - // [Output Only] Commitment start time in RFC3339 text format. + // [Output Only] Commitment start time inRFC3339 + // text format. optional string start_timestamp = 83645817; - // [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED. + // [Output Only] Status of the commitment with regards to eventual expiration + // (each commitment has an end date defined). Status can be one of the + // following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED. // Check the Status enum for the list of possible values. optional string status = 181260274; // [Output Only] An optional, human-readable explanation of the status. optional string status_message = 297428154; - // The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series. + // The type of commitment; specifies the + // machine series for which you want to commit to purchasing resources. + // The choice of machine series affects the discount rate and the eligible + // resource types. + // + // The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, + // COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. + // For example, type MEMORY_OPTIMIZED specifies a commitment + // that applies only to eligible resources of memory optimized M1 and M2 + // machine series. Type GENERAL_PURPOSE specifies a commitment + // that applies only to eligible resources of general purpose N1 machine + // series. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -5706,10 +13745,15 @@ message CommitmentAggregatedList { // A list of CommitmentsScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#commitmentAggregatedList for aggregated lists of commitments. + // [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for aggregated lists of + // commitments. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -5731,10 +13775,15 @@ message CommitmentList { // A list of Commitment resources. repeated Commitment items = 100526016; - // [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + // [Output Only] Type of resource. Always compute#commitmentList + // for lists of commitments. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -5747,7 +13796,9 @@ message CommitmentList { // [Output Only] Contains output only fields. message CommitmentResourceStatus { - // [Output Only] Indicates the end time of customer's eligibility to send custom term requests in RFC3339 text format. Term extension requests that (not the end time in the request) after this time will be rejected. + // [Output Only] Indicates the end time of customer's eligibility to send + // custom term requests in RFC3339 text format. Term extension requests that + // (not the end time in the request) after this time will be rejected. optional string custom_term_eligibility_end_timestamp = 363976187; } @@ -5757,7 +13808,138 @@ message CommitmentsScopedList { // [Output Only] The list of commitments contained in this scope. repeated Commitment commitments = 450664446; - // [Output Only] Informational warning which replaces the list of commitments when the list is empty. + // [Output Only] Informational warning which replaces the list of commitments + // when the list is empty. + optional Warning warning = 50704284; + +} + +// Represents a composite health check. +// +// A composite health check resource specifies the health source resources and +// the health destination resource to which the aggregated health result from +// the health source resources is delivered. +message CompositeHealthCheck { + // [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // An optional description of this resource. Provide this property when you + // create the resource. + optional string description = 422937596; + + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a CompositeHealthCheck. An up-to-date fingerprint + // must be provided in order to patch the CompositeHealthCheck; Otherwise, + // the request will fail with error 412 conditionNotMet. To see + // the latest fingerprint, make a get() request to retrieve the + // CompositeHealthCheck. + optional string fingerprint = 234678500; + + // URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must have + // load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same region + // as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not supported). Can be mutated. + optional string health_destination = 311098027; + + // URLs to the HealthSource resources whose results are AND'ed. + // I.e. he aggregated result is is HEALTHY only if all sources + // are HEALTHY. Must have at least 1. Must not have more than 10. + // Must be regional and in the same region as theCompositeHealthCheck. Can be mutated. + repeated string health_sources = 397879509; + + // [Output Only] A unique identifier for this resource type. The server + // generates this identifier. + optional uint64 id = 3355; + + // [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health checks. + optional string kind = 3292052; + + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. + optional string name = 3373707; + + // [Output Only] URL of the region where the composite health check resides. + // This field applies only to the regional resource. You must specify this + // field as part of the HTTP request URL. It is not settable as a field in + // the request body. + optional string region = 138946292; + + // [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // [Output Only] Server-defined URL with id for the resource. + optional string self_link_with_id = 44520962; + +} + +// Contains a list of CompositeHealthChecksScopedList. +message CompositeHealthCheckAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of CompositeHealthChecksScopedList resources. + map items = 100526016; + + // Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// +message CompositeHealthCheckList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of CompositeHealthCheck resources. + repeated CompositeHealthCheck items = 100526016; + + // [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health checks. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// +message CompositeHealthChecksScopedList { + // A list of CompositeHealthChecks contained in this scope. + repeated CompositeHealthCheck composite_health_checks = 517891062; + + // Informational warning which replaces the list of composite health checks + // when the list is empty. optional Warning warning = 50704284; } @@ -5794,25 +13976,38 @@ message ConfidentialInstanceConfig { // Message containing connection draining configuration. message ConnectionDraining { - // Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as described in Enabling connection draining. + // Configures a duration timeout for existing requests on a removed backend + // instance. For supported load balancers and protocols, as described inEnabling + // connection draining. optional int32 draining_timeout_sec = 225127070; } // This message defines settings for a consistent hash style load balancer. message ConsistentHashLoadBalancerSettings { - // Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // Hash is based on HTTP Cookie. This field describes a HTTP cookie that will + // be used as the hash key for the consistent hash load balancer. If the + // cookie is not present, it will be generated. This field is applicable if + // the sessionAffinity is set to HTTP_COOKIE. + // + // Not supported when the backend service is referenced by a URL map that is + // bound to target gRPC proxy that has validateForProxyless field set to true. optional ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915; - // The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD. + // The hash based on the value of the specified header field. This field is + // applicable if the sessionAffinity is set toHEADER_FIELD. optional string http_header_name = 234798022; - // The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node. + // The minimum number of virtual nodes to use for the hash ring. Defaults to + // 1024. Larger ring sizes result in more granular load distributions. If the + // number of hosts in the load balancing pool is larger than the ring size, + // each host will be assigned a single virtual node. optional int64 minimum_ring_size = 234380735; } -// The information about the HTTP Cookie on which the hash function is based for load balancing policies that use a consistent hash. +// The information about the HTTP Cookie on which the hash function is based +// for load balancing policies that use a consistent hash. message ConsistentHashLoadBalancerSettingsHttpCookie { // Name of the cookie. optional string name = 3373707; @@ -5827,7 +14022,19 @@ message ConsistentHashLoadBalancerSettingsHttpCookie { // A request message for OrganizationSecurityPolicies.CopyRules. See the method description for details. message CopyRulesOrganizationSecurityPolicyRequest { - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -5838,37 +14045,61 @@ message CopyRulesOrganizationSecurityPolicyRequest { } -// The specification for allowing client-side cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. +// The specification for allowing client-side cross-origin requests. For more +// information about the W3C recommendation for cross-origin resource sharing +// (CORS), see Fetch API Living +// Standard. message CorsPolicy { - // In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false. + // In response to a preflight request, setting this to true + // indicates that + // the actual request can include user credentials. This field translates to + // the Access-Control-Allow-Credentials header. + // + // Default is false. optional bool allow_credentials = 481263366; - // Specifies the content for the Access-Control-Allow-Headers header. + // Specifies the content for the Access-Control-Allow-Headers + // header. repeated string allow_headers = 45179024; - // Specifies the content for the Access-Control-Allow-Methods header. + // Specifies the content for the Access-Control-Allow-Methods + // header. repeated string allow_methods = 205405372; - // Specifies a regular expression that matches allowed origins. For more information, see regular expression syntax . An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. + // Specifies a regular expression that matches allowed origins. For + // more information, see regular expression syntax. + // + // An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes. + // + // Regular expressions can only be used when the loadBalancingScheme is + // set to INTERNAL_SELF_MANAGED. repeated string allow_origin_regexes = 215385810; - // Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. + // Specifies the list of origins that is allowed to do CORS requests. + // + // An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes. repeated string allow_origins = 194914071; - // If true, disables the CORS policy. The default value is false, which indicates that the CORS policy is in effect. + // If true, disables the CORS policy. + // The default value is false, which indicates that the CORS + // policy is in effect. optional bool disabled = 270940796; - // Specifies the content for the Access-Control-Expose-Headers header. + // Specifies the content for the Access-Control-Expose-Headers + // header. repeated string expose_headers = 247604747; - // Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header. + // Specifies how long results of a preflight request can be cached in + // seconds. This field translates to the Access-Control-Max-Age + // header. optional int32 max_age = 307559332; } // A request message for InstanceGroupManagers.CreateInstances. See the method description for details. message CreateInstancesInstanceGroupManagerRequest { - // The name of the managed instance group. It should conform to RFC1035. + // The name of the managed instance group. + // It should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -5880,10 +14111,23 @@ message CreateInstancesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. It should conform to RFC1035. + // The name of thezone + // where the managed instance group is located. + // It should conform to RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -5893,7 +14137,8 @@ message CreateInstancesInstanceGroupManagerRequest { // A request message for RegionInstanceGroupManagers.CreateInstances. See the method description for details. message CreateInstancesRegionInstanceGroupManagerRequest { - // The name of the managed instance group. It should conform to RFC1035. + // The name of the managed instance group. + // It should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -5902,7 +14147,9 @@ message CreateInstancesRegionInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region where the managed instance group is located. It should conform to RFC1035. + // The name of theregion + // where the managed instance group is located. + // It should conform to RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -5911,7 +14158,18 @@ message CreateInstancesRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersCreateInstancesRequest region_instance_group_managers_create_instances_request_resource = 359014280 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -5937,7 +14195,8 @@ message CreateSnapshotDiskRequest { // Name of the persistent disk to snapshot. string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; - // [Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare for the snapshot process. + // [Input Only] Whether to attempt an application consistent snapshot by + // informing the OS to prepare for the snapshot process. optional bool guest_flush = 385550813; // Project ID for this request. @@ -5946,7 +14205,19 @@ message CreateSnapshotDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -5977,7 +14248,19 @@ message CreateSnapshotRegionDiskRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -5985,21 +14268,32 @@ message CreateSnapshotRegionDiskRequest { } -// A resource that represents a cross-site network. You can use cross-site networks to connect your on-premises networks to each other through Interconnect connections. +// A resource that represents a cross-site network. +// +// You can use cross-site networks to connect your on-premises networks to +// each other through Interconnect connections. message CrossSiteNetwork { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // An optional description of the cross-site network. optional string description = 422937596; - // [Output Only] The unique identifier for the resource type. The server generates this identifier. + // [Output Only] The unique identifier for the resource type. The server + // generates this identifier. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#crossSiteNetwork for cross-site networks. + // [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; // [Output Only] Server-defined URL for the resource. @@ -6017,16 +14311,21 @@ message CrossSiteNetworkList { // A list of CrossSiteNetwork resources. repeated CrossSiteNetwork items = 100526016; - // [Output Only] Type of the resource. Always compute#crossSiteNetwork for cross-site networks. + // [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -6034,61 +14333,169 @@ message CrossSiteNetworkList { } -// Specifies the custom error response policy that must be applied when the backend service or backend bucket responds with an error. +// Specifies the custom error response policy that must be applied when the +// backend service or backend bucket responds with an error. message CustomErrorResponsePolicy { - // Specifies rules for returning error responses. In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority. For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX). If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect. + // Specifies rules for returning error responses. + // + // In a given policy, if you specify rules for both a range of error codes + // as well as rules for specific error codes then rules with specific error + // codes have a higher priority. For example, assume that you configure a rule + // for 401 (Un-authorized) code, and another for all 4 series + // error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied. + // However if the backend service returns a 403, the rule for4xx takes effect. repeated CustomErrorResponsePolicyCustomErrorResponseRule error_response_rules = 14620304; - // The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are: - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket - compute/v1/projects/project/global/backendBuckets/myBackendBucket - global/backendBuckets/myBackendBucket If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService. If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured). errorService is not supported for internal or regional HTTP/HTTPS load balancers. + // The full or partial URL to the BackendBucket resource that + // contains the custom error content. Examples are: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket + // - compute/v1/projects/project/global/backendBuckets/myBackendBucket + // - global/backendBuckets/myBackendBucket + // + // If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule, + // an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService. + // + // If load balancer cannot reach + // the backendBucket, a simple Not Found Error will + // be returned, with the original response code (oroverrideResponseCode if configured). + // + // errorService is not supported for internal or regionalHTTP/HTTPS load balancers. optional string error_service = 164214654; } -// Specifies the mapping between the response code that will be returned along with the custom error content and the response code returned by the backend service. +// Specifies the mapping between the response code that will be returned along +// with the custom error content and the response code returned by the backend +// service. message CustomErrorResponsePolicyCustomErrorResponseRule { - // Valid values include: - A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value. - 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599. - 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499. Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy. + // Valid values include: + // + // + // - A number between 400 and 599: For example + // 401 or 503, in which case the load balancer + // applies the policy if the error code exactly matches this value. + // - 5xx: Load Balancer will apply the policy if the + // backend service responds with any response code in the range of + // 500 to 599. + // - 4xx: Load + // Balancer will apply the policy if the backend service responds with any + // response code in the range of 400 to + // 499. + // + // Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy. repeated string match_response_codes = 104973410; - // The HTTP status code returned with the response containing the custom error content. If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client. + // The HTTP status code returned with the response containing the custom + // error content. If overrideResponseCode is not supplied, the + // same response code returned by the original backend bucket or backend + // service is returned to the client. optional int32 override_response_code = 530328568; - // The full path to a file within backendBucket . For example: /errors/defaultError.html path must start with a leading slash. path cannot have trailing slashes. If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client. The value must be from 1 to 1024 characters + // The full path to a file within backendBucket . For example:/errors/defaultError.html + // + // path must start + // with a leading slash. path cannot have trailing slashes. + // + // If the file is not available in backendBucket or the + // load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client. + // + // The value must + // be from 1 to 1024 characters optional string path = 3433509; } // message CustomerEncryptionKey { - // The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1 + // The name of the encryption key that is stored in Google Cloud KMS. + // For example: + // + // "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ + // key_region/cryptoKeys/key + // + // The fully-qualifed key name may be returned for resource GET requests. For + // example: + // + // "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ + // key_region/cryptoKeys/key + // /cryptoKeyVersions/1 optional string kms_key_name = 484373913; - // The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/ + // The service account being used for the encryption request for the given KMS + // key. If absent, the Compute Engine default service account is used. + // For example: + // + // "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/ optional string kms_key_service_account = 209986261; - // Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" + // Specifies a 256-bit customer-supplied + // encryption key, encoded in RFC + // 4648 base64 to either encrypt or decrypt this resource. You can + // provide either the rawKey or thersaEncryptedKey. + // For example: + // + // "rawKey": + // "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" optional string raw_key = 449196488; - // Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" The key must meet the following requirements before you can provide it to Compute Engine: 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem + // Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit + // customer-supplied encryption key to either encrypt or decrypt this + // resource. You can provide either the rawKey or thersaEncryptedKey. + // For example: + // + // "rsaEncryptedKey": + // "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH + // z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD + // D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" + // + // The key must meet the following requirements before you can provide it to + // Compute Engine: + // + // 1. The key is wrapped using a RSA public key certificate provided by + // Google. + // 2. After being wrapped, the key must be encoded in RFC 4648 base64 + // encoding. + // + // Gets the RSA public key certificate provided by Google at: + // + // + // https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem optional string rsa_encrypted_key = 335487397; - // [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. + // [Output only] TheRFC + // 4648 base64 encoded SHA-256 hash of the customer-supplied + // encryption key that protects this resource. optional string sha256 = 170112551; } // message CustomerEncryptionKeyProtectedDisk { - // Decrypts data associated with the disk with a customer-supplied encryption key. + // Decrypts data associated with the disk with acustomer-supplied + // encryption key. optional CustomerEncryptionKey disk_encryption_key = 271660677; - // Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name + // Specifies a valid partial or full URL to an existing Persistent Disk + // resource. This field is only applicable for persistent disks. + // For example: + // + // "source": "/compute/v1/projects/project_id/zones/zone/disks/ + // disk_name optional string source = 177235995; } // message Data { - // [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). + // [Output Only] A key that provides more detail on the warning being + // returned. For example, for warnings where there are no results in a list + // request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP forwarding). optional string key = 106079; // [Output Only] A warning data value corresponding to the key. @@ -6096,15 +14503,34 @@ message Data { } -// Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp +// Represents a whole or partial calendar date, such as a birthday. The time of +// day and time zone are either specified elsewhere or are insignificant. The +// date is relative to the Gregorian Calendar. This can represent one of the +// following: +// +// * A full date, with non-zero year, month, and day values. +// * A month and day, with a zero year (for example, an anniversary). +// * A year on its own, with a zero month and a zero day. +// * A year and month, with a zero day (for example, a credit card expiration +// date). +// +// Related types: +// +// * google.type.TimeOfDay +// * google.type.DateTime +// * google.protobuf.Timestamp message Date { - // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. + // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + // to specify a year by itself or a year and month where the day isn't + // significant. optional int32 day = 99228; - // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + // Month of a year. Must be from 1 to 12, or 0 to specify a year without a + // month and day. optional int32 month = 104080000; - // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + // Year of the date. Must be from 1 to 9999, or 0 to specify a date without + // a year. optional int32 year = 3704893; } @@ -6126,7 +14552,19 @@ message DeleteAccessConfigInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -6154,7 +14592,19 @@ message DeleteAddressRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6170,7 +14620,19 @@ message DeleteAutoscalerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the zone for this request. @@ -6192,7 +14654,19 @@ message DeleteBackendBucketRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6208,7 +14682,19 @@ message DeleteBackendServiceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6224,7 +14710,20 @@ message DeleteCrossSiteNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -6240,7 +14739,19 @@ message DeleteDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -6262,7 +14773,19 @@ message DeleteExternalVpnGatewayRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6272,7 +14795,19 @@ message DeleteFirewallPolicyRequest { // Name of the firewall policy to delete. string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6288,7 +14823,19 @@ message DeleteFirewallRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6310,7 +14857,19 @@ message DeleteForwardingRuleRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6326,7 +14885,19 @@ message DeleteFutureReservationRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the zone for this request. Name should conform to RFC1035. @@ -6348,7 +14919,19 @@ message DeleteGlobalAddressRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6364,14 +14947,27 @@ message DeleteGlobalForwardingRuleRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for GlobalNetworkEndpointGroups.Delete. See the method description for details. message DeleteGlobalNetworkEndpointGroupRequest { - // The name of the network endpoint group to delete. It should comply with RFC1035. + // The name of the network endpoint group to delete. It should comply with + // RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -6380,14 +14976,27 @@ message DeleteGlobalNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for GlobalOperations.Delete. See the method description for details. message DeleteGlobalOperationRequest { - // Name of the Operations resource to delete, or its unique numeric identifier. + // Name of the Operations resource to delete, or its unique numeric + // identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -6401,7 +15010,8 @@ message DeleteGlobalOperationResponse { // A request message for GlobalOrganizationOperations.Delete. See the method description for details. message DeleteGlobalOrganizationOperationRequest { - // Name of the Operations resource to delete, or its unique numeric identifier. + // Name of the Operations resource to delete, or its unique numeric + // identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Parent ID for this request. @@ -6424,7 +15034,19 @@ message DeleteGlobalPublicDelegatedPrefixeRequest { // Name of the PublicDelegatedPrefix resource to delete. string public_delegated_prefix = 204238440 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6440,7 +15062,19 @@ message DeleteHealthCheckRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6456,7 +15090,19 @@ message DeleteImageRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6472,10 +15118,23 @@ message DeleteInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -6485,7 +15144,8 @@ message DeleteInstanceGroupManagerRequest { // A request message for InstanceGroupManagerResizeRequests.Delete. See the method description for details. message DeleteInstanceGroupManagerResizeRequestRequest { - // The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. + // The name of the managed instance group. + // The name should conform to RFC1035 or be a resource ID. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -6494,13 +15154,27 @@ message DeleteInstanceGroupManagerResizeRequestRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the resize request to delete. The name should conform to RFC1035 or be a resource ID. + // The name of the resize request to delete. + // The name should conform to RFC1035 or be a resource ID. string resize_request = 216941060 [(google.api.field_behavior) = REQUIRED]; - // The name of the zone where the managed instance group is located. The name should conform to RFC1035. + // The name of thezone where the managed + // instance group is located. The name should conform to RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -6519,10 +15193,23 @@ message DeleteInstanceGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the instance group is located. + // The name of the zone + // where the instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -6544,7 +15231,19 @@ message DeleteInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -6566,7 +15265,19 @@ message DeleteInstanceTemplateRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6585,10 +15296,23 @@ message DeleteInstancesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -6616,7 +15340,19 @@ message DeleteInstancesRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersDeleteInstancesRequest region_instance_group_managers_delete_instances_request_resource = 500876665 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6632,7 +15368,19 @@ message DeleteInstantSnapshotRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -6654,7 +15402,20 @@ message DeleteInterconnectAttachmentGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -6676,7 +15437,19 @@ message DeleteInterconnectAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6692,7 +15465,20 @@ message DeleteInterconnectGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -6708,7 +15494,19 @@ message DeleteInterconnectRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6724,7 +15522,19 @@ message DeleteLicenseRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6740,7 +15550,19 @@ message DeleteMachineImageRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6762,7 +15584,20 @@ message DeleteNetworkAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -6784,14 +15619,27 @@ message DeleteNetworkEdgeSecurityServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for NetworkEndpointGroups.Delete. See the method description for details. message DeleteNetworkEndpointGroupRequest { - // The name of the network endpoint group to delete. It should comply with RFC1035. + // The name of the network endpoint group to delete. It should comply with + // RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -6800,10 +15648,23 @@ message DeleteNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the network endpoint group is located. It should comply with RFC1035. + // The name of the zone where + // the network endpoint group is located. It should comply with RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -6822,14 +15683,27 @@ message DeleteNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for Instances.DeleteNetworkInterface. See the method description for details. message DeleteNetworkInterfaceInstanceRequest { - // The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer. + // The instance name for this request stored as resource_id. + // Name should conform to RFC1035 or be an unsigned long integer. string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; // The name of the dynamic network interface to be deleted from the instance. @@ -6841,7 +15715,19 @@ message DeleteNetworkInterfaceInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -6863,7 +15749,19 @@ message DeleteNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6879,7 +15777,19 @@ message DeleteNodeGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -6907,7 +15817,19 @@ message DeleteNodeTemplateRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -6926,7 +15848,19 @@ message DeleteNodesNodeGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -6939,7 +15873,19 @@ message DeleteNodesNodeGroupRequest { // A request message for OrganizationSecurityPolicies.Delete. See the method description for details. message DeleteOrganizationSecurityPolicyRequest { - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to delete. @@ -6964,14 +15910,27 @@ message DeletePacketMirroringRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for InstanceGroupManagers.DeletePerInstanceConfigs. See the method description for details. message DeletePerInstanceConfigsInstanceGroupManagerRequest { - // The name of the managed instance group. It should conform to RFC1035. + // The name of the managed instance group. + // It should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -6983,7 +15942,10 @@ message DeletePerInstanceConfigsInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the zone where the managed instance group is located. It should conform to RFC1035. + // The name of thezone + // where the managed instance + // group is located. + // It should conform to RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -7024,7 +15986,19 @@ message DeletePublicAdvertisedPrefixeRequest { // Name of the PublicAdvertisedPrefix resource to delete. string public_advertised_prefix = 101874590 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7046,7 +16020,19 @@ message DeletePublicDelegatedPrefixeRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7068,7 +16054,59 @@ message DeleteRegionAutoscalerRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionBackendBuckets.Delete. See the method description for details. +message DeleteRegionBackendBucketRequest { + // Name of the BackendBucket resource to delete. + string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; + + // Force delete the backend bucket even if it is still in use by other + // resources. It's intended to be used internally only for requests from + // wipeout. + optional bool force_delete = 214559103; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -7090,7 +16128,53 @@ message DeleteRegionBackendServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionCompositeHealthChecks.Delete. See the method description for details. +message DeleteRegionCompositeHealthCheckRequest { + // Name of the CompositeHealthCheck resource to delete. + string composite_health_check = 466984989 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7112,7 +16196,53 @@ message DeleteRegionDiskRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionHealthAggregationPolicies.Delete. See the method description for details. +message DeleteRegionHealthAggregationPolicyRequest { + // Name of the HealthAggregationPolicy resource to delete. + string health_aggregation_policy = 240314354 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7134,14 +16264,27 @@ message DeleteRegionHealthCheckRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for RegionHealthCheckServices.Delete. See the method description for details. message DeleteRegionHealthCheckServiceRequest { - // Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the HealthCheckService to delete. The name + // must be 1-63 characters long, and comply with RFC1035. string health_check_service = 408374747 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -7156,7 +16299,19 @@ message DeleteRegionHealthCheckServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7178,7 +16333,19 @@ message DeleteRegionHealthSourceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7200,14 +16367,27 @@ message DeleteRegionInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for RegionInstanceGroupManagerResizeRequests.Delete. See the method description for details. message DeleteRegionInstanceGroupManagerResizeRequestRequest { - // The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + // The name of the managed instance group. + // Name should conform to RFC1035 or be a resource ID. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -7216,16 +16396,30 @@ message DeleteRegionInstanceGroupManagerResizeRequestRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region scoping this request. Name should conform to RFC1035. + // The name of the region + // scoping this request. Name should conform to RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the resize request to delete. Name should conform to RFC1035 or be a resource ID. + // The name of the resize request to delete. + // Name should conform to RFC1035 or be a resource ID. string resize_request = 216941060 [(google.api.field_behavior) = REQUIRED]; } @@ -7247,7 +16441,19 @@ message DeleteRegionInstanceTemplateRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7269,7 +16475,19 @@ message DeleteRegionInstantSnapshotRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7291,14 +16509,27 @@ message DeleteRegionMultiMigRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for RegionNetworkEndpointGroups.Delete. See the method description for details. message DeleteRegionNetworkEndpointGroupRequest { - // The name of the network endpoint group to delete. It should comply with RFC1035. + // The name of the network endpoint group to delete. It should comply with + // RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -7307,13 +16538,26 @@ message DeleteRegionNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region where the network endpoint group is located. It should comply with RFC1035. + // The name of the region where + // the network endpoint group is located. It should comply with RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7335,7 +16579,19 @@ message DeleteRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7357,7 +16613,19 @@ message DeleteRegionNetworkPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7379,14 +16647,27 @@ message DeleteRegionNotificationEndpointRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for RegionOperations.Delete. See the method description for details. message DeleteRegionOperationRequest { - // Name of the Operations resource to delete, or its unique numeric identifier. + // Name of the Operations resource to delete, or its unique numeric + // identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -7415,7 +16696,19 @@ message DeleteRegionSecurityPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to delete. @@ -7437,7 +16730,19 @@ message DeleteRegionSnapshotRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the snapshot resource to delete. @@ -7459,7 +16764,19 @@ message DeleteRegionSslCertificateRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the SslCertificate resource to delete. @@ -7481,10 +16798,23 @@ message DeleteRegionSslPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the SSL policy to delete. The name must be 1-63 characters long, + // and comply with RFC1035. string ssl_policy = 295190213 [(google.api.field_behavior) = REQUIRED]; } @@ -7503,7 +16833,19 @@ message DeleteRegionTargetHttpProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpProxy resource to delete. @@ -7525,7 +16867,19 @@ message DeleteRegionTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpsProxy resource to delete. @@ -7547,7 +16901,19 @@ message DeleteRegionTargetTcpProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetTcpProxy resource to delete. @@ -7569,7 +16935,8 @@ message DeleteRegionUrlMapRequest { (google.cloud.operation_request_field) = "region" ]; - // begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + // begin_interface: MixerMutationRequestBuilder + // Request ID to support idempotency. optional string request_id = 37109963; // Name of the UrlMap resource to delete. @@ -7585,7 +16952,19 @@ message DeleteReservationRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the reservation to delete. @@ -7613,7 +16992,19 @@ message DeleteResourcePolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the resource policy to delete. @@ -7638,7 +17029,19 @@ message DeleteRoutePolicyRouterRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Router resource where Route Policy is defined. @@ -7654,7 +17057,19 @@ message DeleteRouteRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Route resource to delete. @@ -7676,7 +17091,19 @@ message DeleteRouterRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Router resource to delete. @@ -7692,7 +17119,19 @@ message DeleteSecurityPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to delete. @@ -7714,7 +17153,19 @@ message DeleteServiceAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the ServiceAttachment resource to delete. @@ -7724,7 +17175,8 @@ message DeleteServiceAttachmentRequest { // A request message for BackendBuckets.DeleteSignedUrlKey. See the method description for details. message DeleteSignedUrlKeyBackendBucketRequest { - // Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. + // Name of the BackendBucket resource to which the Signed URL Key should be + // added. The name should conform to RFC1035. string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; // The name of the Signed URL Key to delete. @@ -7736,14 +17188,27 @@ message DeleteSignedUrlKeyBackendBucketRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for BackendServices.DeleteSignedUrlKey. See the method description for details. message DeleteSignedUrlKeyBackendServiceRequest { - // Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. + // Name of the BackendService resource to which the Signed URL Key should be + // added. The name should conform to RFC1035. string backend_service = 306946058 [(google.api.field_behavior) = REQUIRED]; // The name of the Signed URL Key to delete. @@ -7755,7 +17220,19 @@ message DeleteSignedUrlKeyBackendServiceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -7768,7 +17245,19 @@ message DeleteSnapshotRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Snapshot resource to delete. @@ -7784,7 +17273,19 @@ message DeleteSslCertificateRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the SslCertificate resource to delete. @@ -7800,10 +17301,23 @@ message DeleteSslPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the SSL policy to delete. The name must be 1-63 characters long, + // and comply with RFC1035. string ssl_policy = 295190213 [(google.api.field_behavior) = REQUIRED]; } @@ -7816,7 +17330,19 @@ message DeleteStoragePoolRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the storage pool to delete. @@ -7844,7 +17370,19 @@ message DeleteSubnetworkRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Subnetwork resource to delete. @@ -7860,7 +17398,19 @@ message DeleteTargetGrpcProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetGrpcProxy resource to delete. @@ -7876,7 +17426,19 @@ message DeleteTargetHttpProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpProxy resource to delete. @@ -7892,7 +17454,19 @@ message DeleteTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpsProxy resource to delete. @@ -7908,7 +17482,19 @@ message DeleteTargetInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetInstance resource to delete. @@ -7936,7 +17522,19 @@ message DeleteTargetPoolRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetPool resource to delete. @@ -7952,7 +17550,19 @@ message DeleteTargetSslProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetSslProxy resource to delete. @@ -7968,7 +17578,19 @@ message DeleteTargetTcpProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetTcpProxy resource to delete. @@ -7990,7 +17612,19 @@ message DeleteTargetVpnGatewayRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the target VPN gateway to delete. @@ -8006,7 +17640,19 @@ message DeleteUrlMapRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the UrlMap resource to delete. @@ -8028,7 +17674,19 @@ message DeleteVpnGatewayRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the VPN gateway to delete. @@ -8050,7 +17708,19 @@ message DeleteVpnTunnelRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the VpnTunnel resource to delete. @@ -8068,7 +17738,20 @@ message DeleteWireGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; // Name of the wire group resource to delete. @@ -8078,7 +17761,8 @@ message DeleteWireGroupRequest { // A request message for ZoneOperations.Delete. See the method description for details. message DeleteZoneOperationRequest { - // Name of the Operations resource to delete, or its unique numeric identifier. + // Name of the Operations resource to delete, or its unique numeric + // identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -8093,12 +17777,54 @@ message DeleteZoneOperationRequest { message DeleteZoneOperationResponse { } +// A request message for ZoneVmExtensionPolicies.Delete. See the method description for details. +message DeleteZoneVmExtensionPolicyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name of the zone VM extension policy to delete. + string vm_extension_policy = 331532730 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // message Denied { - // The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number. + // The IP protocol to which this rule applies. The protocol type is + // required when creating a firewall rule. This value can either be one of the + // following well known protocol strings (tcp, udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. optional string I_p_protocol = 488094525; - // An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + // An optional list of ports to which this rule applies. + // This field is only applicable for the UDP or TCP protocol. + // Each entry must be either an integer or a range. + // If not specified, this rule applies to connections through any port. + // + // Example inputs include: ["22"], ["80","443"], + // and ["12345-12349"]. repeated string ports = 106854418; } @@ -8117,14 +17843,29 @@ message DeprecateImageRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // Deprecation status for a public resource. message DeprecationStatus { - // The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. + // The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED. + // Operations which communicate the end of life date for an image, can useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a + // warning indicating the deprecated resource and recommending its + // replacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -8139,30 +17880,53 @@ message DeprecationStatus { } - // An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. + // An optional RFC3339 timestamp on or after which the state of this + // resource is intended to change to DELETED. This is only + // informational and the status will not change unless the client explicitly + // changes it. optional string deleted = 476721177; - // An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. + // An optional RFC3339 timestamp on or after which the state of this + // resource is intended to change to DEPRECATED. This is only + // informational and the status will not change unless the client explicitly + // changes it. optional string deprecated = 515138995; - // An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. + // An optional RFC3339 timestamp on or after which the state of this + // resource is intended to change to OBSOLETE. This is only + // informational and the status will not change unless the client explicitly + // changes it. optional string obsolete = 357647769; - // The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. + // The URL of the suggested replacement for a deprecated resource. + // The suggested replacement resource must be the same kind of resource as the + // deprecated resource. optional string replacement = 430919186; - // The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. + // The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED. + // Operations which communicate the end of life date for an image, can useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a + // warning indicating the deprecated resource and recommending its + // replacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error. // Check the State enum for the list of possible values. optional string state = 109757585; - // The rollout policy for this deprecation. This policy is only enforced by image family views. The rollout policy restricts the zones where the associated resource is considered in a deprecated state. When the rollout policy does not include the user specified zone, or if the zone is rolled out, the associated resource is considered in a deprecated state. The rollout policy for this deprecation is read-only, except for allowlisted users. This field might not be configured. To view the latest non-deprecated image in a specific zone, use the imageFamilyViews.get method. + // The rollout policy for this deprecation. This policy is only enforced by + // image family views. The rollout policy restricts the zones where the + // associated resource is considered in a deprecated state. When the rollout + // policy does not include the user specified zone, or if the zone is rolled + // out, the associated resource is considered in a deprecated state. + // + // The rollout policy for this deprecation is read-only, except for + // allowlisted users. This field might not be configured. To view the latest + // non-deprecated image in a specific zone, use theimageFamilyViews.get method. optional RolloutPolicy state_override = 300358586; } // A request message for Instances.DetachDisk. See the method description for details. message DetachDiskInstanceRequest { - // The device name of the disk to detach. Make a get() request on the instance to view currently attached disks and device names. + // The device name of the disk to detach. Make a get() request on + // the instance to view currently attached disks and device names. string device_name = 67541716 [(google.api.field_behavior) = REQUIRED]; // Instance name for this request. @@ -8174,7 +17938,19 @@ message DetachDiskInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -8190,7 +17966,8 @@ message DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest { // The body resource for this request GlobalNetworkEndpointGroupsDetachEndpointsRequest global_network_endpoint_groups_detach_endpoints_request_resource = 8898269 [(google.api.field_behavior) = REQUIRED]; - // The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. + // The name of the network endpoint group where you are removing network + // endpoints. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -8199,14 +17976,27 @@ message DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for NetworkEndpointGroups.DetachNetworkEndpoints. See the method description for details. message DetachNetworkEndpointsNetworkEndpointGroupRequest { - // The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. + // The name of the network endpoint group where you are removing network + // endpoints. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -8218,10 +18008,23 @@ message DetachNetworkEndpointsNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the network endpoint group is located. It should comply with RFC1035. + // The name of the zone where + // the network endpoint group is located. It should comply with RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -8231,7 +18034,8 @@ message DetachNetworkEndpointsNetworkEndpointGroupRequest { // A request message for RegionNetworkEndpointGroups.DetachNetworkEndpoints. See the method description for details. message DetachNetworkEndpointsRegionNetworkEndpointGroupRequest { - // The name of the network endpoint group you are detaching network endpoints from. It should comply with RFC1035. + // The name of the network endpoint group you are detaching network + // endpoints from. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -8240,7 +18044,9 @@ message DetachNetworkEndpointsRegionNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region where the network endpoint group is located. It should comply with RFC1035. + // The name of the region where + // the network endpoint group is located. It should comply with + // RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -8249,7 +18055,20 @@ message DetachNetworkEndpointsRegionNetworkEndpointGroupRequest { // The body resource for this request RegionNetworkEndpointGroupsDetachEndpointsRequest region_network_endpoint_groups_detach_endpoints_request_resource = 313193198 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -8262,7 +18081,19 @@ message DisableXpnHostProjectRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -8278,30 +18109,74 @@ message DisableXpnResourceProjectRequest { // The body resource for this request ProjectsDisableXpnResourceRequest projects_disable_xpn_resource_request_resource = 209136170 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } -// Represents a Persistent Disk resource. Google Compute Engine has two Disk resources: * [Zonal](/compute/docs/reference/rest/beta/disks) * [Regional](/compute/docs/reference/rest/beta/regionDisks) Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. The disks resource represents a zonal persistent disk. For more information, read Zonal persistent disks. The regionDisks resource represents a regional persistent disk. For more information, read Regional resources. +// Represents a Persistent Disk resource. +// +// Google Compute Engine has two Disk resources: +// +// * [Zonal](/compute/docs/reference/rest/beta/disks) +// * [Regional](/compute/docs/reference/rest/beta/regionDisks) +// +// Persistent disks are required for running your VM instances. +// Create both boot and non-boot (data) persistent disks. For more information, +// read Persistent Disks. For more +// storage options, read Storage options. +// +// The disks resource represents a zonal persistent disk. +// For more information, readZonal persistent disks. +// +// The regionDisks resource represents a +// regional persistent disk. For more information, read +// Regional resources. message Disk { - // The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The AccessMode means the disk can be attached to multiple instances in RW mode. - READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO mode. The AccessMode is only valid for Hyperdisk disk types. + // The access mode of the disk. + // + // + // - READ_WRITE_SINGLE: The default AccessMode, means the + // disk can be attached to single instance in RW mode. + // - READ_WRITE_MANY: The AccessMode means the disk can be + // attached to multiple instances in RW mode. + // - READ_ONLY_MANY: The AccessMode means the disk can be + // attached to multiple instances in RO mode. + // + // + // The AccessMode is only valid for Hyperdisk disk types. enum AccessMode { // A value indicating that the enum field is not set. UNDEFINED_ACCESS_MODE = 0; - // The AccessMode means the disk can be attached to multiple instances in RO mode. + // The AccessMode means the disk can be attached to multiple instances in RO + // mode. READ_ONLY_MANY = 63460265; - // The AccessMode means the disk can be attached to multiple instances in RW mode. + // The AccessMode means the disk can be attached to multiple instances in RW + // mode. READ_WRITE_MANY = 488743208; - // The default AccessMode, means the disk can be attached to single instance in RW mode. + // The default AccessMode, means the disk can be attached to single instance + // in RW mode. READ_WRITE_SINGLE = 99323089; } - // The architecture of the disk. Valid values are ARM64 or X86_64. + // The architecture of the disk. Valid values are + // ARM64 or X86_64. enum Architecture { // A value indicating that the enum field is not set. UNDEFINED_ARCHITECTURE = 0; @@ -8317,7 +18192,8 @@ message Disk { } - // [Deprecated] Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. + // [Deprecated] Specifies the disk interface to use for attaching this disk, + // which is either SCSI or NVME. The default isSCSI. enum Interface { // A value indicating that the enum field is not set. UNDEFINED_INTERFACE = 0; @@ -8330,7 +18206,15 @@ message Disk { } - // [Output Only] The status of disk creation. - CREATING: Disk is provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. + // [Output Only] The status of disk creation. + // + // + // - CREATING: Disk is provisioning. + // - RESTORING: Source data is being copied into the + // disk. + // - FAILED: Disk creation failed. + // - READY: Disk is ready for use. + // - DELETING: Disk is deleting. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -8350,7 +18234,8 @@ message Disk { // Source data is being copied into the disk. RESTORING = 404263851; - // Disk is currently unavailable and cannot be accessed, attached or detached. + // Disk is currently unavailable and cannot be accessed, attached or + // detached. UNAVAILABLE = 413756464; } @@ -8366,11 +18251,23 @@ message Disk { } - // The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The AccessMode means the disk can be attached to multiple instances in RW mode. - READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO mode. The AccessMode is only valid for Hyperdisk disk types. + // The access mode of the disk. + // + // + // - READ_WRITE_SINGLE: The default AccessMode, means the + // disk can be attached to single instance in RW mode. + // - READ_WRITE_MANY: The AccessMode means the disk can be + // attached to multiple instances in RW mode. + // - READ_ONLY_MANY: The AccessMode means the disk can be + // attached to multiple instances in RO mode. + // + // + // The AccessMode is only valid for Hyperdisk disk types. // Check the AccessMode enum for the list of possible values. optional string access_mode = 41155486; - // The architecture of the disk. Valid values are ARM64 or X86_64. + // The architecture of the disk. Valid values are + // ARM64 or X86_64. // Check the Architecture enum for the list of possible values. optional string architecture = 302803283; @@ -8380,44 +18277,87 @@ message Disk { // [Output Only] A list of disks this disk is asynchronously replicated to. map async_secondary_disks = 322925608; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key. Encryption keys do not protect access to metadata of the disk. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later. For example, to create a disk snapshot, to create a disk image, to create a machine image, or to attach the disk to a virtual machine. After you encrypt a disk with a customer-managed key, the diskEncryptionKey.kmsKeyName is set to a key *version* name once the disk is created. The disk is encrypted with this version of the key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeysVersions/version If you do not provide an encryption key when creating the disk, then the disk is encrypted using an automatically generated key and you don't need to provide a key to use the disk later. + // Encrypts the disk using a + // customer-supplied encryption key or a + // customer-managed encryption key. + // + // Encryption keys do not protect access to metadata of the disk. + // + // After you encrypt a disk with a customer-supplied key, you must provide the + // same key if you use the disk later. For example, to create a disk snapshot, + // to create a disk image, to create a machine image, or to attach the disk to + // a virtual machine. + // + // After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to a key *version* + // name once the disk is created. The disk is encrypted with this version of + // the key. In the response, diskEncryptionKey.kmsKeyName appears + // in the following format: + // + // "diskEncryptionKey.kmsKeyName": + // "projects/kms_project_id/locations/region/keyRings/ + // key_region/cryptoKeys/key + // /cryptoKeysVersions/version + // + // If you do not provide an encryption key when creating the disk, then the + // disk is encrypted using an automatically generated key and you don't need + // to provide a key to use the disk later. optional CustomerEncryptionKey disk_encryption_key = 271660677; // Whether this disk is using confidential compute mode. optional bool enable_confidential_compute = 102135228; - // Specifies whether the disk restored from a source snapshot should erase Windows specific VSS signature. + // Specifies whether the disk restored from a source snapshot should erase + // Windows specific VSS signature. optional bool erase_windows_vss_signature = 52637562; - // A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. + // A list of features to enable on the guest operating system. Applicable + // only for bootable images. Read + // Enabling guest operating system features to see a list of available + // options. repeated GuestOsFeature guest_os_features = 79294545; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Deprecated] Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. + // [Deprecated] Specifies the disk interface to use for attaching this disk, + // which is either SCSI or NVME. The default isSCSI. // Check the Interface enum for the list of possible values. optional string interface = 502623545; - // [Output Only] Type of the resource. Always compute#disk for disks. + // [Output Only] Type of the resource. Always compute#disk for + // disks. optional string kind = 3292052; - // A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a disk. + // A fingerprint for the labels being applied to this disk, which is + // essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a disk. optional string label_fingerprint = 178124825; - // Labels to apply to this disk. These can be later modified by the setLabels method. + // Labels to apply to this disk. These can be later modified by + // the setLabels method. map labels = 500195327; - // [Output Only] Last attach timestamp in RFC3339 text format. + // [Output Only] Last attach timestamp inRFC3339 + // text format. optional string last_attach_timestamp = 42159653; - // [Output Only] Last detach timestamp in RFC3339 text format. + // [Output Only] Last detach timestamp inRFC3339 + // text format. optional string last_detach_timestamp = 56471027; // Integer license codes indicating which licenses are attached to this disk. @@ -8426,37 +18366,81 @@ message Disk { // A list of publicly visible licenses. Reserved for Google's use. repeated string licenses = 337642578; - // An opaque location hint used to place the disk close to other resources. This field is for use by internal tools that use the public API. + // An opaque location hint used to place the disk close to other resources. + // This field is for use by internal tools that use the public API. optional string location_hint = 350519505; - // [Output Only] The field indicates if the disk is created from a locked source image. Attachment of a disk created from a locked source image will cause the following operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk detachment. And the disk can only be deleted when the instance is deleted - Creation of images or snapshots - Disk cloning Furthermore, the instance with at least one disk with locked flag set to true will be prohibited from performing the operations below: - Further attachment of secondary disks. - Detachment of any disks - Create machine images - Create instance template - Delete the instance with --keep-disk parameter set to true for locked disks - Attach a locked disk with --auto-delete parameter set to false + // [Output Only] The field indicates if the disk is created from a locked + // source image. Attachment of a disk created from a locked source image will + // cause the following operations to become irreversibly prohibited: + // + // - R/W or R/O disk attachment to any other instance + // - Disk detachment. And the disk can only be deleted when the instance + // is deleted + // - Creation of images or snapshots + // - Disk cloning + // + // + // + // Furthermore, the instance with at least one disk with locked flag set to + // true will be prohibited from performing the operations below: + // + // - Further attachment of secondary disks. + // - Detachment of any disks + // - Create machine images + // - Create instance template + // - Delete the instance with --keep-disk parameter set to true for locked + // disks + // - Attach a locked disk with --auto-delete parameter set to false optional bool locked = 513159946; - // Indicates whether or not the disk can be read/write attached to more than one instance. + // Indicates whether or not the disk can be read/write attached to + // more than one instance. optional bool multi_writer = 528165433; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` + // which means the first character must be a lowercase letter, and all + // following characters must be a dash, lowercase letter, or digit, except + // the last character, which cannot be a dash. optional string name = 3373707; // Internal use only. optional string options = 361137822; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional DiskParams params = 78313862; - // Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. The currently supported size is 4096, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project. + // Physical block size of the persistent disk, in bytes. + // If not present in a request, a default value is used. + // The currently supported size is 4096, other sizes may be added in + // the future. + // If an unsupported value is requested, the error message will list + // the supported values for the caller's project. optional int64 physical_block_size_bytes = 420007943; - // Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation. + // Indicates how many IOPS to provision for the disk. This sets the number + // of I/O operations per second that the disk can handle. Values must be + // between 10,000 and 120,000. For more details, see theExtreme persistent + // disk documentation. optional int64 provisioned_iops = 186769108; - // Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must be greater than or equal to 1. + // Indicates how much throughput to provision for the disk. This sets the + // number of throughput mb per second that the disk can handle. Values must be + // greater than or equal to 1. optional int64 provisioned_throughput = 526524181; - // [Output Only] URL of the region where the disk resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the disk resides. Only applicable for + // regional resources. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; - // URLs of the zones where the disk should be replicated to. Only applicable for regional resources. + // URLs of the zones where the disk should be replicated to. Only applicable + // for regional resources. repeated string replica_zones = 48438272; // Resource policies applied to this disk for automatic snapshot creations. @@ -8474,69 +18458,188 @@ message Disk { // [Output Only] Server-defined fully-qualified URL for this resource. optional string self_link = 456214797; - // Size, in GB, of the persistent disk. You can specify this field when creating a persistent disk using the sourceImage, sourceSnapshot, or sourceDisk parameter, or specify it alone to create an empty persistent disk. If you specify this field along with a source, the value of sizeGb must not be less than the size of the source. Acceptable values are greater than 0. + // Size, in GB, of the persistent disk. You can specify + // this field when creating a persistent disk using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an empty + // persistent disk. + // + // If you specify this field along with a source, the value ofsizeGb must not be less than the size of the + // source. + // Acceptable values are greater than 0. optional int64 size_gb = 494929369; - // [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using a consistency group. + // [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk + // that was created using a consistency group. optional string source_consistency_group_policy = 19616093; - // [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using a consistency group. + // [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk + // that was created using a consistency group. optional string source_consistency_group_policy_id = 267568957; - // The source disk used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk + // The source disk used to create this disk. You can provide this as a + // partial or full URL to the resource. For example, the following are valid + // values: + // + // + // - + // https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + // + // - + // https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk + // + // - + // projects/project/zones/zone/disks/disk + // + // - + // projects/project/regions/region/disks/disk + // + // - + // zones/zone/disks/disk + // + // - + // regions/region/disks/disk optional string source_disk = 451753793; - // [Output Only] The unique ID of the disk used to create this disk. This value identifies the exact disk that was used to create this persistent disk. For example, if you created the persistent disk from a disk that was later deleted and recreated under the same name, the source disk ID would identify the exact version of the disk that was used. + // [Output Only] The unique ID of the disk used to create this disk. This + // value identifies the exact disk that was used to create this persistent + // disk. For example, if you created the persistent disk from a disk that + // was later deleted and recreated under the same name, the source disk ID + // would identify the exact version of the disk that was used. optional string source_disk_id = 454190809; - // The source image used to create this disk. If the source image is deleted, this field will not be set. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family + // The source image used to create this disk. If the source image is + // deleted, this field will not be set. + // + // To create a disk with one of the public operating system images, specify + // the image by its family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: + // + // projects/debian-cloud/global/images/family/debian-9 + // + // + // Alternatively, use a specific version of a public operating system image: + // + // projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + // + // + // To create a disk with a custom image that you created, specify the + // image name in the following format: + // + // global/images/my-custom-image + // + // + // You can also specify a custom image by its image family, which returns + // the latest version of the image in that family. Replace the image name + // with family/family-name: + // + // global/images/family/my-image-family optional string source_image = 50443319; - // The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. + // Thecustomer-supplied + // encryption key of the source image. Required if the source image is + // protected by a customer-supplied encryption key. optional CustomerEncryptionKey source_image_encryption_key = 381503659; - // [Output Only] The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used. + // [Output Only] The ID value of the image used to create this disk. This + // value identifies the exact image that was used to create this persistent + // disk. For example, if you created the persistent disk from an image that + // was later deleted and recreated under the same name, the source image ID + // would identify the exact version of the image that was used. optional string source_image_id = 55328291; - // The source instant snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instantSnapshots/instantSnapshot - projects/project/zones/zone/instantSnapshots/instantSnapshot - zones/zone/instantSnapshots/instantSnapshot + // The source instant snapshot used to create this disk. You can provide + // this as a partial or full URL to the resource. For example, the following + // are valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot + // - projects/project/zones/zone/instantSnapshots/instantSnapshot + // - zones/zone/instantSnapshots/instantSnapshot optional string source_instant_snapshot = 219202054; - // [Output Only] The unique ID of the instant snapshot used to create this disk. This value identifies the exact instant snapshot that was used to create this persistent disk. For example, if you created the persistent disk from an instant snapshot that was later deleted and recreated under the same name, the source instant snapshot ID would identify the exact version of the instant snapshot that was used. + // [Output Only] The unique ID of the instant snapshot used to create this + // disk. This value identifies the exact instant snapshot that was used to + // create this persistent disk. For example, if you created the persistent + // disk from an instant snapshot that was later deleted and recreated under + // the same name, the source instant snapshot ID would identify the exact + // version of the instant snapshot that was used. optional string source_instant_snapshot_id = 287582708; - // The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project /global/snapshots/snapshot - projects/project/global/snapshots/snapshot - global/snapshots/snapshot + // The source snapshot used to create this disk. You can provide this as a + // partial or full URL to the resource. For example, the following are valid + // values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot + // - projects/project/global/snapshots/snapshot + // - global/snapshots/snapshot optional string source_snapshot = 126061928; - // The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. + // Thecustomer-supplied + // encryption key of the source snapshot. Required if the source snapshot + // is protected by a customer-supplied encryption key. optional CustomerEncryptionKey source_snapshot_encryption_key = 303679322; - // [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used. + // [Output Only] The unique ID of the snapshot used to create this disk. This + // value identifies the exact snapshot that was used to create this persistent + // disk. For example, if you created the persistent disk from a snapshot that + // was later deleted and recreated under the same name, the source snapshot ID + // would identify the exact version of the snapshot that was used. optional string source_snapshot_id = 98962258; - // The full Google Cloud Storage URI where the disk image is stored. This file must be a gzip-compressed tarball whose name ends in .tar.gz or virtual machine disk whose name ends in vmdk. Valid URIs may start with gs:// or https://storage.googleapis.com/. This flag is not optimized for creating multiple disks from a source storage object. To create many disks from a source storage object, use gcloud compute images import instead. + // The full Google Cloud Storage URI where the disk image is stored. This file + // must be a gzip-compressed tarball whose name ends in .tar.gz or virtual + // machine disk whose name ends in vmdk. Valid URIs may start with gs:// or + // https://storage.googleapis.com/. This flag is not optimized for creating + // multiple disks from a source storage object. To create many disks from a + // source storage object, use gcloud compute images + // import instead. optional string source_storage_object = 233052711; - // [Output Only] The status of disk creation. - CREATING: Disk is provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. + // [Output Only] The status of disk creation. + // + // + // - CREATING: Disk is provisioning. + // - RESTORING: Source data is being copied into the + // disk. + // - FAILED: Disk creation failed. + // - READY: Disk is ready for use. + // - DELETING: Disk is deleting. // Check the Status enum for the list of possible values. optional string status = 181260274; - // The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /storagePools/storagePool - projects/project/zones/zone/storagePools/storagePool - zones/zone/storagePools/storagePool + // The storage pool in which the new disk is created. You can provide + // this as a partial or full URL to the resource. For example, the following + // are valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + // - projects/project/zones/zone/storagePools/storagePool + // - zones/zone/storagePools/storagePool optional string storage_pool = 360473440; // [Deprecated] Storage type of the persistent disk. // Check the StorageType enum for the list of possible values. optional string storage_type = 360602238; - // URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For example: projects/project /zones/zone/diskTypes/pd-ssd . See Persistent disk types. + // URL of the disk type resource describing which disk type to use to create + // the disk. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk + // types. optional string type = 3575610; - // A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can be modified after the disk is created. This includes a list of URLs to the license resource. For example, to provide a debian license: https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + // A list of publicly visible user-licenses. Unlike regular licenses, user + // provided licenses can be modified after the disk is created. This includes + // a list of URLs to the license resource. For example, to provide a debian + // license: + // + // https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch repeated string user_licenses = 388193862; - // [Output Only] Links to the users of the disk (attached instances) in form: projects/project/zones/zone/instances/instance + // [Output Only] Links to the users of the disk (attached instances) + // in form:projects/project/zones/zone/instances/instance repeated string users = 111578632; - // [Output Only] URL of the zone where the disk resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the zone where the disk resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string zone = 3744684; } @@ -8549,10 +18652,15 @@ message DiskAggregatedList { // A list of DisksScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#diskAggregatedList for aggregated lists of persistent disks. + // [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of persistent + // disks. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -8568,16 +18676,30 @@ message DiskAggregatedList { // message DiskAsyncReplication { - // [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group. + // [Output Only] URL of the DiskConsistencyGroupPolicy if replication was + // started on the disk as a member of a group. optional string consistency_group_policy = 1991097; - // [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group. + // [Output Only] ID of the DiskConsistencyGroupPolicy if replication was + // started on the disk as a member of a group. optional string consistency_group_policy_id = 261065057; - // The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk + // The other disk asynchronously replicated to or from the current disk. + // You can provide this as a partial or full URL to the resource. + // For example, the following are valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + // - projects/project/zones/zone/disks/disk + // - zones/zone/disks/disk optional string disk = 3083677; - // [Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used. + // [Output Only] The unique ID of the other disk asynchronously replicated + // to or from the current disk. This value identifies the exact disk that + // was used to create this replication. For example, if you started + // replicating the persistent disk from a disk that was later deleted and + // recreated under the same name, the disk ID would identify the exact + // version of the disk that was used. optional string disk_id = 60990205; } @@ -8588,46 +18710,97 @@ message DiskAsyncReplicationList { } -// A specification of the desired way to instantiate a disk in the instance template when its created from a source instance. +// A specification of the desired way to instantiate a disk in the instance +// template when its created from a source instance. message DiskInstantiationConfig { - // Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. + // Specifies whether to include the disk and what image to use. Possible + // values are: + // + // + // - source-image: to use the same image that was used to + // create the source instance's corresponding disk. Applicable to the boot + // disk and additional read-write disks. + // - source-image-family: to use the same image family that + // was used to create the source instance's corresponding disk. Applicable + // to the boot disk and additional read-write disks. + // - custom-image: to use a user-provided image url for disk + // creation. Applicable to the boot disk and additional read-write + // disks. + // - attach-read-only: to attach a read-only + // disk. Applicable to read-only disks. + // - do-not-include: to exclude a disk from the template. + // Applicable to additional read-write disks, local SSDs, and read-only + // disks. enum InstantiateFrom { // A value indicating that the enum field is not set. UNDEFINED_INSTANTIATE_FROM = 0; - // Attach the existing disk in read-only mode. The request will fail if the disk was attached in read-write mode on the source instance. Applicable to: read-only disks. + // Attach the existing disk in read-only mode. The request will fail if the + // disk was attached in read-write mode on the source instance. Applicable + // to: read-only disks. ATTACH_READ_ONLY = 513775419; - // Create a blank disk. The disk will be created unformatted. Applicable to: additional read-write disks, local SSDs. + // Create a blank disk. The disk will be created unformatted. Applicable to: + // additional read-write disks, local SSDs. BLANK = 63281460; - // Use the custom image specified in the custom_image field. Applicable to: boot disk, additional read-write disks. + // Use the custom image specified in the custom_image field. Applicable to: + // boot disk, additional read-write disks. CUSTOM_IMAGE = 196311789; - // Use the default instantiation option for the corresponding type of disk. For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes. + // Use the default instantiation option for the corresponding type of disk. + // For boot disk and any other R/W disks, new custom images will be created + // from each disk. For read-only disks, they will be attached in read-only + // mode. Local SSD disks will be created as blank volumes. DEFAULT = 115302945; - // Do not include the disk in the instance template. Applicable to: additional read-write disks, local SSDs, read-only disks. + // Do not include the disk in the instance template. Applicable to: + // additional read-write disks, local SSDs, read-only disks. DO_NOT_INCLUDE = 104218952; - // Use the same source image used for creation of the source instance's corresponding disk. The request will fail if the source VM's disk was created from a snapshot. Applicable to: boot disk, additional read-write disks. + // Use the same source image used for creation of the source instance's + // corresponding disk. The request will fail if the source VM's disk was + // created from a snapshot. Applicable to: boot disk, additional read-write + // disks. SOURCE_IMAGE = 62631959; - // Use the same source image family used for creation of the source instance's corresponding disk. The request will fail if the source image of the source disk does not belong to any image family. Applicable to: boot disk, additional read-write disks. + // Use the same source image family used for creation of the source + // instance's corresponding disk. The request will fail if the source image + // of the source disk does not belong to any image family. Applicable to: + // boot disk, additional read-write disks. SOURCE_IMAGE_FAMILY = 76850316; } - // Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). + // Specifies whether the disk will be auto-deleted when the instance is + // deleted (but not when the disk is detached from the instance). optional bool auto_delete = 464761403; - // The custom source image to be used to restore this disk when instantiating this instance template. + // The custom source image to be used to restore this disk when instantiating + // this instance template. optional string custom_image = 184123149; // Specifies the device name of the disk to which the configurations apply to. optional string device_name = 67541716; - // Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. + // Specifies whether to include the disk and what image to use. Possible + // values are: + // + // + // - source-image: to use the same image that was used to + // create the source instance's corresponding disk. Applicable to the boot + // disk and additional read-write disks. + // - source-image-family: to use the same image family that + // was used to create the source instance's corresponding disk. Applicable + // to the boot disk and additional read-write disks. + // - custom-image: to use a user-provided image url for disk + // creation. Applicable to the boot disk and additional read-write + // disks. + // - attach-read-only: to attach a read-only + // disk. Applicable to read-only disks. + // - do-not-include: to exclude a disk from the template. + // Applicable to additional read-write disks, local SSDs, and read-only + // disks. // Check the InstantiateFrom enum for the list of possible values. optional string instantiate_from = 393383903; @@ -8641,10 +18814,15 @@ message DiskList { // A list of Disk resources. repeated Disk items = 100526016; - // [Output Only] Type of resource. Always compute#diskList for lists of disks. + // [Output Only] Type of resource. Always compute#diskList for + // lists of disks. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -8657,17 +18835,31 @@ message DiskList { // message DiskMoveRequest { - // The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone + // The URL of the destination zone to move the disk. This can be a full or + // partial URL. For example, the following are all valid URLs to a zone: + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone + // - projects/project/zones/zone + // - zones/zone optional string destination_zone = 131854653; - // The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk + // The URL of the target disk to move. This can be a full or partial URL. + // For example, the following are all valid URLs to a disk: + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + // - projects/project/zones/zone/disks/disk + // - zones/zone/disks/disk optional string target_disk = 62433163; } // Additional disk params. message DiskParams { - // Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + // Resource manager tags to be bound to the disk. Tag keys and values + // have the same definition as resource + // manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and + // values are in the format `tagValues/456`. The field is ignored (both PUT & + // PATCH) when empty. map resource_manager_tags = 377671164; } @@ -8715,7 +18907,8 @@ message DiskResourceStatusAsyncReplicationStatus { // message DiskSettings { - // Policy of which locations are allowed to create regional snapshots. + // Policy of which locations are allowed to create regional + // snapshots. optional DiskSettingsAccessLocation access_location = 18410544; } @@ -8749,9 +18942,25 @@ message DiskSettingsAccessLocationAccessLocationPreference { } -// Represents a Disk Type resource. Google Compute Engine has two Disk Type resources: * [Regional](/compute/docs/reference/rest/beta/regionDiskTypes) * [Zonal](/compute/docs/reference/rest/beta/diskTypes) You can choose from a variety of disk types based on your needs. For more information, read Storage options. The diskTypes resource represents disk types for a zonal persistent disk. For more information, read Zonal persistent disks. The regionDiskTypes resource represents disk types for a regional persistent disk. For more information, read Regional persistent disks. +// Represents a Disk Type resource. +// +// Google Compute Engine has two Disk Type resources: +// +// * [Regional](/compute/docs/reference/rest/beta/regionDiskTypes) +// * [Zonal](/compute/docs/reference/rest/beta/diskTypes) +// +// You can choose from a variety of disk types based on your needs. +// For more information, readStorage options. +// +// The diskTypes resource represents disk types for a zonal +// persistent disk. +// For more information, readZonal persistent disks. +// +// The regionDiskTypes resource represents disk types for a +// regional persistent disk. For more information, read Regional persistent disks. message DiskType { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // [Output Only] Server-defined default disk size in GB. @@ -8763,25 +18972,33 @@ message DiskType { // [Output Only] An optional description of this resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#diskType for disk types. + // [Output Only] Type of the resource. Always compute#diskType + // for disk types. optional string kind = 3292052; // [Output Only] Name of the resource. optional string name = 3373707; - // [Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the disk type resides. Only + // applicable for regional resources. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] An optional textual description of the valid disk size, such as "10GB-10TB". + // [Output Only] An optional textual description of the valid disk size, + // such as "10GB-10TB". optional string valid_disk_size = 493962464; - // [Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the zone where the disk type resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string zone = 3744684; } @@ -8794,10 +19011,14 @@ message DiskTypeAggregatedList { // A list of DiskTypesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#diskTypeAggregatedList. + // [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -8819,10 +19040,15 @@ message DiskTypeList { // A list of DiskType resources. repeated DiskType items = 100526016; - // [Output Only] Type of resource. Always compute#diskTypeList for disk types. + // [Output Only] Type of resource. Always compute#diskTypeList + // for disk types. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -8838,14 +19064,16 @@ message DiskTypesScopedList { // [Output Only] A list of disk types contained in this scope. repeated DiskType disk_types = 198926167; - // [Output Only] Informational warning which replaces the list of disk types when the list is empty. + // [Output Only] Informational warning which replaces the list of disk types + // when the list is empty. optional Warning warning = 50704284; } // message DisksAddResourcePoliciesRequest { - // Full or relative path to the resource policy to be added to this disk. You can only specify one resource policy. + // Full or relative path to the resource policy to be added to this disk. You + // can only specify one resource policy. repeated string resource_policies = 22220385; } @@ -8869,21 +19097,56 @@ message DisksScopedList { // [Output Only] A list of disks contained in this scope. repeated Disk disks = 95594102; - // [Output Only] Informational warning which replaces the list of disks when the list is empty. + // [Output Only] Informational warning which replaces the list of disks when + // the list is empty. optional Warning warning = 50704284; } // message DisksStartAsyncReplicationRequest { - // The secondary disk to start asynchronous replication to. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk + // The secondary disk to start asynchronous replication to. + // You can provide this as a partial or full URL to the resource. For example, + // the following are valid values: + // + // + // - + // https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + // + // - + // https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk + // + // - + // projects/project/zones/zone/disks/disk + // + // - + // projects/project/regions/region/disks/disk + // + // - + // zones/zone/disks/disk + // + // - + // regions/region/disks/disk optional string async_secondary_disk = 131645867; } -// A transient resource used in compute.disks.stopGroupAsyncReplication and compute.regionDisks.stopGroupAsyncReplication. It is only used to process requests and is not persisted. +// A transient resource used in compute.disks.stopGroupAsyncReplication and +// compute.regionDisks.stopGroupAsyncReplication. It is only used to process +// requests and is not persisted. message DisksStopGroupAsyncReplicationResource { - // The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This may be a full or partial URL, such as: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy + // The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. + // This may be a full or partial URL, such as: + // + // + // - + // https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy + // + // - + // projects/project/regions/region/resourcePolicies/resourcePolicy + // + // - + // regions/region/resourcePolicies/resourcePolicy optional string resource_policy = 159240835; } @@ -8897,47 +19160,73 @@ message DisplayDevice { // message DistributionPolicy { - // The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType). + // The distribution shape to which the group converges either proactively or + // on resize events (depending on the value set inupdatePolicy.instanceRedistributionType). enum TargetShape { // A value indicating that the enum field is not set. UNDEFINED_TARGET_SHAPE = 0; - // The group picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads that do not require high availability. + // The group picks zones for creating VM instances to fulfill the requested + // number of VMs within present resource constraints and to maximize + // utilization of unused zonal reservations. Recommended for batch workloads + // that do not require high availability. ANY = 64972; - // The group creates all VM instances within a single zone. The zone is selected based on the present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads with heavy interprocess communication. + // The group creates all VM instances within a single zone. The zone is + // selected based on the present resource constraints and to maximize + // utilization of unused zonal reservations. + // Recommended for batch workloads with heavy interprocess communication. ANY_SINGLE_ZONE = 61100880; - // The group prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across selected zones to minimize the impact of zonal failure. Recommended for highly available serving workloads. + // The group prioritizes acquisition of resources, scheduling VMs in zones + // where resources are available while distributing VMs as evenly as + // possible across selected zones to minimize the impact of zonal failure. + // Recommended for highly available serving workloads. BALANCED = 468409608; - // The group schedules VM instance creation and deletion to achieve and maintain an even number of managed instances across the selected zones. The distribution is even when the number of managed instances does not differ by more than 1 between any two zones. Recommended for highly available serving workloads. + // The group schedules VM instance creation and deletion to achieve and + // maintain an even number of managed instances across the selected zones. + // The distribution is even when the number of managed instances does not + // differ by more than 1 between any two zones. Recommended for highly + // available serving workloads. EVEN = 2140442; } - // The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType). + // The distribution shape to which the group converges either proactively or + // on resize events (depending on the value set inupdatePolicy.instanceRedistributionType). // Check the TargetShape enum for the list of possible values. optional string target_shape = 338621299; - // Zones where the regional managed instance group will create and manage its instances. + // Zones where the regional managed instance group will create and manage + // its instances. repeated DistributionPolicyZoneConfiguration zones = 116085319; } // message DistributionPolicyZoneConfiguration { - // The URL of the zone. The zone must exist in the region where the managed instance group is located. + // The URL of thezone. + // The zone must exist in the region where the managed instance group is + // located. optional string zone = 3744684; } -// A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. +// A Duration represents a fixed-length span of time represented +// as a count of seconds and fractions of seconds at nanosecond +// resolution. It is independent of any calendar and concepts like "day" +// or "month". Range is approximately 10,000 years. message Duration { - // Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. + // Span of time that's a fraction of a second at nanosecond resolution. + // Durations less than one second are represented with a 0 + // `seconds` field and a positive `nanos` field. Must be from 0 + // to 999,999,999 inclusive. optional int32 nanos = 104586303; - // Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + // Span of time at a resolution of a second. Must be from 0 + // to 315,576,000,000 inclusive. Note: these bounds are computed from: + // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years optional int64 seconds = 359484031; } @@ -8950,7 +19239,19 @@ message EnableXpnHostProjectRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -8966,14 +19267,27 @@ message EnableXpnResourceProjectRequest { // The body resource for this request ProjectsEnableXpnResourceRequest projects_enable_xpn_resource_request_resource = 421980207 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // Errors that prevented the ResizeRequest to be fulfilled. message Error { - // [Output Only] The array of errors encountered while processing this operation. + // [Output Only] The array of errors encountered while processing this + // operation. repeated Errors errors = 315977579; } @@ -8990,15 +19304,55 @@ message ErrorDetails { } -// Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { "resource": "projects/123", "service": "pubsub.googleapis.com" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { "availableRegions": "us-central1,us-east2" } } +// Describes the cause of the error with structured details. +// +// Example of an error when contacting the "pubsub.googleapis.com" API when it +// is not enabled: +// +// { "reason": "API_DISABLED" +// "domain": "googleapis.com" +// "metadata": { +// "resource": "projects/123", +// "service": "pubsub.googleapis.com" +// } +// } +// +// This response indicates that the pubsub.googleapis.com API is not enabled. +// +// Example of an error that is returned when attempting to create a Spanner +// instance in a region that is out of stock: +// +// { "reason": "STOCKOUT" +// "domain": "spanner.googleapis.com", +// "metadata": { +// "availableRegions": "us-central1,us-east2" +// } +// } message ErrorInfo { - // The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". + // The logical grouping to which the "reason" belongs. The error domain + // is typically the registered service name of the tool or product that + // generates the error. Example: "pubsub.googleapis.com". If the error is + // generated by some common infrastructure, the error domain must be a + // globally unique value that identifies the infrastructure. For Google API + // infrastructure, the error domain is "googleapis.com". optional string domain = 284415172; - // Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request. + // Additional structured details about this error. + // + // Keys must match a regular expression of `a-z+` but should + // ideally be lowerCamelCase. Also, they must be limited to 64 characters in + // length. When identifying the current value of an exceeded limit, the units + // should be contained in the key, not the value. For example, rather than + // `{"instanceLimit": "100/request"}`, should be returned as, + // `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of + // instances that can be created in a single (batch) request. map metadatas = 8514340; - // The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. + // The reason of the error. This is a constant value that identifies the + // proximate cause of the error. Error reasons are unique within a particular + // domain of errors. This should be at most 63 characters and match a + // regular expression of `A-Z+[A-Z0-9]`, which represents + // UPPER_SNAKE_CASE. optional string reason = 138777156; } @@ -9008,10 +19362,15 @@ message Errors { // [Output Only] The error type identifier for this error. optional string code = 3059181; - // [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + // [Output Only] An optional list of messages that contain the error + // details. There is a set of defined message types to use for providing + // details.The syntax depends on the error code. For example, + // QuotaExceededInfo will have details when the error code is + // QUOTA_EXCEEDED. repeated ErrorDetails error_details = 274653963; - // [Output Only] Indicates the field in the request that caused the error. This property is optional. + // [Output Only] Indicates the field in the request that caused the error. + // This property is optional. optional string location = 290430901; // [Output Only] An optional, human-readable error message. @@ -9040,7 +19399,11 @@ message ExchangedPeeringRoute { // The destination range of the route. optional string dest_range = 381327712; - // True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict. + // True if the peering route has been imported from a peer. The actual import + // happens if the field networkPeering.importCustomRoutes is true + // for this network, and networkPeering.exportCustomRoutes is + // true for the peer network, and the import does not result in a route + // conflict. optional bool imported = 114502404; // The region of peering route next hop, only applies to dynamic routes. @@ -9063,10 +19426,15 @@ message ExchangedPeeringRoutesList { // A list of ExchangedPeeringRoute resources. repeated ExchangedPeeringRoute items = 100526016; - // [Output Only] Type of resource. Always compute#exchangedPeeringRoutesList for exchanged peering routes lists. + // [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering + // routes lists. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -9091,7 +19459,19 @@ message ExpandIpCidrRangeSubnetworkRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Subnetwork resource to update. @@ -9102,62 +19482,150 @@ message ExpandIpCidrRangeSubnetworkRequest { } -// Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. +// Represents a textual expression in the Common Expression Language (CEL) +// syntax. CEL is a C-like expression language. The syntax and semantics of CEL +// are documented at https://github.com/google/cel-spec. +// +// Example (Comparison): +// +// title: "Summary size limit" +// description: "Determines if a summary is less than 100 chars" +// expression: "document.summary.size() < 100" +// +// Example (Equality): +// +// title: "Requestor is owner" +// description: "Determines if requestor is the document owner" +// expression: "document.owner == request.auth.claims.email" +// +// Example (Logic): +// +// title: "Public documents" +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// +// Example (Data Manipulation): +// +// title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + string(document.create_time)" +// +// The exact variables and functions that may be referenced within an expression +// are determined by the service that evaluates it. See the service +// documentation for additional information. message Expr { - // Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. + // Optional. Description of the expression. This is a longer text which + // describes the expression, e.g. when hovered over it in a UI. optional string description = 422937596; - // Textual representation of an expression in Common Expression Language syntax. + // Textual representation of an expression in Common Expression Language + // syntax. optional string expression = 352031384; - // Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. + // Optional. String indicating the location of the expression for error + // reporting, e.g. a file name and a position in the file. optional string location = 290430901; - // Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. + // Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. optional string title = 110371416; } -// Represents an external VPN gateway. External VPN gateway is the on-premises VPN gateway(s) or another cloud provider's VPN gateway that connects to your Google Cloud VPN gateway. To create a highly available VPN from Google Cloud Platform to your VPN gateway or another cloud provider's VPN gateway, you must create a external VPN gateway resource with information about the other gateway. For more information about using external VPN gateways, see Creating an HA VPN gateway and tunnel pair to a peer VPN. +// Represents an external VPN gateway. +// +// External VPN gateway is the on-premises VPN gateway(s) or another cloud +// provider's VPN gateway that connects to your Google Cloud VPN gateway. +// +// To create a highly available VPN from Google Cloud Platform to your +// VPN gateway or another cloud provider's VPN gateway, you must create a +// external VPN gateway resource with information about the other gateway. +// +// For more information about using external VPN gateways, see +// Creating an HA VPN gateway and tunnel pair to a peer VPN. message ExternalVpnGateway { // Indicates the user-supplied redundancy type of this external VPN gateway. enum RedundancyType { // A value indicating that the enum field is not set. UNDEFINED_REDUNDANCY_TYPE = 0; - // The external VPN gateway has four public IP addresses; at the time of writing this API, the AWS virtual private gateway is an example which has four public IP addresses for high availability connections; there should be two VPN connections in the AWS virtual private gateway , each AWS VPN connection has two public IP addresses; please make sure to put two public IP addresses from one AWS VPN connection into interfaces 0 and 1 of this external VPN gateway, and put the other two public IP addresses from another AWS VPN connection into interfaces 2 and 3 of this external VPN gateway. When displaying highly available configuration status for the VPN tunnels connected to FOUR_IPS_REDUNDANCY external VPN gateway, Google will always detect whether interfaces 0 and 1 are connected on one interface of HA Cloud VPN gateway, and detect whether interfaces 2 and 3 are connected to another interface of the HA Cloud VPN gateway. + // The external VPN gateway has four public IP addresses; at the time of + // writing this API, the AWS virtual private gateway is an example which has + // four public IP addresses for high availability connections; there should + // be two VPN connections in the AWS virtual private gateway , each AWS VPN + // connection has two public IP addresses; please make sure to put two + // public IP addresses from one AWS VPN connection into interfaces 0 and 1 + // of this external VPN gateway, and put the other two public IP addresses + // from another AWS VPN connection into interfaces 2 and 3 of this external + // VPN gateway. When displaying highly available configuration status + // for the VPN tunnels connected to FOUR_IPS_REDUNDANCY external VPN + // gateway, Google will always detect whether interfaces 0 and 1 are + // connected on one interface of HA Cloud VPN gateway, and detect whether + // interfaces 2 and 3 are connected to another interface of the HA Cloud VPN + // gateway. FOUR_IPS_REDUNDANCY = 520087913; - // The external VPN gateway has only one public IP address which internally provide redundancy or failover. + // The external VPN gateway has only one public IP address which internally + // provide redundancy or failover. SINGLE_IP_INTERNALLY_REDUNDANT = 133914873; - // The external VPN gateway has two public IP addresses which are redundant with each other, the following two types of setup on your on-premises side would have this type of redundancy: (1) Two separate on-premises gateways, each with one public IP address, the two on-premises gateways are redundant with each other. (2) A single on-premise gateway with two public IP addresses that are redundant with eatch other. + // The external VPN gateway has two public IP addresses which are redundant + // with each other, the following two types of setup on your on-premises + // side would have this type of redundancy: + // (1) Two separate on-premises gateways, each with one public IP address, + // the two on-premises gateways are redundant with each other. + // (2) A single on-premise gateway with two public IP addresses that are + // redundant with eatch other. TWO_IPS_REDUNDANCY = 367049635; } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // A list of interfaces for this external VPN gateway. If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS virtual private gateway, four interfaces should be provided for an external VPN gateway. + // A list of interfaces for this external VPN gateway. + // + // If your peer-side gateway is an on-premises gateway and non-AWS cloud + // providers' gateway, at most two interfaces can be provided for an external + // VPN gateway. If your peer side is an AWS virtual private gateway, four + // interfaces should be provided for an external VPN gateway. repeated ExternalVpnGatewayInterface interfaces = 12073562; - // [Output Only] Type of the resource. Always compute#externalVpnGateway for externalVpnGateways. + // [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for externalVpnGateways. optional string kind = 3292052; - // A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. + // A fingerprint for the labels being applied to this ExternalVpnGateway, + // which is essentially a hash of the labels set used for optimistic locking. + // The fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve an ExternalVpnGateway. optional string label_fingerprint = 178124825; - // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. + // Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. + // Label values may be empty. map labels = 500195327; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; // Indicates the user-supplied redundancy type of this external VPN gateway. @@ -9171,13 +19639,27 @@ message ExternalVpnGateway { // The interface for the external VPN gateway. message ExternalVpnGatewayInterface { - // The numeric ID of this interface. The allowed input values for this id for different redundancy types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 + // The numeric ID of this interface. + // The allowed input values for this id for different redundancy types of + // external VPN gateway: + // + // - SINGLE_IP_INTERNALLY_REDUNDANT - 0 + // - TWO_IPS_REDUNDANCY - 0, 1 + // - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 optional uint32 id = 3355; - // IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine. + // IP address of the interface in the external VPN gateway. Only IPv4 is + // supported. This IP address can be either from your on-premise gateway or + // another Cloud provider's VPN gateway, it cannot be an IP address from + // Google Compute Engine. optional string ip_address = 406272220; - // IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). + // IPv6 address of the interface in the external VPN gateway. This IPv6 + // address can be either from your on-premise gateway or another Cloud + // provider's VPN gateway, it cannot be an IP address from Google Compute + // Engine. Must specify an IPv6 address (not IPV4-mapped) using any format + // described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format + // is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). optional string ipv6_address = 341563804; } @@ -9195,7 +19677,11 @@ message ExternalVpnGatewayList { // [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of externalVpnGateways. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -9230,9 +19716,14 @@ message FileContentBuffer { } -// Represents a Firewall Rule resource. Firewall rules allow or deny ingress traffic to, and egress traffic from your instances. For more information, read Firewall rules. +// Represents a Firewall Rule resource. +// +// Firewall rules allow or deny ingress traffic to, and egress traffic from your +// instances. For more information, readFirewall rules. message Firewall { - // Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. + // Direction of traffic to which this firewall applies, either `INGRESS` or + // `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot + // specify the sourceTags fields. enum Direction { // A value indicating that the enum field is not set. UNDEFINED_DIRECTION = 0; @@ -9245,68 +19736,147 @@ message Firewall { } - // The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. + // The list of ALLOW rules specified by this firewall. Each rule specifies a + // protocol and port-range tuple that describes a permitted connection. repeated Allowed allowed = 162398632; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. + // The list of DENY rules specified by this firewall. Each rule specifies a + // protocol and port-range tuple that describes a denied connection. repeated Denied denied = 275217307; - // An optional description of this resource. Provide this field when you create the resource. + // An optional description of this resource. Provide this field when you + // create the resource. optional string description = 422937596; - // If destination ranges are specified, the firewall rule applies only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Both IPv4 and IPv6 are supported. + // If destination ranges are specified, the firewall rule applies only to + // traffic that has destination IP address in these ranges. These ranges must + // be expressed inCIDR format. Both IPv4 and IPv6 are supported. repeated string destination_ranges = 305699879; - // Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. + // Direction of traffic to which this firewall applies, either `INGRESS` or + // `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot + // specify the sourceTags fields. // Check the Direction enum for the list of possible values. optional string direction = 111150975; - // Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the firewall rule will be enabled. + // Denotes whether the firewall rule is disabled. When set to true, the + // firewall rule is not enforced and the network behaves as if it did not + // exist. If this is unspecified, the firewall rule will be enabled. optional bool disabled = 270940796; - // Deprecated in favor of enable in LogConfig. This field denotes whether to enable logging for a particular firewall rule. If logging is enabled, logs will be exported t Cloud Logging. + // Deprecated in favor of enable in LogConfig. + // This field denotes whether to enable logging for a particular + // firewall rule. If logging is enabled, logs will be exported t + // Cloud Logging. optional bool enable_logging = 295396515; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#firewall for firewall rules. + // [Output Only] Type of the resource. Always compute#firewall + // for firewall rules. optional string kind = 3292052; - // This field denotes the logging options for a particular firewall rule. If logging is enabled, logs will be exported to Cloud Logging. + // This field denotes the logging options for a particular firewall rule. If + // logging is enabled, logs will be exported to Cloud Logging. optional FirewallLogConfig log_config = 351299741; - // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + // Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character + // must be a lowercase letter, and all following characters (except for the + // last character) must be a dash, lowercase letter, or digit. The last + // character must be a lowercase letter or digit. optional string name = 3373707; - // URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used: global/networks/default If you choose to specify this field, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - projects/myproject/global/networks/my-network - global/networks/default + // URL of the network resource for this firewall rule. If not + // specified when creating a firewall rule, the default network + // is used: + // + // global/networks/default + // + // If you choose to specify this field, you can specify the network as a full + // or partial URL. For example, the following are all valid URLs: + // + // - + // https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network + // - projects/myproject/global/networks/my-network + // - global/networks/default optional string network = 232872494; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional FirewallParams params = 78313862; - // Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. Lower values indicate higher priority. For example, a rule with priority `0` has higher precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To avoid conflicts with the implied rules, use a priority number less than `65535`. + // Priority for this rule. + // This is an integer between `0` and `65535`, both inclusive. + // The default value is `1000`. + // Relative priorities determine which rule takes effect if multiple rules + // apply. Lower values indicate higher priority. For example, a rule with + // priority `0` has higher precedence than a rule with priority `1`. + // DENY rules take precedence over ALLOW rules if they have equal priority. + // Note that VPC networks have implied + // rules with a priority of `65535`. To avoid conflicts with the implied + // rules, use a priority number less than `65535`. optional int32 priority = 445151652; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // If source ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the rule to apply. Both IPv4 and IPv6 are supported. + // If source ranges are specified, the firewall rule applies only to traffic + // that has a source IP address in these ranges. These ranges must be + // expressed inCIDR format. One or both of sourceRanges + // and sourceTags may be set. + // If both fields are set, the rule applies to traffic that has a + // source IP address within sourceRanges OR a source IP + // from a resource with a matching tag listed in thesourceTags field. The connection does not need to match + // both fields for the rule to + // apply. Both IPv4 and IPv6 are supported. repeated string source_ranges = 200097658; - // If source service accounts are specified, the firewall rules apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP address within the sourceRanges OR a source IP that belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both fields for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. + // If source service accounts are specified, the firewall rules apply only to + // traffic originating from an instance with a service account in this list. + // Source service accounts cannot be used to control traffic to an instance's + // external IP address because service accounts are associated with an + // instance, not an IP address.sourceRanges can be set at the same time assourceServiceAccounts. + // If both are set, the firewall applies to traffic that + // has a source IP address within the sourceRanges OR a source + // IP that belongs to an instance with service account listed insourceServiceAccount. The connection does not need to match + // both fields for the firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or targetTags. repeated string source_service_accounts = 105100756; - // If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both fields are set, the firewall applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the firewall to apply. + // If source tags are specified, the firewall rule applies only to traffic + // with source IPs that match the primary network interfaces of VM instances + // that have the tag and are in the same VPC network. + // Source tags cannot be used to control traffic to an instance's external IP + // address, it only applies to traffic between instances in the same virtual + // network. Because tags are associated with instances, not IP addresses. + // One or both of sourceRanges and sourceTags may be + // set. If both fields are set, the firewall applies to traffic that has a + // source IP address within sourceRanges OR a source IP from a + // resource with a matching tag listed in the sourceTags + // field. The connection does not need to match both fields for the + // firewall to apply. repeated string source_tags = 452222397; - // A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. + // A list of service accounts indicating sets of instances located in the + // network that may make network connections as specified inallowed[].targetServiceAccounts cannot be used at the same time astargetTags or sourceTags. + // If neither targetServiceAccounts nor targetTags + // are specified, the firewall rule applies to all instances on the specified + // network. repeated string target_service_accounts = 457639710; - // A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. + // A list of tags that controls which instances the firewall rule + // applies to. If targetTags are specified, then the firewall + // rule applies only to instances in the VPC network that have one of those + // tags. If no targetTags are specified, the firewall rule + // applies to all instances on the specified network. repeated string target_tags = 62901767; } @@ -9319,10 +19889,15 @@ message FirewallList { // A list of Firewall resources. repeated Firewall items = 100526016; - // [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + // [Output Only] Type of resource. Always compute#firewallList + // for lists of firewalls. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -9335,7 +19910,9 @@ message FirewallList { // The available logging options for a firewall rule. message FirewallLogConfig { - // This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs. + // This field can only be specified for a particular firewall rule if + // logging is enabled for that rule. This field denotes whether to include + // or exclude metadata for firewall logs. enum Metadata { // A value indicating that the enum field is not set. UNDEFINED_METADATA = 0; @@ -9346,10 +19923,13 @@ message FirewallLogConfig { } - // This field denotes whether to enable logging for a particular firewall rule. + // This field denotes whether to enable logging for a particular firewall + // rule. optional bool enable = 311764355; - // This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs. + // This field can only be specified for a particular firewall rule if + // logging is enabled for that rule. This field denotes whether to include + // or exclude metadata for firewall logs. // Check the Metadata enum for the list of possible values. optional string metadata = 86866735; @@ -9357,7 +19937,18 @@ message FirewallLogConfig { // Additional firewall parameters. message FirewallParams { - // Tag keys/values directly bound to this resource. Tag keys and values have the same definition as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {"123/environment" : "tagValues/444"} is invalid. + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. map resource_manager_tags = 377671164; } @@ -9367,7 +19958,8 @@ message FirewallPoliciesListAssociationsResponse { // A list of associations. repeated FirewallPolicyAssociation associations = 508736530; - // [Output Only] Type of firewallPolicy associations. Always compute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. + // [Output Only] Type of firewallPolicy associations. Alwayscompute#FirewallPoliciesListAssociations for lists of + // firewallPolicy associations. optional string kind = 3292052; } @@ -9377,14 +19969,17 @@ message FirewallPoliciesScopedList { // A list of firewall policies contained in this scope. repeated FirewallPolicy firewall_policies = 392512943; - // Informational warning which replaces the list of firewall policies when the list is empty. + // Informational warning which replaces the list of firewall policies when + // the list is empty. optional Warning warning = 50704284; } // Represents a Firewall Policy resource. message FirewallPolicy { - // [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or SYSTEM if created by managed services like GKE. + // [Output Only] Source of this Firewall Policy. USER_DEFINED if + // created by a Cloud user, or SYSTEM if created by managed + // services like GKE. enum PolicySource { // A value indicating that the enum field is not set. UNDEFINED_POLICY_SOURCE = 0; @@ -9395,7 +19990,9 @@ message FirewallPolicy { } - // The type of the firewall policy. This field can be either VPC_POLICY or RDMA_ROCE_POLICY. Note: if not specified then VPC_POLICY will be used. + // The type of the firewall policy. This field can be eitherVPC_POLICY or RDMA_ROCE_POLICY. + // + // Note: if not specified then VPC_POLICY will be used. enum PolicyType { // A value indicating that the enum field is not set. UNDEFINED_POLICY_TYPE = 0; @@ -9409,48 +20006,83 @@ message FirewallPolicy { // A list of associations that belong to this firewall policy. repeated FirewallPolicyAssociation associations = 508736530; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Deprecated, please use short name instead. User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Deprecated, please use short name instead. User-provided name of the + // Organization firewall policy. The name should be unique in the organization + // in which the firewall policy is created. + // This field is not applicable to network firewall policies. + // This name must be set on creation and cannot be changed. + // The name must be 1-63 characters long, and comply + // with RFC1035. Specifically, the name must be 1-63 characters + // long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which + // means the first character must be a lowercase letter, and all following + // characters must be a dash, lowercase letter, or digit, except the last + // character, which cannot be a dash. optional string display_name = 4473832; - // Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy. + // Specifies a fingerprint for this resource, which is essentially a hash of + // the metadata's contents and used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update metadata. You must always provide an + // up-to-date fingerprint hash in order to update or change metadata, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make get() request to the + // firewall policy. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies + // [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies optional string kind = 3292052; - // Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. + // Name of the resource. For Organization Firewall Policies it's a + // [Output Only] numeric ID allocated by Google Cloud which uniquely + // identifies the Organization Firewall Policy. optional string name = 3373707; // A list of packet mirroring rules that belong to this policy. repeated FirewallPolicyRule packet_mirroring_rules = 531644356; - // [Output Only] The parent of the firewall policy. This field is not applicable to network firewall policies. + // [Output Only] The parent of the firewall policy. + // This field is not applicable to network firewall policies. optional string parent = 78317738; - // [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or SYSTEM if created by managed services like GKE. + // [Output Only] Source of this Firewall Policy. USER_DEFINED if + // created by a Cloud user, or SYSTEM if created by managed + // services like GKE. // Check the PolicySource enum for the list of possible values. optional string policy_source = 232383432; - // The type of the firewall policy. This field can be either VPC_POLICY or RDMA_ROCE_POLICY. Note: if not specified then VPC_POLICY will be used. + // The type of the firewall policy. This field can be eitherVPC_POLICY or RDMA_ROCE_POLICY. + // + // Note: if not specified then VPC_POLICY will be used. // Check the PolicyType enum for the list of possible values. optional string policy_type = 18158119; - // [Output Only] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the regional firewall policy resides. + // This field is not applicable to global firewall policies. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; - // [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples. + // [Output Only] Total count of all firewall policy rule tuples. A firewall + // policy can not exceed a set number of tuples. optional int32 rule_tuple_count = 388342037; - // A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added. + // A list of rules that belong to this policy. + // There must always be a default rule (rule with priority 2147483647 and + // match "*"). If no rules are provided when creating a firewall policy, a + // default rule with action "allow" will be added. repeated FirewallPolicyRule rules = 108873975; // [Output Only] Server-defined URL for the resource. @@ -9459,7 +20091,16 @@ message FirewallPolicy { // [Output Only] Server-defined URL for this resource with the resource id. optional string self_link_with_id = 44520962; - // User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // User-provided name of the Organization firewall policy. The name should be + // unique in the organization in which the firewall policy is created. + // This field is not applicable to network firewall policies. + // This name must be set on creation and cannot be changed. The name must be + // 1-63 characters long, and comply with RFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string short_name = 492051566; } @@ -9469,7 +20110,8 @@ message FirewallPolicyAssociation { // The target that the firewall policy is attached to. optional string attachment_target = 175773741; - // [Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association. + // [Output Only] Deprecated, please use short name instead. The display name + // of the firewall policy of the association. optional string display_name = 4473832; // [Output Only] The firewall policy ID of the association. @@ -9478,7 +20120,12 @@ message FirewallPolicyAssociation { // The name for an association. optional string name = 3373707; - // An integer indicating the priority of an association. The priority must be a positive value between 1 and 2147483647. Firewall Policies are evaluated from highest to lowest priority where 1 is the highest priority and 2147483647 is the lowest priority. The default value is `1000`. If two associations have the same priority then lexicographical order on association names is applied. + // An integer indicating the priority of an association. The priority + // must be a positive value between 1 and 2147483647. + // Firewall Policies are evaluated from highest to lowest priority where 1 + // is the highest priority and 2147483647 is the lowest priority. + // The default value is `1000`. If two associations have the same priority + // then lexicographical order on association names is applied. optional int32 priority = 445151652; // [Output Only] The short name of the firewall policy of the association. @@ -9494,10 +20141,14 @@ message FirewallPolicyList { // A list of FirewallPolicy resources. repeated FirewallPolicy items = 100526016; - // [Output Only] Type of resource. Always compute#firewallPolicyList for listsof FirewallPolicies + // [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Informational warning message. @@ -9505,7 +20156,8 @@ message FirewallPolicyList { } -// Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny). +// Represents a rule that describes one or more match conditions along with +// the action to be taken when traffic matches this condition (allow or deny). message FirewallPolicyRule { // The direction in which this rule applies. enum Direction { @@ -9518,7 +20170,8 @@ message FirewallPolicyRule { } - // Target types of the firewall policy rule. Default value is INSTANCES. + // Target types of the firewall policy rule. + // Default value is INSTANCES. enum TargetType { // A value indicating that the enum field is not set. UNDEFINED_TARGET_TYPE = 0; @@ -9529,7 +20182,11 @@ message FirewallPolicyRule { } - // The Action to perform when the client connection triggers the rule. Valid actions for firewall rules are: "allow", "deny", "apply_security_profile_group" and "goto_next". Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" and "goto_next". + // The Action to perform when the client connection triggers the rule. + // Valid actions for firewall rules are: "allow", "deny", + // "apply_security_profile_group" and "goto_next". + // Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" + // and "goto_next". optional string action = 187661878; // An optional description for this resource. @@ -9539,52 +20196,92 @@ message FirewallPolicyRule { // Check the Direction enum for the list of possible values. optional string direction = 111150975; - // Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled. + // Denotes whether the firewall policy rule is disabled. When set to true, + // the firewall policy rule is not enforced and traffic behaves as if it did + // not exist. If this is unspecified, the firewall policy rule will be + // enabled. optional bool disabled = 270940796; - // Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. + // Denotes whether to enable logging for a particular rule. If logging is + // enabled, logs will be exported to the configured export destination in + // Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you + // cannot enable logging on "goto_next" rules. optional bool enable_logging = 295396515; - // [Output only] Type of the resource. Returns compute#firewallPolicyRule for firewall rules and compute#packetMirroringRule for packet mirroring rules. + // [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules. optional string kind = 3292052; - // A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced. + // A match condition that incoming traffic is evaluated against. + // If it evaluates to true, the corresponding 'action' is enforced. optional FirewallPolicyRuleMatcher match = 103668165; - // An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority. + // An integer indicating the priority of a rule in the list. The priority + // must be a positive value between 0 and 2147483647. + // Rules are evaluated from highest to lowest priority where 0 is the + // highest priority and 2147483647 is the lowest priority. optional int32 priority = 445151652; - // An optional name for the rule. This field is not a unique identifier and can be updated. + // An optional name for the rule. This field is not a unique identifier + // and can be updated. optional string rule_name = 55286254; - // [Output Only] Calculation of the complexity of a single firewall policy rule. + // [Output Only] Calculation of the complexity of a single firewall policy + // rule. optional int32 rule_tuple_count = 388342037; - // A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group Must be specified if action is one of 'apply_security_profile_group' or 'mirror'. Cannot be specified for other actions. + // A fully-qualified URL of a SecurityProfile resource instance. + // Example: + // https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group + // Must be specified if action is one of 'apply_security_profile_group' or + // 'mirror'. Cannot be specified for other actions. optional string security_profile_group = 207411626; - // A list of forwarding rules to which this rule applies. This field allows you to control which load balancers get this rule. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project /global/forwardingRules/forwardingRule - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - projects/project/global/ forwardingRules/forwardingRule - projects/project/regions/region/forwardingRules/ forwardingRule + // A list of forwarding rules to which this rule applies. + // This field allows you to control which load balancers get this rule. + // For example, the following are valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule + // - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule + // - projects/project/global/ + // forwardingRules/forwardingRule + // - projects/project/regions/region/forwardingRules/ + // forwardingRule repeated string target_forwarding_rules = 495923747; - // A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. + // A list of network resource URLs to which this rule applies. This field + // allows you to control which network's VMs get this rule. If this field + // is left blank, all VMs within the organization will receive the rule. repeated string target_resources = 528230647; - // A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256. + // A list of secure tags that controls which instances the firewall rule + // applies to. If targetSecureTag are specified, then the + // firewall rule applies only to instances in the VPC network that have one + // of those EFFECTIVE secure tags, if all the target_secure_tag are in + // INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts. + // If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies + // to all instances on the specified network. + // Maximum number of target label tags allowed is 256. repeated FirewallPolicyRuleSecureTag target_secure_tags = 468132403; - // A list of service accounts indicating the sets of instances that are applied with this rule. + // A list of service accounts indicating the sets of instances that are + // applied with this rule. repeated string target_service_accounts = 457639710; - // Target types of the firewall policy rule. Default value is INSTANCES. + // Target types of the firewall policy rule. + // Default value is INSTANCES. // Check the TargetType enum for the list of possible values. optional string target_type = 62925096; - // Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = 'apply_security_profile_group' and cannot be set for other actions. + // Boolean flag indicating if the traffic should be TLS decrypted. + // Can be set only if action = 'apply_security_profile_group' and cannot + // be set for other actions. optional bool tls_inspect = 43425488; } -// Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified. +// Represents a match condition that incoming traffic is evaluated against. +// Exactly one field must be specified. message FirewallPolicyRuleMatcher { // Network scope of the traffic destination. // Additional supported values which may be not listed in the enum directly due to technical reasons: @@ -9599,7 +20296,12 @@ message FirewallPolicyRuleMatcher { } - // Network type of the traffic destination. Allowed values are: - UNSPECIFIED - INTERNET - NON_INTERNET + // Network type of the traffic destination. Allowed values are: + // + // + // - UNSPECIFIED + // - INTERNET + // - NON_INTERNET // Additional supported values which may be not listed in the enum directly due to technical reasons: // INTERNET // INTRA_VPC @@ -9625,7 +20327,14 @@ message FirewallPolicyRuleMatcher { } - // Network type of the traffic source. Allowed values are: - UNSPECIFIED - INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + // Network type of the traffic source. Allowed values are: + // + // + // - UNSPECIFIED + // - INTERNET + // - INTRA_VPC + // - NON_INTERNET + // - VPC_NETWORKS // Additional supported values which may be not listed in the enum directly due to technical reasons: // INTERNET // INTRA_VPC @@ -9638,76 +20347,118 @@ message FirewallPolicyRuleMatcher { } - // Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10. + // Address groups which should be matched against the traffic destination. + // Maximum number of destination address groups is 10. repeated string dest_address_groups = 468760508; - // Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100. + // Fully Qualified Domain Name (FQDN) which should be matched against + // traffic destination. + // Maximum number of destination fqdn allowed is 100. repeated string dest_fqdns = 370712737; - // CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. + // CIDR IP address range. + // Maximum number of destination CIDR IP ranges allowed is 5000. repeated string dest_ip_ranges = 337357713; // Network scope of the traffic destination. // Check the DestNetworkScope enum for the list of possible values. optional string dest_network_scope = 355839526; - // Network type of the traffic destination. Allowed values are: - UNSPECIFIED - INTERNET - NON_INTERNET + // Network type of the traffic destination. Allowed values are: + // + // + // - UNSPECIFIED + // - INTERNET + // - NON_INTERNET // Check the DestNetworkType enum for the list of possible values. optional string dest_network_type = 409853224; - // Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000. + // Region codes whose IP addresses will be used to match for destination + // of traffic. Should be specified as 2 letter country code defined as per + // ISO 3166 alpha-2 country codes. ex."US" + // Maximum number of dest region codes allowed is 5000. repeated string dest_region_codes = 199120280; - // Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic destination. + // Names of Network Threat Intelligence lists. + // The IPs in these lists will be matched against traffic destination. repeated string dest_threat_intelligences = 119896492; // Pairs of IP protocols and ports that the rule should match. repeated FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261; - // Address groups which should be matched against the traffic source. Maximum number of source address groups is 10. + // Address groups which should be matched against the traffic source. + // Maximum number of source address groups is 10. repeated string src_address_groups = 436423738; - // Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100. + // Fully Qualified Domain Name (FQDN) which should be matched against + // traffic source. + // Maximum number of source fqdn allowed is 100. repeated string src_fqdns = 435906147; - // CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. + // CIDR IP address range. + // Maximum number of source CIDR IP ranges allowed is 5000. repeated string src_ip_ranges = 432128083; // Network scope of the traffic source. // Check the SrcNetworkScope enum for the list of possible values. optional string src_network_scope = 476025320; - // Network type of the traffic source. Allowed values are: - UNSPECIFIED - INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + // Network type of the traffic source. Allowed values are: + // + // + // - UNSPECIFIED + // - INTERNET + // - INTRA_VPC + // - NON_INTERNET + // - VPC_NETWORKS // Check the SrcNetworkType enum for the list of possible values. optional string src_network_type = 309819686; // Networks of the traffic source. It can be either a full or partial url. repeated string src_networks = 247119872; - // Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of source region codes allowed is 5000. + // Region codes whose IP addresses will be used to match for source + // of traffic. Should be specified as 2 letter country code defined as per + // ISO 3166 alpha-2 country codes. ex."US" + // Maximum number of source region codes allowed is 5000. repeated string src_region_codes = 99086742; - // List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256. + // List of secure tag values, which should be matched at the source + // of the traffic. + // For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, + // and there is no srcIpRange, this rule will be ignored. + // Maximum number of source tag values allowed is 256. repeated FirewallPolicyRuleSecureTag src_secure_tags = 508791302; - // Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic source. + // Names of Network Threat Intelligence lists. + // The IPs in these lists will be matched against traffic source. repeated string src_threat_intelligences = 323631018; } // message FirewallPolicyRuleMatcherLayer4Config { - // The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number. + // The IP protocol to which this rule applies. The protocol type is + // required when creating a firewall rule. This value can either be + // one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP + // protocol number. optional string ip_protocol = 475958960; - // An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + // An optional list of ports to which this rule applies. This field is + // only applicable for UDP or TCP protocol. Each entry must be either + // an integer or a range. If not specified, this rule applies to + // connections through any port. + // + // Example inputs include: ["22"],["80","443"], and ["12345-12349"]. repeated string ports = 106854418; } // message FirewallPolicyRuleSecureTag { - // [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. + // [Output Only] State of the secure tag, either `EFFECTIVE` or + // `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted + // or its network is deleted. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -9721,7 +20472,9 @@ message FirewallPolicyRuleSecureTag { // Name of the secure tag, created with TagManager's TagValue API. optional string name = 3373707; - // [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. + // [Output Only] State of the secure tag, either `EFFECTIVE` or + // `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted + // or its network is deleted. // Check the State enum for the list of possible values. optional string state = 109757585; @@ -9729,18 +20482,36 @@ message FirewallPolicyRuleSecureTag { // Encapsulates numeric value that can be either absolute or relative. message FixedOrPercent { - // [Output Only] Absolute value of VM instances calculated based on the specific mode. - If the value is fixed, then the calculated value is equal to the fixed value. - If the value is a percent, then the calculated value is percent/100 * targetSize. For example, the calculated value of a 80% of a managed instance group with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, the number is rounded. + // [Output Only] Absolute value of VM instances calculated based on the + // specific mode. + // + // + // + // - If the value is fixed, then the calculated + // value is equal to the fixed value. + // - If the value is a percent, then the + // calculated + // value is percent/100 * targetSize. For example, + // the calculated value of a 80% of a managed instance group + // with 150 instances would be (80/100 * 150) = 120 VM instances. If there + // is a remainder, the number is rounded. optional int32 calculated = 472082878; // Specifies a fixed number of VM instances. This must be a positive integer. optional int32 fixed = 97445748; - // Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%. + // Specifies a percentage of instances between 0 to 100%, inclusive. For + // example, specify 80 for 80%. optional int32 percent = 394814533; } -// A flexible specification of a time range that has 3 points of flexibility: (1) a flexible start time, (2) a flexible end time, (3) a flexible duration. It is possible to specify a contradictory time range that cannot be matched by any Interval. This causes a validation error. +// A flexible specification of a time range that has 3 points of +// flexibility: (1) a flexible start time, (2) a flexible end time, (3) a +// flexible duration. +// +// It is possible to specify a contradictory time range that cannot be matched +// by any Interval. This causes a validation error. message FlexibleTimeRange { optional string end_time_not_earlier_than = 83355642; @@ -9756,9 +20527,39 @@ message FlexibleTimeRange { } -// Represents a Forwarding Rule resource. Forwarding rule resources in Google Cloud can be either regional or global in scope: * [Global](https://cloud.google.com/compute/docs/reference/rest/beta/globalForwardingRules) * [Regional](https://cloud.google.com/compute/docs/reference/rest/beta/forwardingRules) A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules can also reference target instances and Cloud VPN Classic gateways (targetVpnGateway). For more information, read Forwarding rule concepts and Using protocol forwarding. +// Represents a Forwarding Rule resource. +// +// Forwarding rule resources in Google Cloud can be either regional or global in +// scope: +// +// * [Global](https://cloud.google.com/compute/docs/reference/rest/beta/globalForwardingRules) +// * [Regional](https://cloud.google.com/compute/docs/reference/rest/beta/forwardingRules) +// +// A forwarding rule and its corresponding IP address represent the frontend +// configuration of a Google Cloud load balancer. +// Forwarding rules can also reference target instances and Cloud VPN Classic +// gateways (targetVpnGateway). +// +// For more information, read +// Forwarding rule concepts and +// Using protocol forwarding. message ForwardingRule { - // Specifies the canary migration state for the backend buckets attached to this forwarding rule. Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to backend buckets attached to this forwarding rule by percentage using externalManagedBackendBucketMigrationTestingPercentage. Rolling back a migration requires the states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + // Specifies the canary migration state for the backend buckets attached to + // this forwarding rule. Possible values are PREPARE, TEST_BY_PERCENTAGE, and + // TEST_ALL_TRAFFIC. + // + // To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be + // changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before + // the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate traffic to backend buckets + // attached to this forwarding rule by percentage using + // externalManagedBackendBucketMigrationTestingPercentage. + // + // Rolling back a migration requires the states to be set in reverse order. So + // changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to + // be set to TEST_ALL_TRAFFIC at the same time. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + // EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. enum ExternalManagedBackendBucketMigrationState { // A value indicating that the enum field is not set. UNDEFINED_EXTERNAL_MANAGED_BACKEND_BUCKET_MIGRATION_STATE = 0; @@ -9771,7 +20572,14 @@ message ForwardingRule { } - // The IP protocol to which this rule applies. For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The valid IP protocols are different for different load balancing products as described in [Load balancing features](https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). + // The IP protocol to which this rule applies. + // + // For protocol forwarding, valid + // options are TCP, UDP, ESP,AH, SCTP, ICMP andL3_DEFAULT. + // + // The valid IP protocols are different for different load balancing products + // as described in [Load balancing + // features](https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). enum IPProtocolEnum { // A value indicating that the enum field is not set. UNDEFINED_I_P_PROTOCOL_ENUM = 0; @@ -9792,7 +20600,8 @@ message ForwardingRule { } - // The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. + // The IP Version that will be used by this forwarding rule. Valid options + // are IPV4 or IPV6. enum IpVersion { // A value indicating that the enum field is not set. UNDEFINED_IP_VERSION = 0; @@ -9805,7 +20614,10 @@ message ForwardingRule { } - // Specifies the forwarding rule type. For more information about forwarding rules, refer to Forwarding rule concepts. + // Specifies the forwarding rule type. + // + // For more information about forwarding rules, refer to + // Forwarding rule concepts. enum LoadBalancingScheme { // A value indicating that the enum field is not set. UNDEFINED_LOAD_BALANCING_SCHEME = 0; @@ -9824,7 +20636,14 @@ message ForwardingRule { } - // This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM, STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address. + // This signifies the networking tier used for configuring + // this load balancer and can only take the following values:PREMIUM, STANDARD. + // + // For regional ForwardingRule, the valid values are PREMIUM andSTANDARD. For GlobalForwardingRule, the valid value isPREMIUM. + // + // If this field is not specified, it is assumed to be PREMIUM. + // If IPAddress is specified, this value must be equal to the + // networkTier of the Address. enum NetworkTier { // A value indicating that the enum field is not set. UNDEFINED_NETWORK_TIER = 0; @@ -9832,13 +20651,16 @@ message ForwardingRule { // Public internet quality with fixed bandwidth. FIXED_STANDARD = 310464328; - // High quality, Google-grade network tier, support for all networking products. + // High quality, Google-grade network tier, support for all networking + // products. PREMIUM = 399530551; - // Public internet quality, only limited support for other networking products. + // Public internet quality, only limited support for other networking + // products. STANDARD = 484642493; - // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured. + // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier + // is expired or not configured. STANDARD_OVERRIDES_FIXED_STANDARD = 465847234; } @@ -9851,10 +20673,12 @@ message ForwardingRule { // The connection has been accepted by the producer. ACCEPTED = 246714279; - // The connection has been closed by the producer and will not serve traffic going forward. + // The connection has been closed by the producer and will not serve traffic + // going forward. CLOSED = 380163436; - // The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic. + // The connection has been accepted by the producer, but the producer needs + // to take further action before the forwarding rule can serve traffic. NEEDS_ATTENTION = 344491452; // The connection is pending acceptance by the producer. @@ -9867,93 +20691,328 @@ message ForwardingRule { } - // IP address for which this forwarding rule accepts traffic. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the referenced target or backendService. While creating a forwarding rule, specifying an IPAddress is required under the following circumstances: - When the target is set to targetGrpcProxy and validateForProxyless is set to true, the IPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google APIs bundle, you must specify an IPAddress. Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. Use one of the following formats to specify an IP address while creating a forwarding rule: * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full resource URL, as in https://www.googleapis.com/compute/v1/projects/ project_id/regions/region/addresses/address-name * Partial URL or by name, as in: - projects/project_id/regions/region/addresses/address-name - regions/region/addresses/address-name - global/addresses/address-name - address-name The forwarding rule's target or backendService, and in most cases, also the loadBalancingScheme, determine the type of IP address that you can use. For detailed information, see [IP address specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). When reading an IPAddress, the API always returns the IP address number. + // IP address for which this forwarding rule accepts traffic. When a client + // sends traffic to this IP address, the forwarding rule directs the traffic + // to the referenced target or backendService. + // While creating a forwarding rule, specifying an IPAddress is + // required under the following circumstances: + // + // + // - When the target is set to targetGrpcProxy andvalidateForProxyless is set to true, theIPAddress should be set to 0.0.0.0. + // - When the target is a Private Service Connect Google APIs + // bundle, you must specify an IPAddress. + // + // + // Otherwise, you can optionally specify an IP address that references an + // existing static (reserved) IP address resource. When omitted, Google Cloud + // assigns an ephemeral IP address. + // + // Use one of the following formats to specify an IP address while creating a + // forwarding rule: + // + // * IP address number, as in `100.1.2.3` + // * IPv6 address range, as in `2600:1234::/96` + // * Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name + // * Partial URL or by name, as in: + // + // - projects/project_id/regions/region/addresses/address-name + // - regions/region/addresses/address-name + // - global/addresses/address-name + // - address-name + // + // + // + // The forwarding rule's target or backendService, + // and in most cases, also the loadBalancingScheme, determine the + // type of IP address that you can use. For detailed information, see + // [IP address + // specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). + // + // When reading an IPAddress, the API always returns the IP + // address number. optional string I_p_address = 42976943; - // The IP protocol to which this rule applies. For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The valid IP protocols are different for different load balancing products as described in [Load balancing features](https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). + // The IP protocol to which this rule applies. + // + // For protocol forwarding, valid + // options are TCP, UDP, ESP,AH, SCTP, ICMP andL3_DEFAULT. + // + // The valid IP protocols are different for different load balancing products + // as described in [Load balancing + // features](https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). // Check the IPProtocolEnum enum for the list of possible values. optional string I_p_protocol = 488094525; - // The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The allPorts field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal and external protocol forwarding. - Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded to the backends configured with this forwarding rule. The L3_DEFAULT protocol requires allPorts be set to true. + // The ports, portRange, and allPorts + // fields are mutually exclusive. Only packets addressed to ports in the + // specified range will be forwarded to the backends configured with this + // forwarding rule. + // + // The allPorts field has the following limitations: + // + // - It requires that the forwarding rule IPProtocol be TCP, + // UDP, SCTP, or L3_DEFAULT. + // - It's applicable only to the following products: internal passthrough + // Network Load Balancers, backend service-based external passthrough Network + // Load Balancers, and internal and external protocol forwarding. + // - Set this field to true to allow packets addressed to any port or + // packets lacking destination port information (for example, UDP fragments + // after the first fragment) to be forwarded to the backends configured with + // this forwarding rule. The L3_DEFAULT protocol requiresallPorts be set to true. optional bool all_ports = 445175796; - // If set to true, clients can access the internal passthrough Network Load Balancers, the regional internal Application Load Balancer, and the regional internal proxy Network Load Balancer from all regions. If false, only allows access from the local region the load balancer is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed after the forwarding rule is created. + // If set to true, clients can access the internal passthrough Network Load + // Balancers, the regional internal Application Load Balancer, and the + // regional internal proxy Network Load Balancer from all regions. + // If false, only allows access from the local region the load balancer is + // located at. Note that for INTERNAL_MANAGED forwarding rules, this field + // cannot be changed after the forwarding rule is created. optional bool allow_global_access = 499409674; - // This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region. + // This is used in PSC consumer ForwardingRule to control whether the PSC + // endpoint can be accessed from another region. optional bool allow_psc_global_access = 263471819; - // This is used in PSC consumer ForwardingRule to control whether the producer is allowed to inject packets into the consumer's network. If set to true, the target service attachment must have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC forwarding rules should not use this field. This field was never released to any customers and is deprecated and will be removed in the future. + // This is used in PSC consumer ForwardingRule to control whether the producer + // is allowed to inject packets into the consumer's network. If set to true, + // the target service attachment must have tunneling enabled and + // TunnelingConfig.RoutingMode set to PACKET_INJECTION + // Non-PSC forwarding rules should not use this field. + // + // This field was never released to any customers and is deprecated and + // will be removed in the future. optional bool allow_psc_packet_injection = 272272565; - // Identifies the backend service to which the forwarding rule sends traffic. Required for internal and external passthrough Network Load Balancers; must be omitted for all other load balancer types. + // Identifies the backend service to which the forwarding rule sends traffic. + // Required for internal and external passthrough Network Load Balancers; + // must be omitted for all other load balancer types. optional string backend_service = 306946058; - // [Output Only] The URL for the corresponding base forwarding rule. By base forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port settings with the current forwarding rule, but without sourceIPRanges specified. Always empty if the current forwarding rule does not have sourceIPRanges specified. + // [Output Only] The URL for the corresponding base forwarding rule. By base + // forwarding rule, we mean the forwarding rule that has the same IP address, + // protocol, and port settings with the current forwarding rule, but without + // sourceIPRanges specified. + // Always empty if the current forwarding rule does not have sourceIPRanges + // specified. optional string base_forwarding_rule = 524873104; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Specifies the canary migration state for the backend buckets attached to this forwarding rule. Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to backend buckets attached to this forwarding rule by percentage using externalManagedBackendBucketMigrationTestingPercentage. Rolling back a migration requires the states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + // Specifies the canary migration state for the backend buckets attached to + // this forwarding rule. Possible values are PREPARE, TEST_BY_PERCENTAGE, and + // TEST_ALL_TRAFFIC. + // + // To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be + // changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before + // the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate traffic to backend buckets + // attached to this forwarding rule by percentage using + // externalManagedBackendBucketMigrationTestingPercentage. + // + // Rolling back a migration requires the states to be set in reverse order. So + // changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to + // be set to TEST_ALL_TRAFFIC at the same time. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + // EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. // Check the ExternalManagedBackendBucketMigrationState enum for the list of possible values. optional string external_managed_backend_bucket_migration_state = 107811370; - // Determines the fraction of requests to backend buckets that should be processed by the global external Application Load Balancer. The value of this field must be in the range [0, 100]. This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when using the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE. + // Determines the fraction of requests to backend buckets that should be + // processed by the global external Application Load Balancer. + // + // The value of this field must be in the range [0, 100]. + // + // This value can only be set if the loadBalancingScheme in the BackendService + // is set to EXTERNAL (when using the classic Application Load Balancer) and + // the migration state is TEST_BY_PERCENTAGE. optional float external_managed_backend_bucket_migration_testing_percentage = 105676592; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request. To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a ForwardingRule. Include the fingerprint in patch request to + // ensure that you do not overwrite changes that were applied from another + // concurrent request. + // + // To see the latest fingerprint, make a get() request to + // retrieve a ForwardingRule. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // Resource reference of a PublicDelegatedPrefix. The PDP must be a sub-PDP in EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. Use one of the following formats to specify a sub-PDP when creating an IPv6 NetLB forwarding rule using BYOIP: Full resource URL, as in https://www.googleapis.com/compute/v1/projects/project_id/regions/region /publicDelegatedPrefixes/sub-pdp-name Partial URL, as in: - projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name - regions/region/publicDelegatedPrefixes/sub-pdp-name + // Resource reference of a PublicDelegatedPrefix. The PDP must + // be a sub-PDP in EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. + // + // Use one of the following formats to specify a sub-PDP when creating an IPv6 + // NetLB forwarding rule using BYOIP: + // Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name + // Partial URL, as in: + // + // - projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name + // - regions/region/publicDelegatedPrefixes/sub-pdp-name optional string ip_collection = 176818358; - // The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. + // The IP Version that will be used by this forwarding rule. Valid options + // are IPV4 or IPV6. // Check the IpVersion enum for the list of possible values. optional string ip_version = 294959552; - // Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL. + // Indicates whether or not this load balancer can be used as a collector for + // packet mirroring. To prevent mirroring loops, instances behind this + // load balancer will not have their traffic mirrored even if aPacketMirroring rule applies to them. + // This can only be set to true for load balancers that have theirloadBalancingScheme set to INTERNAL. optional bool is_mirroring_collector = 119255164; - // [Output Only] Type of the resource. Always compute#forwardingRule for forwarding rule resources. + // [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. optional string kind = 3292052; - // A fingerprint for the labels being applied to this resource, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + // A fingerprint for the labels being applied to this resource, which is + // essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a ForwardingRule. optional string label_fingerprint = 178124825; - // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. + // Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. + // Label values may be empty. map labels = 500195327; - // Specifies the forwarding rule type. For more information about forwarding rules, refer to Forwarding rule concepts. + // Specifies the forwarding rule type. + // + // For more information about forwarding rules, refer to + // Forwarding rule concepts. // Check the LoadBalancingScheme enum for the list of possible values. optional string load_balancing_scheme = 363890244; - // Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. + // Opaque filter criteria used by load balancer to restrict routing + // configuration to a limited set of xDS + // compliant clients. In their xDS requests to load balancer, xDS clients + // present node + // metadata. When there is a match, the relevant configuration + // is made available to those proxies. Otherwise, all the resources (e.g.TargetHttpProxy, UrlMap) + // referenced by the ForwardingRule are not visible to + // those proxies. + // + // For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one of thefilterLabels must match the corresponding label provided in + // the metadata. If its filterMatchCriteria is set to + // MATCH_ALL, then all of its filterLabels must match with + // corresponding labels provided in the metadata. If multiplemetadataFilters are specified, all of them need to be satisfied + // in order to be considered a match. + // + // metadataFilters specified here will be applifed before + // those specified in the UrlMap that thisForwardingRule references. + // + // metadataFilters only applies to Loadbalancers that have + // their loadBalancingScheme set toINTERNAL_SELF_MANAGED. repeated MetadataFilter metadata_filters = 464725739; - // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For Private Service Connect forwarding rules that forward traffic to Google APIs, the forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and must start with a letter. + // Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. + // + // For Private Service Connect forwarding rules that forward traffic to Google + // APIs, the forwarding rule name must be a 1-20 characters string with + // lowercase letters and numbers and must start with a letter. optional string name = 3373707; - // This field is not used for global external load balancing. For internal passthrough Network Load Balancers, this field identifies the network that the load balanced IP should belong to for this forwarding rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used. For Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided. + // This field is not used for global external load balancing. + // + // For internal passthrough Network Load Balancers, this field identifies the + // network that the load balanced IP should belong to for this forwarding + // rule. + // If the subnetwork is specified, the network of the subnetwork will be used. + // If neither subnetwork nor this field is specified, the default network will + // be used. + // + // For Private Service Connect forwarding rules that forward traffic to Google + // APIs, a network must be provided. optional string network = 232872494; - // This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM, STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address. + // This signifies the networking tier used for configuring + // this load balancer and can only take the following values:PREMIUM, STANDARD. + // + // For regional ForwardingRule, the valid values are PREMIUM andSTANDARD. For GlobalForwardingRule, the valid value isPREMIUM. + // + // If this field is not specified, it is assumed to be PREMIUM. + // If IPAddress is specified, this value must be equal to the + // networkTier of the Address. // Check the NetworkTier enum for the list of possible values. optional string network_tier = 517397843; - // This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not mutable. + // This is used in PSC consumer ForwardingRule to control whether it should + // try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use + // this field. Once set, this field is not mutable. optional bool no_automate_dns_zone = 64546991; - // The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The portRange field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: external passthrough Network Load Balancers, internal and external proxy Network Load Balancers, internal and external Application Load Balancers, external protocol forwarding, and Classic VPN. - Some products have restrictions on what ports can be used. See port specifications for details. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. @pattern: \\d+(?:-\\d+)? + // The ports, portRange, and allPorts + // fields are mutually exclusive. Only packets addressed to ports in the + // specified range will be forwarded to the backends configured with this + // forwarding rule. + // + // The portRange field has the following limitations: + // + // - It requires that the forwarding rule IPProtocol be TCP, + // UDP, or SCTP, and + // - It's applicable only to the following products: external passthrough + // Network Load Balancers, internal and external proxy Network Load Balancers, + // internal and external Application Load Balancers, external protocol + // forwarding, and Classic VPN. + // - Some products have restrictions on what ports can be used. See + // port specifications for details. + // + // + // + // For external forwarding rules, two or more forwarding rules cannot use the + // same [IPAddress, IPProtocol] pair, and cannot have overlappingportRanges. + // + // For internal forwarding rules within the same VPC network, two or more + // forwarding rules cannot use the same [IPAddress, IPProtocol] + // pair, and cannot have overlapping portRanges. + // + // @pattern: \\d+(?:-\\d+)? optional string port_range = 217518079; - // The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The ports field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal protocol forwarding. - You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair if they share at least one port number. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair if they share at least one port number. @pattern: \\d+(?:-\\d+)? + // The ports, portRange, and allPorts + // fields are mutually exclusive. Only packets addressed to ports in the + // specified range will be forwarded to the backends configured with this + // forwarding rule. + // + // The ports field has the following limitations: + // + // - It requires that the forwarding rule IPProtocol be TCP, + // UDP, or SCTP, and + // - It's applicable only to the following products: internal passthrough + // Network Load Balancers, backend service-based external passthrough Network + // Load Balancers, and internal protocol forwarding. + // - You can specify a list of up to five ports by number, separated by + // commas. The ports can be contiguous or discontiguous. + // + // + // + // For external forwarding rules, two or more forwarding rules cannot use the + // same [IPAddress, IPProtocol] pair if they share at least one + // port number. + // + // For internal forwarding rules within the same VPC network, two or more + // forwarding rules cannot use the same [IPAddress, IPProtocol] + // pair if they share at least one port number. + // + // @pattern: \\d+(?:-\\d+)? repeated string ports = 106854418; // [Output Only] The PSC connection id of the PSC forwarding rule. @@ -9963,7 +21022,10 @@ message ForwardingRule { // Check the PscConnectionStatus enum for the list of possible values. optional string psc_connection_status = 184149172; - // [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the regional forwarding rule resides. + // This field is not applicable to global forwarding rules. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. @@ -9972,22 +21034,64 @@ message ForwardingRule { // [Output Only] Server-defined URL for this resource with the resource id. optional string self_link_with_id = 44520962; - // Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource. + // Service Directory resources to register this forwarding rule with. + // Currently, only supports a single Service Directory resource. repeated ForwardingRuleServiceDirectoryRegistration service_directory_registrations = 223549694; - // An optional prefix to the service name for this forwarding rule. If specified, the prefix is the first label of the fully qualified service name. The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is only used for internal load balancing. + // An optional prefix to the service name for this forwarding rule. + // If specified, the prefix is the first label of the fully qualified service + // name. + // + // The label must be 1-63 characters long, and comply withRFC1035. + // Specifically, the label must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. + // + // This field is only used for internal load balancing. optional string service_label = 417008874; - // [Output Only] The internal fully qualified service name for this forwarding rule. This field is only used for internal load balancing. + // [Output Only] + // The internal fully qualified service name for this forwarding rule. + // + // This field is only used for internal load balancing. optional string service_name = 359880149; - // If not empty, this forwarding rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a forwarding rule can only have up to 64 source IP ranges, and this field can only be used with a regional forwarding rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). + // If not empty, this forwarding rule will only forward the traffic when the + // source IP address matches one of the IP addresses or CIDR ranges set here. + // Note that a forwarding rule can only have up to 64 source IP ranges, and + // this field can only be used with a regional forwarding rule whose scheme isEXTERNAL. + // Each source_ip_range entry should be either an IP address (for + // example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). repeated string source_ip_ranges = 111563210; - // This field identifies the subnetwork that the load balanced IP should belong to for this forwarding rule, used with internal load balancers and external passthrough Network Load Balancers with IPv6. If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6. + // This field identifies the subnetwork that the load balanced IP should + // belong to for this forwarding rule, used with internal load balancers and + // external passthrough Network Load Balancers with IPv6. + // + // If the network specified is in auto subnet mode, this field is optional. + // However, a subnetwork must be specified if the network is in custom subnet + // mode or when creating external forwarding rule with IPv6. optional string subnetwork = 307827694; - // The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. The target is not mutable once set as a service attachment. + // The URL of the target resource to receive the matched traffic. For + // regional forwarding rules, this target must be in the same region as the + // forwarding rule. For global forwarding rules, this target must be a global + // load balancing resource. + // + // The forwarded traffic must be of a type appropriate to the target object. + // + // + // - For load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). + // - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: + // + // + // - vpc-sc - APIs that support VPC Service Controls. + // - all-apis - All supported Google APIs. + // + // + // - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. The target is not mutable once set as a service attachment. optional string target = 192835985; } @@ -10000,10 +21104,14 @@ message ForwardingRuleAggregatedList { // A list of ForwardingRulesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList for lists of forwarding rules. + // [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for lists of forwarding rules. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -10028,7 +21136,11 @@ message ForwardingRuleList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -10045,7 +21157,9 @@ message ForwardingRuleReference { } -// Describes the auto-registration of the forwarding rule to Service Directory. The region and project of the Service Directory resource generated from this registration will be the same as this forwarding rule. +// Describes the auto-registration of the forwarding rule to Service Directory. +// The region and project of the Service Directory resource generated from +// this registration will be the same as this forwarding rule. message ForwardingRuleServiceDirectoryRegistration { // Service Directory namespace to register the forwarding rule under. optional string namespace = 178476379; @@ -10053,7 +21167,10 @@ message ForwardingRuleServiceDirectoryRegistration { // Service Directory service to register the forwarding rule under. optional string service = 373540533; - // [Optional] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs forwarding rules on the same network should use the same Service Directory region. + // [Optional] Service Directory region to register this global forwarding + // rule under. Default to "us-central1". Only used for PSC for Google APIs. + // All PSC for Google APIs forwarding rules on the same network should use + // the same Service Directory region. optional string service_directory_region = 74030416; } @@ -10063,7 +21180,8 @@ message ForwardingRulesScopedList { // A list of forwarding rules contained in this scope. repeated ForwardingRule forwarding_rules = 315821365; - // Informational warning which replaces the list of forwarding rules when the list is empty. + // Informational warning which replaces the list of forwarding rules when + // the list is empty. optional Warning warning = 50704284; } @@ -10080,7 +21198,8 @@ message FutureReservation { DEPLOYMENT_TYPE_UNSPECIFIED = 234847180; - // The reserved capacity is made up of highly flexible, logical reservation blocks. + // The reserved capacity is made up of highly flexible, logical reservation + // blocks. FLEXIBLE = 379880395; } @@ -10105,26 +21224,38 @@ message FutureReservation { // A value indicating that the enum field is not set. UNDEFINED_PROTECTION_TIER = 0; - // CAPACITY_OPTIMIZED capacity leverages redundancies (e.g. power, cooling) at the data center during normal operating conditions. In the event of infrastructure failures at data center (e.g. power and/or cooling failures), this workload may be disrupted. As a consequence, it has a weaker availability SLO than STANDARD. + // CAPACITY_OPTIMIZED capacity leverages redundancies (e.g. power, cooling) + // at the data center during normal operating conditions. In the event of + // infrastructure failures at data center (e.g. power and/or cooling + // failures), this workload may be disrupted. As a consequence, it has a + // weaker availability SLO than STANDARD. CAPACITY_OPTIMIZED = 17430466; // Unspecified protection tier. PROTECTION_TIER_UNSPECIFIED = 262261984; - // STANDARD protection for workload that should be protected by redundancies (e.g. power, cooling) at the data center level. In the event of infrastructure failures at data center (e.g. power and/or cooling failures), this workload is expected to continue as normal using the redundancies. + // STANDARD protection for workload that should be protected by redundancies + // (e.g. power, cooling) at the data center level. In the event of + // infrastructure failures at data center (e.g. power and/or cooling + // failures), this workload is expected to continue as normal using the + // redundancies. STANDARD = 484642493; } - // The reservation mode which determines reservation-termination behavior and expected pricing. + // The reservation mode which determines reservation-termination behavior and + // expected pricing. enum ReservationMode { // A value indicating that the enum field is not set. UNDEFINED_RESERVATION_MODE = 0; - // The delivered reservations will delivered at specified start time and terminated at specified end time along with terminating the VMs running on it. + // The delivered reservations will delivered at specified start time and + // terminated at specified end time along with terminating the VMs running + // on it. CALENDAR = 67431230; - // The delivered reservations do not terminate VMs at the end of reservations. This is default mode. + // The delivered reservations do not terminate VMs at the end of + // reservations. This is default mode. DEFAULT = 115302945; RESERVATION_MODE_UNSPECIFIED = 233810606; @@ -10142,7 +21273,8 @@ message FutureReservation { // Unknown maintenance type. GROUP_MAINTENANCE_TYPE_UNSPECIFIED = 447183678; - // Maintenance is not synchronized for this reservation. Instead, each instance has its own maintenance window. + // Maintenance is not synchronized for this reservation. Instead, each + // instance has its own maintenance window. INDEPENDENT = 127011674; } @@ -10150,41 +21282,68 @@ message FutureReservation { // Aggregate reservation details for the future reservation. optional AllocationAggregateReservation aggregate_reservation = 291567948; - // Future timestamp when the FR auto-created reservations will be deleted by Compute Engine. Format of this field must be a valid href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. + // Future timestamp when the FR auto-created reservations will be deleted by + // Compute Engine. Format of this field must be a valid + // href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. optional string auto_created_reservations_delete_time = 242855120; - // Specifies the duration of auto-created reservations. It represents relative time to future reservation start_time when auto-created reservations will be automatically deleted by Compute Engine. Duration time unit is represented as a count of seconds and fractions of seconds at nanosecond resolution. + // Specifies the duration of auto-created reservations. + // It represents relative time to future reservation start_time when + // auto-created reservations will be automatically deleted by Compute + // Engine. Duration time unit is represented as a count of seconds + // and fractions of seconds at nanosecond resolution. optional Duration auto_created_reservations_duration = 496244741; - // Setting for enabling or disabling automatic deletion for auto-created reservation. If set to true, auto-created reservations will be deleted at Future Reservation's end time (default) or at user's defined timestamp if any of the [auto_created_reservations_delete_time, auto_created_reservations_duration] values is specified. For keeping auto-created reservation indefinitely, this value should be set to false. + // Setting for enabling or disabling automatic deletion for auto-created + // reservation. If set to true, auto-created reservations will be + // deleted at Future Reservation's end time (default) or at user's defined + // timestamp if any of the + // [auto_created_reservations_delete_time, auto_created_reservations_duration] + // values is specified. + // For keeping auto-created reservation indefinitely, this value should be set + // to false. optional bool auto_delete_auto_created_reservations = 491352490; - // If not present, then FR will not deliver a new commitment or update an existing commitment. + // If not present, then FR will not deliver a new commitment or update an + // existing commitment. optional FutureReservationCommitmentInfo commitment_info = 164362136; - // [Output Only] The creation timestamp for this future reservation in RFC3339 text format. + // [Output Only] The creation timestamp for this future reservation inRFC3339 + // text format. optional string creation_timestamp = 30525366; // Type of the deployment requested as part of future reservation. // Check the DeploymentType enum for the list of possible values. optional string deployment_type = 396722292; - // An optional description of this resource. Provide this property when you create the future reservation. + // An optional description of this resource. Provide this property when you + // create the future reservation. optional string description = 422937596; // Indicates if this group of VMs have emergent maintenance enabled. optional bool enable_emergent_maintenance = 353759497; - // [Output Only] A unique identifier for this future reservation. The server defines this identifier. + // [Output Only] A unique identifier for this future reservation. The server + // defines this identifier. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#futureReservation for future reservations. + // [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. optional string kind = 3292052; - // The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // The name of the resource, provided by the client when initially creating + // the resource. The resource name must be 1-63 characters long, and comply + // withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; - // Name prefix for the reservations to be created at the time of delivery. The name prefix must comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created reservations name format will be -date-####. + // Name prefix for the reservations to be created at the time of + // delivery. The name prefix must comply with RFC1035. + // Maximum allowed length for name prefix is 20. Automatically created + // reservations name format will be -date-####. optional string name_prefix = 236409542; // Planning state before being submitted for evaluation @@ -10195,11 +21354,16 @@ message FutureReservation { // Check the ProtectionTier enum for the list of possible values. optional string protection_tier = 503959432; - // The reservation mode which determines reservation-termination behavior and expected pricing. + // The reservation mode which determines reservation-termination behavior and + // expected pricing. // Check the ReservationMode enum for the list of possible values. optional string reservation_mode = 277294646; - // Name of reservations where the capacity is provisioned at the time of delivery of future reservations. If the reservation with the given name does not exist already, it is created automatically at the time of Approval with INACTIVE state till specified start-time. Either provide the reservation_name or a name_prefix. + // Name of reservations where the capacity is provisioned at the time of + // delivery of future reservations. If the reservation with the given name + // does not exist already, it is created automatically at the time of Approval + // with INACTIVE state till specified start-time. Either provide the + // reservation_name or a name_prefix. optional string reservation_name = 277311262; // Maintenance information for this reservation @@ -10215,10 +21379,13 @@ message FutureReservation { // List of Projects/Folders to share with. optional ShareSettings share_settings = 266668163; - // Indicates whether the auto-created reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from the delivered reservation. + // Indicates whether the auto-created reservation can be consumed by VMs with + // affinity for "any" reservation. If the field is set, then only VMs that + // target the reservation by name can consume from the delivered reservation. optional bool specific_reservation_required = 226550687; - // Future Reservation configuration to indicate instance properties and total count. + // Future Reservation configuration to indicate instance properties and + // total count. optional FutureReservationSpecificSKUProperties specific_sku_properties = 108887106; // [Output only] Status of the Future Reservation @@ -10234,7 +21401,9 @@ message FutureReservation { // message FutureReservationCommitmentInfo { - // Indicates if a Commitment needs to be created as part of FR delivery. If this field is not present, then no commitment needs to be created. + // Indicates if a Commitment needs to be created as part of FR delivery. If + // this field is not present, then no + // commitment needs to be created. enum CommitmentPlan { // A value indicating that the enum field is not set. UNDEFINED_COMMITMENT_PLAN = 0; @@ -10247,12 +21416,16 @@ message FutureReservationCommitmentInfo { } - // Only applicable if FR is delivering to the same reservation. If set, all parent commitments will be extended to match the end date of the plan for this commitment. + // Only applicable if FR is delivering to the same reservation. If set, all + // parent commitments will be extended to match the end date of the plan for + // this commitment. enum PreviousCommitmentTerms { // A value indicating that the enum field is not set. UNDEFINED_PREVIOUS_COMMITMENT_TERMS = 0; - // All associated parent Committed Used Discount(s) end-date/term will be extended to the end-time of this future reservation. Default is to extend previous commitment(s) time to the end_time of the reservation. + // All associated parent Committed Used Discount(s) end-date/term will be + // extended to the end-time of this future reservation. Default is to + // extend previous commitment(s) time to the end_time of the reservation. EXTEND = 448639770; // No changes to associated parents Committed Used Discount(s) terms. @@ -10263,11 +21436,15 @@ message FutureReservationCommitmentInfo { // name of the commitment where capacity is being delivered to. optional string commitment_name = 164498805; - // Indicates if a Commitment needs to be created as part of FR delivery. If this field is not present, then no commitment needs to be created. + // Indicates if a Commitment needs to be created as part of FR delivery. If + // this field is not present, then no + // commitment needs to be created. // Check the CommitmentPlan enum for the list of possible values. optional string commitment_plan = 164568595; - // Only applicable if FR is delivering to the same reservation. If set, all parent commitments will be extended to match the end date of the plan for this commitment. + // Only applicable if FR is delivering to the same reservation. If set, all + // parent commitments will be extended to match the end date of the plan for + // this commitment. // Check the PreviousCommitmentTerms enum for the list of possible values. optional string previous_commitment_terms = 447490085; @@ -10278,10 +21455,12 @@ message FutureReservationSpecificSKUProperties { // Properties of the SKU instances being reserved. optional AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165; - // The instance template that will be used to populate the ReservedInstanceProperties of the future reservation + // The instance template that will be used to populate the + // ReservedInstanceProperties of the future reservation optional string source_instance_template = 332423616; - // Total number of instances for which capacity assurance is requested at a future time period. + // Total number of instances for which capacity assurance is requested at a + // future time period. optional int64 total_count = 129109076; } @@ -10293,13 +21472,16 @@ message FutureReservationStatus { // A value indicating that the enum field is not set. UNDEFINED_AMENDMENT_STATUS = 0; - // The requested amendment to the Future Resevation has been approved and applied by GCP. + // The requested amendment to the Future Resevation has been approved and + // applied by GCP. AMENDMENT_APPROVED = 150573001; - // The requested amendment to the Future Reservation has been declined by GCP and the original state was restored. + // The requested amendment to the Future Reservation has been declined by + // GCP and the original state was restored. AMENDMENT_DECLINED = 70395200; - // The requested amendment to the Future Reservation is currently being reviewd by GCP. + // The requested amendment to the Future Reservation is currently being + // reviewd by GCP. AMENDMENT_IN_REVIEW = 25830624; AMENDMENT_STATUS_UNSPECIFIED = 412250332; @@ -10323,19 +21505,23 @@ message FutureReservationStatus { // Future reservation is rejected by GCP. DECLINED = 277081134; - // Related status for PlanningStatus.Draft. Transitions to PENDING_APPROVAL upon user submitting FR. + // Related status for PlanningStatus.Draft. Transitions to + // PENDING_APPROVAL upon user submitting FR. DRAFTING = 477863585; // Future reservation failed. No additional reservations were provided. FAILED = 455706685; - // Future reservation is partially fulfilled. Additional reservations were provided but did not reach total_count reserved instance slots. + // Future reservation is partially fulfilled. Additional reservations were + // provided but did not reach total_count reserved instance slots. FAILED_PARTIALLY_FULFILLED = 14455212; // Future reservation is fulfilled completely. FULFILLED = 409958655; - // An Amendment to the Future Reservation has been requested. If the Amendment is declined, the Future Reservation will be restored to the last known good state. + // An Amendment to the Future Reservation has been requested. If the + // Amendment is declined, the Future Reservation will be restored to the + // last known good state. PENDING_AMENDMENT_APPROVAL = 510150429; // Future reservation is pending approval by GCP. @@ -10343,10 +21529,14 @@ message FutureReservationStatus { PROCUREMENT_STATUS_UNSPECIFIED = 45807705; - // Future reservation is being procured by GCP. Beyond this point, Future reservation is locked and no further modifications are allowed. + // Future reservation is being procured by GCP. Beyond this point, Future + // reservation is locked and no further modifications are allowed. PROCURING = 95959663; - // Future reservation capacity is being provisioned. This state will be entered after start_time, while reservations are being created to provide total_count reserved instance slots. This state will not persist past start_time + 24h. + // Future reservation capacity is being provisioned. This state will be + // entered after start_time, while reservations are being created to + // provide total_count reserved instance slots. This state will not + // persist past start_time + 24h. PROVISIONING = 290896621; } @@ -10355,19 +21545,31 @@ message FutureReservationStatus { // Check the AmendmentStatus enum for the list of possible values. optional string amendment_status = 250270052; - // Fully qualified urls of the automatically created reservations at start_time. + // Fully qualified urls of the automatically created reservations at + // start_time. repeated string auto_created_reservations = 140217006; - // [Output Only] Represents the existing matching usage for the future reservation. + // [Output Only] Represents the existing matching usage for the future + // reservation. optional FutureReservationStatusExistingMatchingUsageInfo existing_matching_usage_info = 509920602; - // This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state. This count also includes capacity delivered as part of existing matching reservations. + // This count indicates the fulfilled capacity so far. This is set during + // "PROVISIONING" state. This count also includes capacity delivered as part + // of existing matching reservations. optional int64 fulfilled_count = 319392239; - // [Output Only] This field represents the future reservation before an amendment was requested. If the amendment is declined, the Future Reservation will be reverted to the last known good state. The last known good state is not set when updating a future reservation whose Procurement Status is DRAFTING. + // [Output Only] This field represents the future reservation before an + // amendment was requested. If the amendment is declined, the Future + // Reservation will be reverted to the last known good state. The last known + // good state is not set when updating a future reservation whose + // Procurement Status is DRAFTING. optional FutureReservationStatusLastKnownGoodState last_known_good_state = 192819092; - // Time when Future Reservation would become LOCKED, after which no modifications to Future Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING state at this time. + // Time when Future Reservation would become LOCKED, after which no + // modifications to Future Reservation will be allowed. Applicable only + // after the Future Reservation is in the APPROVED state. The lock_time is + // an RFC3339 string. The procurement_status will transition to PROCURING + // state at this time. optional string lock_time = 143772001; // Current state of this Future Reservation @@ -10378,9 +21580,11 @@ message FutureReservationStatus { } -// [Output Only] Represents the existing matching usage for the future reservation. +// [Output Only] Represents the existing matching usage for the future +// reservation. message FutureReservationStatusExistingMatchingUsageInfo { - // Count to represent min(FR total_count, matching_reserved_capacity+matching_unreserved_instances) + // Count to represent min(FR total_count, + // matching_reserved_capacity+matching_unreserved_instances) optional int64 count = 94851343; // Timestamp when the matching usage was calculated @@ -10388,9 +21592,11 @@ message FutureReservationStatusExistingMatchingUsageInfo { } -// The state that the future reservation will be reverted to should the amendment be declined. +// The state that the future reservation will be reverted to should the +// amendment be declined. message FutureReservationStatusLastKnownGoodState { - // [Output Only] The status of the last known good state for the Future Reservation. + // [Output Only] The status of the last known good state for the Future + // Reservation. enum ProcurementStatus { // A value indicating that the enum field is not set. UNDEFINED_PROCUREMENT_STATUS = 0; @@ -10407,19 +21613,23 @@ message FutureReservationStatusLastKnownGoodState { // Future reservation is rejected by GCP. DECLINED = 277081134; - // Related status for PlanningStatus.Draft. Transitions to PENDING_APPROVAL upon user submitting FR. + // Related status for PlanningStatus.Draft. Transitions to + // PENDING_APPROVAL upon user submitting FR. DRAFTING = 477863585; // Future reservation failed. No additional reservations were provided. FAILED = 455706685; - // Future reservation is partially fulfilled. Additional reservations were provided but did not reach total_count reserved instance slots. + // Future reservation is partially fulfilled. Additional reservations were + // provided but did not reach total_count reserved instance slots. FAILED_PARTIALLY_FULFILLED = 14455212; // Future reservation is fulfilled completely. FULFILLED = 409958655; - // An Amendment to the Future Reservation has been requested. If the Amendment is declined, the Future Reservation will be restored to the last known good state. + // An Amendment to the Future Reservation has been requested. If the + // Amendment is declined, the Future Reservation will be restored to the + // last known good state. PENDING_AMENDMENT_APPROVAL = 510150429; // Future reservation is pending approval by GCP. @@ -10427,29 +21637,38 @@ message FutureReservationStatusLastKnownGoodState { PROCUREMENT_STATUS_UNSPECIFIED = 45807705; - // Future reservation is being procured by GCP. Beyond this point, Future reservation is locked and no further modifications are allowed. + // Future reservation is being procured by GCP. Beyond this point, Future + // reservation is locked and no further modifications are allowed. PROCURING = 95959663; - // Future reservation capacity is being provisioned. This state will be entered after start_time, while reservations are being created to provide total_count reserved instance slots. This state will not persist past start_time + 24h. + // Future reservation capacity is being provisioned. This state will be + // entered after start_time, while reservations are being created to + // provide total_count reserved instance slots. This state will not + // persist past start_time + 24h. PROVISIONING = 290896621; } - // [Output Only] The description of the FutureReservation before an amendment was requested. + // [Output Only] The description of the FutureReservation before an + // amendment was requested. optional string description = 422937596; - // [Output Only] Represents the matching usage for the future reservation before an amendment was requested. + // [Output Only] Represents the matching usage for the future + // reservation before an amendment was requested. optional FutureReservationStatusExistingMatchingUsageInfo existing_matching_usage_info = 509920602; optional FutureReservationStatusLastKnownGoodStateFutureReservationSpecs future_reservation_specs = 82528873; - // [Output Only] The lock time of the FutureReservation before an amendment was requested. + // [Output Only] The lock time of the FutureReservation before an + // amendment was requested. optional string lock_time = 143772001; - // [Output Only] The name prefix of the Future Reservation before an amendment was requested. + // [Output Only] The name prefix of the Future Reservation before an + // amendment was requested. optional string name_prefix = 236409542; - // [Output Only] The status of the last known good state for the Future Reservation. + // [Output Only] The status of the last known good state for the Future + // Reservation. // Check the ProcurementStatus enum for the list of possible values. optional string procurement_status = 224718945; @@ -10460,7 +21679,8 @@ message FutureReservationStatusLastKnownGoodStateFutureReservationSpecs { // [Output Only] The previous share settings of the Future Reservation. optional ShareSettings share_settings = 266668163; - // [Output Only] The previous instance related properties of the Future Reservation. + // [Output Only] The previous instance related properties of the + // Future Reservation. optional FutureReservationSpecificSKUProperties specific_sku_properties = 108887106; // [Output Only] The previous time window of the Future Reservation. @@ -10470,7 +21690,8 @@ message FutureReservationStatusLastKnownGoodStateFutureReservationSpecs { // Properties to be set for the Future Reservation. message FutureReservationStatusSpecificSKUProperties { - // ID of the instance template used to populate the Future Reservation properties. + // ID of the instance template used to populate the Future Reservation + // properties. optional string source_instance_template_id = 111196154; } @@ -10481,7 +21702,8 @@ message FutureReservationTimeWindow { optional string end_time = 114938801; - // Start time of the Future Reservation. The start_time is an RFC3339 string. + // Start time of the Future Reservation. The start_time is an RFC3339 + // string. optional string start_time = 37467274; } @@ -10496,10 +21718,15 @@ message FutureReservationsAggregatedListResponse { // A list of Future reservation resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#futureReservationsAggregatedListResponse for future resevation aggregated list response. + // [Output Only] Type of resource. Alwayscompute#futureReservationsAggregatedListResponse for future + // resevation aggregated list response. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -10517,16 +21744,22 @@ message FutureReservationsAggregatedListResponse { message FutureReservationsListResponse { optional string etag = 3123477; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional string id = 3355; // [Output Only] A list of future reservation resources. repeated FutureReservation items = 100526016; - // [Output Only] Type of resource.Always compute#FutureReservationsListResponse for lists of reservations + // [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of + // reservations optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -10545,12 +21778,14 @@ message FutureReservationsScopedList { // A list of future reservations contained in this scope. repeated FutureReservation future_reservations = 131778339; - // Informational warning which replaces the list of future reservations when the list is empty. + // Informational warning which replaces the list of future reservations when + // the list is empty. optional Warning warning = 50704284; } -// Recommendation for single resources specification, to be created in the future. +// Recommendation for single resources specification, to be created in the +// future. message FutureResourcesRecommendation { // Type of recommendation. Currently only FUTURE_RESERVATION is supported. enum RecommendationType { @@ -10567,10 +21802,15 @@ message FutureResourcesRecommendation { optional string end_time = 114938801; - // The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details. + // The advised location for resource usage. When a zone, in format + // 'zones/'. + // If not set, it means that no location is recommended - see + // other_locations for details. optional string location = 290430901; - // List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status. + // List of locations in the request scope that were not + // recommended. Keys of the map are zones, in format 'zones/'. + // The values are status information indicating the recommendation status. map other_locations = 179322095; // Unique id of the recommendation, a UUID string generated by the API. @@ -10584,31 +21824,41 @@ message FutureResourcesRecommendation { } -// Information about recommendation status for locations that were allowed but not used by the response. +// Information about recommendation status for locations +// that were allowed but not used by the response. message FutureResourcesRecommendationOtherLocation { // Status of recommendation in this location. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; - // The requested resources are offered in this location but the requested time window is does not meet the required conditions. + // The requested resources are offered in this location + // but the requested time window is does not meet the required conditions. CONDITIONS_NOT_MET = 363628457; - // The requested resources are not offered in this location. Retrying the request will not change this status. + // The requested resources are not offered in this location. + // Retrying the request will not change this status. NOT_SUPPORTED = 317950466; - // The requested resources are offered in this location and the requested time window is accepted but there is no capacity within the requested time window. + // The requested resources are offered in this location + // and the requested time window is accepted + // but there is no capacity within the requested time window. NO_CAPACITY = 274240888; // Default value, unused. OTHER_LOCATION_STATUS_UNDEFINED = 222662622; - // The requested resources are offered in this location and it is possible to request them. However, another location was better and was recommended. + // The requested resources are offered in this location + // and it is possible to request them. However, another location + // was better and was recommended. RECOMMENDED = 369652283; } - // Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, then details contain information about the parameters of the time window that did not meet the required conditions. + // Details (human readable) describing the situation. + // For example, if status is CONDITION_NOT_MET, then + // details contain information about the parameters of the time window + // that did not meet the required conditions. optional string details = 483979842; // Status of recommendation in this location. @@ -10617,9 +21867,11 @@ message FutureResourcesRecommendationOtherLocation { } -// Specification of resources to be created at some time in the future within an optionally specified set of locations, and within the specified time range. +// Specification of resources to be created at some time in the future within an +// optionally specified set of locations, and within the specified time range. message FutureResourcesSpec { - // Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE. + // Indicates if the reservation allocation strategy is static (DENSE) or + // dynamic (STANDARD). Defaults to DENSE. enum DeploymentType { // A value indicating that the enum field is not set. UNDEFINED_DEPLOYMENT_TYPE = 0; @@ -10629,29 +21881,35 @@ message FutureResourcesSpec { DEPLOYMENT_TYPE_UNSPECIFIED = 234847180; - // The reserved capacity is made up of highly flexible, logical reservation blocks. + // The reserved capacity is made up of highly flexible, logical reservation + // blocks. FLEXIBLE = 379880395; } - // Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE. + // Indicates if the reservation allocation strategy is static (DENSE) or + // dynamic (STANDARD). Defaults to DENSE. // Check the DeploymentType enum for the list of possible values. optional string deployment_type = 396722292; - // Optional location policy allowing to exclude some zone(s) in which the resources must not be created. + // Optional location policy allowing to exclude some zone(s) in which + // the resources must not be created. optional FutureResourcesSpecLocationPolicy location_policy = 465689852; // Specification of the reserved resources. optional FutureResourcesSpecTargetResources target_resources = 528230647; - // Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use. + // Specification of a time range in which the resources may be created. + // The time range specifies start of resource use and planned end of resource + // use. optional FlexibleTimeRange time_range_spec = 116516399; } // message FutureResourcesSpecAggregateResources { - // The VM family that all instances scheduled against this reservation must belong to. Use for TPU reservations. + // The VM family that all instances scheduled against this reservation + // must belong to. Use for TPU reservations. enum VmFamily { // A value indicating that the enum field is not set. UNDEFINED_VM_FAMILY = 0; @@ -10670,6 +21928,8 @@ message FutureResourcesSpecAggregateResources { VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 517384438; + VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X = 485271888; + } // Workload type. Use for TPU reservations. @@ -10677,10 +21937,12 @@ message FutureResourcesSpecAggregateResources { // A value indicating that the enum field is not set. UNDEFINED_WORKLOAD_TYPE = 0; - // Reserved resources will be optimized for BATCH workloads, such as ML training. + // Reserved resources will be optimized for BATCH workloads, such as ML + // training. BATCH = 62971674; - // Reserved resources will be optimized for SERVING workloads, such as ML inference. + // Reserved resources will be optimized for SERVING workloads, such as ML + // inference. SERVING = 17781740; UNSPECIFIED = 526786327; @@ -10690,7 +21952,8 @@ message FutureResourcesSpecAggregateResources { // Size of the request, in accelerator (chip) count. optional int64 accelerator_count = 504879675; - // The VM family that all instances scheduled against this reservation must belong to. Use for TPU reservations. + // The VM family that all instances scheduled against this reservation + // must belong to. Use for TPU reservations. // Check the VmFamily enum for the list of possible values. optional string vm_family = 125017580; @@ -10724,7 +21987,10 @@ message FutureResourcesSpecLocalSsdPartition { // Specification of locations to create resources in. message FutureResourcesSpecLocationPolicy { - // Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed. + // Preferences for specified locations. + // Keys of the map are locations - zones, in format of 'zones/'. + // Values are preferences for the zones. + // If a zone is not specified in this map, it is ALLOWed. map locations = 413423454; } @@ -10758,10 +22024,15 @@ message FutureResourcesSpecSpecificSKUResources { // Size of the request, in instance count. optional int64 instance_count = 77317349; - // Local SSD partitions. You do not have to include SSD partitions that are built in the machine type. + // Local SSD partitions. You do not have to include SSD partitions that + // are built in the machine type. repeated FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568; - // The machine type to use for instances that will use the reservation. This field only accepts machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU reservations. + // The machine type to use for instances that will use the reservation. + // This field only accepts machine type names. e.g. n2-standard-4 + // and does not accept machine type full or partial url. e.g. + // projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. + // Use for GPU reservations. optional string machine_type = 227711026; } @@ -10776,32 +22047,88 @@ message FutureResourcesSpecTargetResources { // message GRPCHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; - // The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends. + // The port number in the health check's port is used for health + // checking. Applies to network endpoint group and instance group backends. USE_FIXED_PORT = 190235748; // Not supported. USE_NAMED_PORT = 349300671; - // For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports. + // For network endpoint group backends, the health check uses the port number + // specified on each endpoint in the network endpoint group. For instance + // group backends, the health check uses the port number specified for the + // backend service's named port defined in the instance group's named ports. USE_SERVING_PORT = 362637516; } - // The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII. + // The gRPC service name for the health check. This field is optional. The + // value of grpc_service_name has the following meanings by convention: + // + // - Empty service_name means the overall status of all services at the + // backend. + // + // - Non-empty service_name means the health of that gRPC service, as defined + // by the owner of the service. + // + // The grpc_service_name can only be ASCII. optional string grpc_service_name = 136533078; - // The TCP port number to which the health check prober sends packets. Valid values are 1 through 65535. + // The TCP port number to which the health check prober sends packets. Valid + // values are 1 through 65535. optional int32 port = 3446913; // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; @@ -10809,29 +22136,85 @@ message GRPCHealthCheck { // message GRPCTLSHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; - // The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends. + // The port number in the health check's port is used for health + // checking. Applies to network endpoint group and instance group backends. USE_FIXED_PORT = 190235748; // Not supported. USE_NAMED_PORT = 349300671; - // For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports. + // For network endpoint group backends, the health check uses the port number + // specified on each endpoint in the network endpoint group. For instance + // group backends, the health check uses the port number specified for the + // backend service's named port defined in the instance group's named ports. USE_SERVING_PORT = 362637516; } - // The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII. + // The gRPC service name for the health check. This field is optional. The + // value of grpc_service_name has the following meanings by convention: + // + // - Empty service_name means the overall status of all services at the + // backend. + // + // - Non-empty service_name means the health of that gRPC service, as defined + // by the owner of the service. + // + // The grpc_service_name can only be ASCII. optional string grpc_service_name = 136533078; - // The TCP port number to which the health check prober sends packets. Valid values are 1 through 65535. + // The TCP port number to which the health check prober sends packets. Valid + // values are 1 through 65535. optional int32 port = 3446913; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; @@ -10941,6 +22324,22 @@ message GetAutoscalerRequest { } +// A request message for InstanceGroupManagers.GetAvailableAcceleratorTopologies. See the method description for details. +message GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest { + // Required. Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the managed instance group. + // It should conform to RFC1035. + string resource_id = 160795372 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of thezone where the managed + // instance group is located. + // Name should conform to RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for BackendBuckets.Get. See the method description for details. message GetBackendBucketRequest { // Name of the BackendBucket resource to return. @@ -11111,7 +22510,8 @@ message GetFromFamilyImageRequest { // Name of the image family to search for. string family = 328751972 [(google.api.field_behavior) = REQUIRED]; - // The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project. + // The image project that the image belongs to. For example, to get a CentOS + // image, specify centos-cloud as the image project. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; } @@ -11161,7 +22561,8 @@ message GetGlobalNetworkEndpointGroupRequest { // A request message for GlobalOperations.Get. See the method description for details. message GetGlobalOperationRequest { - // Name of the Operations resource to return, or its unique numeric identifier. + // Name of the Operations resource to return, or its unique numeric + // identifier. string operation = 52090215 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_response_field) = "name" @@ -11174,7 +22575,8 @@ message GetGlobalOperationRequest { // A request message for GlobalOrganizationOperations.Get. See the method description for details. message GetGlobalOrganizationOperationRequest { - // Name of the Operations resource to return. Parent is derived from this field. + // Name of the Operations resource to return. Parent is derived from this + // field. string operation = 52090215 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_response_field) = "name" @@ -11195,6 +22597,16 @@ message GetGlobalPublicDelegatedPrefixeRequest { } +// A request message for GlobalVmExtensionPolicies.Get. See the method description for details. +message GetGlobalVmExtensionPolicyRequest { + // Name of the GlobalVmExtensionPolicy resource to return. + string global_vm_extension_policy = 8334110 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Instances.GetGuestAttributes. See the method description for details. message GetGuestAttributesInstanceRequest { // Name of the instance scoping this request. @@ -11490,6 +22902,22 @@ message GetIamPolicyNodeTemplateRequest { } +// A request message for RegionBackendBuckets.GetIamPolicy. See the method description for details. +message GetIamPolicyRegionBackendBucketRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionBackendServices.GetIamPolicy. See the method description for details. message GetIamPolicyRegionBackendServiceRequest { // Requested IAM Policy version. @@ -11570,6 +22998,25 @@ message GetIamPolicyRegionSnapshotRequest { } +// A request message for ReservationBlocks.GetIamPolicy. See the method description for details. +message GetIamPolicyReservationBlockRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Name or id of parent resource of the resource for this request. + string parent_resource = 18091011 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Reservations.GetIamPolicy. See the method description for details. message GetIamPolicyReservationRequest { // Requested IAM Policy version. @@ -11586,6 +23033,25 @@ message GetIamPolicyReservationRequest { } +// A request message for ReservationSubBlocks.GetIamPolicy. See the method description for details. +message GetIamPolicyReservationSubBlockRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Name or id of parent resource of the resource for this request. + string parent_resource = 18091011 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for ResourcePolicies.GetIamPolicy. See the method description for details. message GetIamPolicyResourcePolicyRequest { // Requested IAM Policy version. @@ -11694,23 +23160,27 @@ message GetInstanceGroupManagerRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } // A request message for InstanceGroupManagerResizeRequests.Get. See the method description for details. message GetInstanceGroupManagerResizeRequestRequest { - // The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + // The name of the managed instance group. + // Name should conform to RFC1035 or be a resource ID. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the resize request. Name should conform to RFC1035 or be a resource ID. + // The name of the resize request. + // Name should conform to RFC1035 or be a resource ID. string resize_request = 216941060 [(google.api.field_behavior) = REQUIRED]; - // Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should conform to RFC1035. + // Name of the href="/compute/docs/regions-zones/#available">zone + // scoping this request. Name should conform to RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } @@ -11723,7 +23193,8 @@ message GetInstanceGroupRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the zone where the instance group is located. + // The name of the zone + // where the instance group is located. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } @@ -11932,7 +23403,9 @@ message GetMacsecConfigInterconnectRequest { // A request message for Routers.GetNatIpInfo. See the method description for details. message GetNatIpInfoRouterRequest { - // Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. + // Name of the nat service to filter the NAT IP information. + // If it is omitted, all nats for this router will be returned. + // Name should conform to RFC1035. optional string nat_name = 425596649; // Project ID for this request. @@ -11941,26 +23414,102 @@ message GetNatIpInfoRouterRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Name of the Router resource to query for Nat IP information. The name should conform to RFC1035. + // Name of the Router resource to query for Nat IP information. The name + // should conform to RFC1035. string router = 148608841 [(google.api.field_behavior) = REQUIRED]; } // A request message for Routers.GetNatMappingInfo. See the method description for details. message GetNatMappingInfoRoutersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. + // Name of the nat service to filter the Nat Mapping information. + // If it is omitted, all nats for this router will be returned. + // Name should conform to RFC1035. optional string nat_name = 425596649; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -11969,10 +23518,16 @@ message GetNatMappingInfoRoutersRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // Name of the Router resource to query for Nat Mapping information of VM endpoints. + // Name of the Router resource to query for Nat Mapping information of + // VM endpoints. string router = 148608841 [(google.api.field_behavior) = REQUIRED]; } @@ -12011,7 +23566,8 @@ message GetNetworkEndpointGroupRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the zone where the network endpoint group is located. It should comply with RFC1035. + // The name of the zone where + // the network endpoint group is located. It should comply with RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } @@ -12217,6 +23773,19 @@ message GetRegionAutoscalerRequest { } +// A request message for RegionBackendBuckets.Get. See the method description for details. +message GetRegionBackendBucketRequest { + // Name of the BackendBucket resource to return. + string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionBackendServices.Get. See the method description for details. message GetRegionBackendServiceRequest { // Name of the BackendService resource to return. @@ -12243,6 +23812,19 @@ message GetRegionCommitmentRequest { } +// A request message for RegionCompositeHealthChecks.Get. See the method description for details. +message GetRegionCompositeHealthCheckRequest { + // Name of the CompositeHealthCheck resource to return. + string composite_health_check = 466984989 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionDisks.Get. See the method description for details. message GetRegionDiskRequest { // Name of the regional persistent disk to return. @@ -12279,6 +23861,19 @@ message GetRegionDiskTypeRequest { } +// A request message for RegionHealthAggregationPolicies.Get. See the method description for details. +message GetRegionHealthAggregationPolicyRequest { + // Name of the HealthAggregationPolicy resource to return. + string health_aggregation_policy = 240314354 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionHealthChecks.Get. See the method description for details. message GetRegionHealthCheckRequest { // Name of the HealthCheck resource to return. @@ -12294,7 +23889,8 @@ message GetRegionHealthCheckRequest { // A request message for RegionHealthCheckServices.Get. See the method description for details. message GetRegionHealthCheckServiceRequest { - // Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the HealthCheckService to update. The name + // must be 1-63 characters long, and comply with RFC1035. string health_check_service = 408374747 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -12333,16 +23929,19 @@ message GetRegionInstanceGroupManagerRequest { // A request message for RegionInstanceGroupManagerResizeRequests.Get. See the method description for details. message GetRegionInstanceGroupManagerResizeRequestRequest { - // The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + // The name of the managed instance group. + // Name should conform to RFC1035 or be a resource ID. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the region scoping this request. Name should conform to RFC1035. + // The name of the region + // scoping this request. Name should conform to RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // The name of the resize request. Name should conform to RFC1035 or be a resource ID. + // The name of the resize request. + // Name should conform to RFC1035 or be a resource ID. string resize_request = 216941060 [(google.api.field_behavior) = REQUIRED]; } @@ -12427,7 +24026,8 @@ message GetRegionNetworkEndpointGroupRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the region where the network endpoint group is located. It should comply with RFC1035. + // The name of the region where + // the network endpoint group is located. It should comply with RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; } @@ -12473,7 +24073,8 @@ message GetRegionNotificationEndpointRequest { // A request message for RegionOperations.Get. See the method description for details. message GetRegionOperationRequest { - // Name of the Operations resource to return, or its unique numeric identifier. + // Name of the Operations resource to return, or its unique numeric + // identifier. string operation = 52090215 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_response_field) = "name" @@ -12554,7 +24155,8 @@ message GetRegionSslPolicyRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the SSL policy to update. The name must be 1-63 characters long, + // and comply with RFC1035. string ssl_policy = 295190213 [(google.api.field_behavior) = REQUIRED]; } @@ -12632,10 +24234,12 @@ message GetReservationBlockRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the reservation. Name should conform to RFC1035 or be a resource ID. + // The name of the reservation. + // Name should conform to RFC1035 or be a resource ID. string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; - // The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + // The name of the reservation block. + // Name should conform to RFC1035 or be a resource ID. string reservation_block = 532832858 [(google.api.field_behavior) = REQUIRED]; // View of the Block. @@ -12662,15 +24266,37 @@ message GetReservationRequest { // A request message for ReservationSubBlocks.Get. See the method description for details. message GetReservationSubBlockRequest { - // The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + // View of the subBlock. + enum View { + // A value indicating that the enum field is not set. + UNDEFINED_VIEW = 0; + + // This view includes basic information about the reservation sub block + SUB_BLOCK_VIEW_BASIC = 236009797; + + // Includes detailed topology view. + SUB_BLOCK_VIEW_FULL = 440711800; + + // The default / unset value. The API will default to the BASIC view. + SUB_BLOCK_VIEW_UNSPECIFIED = 246642446; + + } + + // The name of the parent reservation and parent block. In the format of + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + // The name of the reservation subBlock. + // Name should conform to RFC1035 or be a resource ID. string reservation_sub_block = 22750491 [(google.api.field_behavior) = REQUIRED]; + // View of the subBlock. + // Check the View enum for the list of possible values. + optional string view = 3619493; + // Name of the zone for this request. Zone name should conform to RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; @@ -12700,7 +24326,8 @@ message GetRoutePolicyRouterRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Name of the Router resource to query for the route policy. The name should conform to RFC1035. + // Name of the Router resource to query for the route policy. The name should + // conform to RFC1035. string router = 148608841 [(google.api.field_behavior) = REQUIRED]; } @@ -12853,7 +24480,23 @@ message GetSerialPortOutputInstanceRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size. + // Specifies the starting byte position of the output to return. To start with + // the first byte of output to the specified port, omit this field or set it + // to `0`. + // + // If the output for that byte position is available, this field matches the + // `start` parameter sent with the request. If the amount of serial console + // output exceeds the size of the buffer (1 MB), the oldest output is + // discarded and is no longer available. If the requested start position + // refers to discarded output, the start position is adjusted to the oldest + // output still available, and the adjusted start position is returned as the + // `start` property value. + // + // You can also provide a negative start position, which translates to the + // most recent number of bytes written to the serial port. For example, -3 is + // interpreted as the most recent 3 bytes written to the serial console. Note + // that the negative start is bounded by the retained buffer size, and the + // returned serial console output will not exceed the max buffer size. optional int64 start = 109757538; // The name of the zone for this request. @@ -12935,7 +24578,8 @@ message GetSslPolicyRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the SSL policy to update. The name must be 1-63 characters long, + // and comply with RFC1035. string ssl_policy = 295190213 [(google.api.field_behavior) = REQUIRED]; } @@ -12981,7 +24625,11 @@ message GetStoragePoolTypeRequest { // A request message for Subnetworks.Get. See the method description for details. message GetSubnetworkRequest { - // Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. enum Views { // A value indicating that the enum field is not set. UNDEFINED_VIEWS = 0; @@ -13002,7 +24650,11 @@ message GetSubnetworkRequest { // Name of the Subnetwork resource to return. string subnetwork = 307827694 [(google.api.field_behavior) = REQUIRED]; - // Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. // Check the Views enum for the list of possible values. optional string views = 112204398; @@ -13170,29 +24822,108 @@ message GetXpnHostProjectRequest { // A request message for Projects.GetXpnResources. See the method description for details. message GetXpnResourcesProjectsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for ZoneOperations.Get. See the method description for details. message GetZoneOperationRequest { - // Name of the Operations resource to return, or its unique numeric identifier. + // Name of the Operations resource to return, or its unique numeric + // identifier. string operation = 52090215 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_response_field) = "name" @@ -13216,12 +24947,33 @@ message GetZoneRequest { } +// A request message for ZoneVmExtensionPolicies.Get. See the method description for details. +message GetZoneVmExtensionPolicyRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the VM extension policy resource to return. + string vm_extension_policy = 331532730 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // message GlobalAddressesMoveRequest { - // An optional destination address description if intended to be different from the source. + // An optional destination address description if intended to be different + // from the source. optional string description = 422937596; - // The URL of the destination address to move to. This can be a full or partial URL. For example, the following are all valid URLs to a address: - https://www.googleapis.com/compute/v1/projects/project /global/addresses/address - projects/project/global/addresses/address Note that destination project must be different from the source project. So /global/addresses/address is not valid partial url. + // The URL of the destination address to move to. This can be a full or + // partial URL. For example, the following are all valid URLs to a address: + // + // - https://www.googleapis.com/compute/v1/projects/project/global/addresses/address + // - projects/project/global/addresses/address + // + // + // Note that destination project must be different from the source project. So/global/addresses/address is not valid partial url. optional string destination_address = 371693763; } @@ -13242,40 +24994,274 @@ message GlobalNetworkEndpointGroupsDetachEndpointsRequest { // message GlobalOrganizationSetPolicyRequest { - // Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings. + // Flatten Policy to create a backward compatible wire-format. + // Deprecated. Use 'policy' to specify bindings. repeated Binding bindings = 403251854; - // Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. + // Flatten Policy to create a backward compatible wire-format. + // Deprecated. Use 'policy' to specify the etag. optional string etag = 3123477; - // REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. + // REQUIRED: The complete policy to be applied to the 'resource'. The size of + // the policy is limited to a few 10s of KB. An empty policy is in general a + // valid policy but certain services (like Projects) might reject them. optional Policy policy = 91071794; } // message GlobalSetLabelsRequest { - // The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels, otherwise the request will fail with error 412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint. + // The fingerprint of the previous set of labels for this resource, + // used to detect conflicts. The fingerprint is initially generated by Compute + // Engine and changes after every request to modify or update labels. You must + // always provide an up-to-date fingerprint hash when updating or changing + // labels, otherwise the request will fail with error412 conditionNotMet. Make a get() request to the + // resource to get the latest fingerprint. optional string label_fingerprint = 178124825; - // A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example, "webserver-frontend": "images". A label value can also be empty (e.g. "my-label": ""). + // A list of labels to apply for this resource. Each label must comply with + // the + // requirements for labels. For example,"webserver-frontend": "images". A label value can also be + // empty (e.g. "my-label": ""). map labels = 500195327; } // message GlobalSetPolicyRequest { - // Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings. + // Flatten Policy to create a backward compatible wire-format. + // Deprecated. Use 'policy' to specify bindings. repeated Binding bindings = 403251854; - // Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. + // Flatten Policy to create a backward compatible wire-format. + // Deprecated. Use 'policy' to specify the etag. optional string etag = 3123477; - // REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. + // REQUIRED: The complete policy to be applied to the 'resource'. The size of + // the policy is limited to a few 10s of KB. An empty policy is in general a + // valid policy but certain services (like Projects) might reject them. optional Policy policy = 91071794; } +// Message describing GlobalVmExtensionPolicy object. +message GlobalVmExtensionPolicy { + // [Output Only] The scoped resource status. It's only for tracking the + // purging status of the policy. + enum ScopedResourceStatus { + // A value indicating that the enum field is not set. + UNDEFINED_SCOPED_RESOURCE_STATUS = 0; + + // The zonal policies are being deleted. + SCOPED_RESOURCE_STATUS_DELETING = 404198387; + + // Default value. This value is unused. + SCOPED_RESOURCE_STATUS_UNSPECIFIED = 437941996; + + } + + // [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // An optional description of this resource. Provide this property when you + // create the resource. + optional string description = 422937596; + + // Required. Map from extension (eg: "cloudops") to its policy configuration. + // The key is the name of the extension. + map extension_policies = 227761488; + + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Optional. Selector to target VMs for a policy. + // There is a logical "AND" between instance_selectors. + repeated GlobalVmExtensionPolicyInstanceSelector instance_selectors = 520298826; + + // [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for globalVmExtensionPolicies. + optional string kind = 3292052; + + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` + // which means the first character must be a lowercase letter, and all + // following characters must be a dash, lowercase letter, or digit, except + // the last character, which cannot be a dash. + optional string name = 3373707; + + // Optional. Used to resolve conflicts when multiple policies are active for the same + // extension. Defaults to 0. + // + // Larger the number, higher the priority. When the priority is the same, + // the policy with the newer create time has higher priority. + optional int32 priority = 445151652; + + // Required. The rollout strategy and status. + optional GlobalVmExtensionPolicyRolloutOperation rollout_operation = 486746201; + + // [Output Only] The scoped resource status. It's only for tracking the + // purging status of the policy. + // Check the ScopedResourceStatus enum for the list of possible values. + optional string scoped_resource_status = 181976980; + + // [Output Only] Server-defined fully-qualified URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + // [Output Only] Update timestamp inRFC3339 + // text format. + optional string update_timestamp = 120894752; + +} + +// Policy for a single extension. +message GlobalVmExtensionPolicyExtensionPolicy { + // Optional. The version pinning for the extension. + // If empty, the extension will be installed with the latest version + // released by the extension producer. + optional string pinned_version = 446267249; + + // Optional. String configuration. Any string payload that the extension + // understands. + optional string string_config = 318905136; + +} + +// Selector to target VMs for a zone VM extension policy. +message GlobalVmExtensionPolicyInstanceSelector { + // Optional. Labels within the LabelSelector are OR'd. + optional GlobalVmExtensionPolicyLabelSelector label_selector = 349780170; + +} + +// A LabelSelector is applicable for a VM only if it matches all labels in +// the LabelSelector. +message GlobalVmExtensionPolicyLabelSelector { + // Optional. Labels as key value pairs. + // A VM should contain all the pairs specified in this map to be selected; + // Labels within the LabelSelector are OR'ed. + map inclusion_labels = 501312642; + +} + +// Represents the rollout operation +message GlobalVmExtensionPolicyRolloutOperation { + // Required. The rollout input which defines the rollout plan. + optional GlobalVmExtensionPolicyRolloutOperationRolloutInput rollout_input = 265745340; + + // [Output Only] The rollout status of the policy. + optional GlobalVmExtensionPolicyRolloutOperationRolloutStatus rollout_status = 476426816; + +} + +// +message GlobalVmExtensionPolicyRolloutOperationRolloutInput { + // Optional. Predefined rollout plan. + enum PredefinedRolloutPlan { + // A value indicating that the enum field is not set. + UNDEFINED_PREDEFINED_ROLLOUT_PLAN = 0; + + FAST_ROLLOUT = 207153326; + + ROLLOUT_PLAN_UNSPECIFIED = 144511983; + + SLOW_ROLLOUT = 31032659; + + } + + // Optional. [Optional] Specifies the behavior of the Rollout if a conflict is + // detected in a project during a Rollout. It can be one of the following + // values: + // 1) empty : don't overwrite the local value if conflict happens. This is + // the default behavior. + // 2) "overwrite" : Overwrite the local value with the rollout value. + // The concept of "conflict" applies to: + // 1) Insert action. If the zonal policy already exists when Insert + // happens, it's a conflict. + // 2) Update action. If the zonal policy was updated out of band by a + // zonal API, it's a conflict. + optional string conflict_behavior = 115729439; + + // Optional. The name of the rollout plan. + // Ex. + // projects//locations/global/rolloutPlans/. + optional string name = 3373707; + + // Optional. Predefined rollout plan. + // Check the PredefinedRolloutPlan enum for the list of possible values. + optional string predefined_rollout_plan = 364023440; + + // Optional. The UUID of the retry action. Only set it if this is a retry + // for an existing resource. This is for the user re-populate the resource + // without changes. An error will be returned if the retry_uuid is set but + // the resource get modified. + optional string retry_uuid = 472838898; + +} + +// +message GlobalVmExtensionPolicyRolloutOperationRolloutStatus { + // [Output Only] The current rollouts for the latest version of the + // resource. There should be only one current rollout, but for + // scalability, we make it repeated. + repeated GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata current_rollouts = 39829736; + + // [Output Only] The last completed rollout resource. This field will not + // be populated until the first rollout is completed. + optional GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata previous_rollout = 375749737; + +} + +// +message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata { + // [Output Only] The overall state of the rollout. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // Iteration was explicitly cancelled. + STATE_CANCELLED = 534636259; + + // Iteration completed, with all actions being successful. + STATE_COMPLETED = 265728989; + + // Iteration completed, with failures. + STATE_FAILED = 50857931; + + // The rollout is paused. + STATE_PAUSED = 337513660; + + // Iteration is in progress. + STATE_PROCESSING = 74195873; + + // Impossible to determine current state of the iteration. + STATE_UNKNOWN = 230861404; + + // Default value. This value is unused. + STATE_UNSPECIFIED = 470755401; + + } + + // [Output Only] The name of the rollout. + // Ex. projects//locations/global/rollouts/. + optional string rollout = 303366577; + + // [Output Only] The name of the rollout plan. + // Ex. + // projects//locations/global/rolloutPlans/. + optional string rollout_plan = 459057399; + + // [Output Only] The overall state of the rollout. + // Check the State enum for the list of possible values. + optional string state = 109757585; + +} + // Maintenance Info for ReservationBlocks. message GroupMaintenanceInfo { // The type of maintenance for the reservation. @@ -13289,7 +25275,8 @@ message GroupMaintenanceInfo { // Unknown maintenance type. GROUP_MAINTENANCE_TYPE_UNSPECIFIED = 447183678; - // Maintenance is not synchronized for this reservation. Instead, each instance has its own maintenance window. + // Maintenance is not synchronized for this reservation. Instead, each + // instance has its own maintenance window. INDEPENDENT = 127011674; } @@ -13300,20 +25287,28 @@ message GroupMaintenanceInfo { // Describes number of instances that have pending maintenance. optional int32 instance_maintenance_pending_count = 76612881; - // Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance. + // Progress for ongoing maintenance for this group of VMs/hosts. + // Describes number of hosts in the block that have ongoing maintenance. optional int32 maintenance_ongoing_count = 219781919; - // Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance. + // Progress for ongoing maintenance for this group of VMs/hosts. + // Describes number of hosts in the block that have pending maintenance. optional int32 maintenance_pending_count = 158783547; // The type of maintenance for the reservation. // Check the SchedulingType enum for the list of possible values. optional string scheduling_type = 199835397; - // Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. + // Describes number of subblock Infrastructure that has ongoing maintenance. + // Here, Subblock Infrastructure Maintenance pertains to upstream hardware + // contained in the Subblock that is necessary for a VM Family(e.g. NVLink + // Domains). Not all VM Families will support this field. optional int32 subblock_infra_maintenance_ongoing_count = 366161790; - // Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. + // Describes number of subblock Infrastructure that has pending maintenance. + // Here, Subblock Infrastructure Maintenance pertains to upstream hardware + // contained in the Subblock that is necessary for a VM Family (e.g. NVLink + // Domains). Not all VM Families will support this field. optional int32 subblock_infra_maintenance_pending_count = 305163418; // Maintenance information on this group of VMs. @@ -13323,10 +25318,12 @@ message GroupMaintenanceInfo { // A guest attributes entry. message GuestAttributes { - // [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. + // [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. optional string kind = 3292052; - // The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or a specified key ('\/\'). + // The path to be queried. This can be the default namespace ('') or a + // nested namespace ('\/') or a specified key + // ('\/\'). optional string query_path = 368591164; // [Output Only] The value of the requested queried path. @@ -13364,7 +25361,25 @@ message GuestAttributesValue { // Guest OS features. message GuestOsFeature { - // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE For more information, see Enabling guest operating system features. + // The ID of a supported feature. To add multiple values, use commas to + // separate values. Set to one or more of the following values: + // + // - VIRTIO_SCSI_MULTIQUEUE + // - WINDOWS + // - MULTI_IP_SUBNET + // - UEFI_COMPATIBLE + // - GVNIC + // - SEV_CAPABLE + // - SUSPEND_RESUME_COMPATIBLE + // - SEV_LIVE_MIGRATABLE_V2 + // - SEV_SNP_CAPABLE + // - TDX_CAPABLE + // - IDPF + // - SNP_SVSM_CAPABLE + // + // + // For more information, see + // Enabling guest operating system features. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -13401,7 +25416,25 @@ message GuestOsFeature { } - // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE For more information, see Enabling guest operating system features. + // The ID of a supported feature. To add multiple values, use commas to + // separate values. Set to one or more of the following values: + // + // - VIRTIO_SCSI_MULTIQUEUE + // - WINDOWS + // - MULTI_IP_SUBNET + // - UEFI_COMPATIBLE + // - GVNIC + // - SEV_CAPABLE + // - SUSPEND_RESUME_COMPATIBLE + // - SEV_LIVE_MIGRATABLE_V2 + // - SEV_SNP_CAPABLE + // - TDX_CAPABLE + // - IDPF + // - SNP_SVSM_CAPABLE + // + // + // For more information, see + // Enabling guest operating system features. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -13409,23 +25442,50 @@ message GuestOsFeature { // message HTTP2HealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; - // The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends. + // The port number in the health check's port is used for health + // checking. Applies to network endpoint group and instance group backends. USE_FIXED_PORT = 190235748; // Not supported. USE_NAMED_PORT = 349300671; - // For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports. + // For network endpoint group backends, the health check uses the port number + // specified on each endpoint in the network endpoint group. For instance + // group backends, the health check uses the port number specified for the + // backend service's named port defined in the instance group's named ports. USE_SERVING_PORT = 362637516; } - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. enum ProxyHeader { // A value indicating that the enum field is not set. UNDEFINED_PROXY_HEADER = 0; @@ -13436,50 +25496,108 @@ message HTTP2HealthCheck { } - // The value of the host header in the HTTP/2 health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent. The destination IP address depends on the type of load balancer. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + // The value of the host header in the HTTP/2 health check request. If left + // empty (default value), the host header is set to the destination IP address + // to which health check packets are sent. The destination IP address depends + // on the type of load balancer. For details, see: + // https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest optional string host = 3208616; - // The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535. + // The TCP port number to which the health check prober sends packets. The + // default value is 443. Valid values are 1 through65535. optional int32 port = 3446913; // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. // Check the ProxyHeader enum for the list of possible values. optional string proxy_header = 160374142; - // The request path of the HTTP/2 health check request. The default value is /. Must comply with RFC3986. + // The request path of the HTTP/2 health check request. The default value is/. Must comply withRFC3986. optional string request_path = 229403605; - // Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + // Creates a content-based HTTP/2 health check. In addition to the required + // HTTP 200 (OK) status code, you can configure the health check to pass only + // when the backend sends this specific ASCII response string within the first + // 1024 bytes of the HTTP response body. For details, see: + // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http optional string response = 196547649; } // message HTTPHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Also supported in legacy HTTP health checks for target pools. + // The health check supports all backends supported by the backend service + // provided the backend can be health checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT + // network endpoint groups, and instance group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for pass-through load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; - // The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends. + // The port number in the health check's port is used for health + // checking. Applies to network endpoint group and instance group backends. USE_FIXED_PORT = 190235748; // Not supported. USE_NAMED_PORT = 349300671; - // For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports. + // For network endpoint group backends, the health check uses the port number + // specified on each endpoint in the network endpoint group. For instance + // group backends, the health check uses the port number specified for the + // backend service's named port defined in the instance group's named ports. USE_SERVING_PORT = 362637516; } - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. enum ProxyHeader { // A value indicating that the enum field is not set. UNDEFINED_PROXY_HEADER = 0; @@ -13490,50 +25608,108 @@ message HTTPHealthCheck { } - // The value of the host header in the HTTP health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent. The destination IP address depends on the type of load balancer. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + // The value of the host header in the HTTP health check request. If left + // empty (default value), the host header is set to the destination IP address + // to which health check packets are sent. The destination IP address depends + // on the type of load balancer. For details, see: + // https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest optional string host = 3208616; - // The TCP port number to which the health check prober sends packets. The default value is 80. Valid values are 1 through 65535. + // The TCP port number to which the health check prober sends packets. The + // default value is 80. Valid values are 1 through65535. optional int32 port = 3446913; // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Also supported in legacy HTTP health checks for target pools. + // The health check supports all backends supported by the backend service + // provided the backend can be health checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT + // network endpoint groups, and instance group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for pass-through load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. // Check the ProxyHeader enum for the list of possible values. optional string proxy_header = 160374142; - // The request path of the HTTP health check request. The default value is /. Must comply with RFC3986. + // The request path of the HTTP health check request. The default value is/. Must comply withRFC3986. optional string request_path = 229403605; - // Creates a content-based HTTP health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + // Creates a content-based HTTP health check. In addition to the required + // HTTP 200 (OK) status code, you can configure the health check to pass only + // when the backend sends this specific ASCII response string within the first + // 1024 bytes of the HTTP response body. For details, see: + // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http optional string response = 196547649; } // message HTTPSHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; - // The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends. + // The port number in the health check's port is used for health + // checking. Applies to network endpoint group and instance group backends. USE_FIXED_PORT = 190235748; // Not supported. USE_NAMED_PORT = 349300671; - // For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports. + // For network endpoint group backends, the health check uses the port number + // specified on each endpoint in the network endpoint group. For instance + // group backends, the health check uses the port number specified for the + // backend service's named port defined in the instance group's named ports. USE_SERVING_PORT = 362637516; } - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. enum ProxyHeader { // A value indicating that the enum field is not set. UNDEFINED_PROXY_HEADER = 0; @@ -13544,34 +25720,259 @@ message HTTPSHealthCheck { } - // The value of the host header in the HTTPS health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent. The destination IP address depends on the type of load balancer. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + // The value of the host header in the HTTPS health check request. If left + // empty (default value), the host header is set to the destination IP address + // to which health check packets are sent. The destination IP address depends + // on the type of load balancer. For details, see: + // https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest optional string host = 3208616; - // The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535. + // The TCP port number to which the health check prober sends packets. The + // default value is 443. Valid values are 1 through65535. optional int32 port = 3446913; // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. // Check the ProxyHeader enum for the list of possible values. optional string proxy_header = 160374142; - // The request path of the HTTPS health check request. The default value is /. Must comply with RFC3986. + // The request path of the HTTPS health check request. The default value is/. Must comply withRFC3986. optional string request_path = 229403605; - // Creates a content-based HTTPS health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + // Creates a content-based HTTPS health check. In addition to the required + // HTTP 200 (OK) status code, you can configure the health check to pass only + // when the backend sends this specific ASCII response string within the first + // 1024 bytes of the HTTP response body. For details, see: + // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http optional string response = 196547649; } -// Represents a health check resource. Google Compute Engine has two health check resources: * [Regional](/compute/docs/reference/rest/beta/regionHealthChecks) * [Global](/compute/docs/reference/rest/beta/healthChecks) These health check resources can be used for load balancing and for autohealing VMs in a managed instance group (MIG). **Load balancing** Health check requirements vary depending on the type of load balancer. For details about the type of health check supported for each load balancer and corresponding backend type, see Health checks overview: Load balancer guide. **Autohealing in MIGs** The health checks that you use for autohealing VMs in a MIG can be either regional or global. For more information, see Set up an application health check and autohealing. For more information, see Health checks overview. +// +message HealthAggregationPoliciesScopedList { + // A list of HealthAggregationPolicys contained in this scope. + repeated HealthAggregationPolicy health_aggregation_policies = 87589904; + + // Informational warning which replaces the list of health aggregation + // policies when the list is empty. + optional Warning warning = 50704284; + +} + +// Represents a health aggregation policy. +// +// A health aggregation policy resource defines a policy to aggregate health. +// +// For more information, see +// Health checks overview. +message HealthAggregationPolicy { + // Specifies the type of the healthAggregationPolicy. The only allowed value + // for global resources is DNS_PUBLIC_IP_POLICY. The only allowed + // value for regional resources is BACKEND_SERVICE_POLICY. Must + // be specified when the healthAggregationPolicy is created, and cannot be + // mutated. + enum PolicyType { + // A value indicating that the enum field is not set. + UNDEFINED_POLICY_TYPE = 0; + + BACKEND_SERVICE_POLICY = 415582023; + + DNS_PUBLIC_IP_POLICY = 366354794; + + } + + // [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // An optional description of this resource. Provide this property when you + // create the resource. + optional string description = 422937596; + + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a HealthAggregationPolicy. An up-to-date fingerprint + // must be provided in order to patch the HealthAggregationPolicy; Otherwise, + // the request will fail with error 412 conditionNotMet. To see + // the latest fingerprint, make a get() request to retrieve the + // HealthAggregationPolicy. + optional string fingerprint = 234678500; + + // Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a + // percentage) of healthy endpoints required in order to consider the + // aggregated health result HEALTHY. Defaults to 60. Must be in + // range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, + // and will be set to the default if unspecified. Note that both this + // threshold and minHealthyThreshold must be satisfied in order + // for HEALTHY to be the aggregated result. "Endpoints" refers to network + // endpoints within a Network Endpoint Group or instances within an Instance + // Group. + optional uint32 healthy_percent_threshold = 72242895; + + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation + // policies. + optional string kind = 3292052; + + // Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of + // healthy endpoints required in order to consider the aggregated health + // result HEALTHY. Defaults to 1. Must be positive. Not + // applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, + // and will be set to the default if unspecified. Note that both this + // threshold and healthyPercentThreshold must be satisfied in + // order for HEALTHY to be the aggregated result. "Endpoints" refers to + // network endpoints within a Network Endpoint Group or instances within an + // Instance Group. + optional uint32 min_healthy_threshold = 132310940; + + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. + optional string name = 3373707; + + // Specifies the type of the healthAggregationPolicy. The only allowed value + // for global resources is DNS_PUBLIC_IP_POLICY. The only allowed + // value for regional resources is BACKEND_SERVICE_POLICY. Must + // be specified when the healthAggregationPolicy is created, and cannot be + // mutated. + // Check the PolicyType enum for the list of possible values. + optional string policy_type = 18158119; + + // [Output Only] URL of the region where the health aggregation policy + // resides. This field applies only to the regional resource. You must specify + // this field as part of the HTTP request URL. It is not settable as a field + // in the request body. + optional string region = 138946292; + + // [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // [Output Only] Server-defined URL with id for the resource. + optional string self_link_with_id = 44520962; + +} + +// Contains a list of HealthAggregationPoliciesScopedList. +message HealthAggregationPolicyAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of HealthAggregationPoliciesScopedList resources. + map items = 100526016; + + // Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// +message HealthAggregationPolicyList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of HealthAggregationPolicy resources. + repeated HealthAggregationPolicy items = 100526016; + + // [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation + // policies. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// Represents a health check resource. +// +// Google Compute Engine has two health check resources: +// +// * [Regional](/compute/docs/reference/rest/beta/regionHealthChecks) +// * [Global](/compute/docs/reference/rest/beta/healthChecks) +// +// These health check resources can be used for load balancing and for +// autohealing VMs in a managed instance group (MIG). +// +// **Load balancing** +// +// Health check requirements vary depending on the type of load balancer. For +// details about the type of health check supported for +// each load balancer and corresponding backend type, +// see Health +// checks overview: Load balancer guide. +// +// **Autohealing in MIGs** +// +// The health checks that you use for autohealing VMs in a MIG can be either +// regional or global. For more information, see Set up an +// application health check and autohealing. +// +// For more information, seeHealth checks +// overview. message HealthCheck { - // Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field. + // Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC. Exactly one of the + // protocol-specific health check fields must be specified, which must matchtype field. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -13594,20 +25995,24 @@ message HealthCheck { } - // How often (in seconds) to send a health check. The default value is 5 seconds. + // How often (in seconds) to send a health check. The default value is 5 + // seconds. optional int32 check_interval_sec = 345561006; - // [Output Only] Creation timestamp in 3339 text format. + // [Output Only] Creation timestamp in3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; optional GRPCHealthCheck grpc_health_check = 85529574; optional GRPCTLSHealthCheck grpc_tls_health_check = 267273258; - // A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2. + // A so-far unhealthy instance will be marked healthy after this + // many consecutive successes. The default value is 2. optional int32 healthy_threshold = 403212361; optional HTTP2HealthCheck http2_health_check = 11360986; @@ -13616,7 +26021,8 @@ message HealthCheck { optional HTTPSHealthCheck https_health_check = 436046905; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; // Type of the resource. @@ -13625,30 +26031,55 @@ message HealthCheck { // Configure logging on this health check. optional HealthCheckLogConfig log_config = 351299741; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn't a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // For example, a name that is 1-63 characters long, matches the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with + // RFC1035. This regular expression describes a name where the first + // character is a lowercase letter, and all following characters are a dash, + // lowercase letter, or digit, except the last character, which isn't a dash. optional string name = 3373707; - // [Output Only] Region where the health check resides. Not applicable to global health checks. + // [Output Only] Region where the health check resides. Not applicable to + // global health checks. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing. + // The list of cloud regions from which health checks are performed. If any + // regions are specified, then exactly 3 regions should be specified. The + // region names must be valid names of Google Cloud regions. + // This can only be set for global health check. + // If this list is non-empty, then there are restrictions + // on what other health check fields are supported and what other resources + // can use this health check: + // + // - SSL, HTTP2, and GRPC protocols are not supported. + // - The TCP request field is not supported. + // - The proxyHeader field for HTTP, HTTPS, and TCP is not + // supported. + // - The checkIntervalSec field must be at least 30. + // - The health check cannot be used with BackendService nor with managed + // instance group auto-healing. repeated string source_regions = 405568475; optional SSLHealthCheck ssl_health_check = 280032440; optional TCPHealthCheck tcp_health_check = 469980419; - // How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec. + // How long (in seconds) to wait before claiming failure. The default value is + // 5 seconds. It is invalid for timeoutSec to have greater + // value than checkIntervalSec. optional int32 timeout_sec = 79994995; - // Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field. + // Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC. Exactly one of the + // protocol-specific health check fields must be specified, which must matchtype field. // Check the Type enum for the list of possible values. optional string type = 3575610; - // A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2. + // A so-far healthy instance will be marked unhealthy after this many + // consecutive failures. The default value is 2. optional int32 unhealthy_threshold = 227958480; } @@ -13664,7 +26095,11 @@ message HealthCheckList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -13675,14 +26110,21 @@ message HealthCheckList { } -// Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. +// Configuration of logging on a health check. If logging is enabled, logs +// will be exported to Stackdriver. message HealthCheckLogConfig { - // Indicates whether or not to export logs. This is false by default, which means no health check logging will be done. + // Indicates whether or not to export logs. This is false by default, which + // means no health check logging will be done. optional bool enable = 311764355; } -// A full or valid partial URL to a health check. For example, the following are valid URLs: - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check - projects/project-id/global/httpHealthChecks/health-check - global/httpHealthChecks/health-check +// A full or valid partial URL to a health check. For example, the following are +// valid URLs: +// +// - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check +// - projects/project-id/global/httpHealthChecks/health-check +// - global/httpHealthChecks/health-check message HealthCheckReference { optional string health_check = 308876645; @@ -13690,7 +26132,17 @@ message HealthCheckReference { // Represents a Health-Check as a Service resource. message HealthCheckService { - // Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . This is only allowed with regional HealthCheckService. + // Optional. Policy for how the results from multiple health checks + // for the same endpoint are aggregated. Defaults to NO_AGGREGATION + // if unspecified. + // + // - NO_AGGREGATION. An EndpointHealth message is + // returned for each pair in the health check + // service. + // - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. + // + // . + // This is only allowed with regional HealthCheckService. // Additional supported values which may be not listed in the enum directly due to technical reasons: // AND // NO_AGGREGATION @@ -13704,7 +26156,20 @@ message HealthCheckService { } - // This field is deprecated. Use health_status_aggregation_policy instead. Policy for how the results from multiple health checks for the same endpoint are aggregated. - NO_AGGREGATION. An EndpointHealth message is returned for each backend in the health check service. - AND. If any backend's health check reports UNHEALTHY, then UNHEALTHY is the HealthState of the entire health check service. If all backend's are healthy, the HealthState of the health check service is HEALTHY. . + // This field is deprecated. Use health_status_aggregation_policy + // instead. + // + // Policy for how the results from multiple health checks for the + // same endpoint are aggregated. + // + // - NO_AGGREGATION. An EndpointHealth + // message is returned for each backend in the health check + // service. + // - AND. If any backend's health check reportsUNHEALTHY, then UNHEALTHY is theHealthState of the entire health check service. If + // all backend's are healthy, the HealthState of the + // health check service is HEALTHY. + // + // . // Additional supported values which may be not listed in the enum directly due to technical reasons: // AND // NO_AGGREGATION @@ -13714,42 +26179,95 @@ message HealthCheckService { } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up-to-date fingerprint must be provided in order to patch/update the HealthCheckService; Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the HealthCheckService. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a HealthCheckService. An up-to-date fingerprint must + // be provided in order to patch/update the HealthCheckService; Otherwise, the + // request will fail with error 412 conditionNotMet. To see the + // latest fingerprint, make a get() request to retrieve the + // HealthCheckService. optional string fingerprint = 234678500; - // A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more than 10 for regional HealthCheckService, and not more than 1 for global HealthCheckService. HealthCheck resources must have portSpecification=USE_SERVING_PORT or portSpecification=USE_FIXED_PORT. For regional HealthCheckService, the HealthCheck must be regional and in the same region. For global HealthCheckService, HealthCheck must be global. Mix of regional and global HealthChecks is not supported. Multiple regional HealthChecks must belong to the same region. Regional HealthChecks must belong to the same region as zones of NetworkEndpointGroups. For global HealthCheckService using global INTERNET_IP_PORT NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks that specify sourceRegions can only be used with global INTERNET_IP_PORT NetworkEndpointGroups. + // A list of URLs to the HealthCheck resources. Must have + // at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For + // regional HealthCheckService, theHealthCheck must be regional and in the same + // region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the + // global HealthChecks must specify sourceRegions, + // and HealthChecks that specify sourceRegions can + // only be used with global INTERNET_IP_PORTNetworkEndpointGroups. repeated string health_checks = 448370606; - // Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . This is only allowed with regional HealthCheckService. + // Optional. Policy for how the results from multiple health checks + // for the same endpoint are aggregated. Defaults to NO_AGGREGATION + // if unspecified. + // + // - NO_AGGREGATION. An EndpointHealth message is + // returned for each pair in the health check + // service. + // - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. + // + // . + // This is only allowed with regional HealthCheckService. // Check the HealthStatusAggregationPolicy enum for the list of possible values. optional string health_status_aggregation_policy = 253163129; - // This field is deprecated. Use health_status_aggregation_policy instead. Policy for how the results from multiple health checks for the same endpoint are aggregated. - NO_AGGREGATION. An EndpointHealth message is returned for each backend in the health check service. - AND. If any backend's health check reports UNHEALTHY, then UNHEALTHY is the HealthState of the entire health check service. If all backend's are healthy, the HealthState of the health check service is HEALTHY. . + // This field is deprecated. Use health_status_aggregation_policy + // instead. + // + // Policy for how the results from multiple health checks for the + // same endpoint are aggregated. + // + // - NO_AGGREGATION. An EndpointHealth + // message is returned for each backend in the health check + // service. + // - AND. If any backend's health check reportsUNHEALTHY, then UNHEALTHY is theHealthState of the entire health check service. If + // all backend's are healthy, the HealthState of the + // health check service is HEALTHY. + // + // . // Check the HealthStatusAggregationStrategy enum for the list of possible values. optional string health_status_aggregation_strategy = 254394106; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output only] Type of the resource. Always compute#healthCheckServicefor health check services. + // [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. optional string kind = 3292052; - // Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. The name must be 1-63 characters long, and comply + // with RFC1035. Specifically, the name must be 1-63 characters + // long and match the regular expression + // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + // must be a lowercase letter, and all following characters must be a dash, + // lowercase letter, or digit, except the last character, which cannot be a + // dash. optional string name = 3373707; - // A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For regional HealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For global HealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT. + // A list of URLs to the NetworkEndpointGroup + // resources. Must not have more than 100. For regionalHealthCheckService, NEGs must be in + // zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups + // must be global INTERNET_IP_PORT. repeated string network_endpoint_groups = 29346733; - // A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of endpoints for receiving notifications of change in health status. For regional HealthCheckService, NotificationEndpoint must be regional and in the same region. For global HealthCheckService, NotificationEndpoint must be global. + // A list of URLs to the NotificationEndpoint + // resources. Must not have more than 10. A list of endpoints for + // receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the + // same region. For global HealthCheckService,NotificationEndpoint must be global. repeated string notification_endpoints = 406728490; - // [Output Only] URL of the region where the health check service resides. This field is not applicable to global health check services. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the health check service + // resides. This field is not applicable to global health check services. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. @@ -13757,7 +26275,12 @@ message HealthCheckService { } -// A full or valid partial URL to a health check service. For example, the following are valid URLs: - https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/healthCheckServices/health-check-service - projects/project-id/regions/us-west1/healthCheckServices/health-check-service - regions/us-west1/healthCheckServices/health-check-service +// A full or valid partial URL to a health check service. For example, the +// following are valid URLs: +// +// - https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/healthCheckServices/health-check-service +// - projects/project-id/regions/us-west1/healthCheckServices/health-check-service +// - regions/us-west1/healthCheckServices/health-check-service message HealthCheckServiceReference { optional string health_check_service = 408374747; @@ -13771,10 +26294,15 @@ message HealthCheckServicesList { // A list of HealthCheckService resources. repeated HealthCheckService items = 100526016; - // [Output Only] Type of the resource. Always compute#healthCheckServicesList for lists of HealthCheckServices. + // [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of + // HealthCheckServices. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -13796,7 +26324,11 @@ message HealthChecksAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -13815,14 +26347,20 @@ message HealthChecksScopedList { // A list of HealthChecks contained in this scope. repeated HealthCheck health_checks = 448370606; - // Informational warning which replaces the list of backend services when the list is empty. + // Informational warning which replaces the list of + // backend services when the list is empty. optional Warning warning = 50704284; } -// Represents a health source. A health source resource specifies the source resources and the health aggregation policy applied to the source resources to determine the aggregated health status. +// Represents a health source. +// +// A health source resource specifies the source resources and the health +// aggregation policy applied to the source resources to determine the +// aggregated health status. message HealthSource { - // Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be specified when the HealthSource is created, and cannot be mutated. + // Specifies the type of the HealthSource. The only allowed value + // is BACKEND_SERVICE. Must be specified when theHealthSource is created, and cannot be mutated. enum SourceType { // A value indicating that the enum field is not set. UNDEFINED_SOURCE_TYPE = 0; @@ -13831,28 +26369,48 @@ message HealthSource { } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the HealthSource. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a HealthSource. An up-to-date fingerprint + // must be provided in order to patch the HealthSource; Otherwise, the request + // will fail with error 412 conditionNotMet. To see the latest + // fingerprint, make a get() request to retrieve the + // HealthSource. optional string fingerprint = 234678500; - // URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same region as the HealthSource. Can be mutated. + // URL to the HealthAggregationPolicy resource. Must be set. Must + // be regional and in the same region as the HealthSource. Can be + // mutated. optional string health_aggregation_policy = 240314354; - // [Output Only] A unique identifier for this resource type. The server generates this identifier. + // [Output Only] A unique identifier for this resource type. The server + // generates this identifier. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#healthSource for health sources. + // [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // [Output Only] URL of the region where the health source resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the health source resides. + // This field applies only to the regional resource. You must specify this + // field as part of the HTTP request URL. It is not settable as a field in + // the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. @@ -13861,11 +26419,16 @@ message HealthSource { // [Output Only] Server-defined URL with id for the resource. optional string self_link_with_id = 44520962; - // Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be specified when the HealthSource is created, and cannot be mutated. + // Specifies the type of the HealthSource. The only allowed value + // is BACKEND_SERVICE. Must be specified when theHealthSource is created, and cannot be mutated. // Check the SourceType enum for the list of possible values. optional string source_type = 452245726; - // URLs to the source resources. Must be size 1. Must be a BackendService if the sourceType is BACKEND_SERVICE. The BackendService must have load balancing scheme INTERNAL or INTERNAL_MANAGED and must be regional and in the same region as the HealthSource (cross-region deployment for INTERNAL_MANAGED is not supported). The BackendService may use only IGs, MIGs, or NEGs of type GCE_VM_IP or GCE_VM_IP_PORT. The BackendService may not use haPolicy. Can be mutated. + // URLs to the source resources. Must be size 1. Must be aBackendService if + // the sourceType is BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED and must be regional + // and in the same region as the HealthSource (cross-region + // deployment for INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be + // mutated. repeated string sources = 125606840; } @@ -13881,12 +26444,19 @@ message HealthSourceAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; + // [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + // [Output Only] Informational warning message. optional Warning warning = 50704284; @@ -13900,10 +26470,14 @@ message HealthSourceList { // A list of HealthSource resources. repeated HealthSource items = 100526016; - // [Output Only] Type of the resource. Always compute#healthSource for health sources. + // [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -13919,7 +26493,8 @@ message HealthSourcesScopedList { // A list of HealthSources contained in this scope. repeated HealthSource health_sources = 397879509; - // Informational warning which replaces the list of health sources when the list is empty. + // Informational warning which replaces the list of + // health sources when the list is empty. optional Warning warning = 50704284; } @@ -13955,16 +26530,28 @@ message HealthStatus { // A value indicating that the enum field is not set. UNDEFINED_WEIGHT_ERROR = 0; - // The response to a Health Check probe had the HTTP response header field X-Load-Balancing-Endpoint-Weight, but its content was invalid (i.e., not a non-negative single-precision floating-point number in decimal string representation). + // The response to a Health Check probe had the HTTP response header field + // X-Load-Balancing-Endpoint-Weight, but its content was invalid (i.e., not + // a non-negative single-precision floating-point number in decimal string + // representation). INVALID_WEIGHT = 383698400; - // The response to a Health Check probe did not have the HTTP response header field X-Load-Balancing-Endpoint-Weight. + // The response to a Health Check probe did not have the HTTP response + // header field X-Load-Balancing-Endpoint-Weight. MISSING_WEIGHT = 384027537; - // This is the value when the accompanied health status is either TIMEOUT (i.e.,the Health Check probe was not able to get a response in time) or UNKNOWN. For the latter, it should be typically because there has not been sufficient time to parse and report the weight for a new backend (which is with 0.0.0.0 ip address). However, it can be also due to an outage case for which the health status is explicitly reset to UNKNOWN. + // This is the value when the accompanied health status is either TIMEOUT + // (i.e.,the Health Check probe was not able to get a response in time) or + // UNKNOWN. For the latter, it should be typically because there has not + // been sufficient time to parse and report the weight for a new backend + // (which is with 0.0.0.0 ip address). However, it can be also due to an + // outage case for which the health status is explicitly reset to UNKNOWN. UNAVAILABLE_WEIGHT = 439464295; - // This is the default value when WeightReportMode is DISABLE, and is also the initial value when WeightReportMode has just updated to ENABLE or DRY_RUN and there has not been sufficient time to parse and report the backend weight. + // This is the default value when WeightReportMode is DISABLE, + // and is also the initial value when WeightReportMode has just updated to + // ENABLE or DRY_RUN and there has not been + // sufficient time to parse and report the backend weight. WEIGHT_NONE = 502428831; } @@ -13972,7 +26559,8 @@ message HealthStatus { // Metadata defined as annotations for network endpoint. map annotations = 112032548; - // URL of the forwarding rule associated with the health status of the instance. + // URL of the forwarding rule associated with the health status of the + // instance. optional string forwarding_rule = 269964030; // A forwarding rule IP address assigned to this instance. @@ -13985,7 +26573,9 @@ message HealthStatus { // URL of the instance resource. optional string instance = 18257045; - // For target pool based Network Load Balancing, it indicates the forwarding rule's IP address assigned to this instance. For other types of load balancing, the field indicates VM internal ip. + // For target pool based Network Load Balancing, it indicates the forwarding + // rule's IP address assigned to this instance. For other types of load + // balancing, the field indicates VM internal ip. optional string ip_address = 406272220; optional string ipv6_address = 341563804; @@ -13994,7 +26584,8 @@ message HealthStatus { // Check the Ipv6HealthState enum for the list of possible values. optional string ipv6_health_state = 190316614; - // The named port of the instance group, not necessarily the port that is health-checked. + // The named port of the instance group, not necessarily the port that is + // health-checked. optional int32 port = 3446913; optional string weight = 282149496; @@ -14007,7 +26598,8 @@ message HealthStatus { // message HealthStatusForNetworkEndpoint { - // Health state of the network endpoint determined based on the health checks configured. + // Health state of the network endpoint determined based on the health checks + // configured. // Additional supported values which may be not listed in the enum directly due to technical reasons: // DRAINING // HEALTHY @@ -14027,7 +26619,8 @@ message HealthStatusForNetworkEndpoint { } - // Health state of the ipv6 network endpoint determined based on the health checks configured. + // Health state of the ipv6 network endpoint determined based on the health + // checks configured. // Additional supported values which may be not listed in the enum directly due to technical reasons: // DRAINING // HEALTHY @@ -14039,29 +26632,39 @@ message HealthStatusForNetworkEndpoint { } - // URL of the backend service associated with the health state of the network endpoint. + // URL of the backend service associated with the health state of the network + // endpoint. optional BackendServiceReference backend_service = 306946058; - // URL of the forwarding rule associated with the health state of the network endpoint. + // URL of the forwarding rule associated with the health state of the network + // endpoint. optional ForwardingRuleReference forwarding_rule = 269964030; - // URL of the health check associated with the health state of the network endpoint. + // URL of the health check associated with the health state of the network + // endpoint. optional HealthCheckReference health_check = 308876645; - // URL of the health check service associated with the health state of the network endpoint. + // URL of the health check service associated with the health state of the + // network endpoint. optional HealthCheckServiceReference health_check_service = 408374747; - // Health state of the network endpoint determined based on the health checks configured. + // Health state of the network endpoint determined based on the health checks + // configured. // Check the HealthState enum for the list of possible values. optional string health_state = 324007150; - // Health state of the ipv6 network endpoint determined based on the health checks configured. + // Health state of the ipv6 network endpoint determined based on the health + // checks configured. // Check the Ipv6HealthState enum for the list of possible values. optional string ipv6_health_state = 190316614; } -// Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit. +// Provides links to documentation or for performing an out of band action. +// +// For example, if a quota check failed with an error indicating the calling +// project hasn't enabled the accessed service, this can contain a URL pointing +// directly to the right place in the developer console to flip the bit. message Help { // URL(s) pointing to additional information on handling the current error. repeated HelpLink links = 102977465; @@ -14078,102 +26681,201 @@ message HelpLink { } -// UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService. +// UrlMaps +// A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the BackendService. message HostRule { - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. + // The list of host patterns to match. They must be valid hostnames with + // optional port numbers in the format host:port.* matches any string of ([a-z0-9-.]*). In + // that case, * must be the first character, and if followed by + // anything, the immediate following character must be either - + // or .. + // + // * based matching is not supported when the URL map is bound + // to a target gRPC proxy that has the validateForProxyless field + // set to true. repeated string hosts = 99467211; - // The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. + // The name of the PathMatcher to use to match the path portion + // of the URL if the hostRule matches the URL's host portion. optional string path_matcher = 337813272; } // Specification for how requests are aborted as part of fault injection. message HttpFaultAbort { - // The HTTP status code used to abort the request. The value must be from 200 to 599 inclusive. For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director. + // The HTTP status code used to abort the request. + // + // The value must be from 200 to 599 inclusive. + // + // For gRPC protocol, the gRPC status code is mapped to HTTP status code + // according to this + // mapping table. HTTP status 200 is mapped to gRPC status + // UNKNOWN. Injecting an OK status is currently not supported by + // Traffic Director. optional uint32 http_status = 468949897; - // The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection. The value must be from 0.0 to 100.0 inclusive. + // The percentage of traffic for connections, operations, or requests + // that is aborted as part of fault injection. + // + // The value must be from 0.0 to 100.0 inclusive. optional double percentage = 151909018; } -// Specifies the delay introduced by the load balancer before forwarding the request to the backend service as part of fault injection. +// Specifies the delay introduced by the load balancer before forwarding the +// request to the backend service as part of fault injection. message HttpFaultDelay { // Specifies the value of the fixed delay interval. optional Duration fixed_delay = 317037816; - // The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive. + // The percentage of traffic for connections, operations, or requests for + // which a delay is introduced as part of fault injection. + // + // The value must be from 0.0 to 100.0 inclusive. optional double percentage = 151909018; } -// The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by the load balancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. +// The specification for fault injection introduced into traffic to test +// the resiliency of clients to backend service failure. As part of fault +// injection, when clients send requests to a backend service, delays can be +// introduced by the load balancer on a percentage of requests before sending +// those request to the backend service. Similarly requests from clients can be +// aborted by the load balancer for a percentage of requests. message HttpFaultInjection { - // The specification for how client requests are aborted as part of fault injection. + // The specification for how client requests are aborted as part of fault + // injection. optional HttpFaultAbort abort = 92611376; - // The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. + // The specification for how client requests are delayed as part of fault + // injection, before being sent to a backend service. optional HttpFaultDelay delay = 95467907; } -// HttpFilterConfiguration supplies additional contextual settings for networkservices.HttpFilter resources enabled by Traffic Director. +// HttpFilterConfiguration supplies additional contextual settings +// for networkservices.HttpFilter resources enabled by Traffic +// Director. message HttpFilterConfig { - // The configuration needed to enable the networkservices.HttpFilter resource. The configuration must be YAML formatted and only contain fields defined in the protobuf identified in configTypeUrl + // The configuration needed to enable thenetworkservices.HttpFilter resource. The configuration must be + // YAML formatted and only contain fields defined in the protobuf identified + // in configTypeUrl optional string config = 255820610; - // The fully qualified versioned proto3 type url of the protobuf that the filter expects for its contextual settings, for example: type.googleapis.com/google.protobuf.Struct + // The fully qualified versioned proto3 type url of the protobuf that the + // filter expects for its contextual settings, for example:type.googleapis.com/google.protobuf.Struct optional string config_type_url = 344821575; - // Name of the networkservices.HttpFilter resource this configuration belongs to. This name must be known to the xDS client. Example: envoy.wasm + // Name of the networkservices.HttpFilter resource this + // configuration belongs to. This name must be known to the xDS client. + // Example: envoy.wasm optional string filter_name = 183620338; } -// The request and response header transformations that take effect before the request is passed along to the selected backendService. +// The request and response header transformations that take effect before +// the request is passed along to the selected backendService. message HttpHeaderAction { - // Headers to add to a matching request before forwarding the request to the backendService. + // Headers to add to a matching request before forwarding the request to thebackendService. repeated HttpHeaderOption request_headers_to_add = 72111974; - // A list of header names for headers that need to be removed from the request before forwarding the request to the backendService. + // A list of header names for headers that need to be removed from the + // request before forwarding the request to the backendService. repeated string request_headers_to_remove = 218425247; - // Headers to add the response before sending the response back to the client. + // Headers to add the response before sending the response back to the + // client. repeated HttpHeaderOption response_headers_to_add = 32136052; - // A list of header names for headers that need to be removed from the response before sending the response back to the client. + // A list of header names for headers that need to be removed from the + // response before sending the response back to the client. repeated string response_headers_to_remove = 75415761; } // matchRule criteria for request header matches. message HttpHeaderMatch { - // The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. + // The value should exactly match contents of exactMatch. + // + // Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set. optional string exact_match = 457641093; - // The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true, only non-binary user-specified custom metadata and the `content-type` header are supported. The following transport-level headers cannot be used in header matching rules: `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content-encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`, `grpc-timeout` and `grpc-trace-bin`. + // The name of the HTTP header to match. + // + // For matching against the HTTP request's authority, use a headerMatch + // with the header name ":authority". + // + // For matching a request's method, use the headerName ":method". + // + // When the URL map is bound to a target gRPC proxy that has + // the validateForProxyless field set to true, only + // non-binary + // user-specified custom metadata and the `content-type` header are supported. + // The following transport-level headers cannot be used in header matching + // rules: + // `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, + // `accept-encoding`, `content-encoding`, `grpc-accept-encoding`, + // `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`, + // `grpc-timeout` and `grpc-trace-bin`. optional string header_name = 110223613; - // If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false. + // If set to false, the headerMatch is considered a + // match if the preceding match criteria are met. If set to true, + // the headerMatch is considered a match if the preceding + // match criteria are NOT met. + // + // The default setting is false. optional bool invert_match = 501130268; - // The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. + // The value of the header must start with the contents ofprefixMatch. + // + // Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set. optional string prefix_match = 257898968; - // A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. + // A header with the contents of headerName must exist. The + // match takes place whether or not the request's header has a value. + // + // Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set. optional bool present_match = 67435841; - // The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL. + // The header value must be an integer and its value must be in the range + // specified in rangeMatch. If the header does not contain an + // integer, number or is empty, the match fails. + // + // For example for a range [-5, 0] + // + // + // - -3 will match. + // - 0 will not match. + // - 0.25 will not match. + // - -3someString will not match. + // + // Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set. + // + // rangeMatch is not supported for load balancers + // that have loadBalancingScheme set to EXTERNAL. optional Int64RangeMatch range_match = 97244227; - // The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. + // The value of the header must match the regular expression specified inregexMatch. + // For more information about regular expression syntax, see Syntax. + // + // For matching against a port specified in the HTTP request, use a + // headerMatch with headerName set to PORT and a regular expression that + // satisfies the RFC2616 Host header's port specifier. + // + // Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set. + // + // Regular expressions can only be used when the loadBalancingScheme is + // set to INTERNAL_SELF_MANAGED. optional string regex_match = 107387853; - // The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. + // The value of the header must end with the contents ofsuffixMatch. + // + // Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set. optional string suffix_match = 426488663; } @@ -14186,30 +26888,64 @@ message HttpHeaderOption { // The value of the header to add. optional string header_value = 203094335; - // If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is true, unless a variable is present in headerValue, in which case the default value is false. . + // If false, headerValue is appended to any values + // that already + // exist for the header. If true, headerValue is set for the + // header, discarding any values that were set for that header. + // + // The default value is true, + // unless a variable is present in headerValue, + // in which case the default value is false. + // . optional bool replace = 20755124; } // HttpRouteRuleMatch criteria for a request's query parameter. message HttpQueryParameterMatch { - // The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set. + // The queryParameterMatch matches if the value of the + // parameter exactly matches the contents of exactMatch. + // + // Only one of presentMatch, exactMatch, orregexMatch must be set. optional string exact_match = 457641093; - // The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails. + // The name of the query parameter to match. The query parameter must exist in + // the request, in the absence of which the request match fails. optional string name = 3373707; - // Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, or regexMatch must be set. + // Specifies that the queryParameterMatch matches if the + // request contains the query parameter, irrespective of whether the + // parameter has a value or not. + // + // Only one of presentMatch, exactMatch, orregexMatch must be set. optional bool present_match = 67435841; - // The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. + // The queryParameterMatch matches if the value of the + // parameter matches the regular expression specified byregexMatch. For + // more information about regular expression syntax, see Syntax. + // + // Only one of presentMatch, exactMatch, orregexMatch must be set. + // + // Regular expressions can only be used when the loadBalancingScheme is + // set to INTERNAL_SELF_MANAGED. optional string regex_match = 107387853; } // Specifies settings for an HTTP redirect. message HttpRedirectAction { - // The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained. + // The HTTP Status code to use for this RedirectAction. + // + // Supported values are: + // + // - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds + // to 301. + // - FOUND, which corresponds to 302. + // - SEE_OTHER which corresponds to 303. + // - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request + // method is retained. + // - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request + // method is retained. enum RedirectResponseCode { // A value indicating that the enum field is not set. UNDEFINED_REDIRECT_RESPONSE_CODE = 0; @@ -14231,133 +26967,449 @@ message HttpRedirectAction { } - // The host that is used in the redirect response instead of the one that was supplied in the request. The value must be from 1 to 255 characters. + // The host that is used in the redirect response instead of the one that + // was supplied in the request. + // + // The value must be from 1 to 255 + // characters. optional string host_redirect = 107417747; - // If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the URL scheme of the redirected request remains the same as that of the request. This must only be set for URL maps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false. + // If set to true, the URL scheme in the redirected request is + // set to HTTPS. + // If set to false, the URL scheme of the redirected request + // remains the same as that of the request. + // + // This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted. + // + // The default is set to false. optional bool https_redirect = 170260656; - // The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters. + // The path that is used in the redirect response instead of the one + // that was supplied in the request. + // + // pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is + // supplied, the path of the original request is used for the redirect. + // + // The value must be from 1 to 1024 characters. optional string path_redirect = 272342710; - // The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters. + // The prefix that replaces the prefixMatch specified in + // the HttpRouteRuleMatch, retaining the remaining portion + // of the URL before redirecting the request. + // + // prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is + // supplied, the path of the original request is used for the redirect. + // + // The value must be from 1 to 1024 characters. optional string prefix_redirect = 446184169; - // The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained. + // The HTTP Status code to use for this RedirectAction. + // + // Supported values are: + // + // - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds + // to 301. + // - FOUND, which corresponds to 302. + // - SEE_OTHER which corresponds to 303. + // - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request + // method is retained. + // - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request + // method is retained. // Check the RedirectResponseCode enum for the list of possible values. optional string redirect_response_code = 436710408; - // If set to true, any accompanying query portion of the original URL is removed before redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. + // If set to true, any accompanying query portion of the original + // URL is + // removed before redirecting the request. If set to false, the + // query portion of the original URL is retained. + // + // The default is set to false. optional bool strip_query = 52284641; } // The retry policy associates with HttpRouteRule message HttpRetryPolicy { - // Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1. + // Specifies the allowed number retries. This number must be > 0. + // If not specified, defaults to 1. optional uint32 num_retries = 251680141; - // Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in the HttpRouteAction field. If timeout in the HttpRouteAction field is not set, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. + // Specifies a non-zero timeout per retry attempt. + // + // If not specified, will use the timeout set in theHttpRouteAction field. + // If timeout in the HttpRouteAction field is not set, this field + // uses the largest timeout + // among all backend services associated with the route. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has the validateForProxyless field set to true. optional Duration per_try_timeout = 280041147; - // Specifies one or more conditions when this retry policy applies. Valid values are: - 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. - connect-failure: a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts. - retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409. - refused-stream: a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded. - internal: a retry is attempted if the gRPC status code in the response header is set to internal. - resource-exhausted: a retry is attempted if the gRPC status code in the response header is set to resource-exhausted. - unavailable: a retry is attempted if the gRPC status code in the response header is set to unavailable. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. - cancelled - deadline-exceeded - internal - resource-exhausted - unavailable + // Specifies one or more conditions when this retry policy applies. Valid + // values are: + // + // - 5xx: retry is attempted if the instance or endpoint + // responds with any 5xx response code, or if the instance or + // endpoint does not respond at all. For example, disconnects, reset, read + // timeout, connection failure, and refused streams. + // - gateway-error: Similar to 5xx, but only + // applies to response codes 502, 503 or504. + // - connect-failure: a retry is attempted on failures + // connecting to the instance or endpoint. For example, connection + // timeouts. + // - retriable-4xx: a retry is attempted if the instance + // or endpoint responds with a 4xx response code. + // The only error that you can retry is error code 409. + // - refused-stream: a retry is attempted if the instance + // or endpoint resets the stream with a REFUSED_STREAM error + // code. This reset type indicates that it is safe to retry. + // - cancelled: a retry is attempted if the gRPC status + // code in the response header is set to cancelled. + // - deadline-exceeded: a retry is attempted if the gRPC + // status code in the response header is set todeadline-exceeded. + // - internal: a retry is attempted if the gRPC + // status code in the response header is set tointernal. + // - resource-exhausted: a retry is attempted if the gRPC + // status code in the response header is set toresource-exhausted. + // - unavailable: a retry is attempted if the gRPC + // status code in the response header is set tounavailable. + // + // Only the following codes are supported when the URL map is bound to + // target gRPC proxy that has validateForProxyless field set to true. + // + // - cancelled + // - deadline-exceeded + // - internal + // - resource-exhausted + // - unavailable repeated string retry_conditions = 28815535; } // message HttpRouteAction { - // The specification for allowing client-side cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. Not supported when the URL map is bound to a target gRPC proxy. + // The specification for allowing client-side cross-origin requests. For more + // information about the W3C recommendation for cross-origin resource sharing + // (CORS), see Fetch API Living + // Standard. + // + // Not supported when the URL map is bound to a target gRPC proxy. optional CorsPolicy cors_policy = 398943748; - // The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. timeout and retry_policy is ignored by clients that are configured with a fault_injection_policy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection. Fault injection is not supported with the classic Application Load Balancer . To see which load balancers support fault injection, see Load balancing: Routing and traffic management features. + // The specification for fault injection introduced into traffic to test + // the resiliency of clients to backend service failure. As part of fault + // injection, when clients send requests to a backend service, delays can be + // introduced by a load balancer on a percentage of requests before sending + // those requests to the backend service. Similarly requests from clients can + // be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients + // that are configured with a fault_injection_policy if: + // 1. The traffic is generated by fault injection AND + // 2. The fault injection is not a delay fault injection. + // Fault injection is not supported with the classic Application Load Balancer + // . To see which load balancers support fault injection, + // see Load + // balancing: Routing and traffic management features. optional HttpFaultInjection fault_injection_policy = 412781079; - // Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout field where the timeout duration starts from the time the request has been fully processed (known as *end-of-stream*), the duration in this field is computed from the beginning of the stream until the response has been processed, including all retries. A stream that does not complete in this duration is closed. If not specified, this field uses the maximum maxStreamDuration value among all backend services associated with the route. This field is only allowed if the Url map is used with backend services with loadBalancingScheme set to INTERNAL_SELF_MANAGED. + // Specifies the maximum duration (timeout) for streams on the selected route. + // Unlike the timeout field where the timeout duration starts + // from the time the request has been fully processed (known as*end-of-stream*), + // the duration in this field is computed from the beginning of the stream + // until the response has been processed, including all retries. A + // stream that does not complete in this duration is closed. + // + // If not specified, this field uses the maximummaxStreamDuration value among all backend services associated + // with the route. + // + // This field is only allowed if the Url map is used with backend services + // with loadBalancingScheme set toINTERNAL_SELF_MANAGED. optional Duration max_stream_duration = 61428376; - // Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. + // Specifies the policy on how requests intended for the route's backends + // are shadowed to a separate mirrored backend service. The load balancer does + // not wait for responses from the shadow service. Before sending traffic + // to the shadow service, the host / authority header is suffixed with-shadow. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has the validateForProxyless field set to true. optional RequestMirrorPolicy request_mirror_policy = 220196866; // Specifies the retry policy associated with this route. optional HttpRetryPolicy retry_policy = 56799913; - // Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as *end-of-stream*) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. + // Specifies the timeout for the selected route. Timeout is computed from the + // time the request has been fully processed (known as *end-of-stream*) + // up until the response has been processed. Timeout includes + // all retries. + // + // If not specified, this field uses the largest timeout among all backend + // services associated with the route. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has validateForProxyless field set to true. optional Duration timeout = 296701281; - // The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for classic Application Load Balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. + // The spec to modify the URL of the request, before forwarding the request + // to the matched service. + // + // urlRewrite is the only action supported in UrlMaps + // for classic Application Load Balancers. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has the validateForProxyless field set to true. optional UrlRewrite url_rewrite = 273333948; - // A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. + // A list of weighted backend services to send traffic to when a route match + // occurs. The weights determine the fraction of traffic that flows to + // their corresponding backend service. If all traffic needs to + // go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number. + // + // After a backend service is identified and before forwarding + // the request to + // the backend service, advanced routing actions such as URL rewrites and + // header transformations are applied depending on additional settings + // specified in this HttpRouteAction. repeated WeightedBackendService weighted_backend_services = 337028049; } -// The HttpRouteRule setting specifies how to match an HTTP request and the corresponding routing action that load balancing proxies perform. +// The HttpRouteRule setting specifies how to match an HTTP request +// and the corresponding routing action that load balancing proxies perform. message HttpRouteRule { - // customErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. If a policy for an error code is not configured for the RouteRule, a policy for the error code configured in pathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified in pathMatcher.defaultCustomErrorResponsePolicy, the policy configured in UrlMap.defaultCustomErrorResponsePolicy takes effect. For example, consider a UrlMap with the following configuration: - UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx errors - A RouteRule for /coming_soon/ is configured for the error code 404. If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with routeRules.routeAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the customErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the customErrorResponsePolicy is ignored and the response from the service is returned to the client. customErrorResponsePolicy is supported only for global external Application Load Balancers. + // customErrorResponsePolicy specifies how the Load + // Balancer returns error responses when BackendServiceorBackendBucket responds with an error. + // + // If a policy for an + // error code is not configured for the RouteRule, a policy for + // the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If + // one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy + // configured in UrlMap.defaultCustomErrorResponsePolicy takes + // effect. + // + // For example, consider a UrlMap with the following configuration: + // + // + // - UrlMap.defaultCustomErrorResponsePolicy are configured + // with policies for 5xx and 4xx errors + // - A RouteRule for /coming_soon/ is configured for the + // error code 404. + // + // If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher's policy + // takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404, + // the policy in RouteRule.customErrorResponsePolicy takes + // effect. If any of the requests in this example encounter a 500 + // error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + // + // When + // used in conjunction withrouteRules.routeAction.retryPolicy, retries take + // precedence. Only once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting + // a retry, if load balancer is successful in reaching the + // service, the customErrorResponsePolicy is ignored and + // the response from the service is returned to the client. + // + // customErrorResponsePolicy is supported only for + // global external Application Load Balancers. optional CustomErrorResponsePolicy custom_error_response_policy = 202816619; - // The short description conveying the intent of this routeRule. The description can have a maximum length of 1024 characters. + // The short description conveying the intent of this routeRule. + // + // + // The description can have a maximum length of 1024 characters. optional string description = 422937596; - // Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction value specified here is applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction HeaderAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. + // Specifies changes to request and response headers that need to take effect + // for the selected backendService. + // + // The headerAction value specified here is applied before the + // matching pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction + // + // HeaderAction is not supported for load balancers + // that have + // their loadBalancingScheme set to EXTERNAL. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has validateForProxyless field set to true. optional HttpHeaderAction header_action = 328077352; - // Outbound route specific configuration for networkservices.HttpFilter resources enabled by Traffic Director. httpFilterConfigs only applies for load balancers with loadBalancingScheme set to INTERNAL_SELF_MANAGED. See ForwardingRule for more details. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. + // Outbound route specific configuration fornetworkservices.HttpFilter resources enabled by Traffic + // Director. httpFilterConfigs only applies for load balancers + // with loadBalancingScheme set toINTERNAL_SELF_MANAGED. See ForwardingRule for + // more details. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has validateForProxyless field set to true. repeated HttpFilterConfig http_filter_configs = 166372417; - // Outbound route specific metadata supplied to networkservices.HttpFilter resources enabled by Traffic Director. httpFilterMetadata only applies for load balancers with loadBalancingScheme set to INTERNAL_SELF_MANAGED. See ForwardingRule for more details. The only configTypeUrl supported is type.googleapis.com/google.protobuf.Struct Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. + // Outbound route specific metadata supplied tonetworkservices.HttpFilter resources enabled by Traffic + // Director. httpFilterMetadata only applies for load balancers + // with loadBalancingScheme set toINTERNAL_SELF_MANAGED. See ForwardingRule for + // more details. + // + // The only configTypeUrl supported istype.googleapis.com/google.protobuf.Struct + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has validateForProxyless field set to true. repeated HttpFilterConfig http_filter_metadata = 455841375; - // The list of criteria for matching attributes of a request to this routeRule. This list has OR semantics: the request matches this routeRule when any of the matchRules are satisfied. However predicates within a given matchRule have AND semantics. All predicates within a matchRule must match for the request to match the rule. + // The list of criteria for matching attributes of a request to thisrouteRule. This list has OR semantics: the request matches + // this routeRule when any of thematchRules are satisfied. However predicates within + // a given matchRule have AND semantics. All predicates + // within a matchRule must match for the request to + // match the rule. repeated HttpRouteRuleMatch match_rules = 376200701; - // For routeRules within a given pathMatcher, priority determines the order in which a load balancer interprets routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number from 0 to 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules. + // For routeRules within a given pathMatcher, + // priority determines the order in which a load balancer interpretsrouteRules. RouteRules are evaluated in order + // of priority, from the lowest to highest number. The priority of a + // rule decreases as its number increases (1, 2, 3, N+1). The first rule + // that matches the request is applied. + // + // + // You cannot configure two or more routeRules with the same priority. + // Priority for each rule must be set to a number from 0 to 2147483647 + // inclusive. + // + // + // Priority numbers can have gaps, which enable you to add or remove rules + // in the future without affecting the rest of the rules. For example, 1, 2, + // 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you + // could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future + // without any impact on existing rules. optional int32 priority = 445151652; - // In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction. + // In response to a matching matchRule, the load balancer + // performs advanced routing actions, such as URL rewrites and header + // transformations, before forwarding the request to the selected backend. + // + // + // Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + // + // + // URL maps for classic Application Load Balancers only support + // the urlRewrite action within a route rule'srouteAction. optional HttpRouteAction route_action = 424563948; - // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. + // The full or partial URL of the backend service resource to which traffic + // is directed if this rule is matched. If routeAction is + // also specified, advanced routing actions, such as URL rewrites, + // take effect before sending the request to the backend. + // + // + // Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. optional string service = 373540533; - // When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy. + // When this rule is matched, the request is redirected to a URL + // specified by urlRedirect. + // + // + // Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + // + // + // Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction url_redirect = 405147820; } -// HttpRouteRuleMatch specifies a set of criteria for matching requests to an HttpRouteRule. All specified criteria must be satisfied for a match to occur. +// HttpRouteRuleMatch specifies a set of criteria for matching +// requests to an HttpRouteRule. All specified criteria must +// be satisfied for a match to occur. message HttpRouteRuleMatch { - // For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. fullPathMatch must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. + // For satisfying the matchRule condition, the path of the + // request must exactly match the value specified infullPathMatch after removing any query parameters and anchor + // that may be part of the original URL. + // + // fullPathMatch must be from 1 to 1024 characters. + // + // Only one of prefixMatch, fullPathMatch or regexMatch must be + // specified. optional string full_path_match = 214598875; - // Specifies a list of header match criteria, all of which must match corresponding headers in the request. + // Specifies a list of header match criteria, all of which must match + // corresponding headers in the request. repeated HttpHeaderMatch header_matches = 361903489; - // Specifies that prefixMatch and fullPathMatch matches are case sensitive. The default value is false. ignoreCase must not be used with regexMatch. Not supported when the URL map is bound to a target gRPC proxy. + // Specifies that prefixMatch and fullPathMatch + // matches are case sensitive. + // + // The default value is false. + // + // ignoreCase must not be used with regexMatch. + // + // Not supported when the URL map is bound to a target gRPC proxy. optional bool ignore_case = 464324989; - // Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. + // Opaque filter criteria used by the load balancer to restrict routing + // configuration to a limited set of xDS + // compliant clients. In their xDS requests to the load balancer, xDS clients + // present node + // metadata. When there is a match, the relevant routing configuration + // is made available to those proxies. + // + // For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one of thefilterLabels must match the corresponding label provided in + // the metadata. If its filterMatchCriteria is set to + // MATCH_ALL, then all of its filterLabels must match with + // corresponding labels provided in the metadata. If multiple + // metadata filters are specified, all of them need to be + // satisfied in order to be considered a match. + // + // metadataFilters specified here is applied after those + // specified in ForwardingRule that refers to theUrlMap this HttpRouteRuleMatch belongs to. + // + // metadataFilters only applies to load balancers that haveloadBalancingScheme set toINTERNAL_SELF_MANAGED. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has validateForProxyless field set to true. repeated MetadataFilter metadata_filters = 464725739; - // If specified, the route is a pattern match expression that must match the :path header once the query string is removed. A pattern match allows you to match - The value must be between 1 and 1024 characters - The pattern must start with a leading slash ("/") - There may be no more than 5 operators in pattern Precisely one of prefix_match, full_path_match, regex_match or path_template_match must be set. + // If specified, the route is a pattern match expression that must match the + // :path header once the query string is removed. + // + // A pattern match allows you to match + // + // + // - The value must be between 1 and 1024 characters + // - The pattern must start with a leading slash ("/") + // - There may be no more than 5 operators in pattern + // + // Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. optional string path_template_match = 292348186; - // For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. + // For satisfying the matchRule condition, the request's + // path must begin with the specified prefixMatch.prefixMatch must begin with a /. + // + // The value must be from 1 to 1024 characters. + // + // Only one of prefixMatch, fullPathMatch or regexMatch must be + // specified. optional string prefix_match = 257898968; - // Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy. + // Specifies a list of query parameter match criteria, all of which must + // match corresponding query parameters in the request. + // + // Not supported when the URL map is bound to a target gRPC proxy. repeated HttpQueryParameterMatch query_parameter_matches = 286231270; - // For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For more information about regular expression syntax, see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. + // For satisfying the matchRule condition, the path of the + // request must satisfy the regular expression specified inregexMatch after removing any query parameters and anchor + // supplied with the original URL. For + // more information about regular expression syntax, see Syntax. + // + // Only one of prefixMatch, fullPathMatch orregexMatch must be + // specified. + // + // Regular expressions can only be used when the loadBalancingScheme is + // set to INTERNAL_SELF_MANAGED. optional string regex_match = 107387853; } -// Represents an Image resource. You can use images to create boot disks for your VM instances. For more information, read Images. +// Represents an Image resource. +// +// You can use images to create boot disks for your VM instances. +// For more information, read Images. message Image { - // The architecture of the image. Valid values are ARM64 or X86_64. + // The architecture of the image. Valid values are + // ARM64 or X86_64. enum Architecture { // A value indicating that the enum field is not set. UNDEFINED_ARCHITECTURE = 0; @@ -14373,7 +27425,8 @@ message Image { } - // The type of the image used to create this disk. The default and only valid value is RAW. + // The type of the image used to create this disk. The + // default and only valid value is RAW. enum SourceType { // A value indicating that the enum field is not set. UNDEFINED_SOURCE_TYPE = 0; @@ -14382,7 +27435,10 @@ message Image { } - // [Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. + // [Output Only] The status of the image. An image can be used to create other + // resources, such as instances, only after the image has been successfully + // created and the status is set to READY. Possible + // values are FAILED, PENDING, orREADY. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -14401,47 +27457,84 @@ message Image { } - // The architecture of the image. Valid values are ARM64 or X86_64. + // The architecture of the image. Valid values are + // ARM64 or X86_64. // Check the Architecture enum for the list of possible values. optional string architecture = 302803283; - // Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). + // Size of the image tar.gz archive stored in Google Cloud + // Storage (in bytes). optional int64 archive_size_bytes = 381093450; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // The deprecation status associated with this image. optional DeprecationStatus deprecated = 515138995; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; // Size of the image when restored onto a persistent disk (in GB). optional int64 disk_size_gb = 316263735; - // Whether this image is created from a confidential compute mode disk. [Output Only]: This field is not set by user, but from source disk. + // Whether this image is created from a confidential compute mode disk. + // [Output Only]: This field is not set by user, but from source disk. optional bool enable_confidential_compute = 102135228; - // The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. + // The name of the image family to which this image belongs. The image + // family name can be from a publicly managed image family provided by + // Compute Engine, or from a custom image family you create. For example,centos-stream-9 is a publicly available image family. + // For more information, see Image + // family best practices. + // + // When creating disks, you can specify an image family instead of a specific + // image name. The image family always returns its latest image that is not + // deprecated. The name of the image family must comply with RFC1035. optional string family = 328751972; - // A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter. + // A list of features to enable on the guest operating system. Applicable + // only for bootable images. To see a list of available options, see theguestOSfeatures[].type parameter. repeated GuestOsFeature guest_os_features = 79294545; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later. + // Encrypts the image using acustomer-supplied + // encryption key. + // + // After you encrypt an image with a customer-supplied key, you must provide + // the same key if you use the image later (e.g. to create a disk from + // the image). + // + // Customer-supplied encryption keys do not protect access to metadata + // of the disk. + // + // If you do not provide an encryption key when creating the image, then the + // disk will be encrypted using an automatically generated key and you do not + // need to provide a key to use the image later. optional CustomerEncryptionKey image_encryption_key = 379512583; - // [Output Only] Type of the resource. Always compute#image for images. + // [Output Only] Type of the resource. Always compute#image for + // images. optional string kind = 3292052; - // A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an image. + // A fingerprint for the labels being applied to this image, which is + // essentially a hash of the labels used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve an image. optional string label_fingerprint = 178124825; - // Labels to apply to this image. These can be later modified by the setLabels method. + // Labels to apply to this image. These can be later modified by + // the setLabels method. map labels = 500195327; // Integer license codes indicating which licenses are attached to this image. @@ -14450,19 +27543,66 @@ message Image { // Any applicable license URI. repeated string licenses = 337642578; - // A flag for marketplace VM disk created from the image, which is designed for marketplace VM disk to prevent the proprietary data on the disk from being accessed unwantedly. The flag will be inherited by the disk created from the image. The disk with locked flag set to true will be prohibited from performing the operations below: - R/W or R/O disk attach - Disk detach, if disk is created via create-on-create - Create images - Create snapshots - Create disk clone (create disk from the current disk) The image with the locked field set to true will be prohibited from performing the operations below: - Create images from the current image - Update the locked field for the current image The instance with at least one disk with locked flag set to true will be prohibited from performing the operations below: - Secondary disk attach - Create instant snapshot - Create machine images - Create instance template - Delete the instance with --keep-disk parameter set to true + // A flag for marketplace VM disk created from the image, which is designed + // for marketplace VM disk to prevent the proprietary data on the disk from + // being accessed unwantedly. The flag will be inherited by the disk created + // from the image. + // + // The disk with locked flag set to true will be prohibited from performing + // the operations below: + // + // - R/W or R/O disk attach + // - Disk detach, if disk is created via create-on-create + // - Create images + // - Create snapshots + // - Create disk clone (create disk from the current disk) + // + // + // + // The image with the locked field set to true will be prohibited from + // performing the operations below: + // + // - Create images from the current image + // - Update the locked field for the current image + // + // + // + // The instance with at least one disk with locked flag set to true will be + // prohibited from performing the operations below: + // + // - Secondary disk attach + // - Create instant snapshot + // - Create machine images + // - Create instance template + // - Delete the instance with --keep-disk parameter set to true optional bool locked = 513159946; - // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional ImageParams params = 78313862; // The parameters of the raw disk image. optional RawDisk raw_disk = 503113556; - // A rollout policy to apply to this image. When specified, the rollout policy overrides per-zone references to the image via the associated image family. The rollout policy restricts the zones where this image is accessible when using a zonal image family reference. When the rollout policy does not include the user specified zone, or if the zone is rolled out, this image is accessible. The rollout policy for this image is read-only, except for allowlisted users. This field might not be configured. To view the latest non-deprecated image in a specific zone, use the imageFamilyViews.get method. + // A rollout policy to apply to this image. When specified, the rollout policy + // overrides per-zone references to the image via the associated image family. + // The rollout policy restricts the zones where this image is accessible when + // using a zonal image family reference. When the rollout policy does not + // include the user specified zone, or if the zone is rolled out, this image + // is accessible. + // + // The rollout policy for this image is read-only, except for allowlisted + // users. This field might not be configured. To view the latest + // non-deprecated image in a specific zone, use theimageFamilyViews.get method. optional RolloutPolicy rollout_override = 180331162; // Output only. Reserved for future use. @@ -14477,52 +27617,121 @@ message Image { // Set the secure boot keys of shielded instance. optional InitialStateConfig shielded_instance_initial_state = 192356867; - // URL of the source disk used to create this image. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL + // URL of the source disk used to create this image. + // For example, the following are valid values: + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + // - projects/project/zones/zone/disks/disk + // - zones/zone/disks/disk + // + // + // + // In order to create an image, you must provide the full or partial URL of + // one of the following: + // + // - The rawDisk.source URL + // - The sourceDisk URL + // - The sourceImage URL + // - The sourceSnapshot URL optional string source_disk = 451753793; - // The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. + // Thecustomer-supplied + // encryption key of the source disk. Required if the source disk is + // protected by a customer-supplied encryption key. optional CustomerEncryptionKey source_disk_encryption_key = 531501153; - // [Output Only] The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name. + // [Output Only] + // The ID value of the disk used to create this image. This value may be used + // to determine whether the image was taken from the current or a previous + // instance of a given disk name. optional string source_disk_id = 454190809; - // URL of the source image used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - projects/project_id/global/images/image_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL + // URL of the source image used to create this image. + // The following are valid formats for the URL: + // + // - https://www.googleapis.com/compute/v1/projects/project_id/global/ + // images/image_name + // - projects/project_id/global/images/image_name + // + // + // + // In order to create an image, you must provide the full or partial URL of + // one of the following: + // + // - The rawDisk.source URL + // - The sourceDisk URL + // - The sourceImage URL + // - The sourceSnapshot URL optional string source_image = 50443319; - // The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. + // The customer-supplied encryption key of the source image. Required if the + // source image is protected by a customer-supplied encryption key. optional CustomerEncryptionKey source_image_encryption_key = 381503659; - // [Output Only] The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name. + // [Output Only] + // The ID value of the image used to create this image. This value may be used + // to determine whether the image was taken from the current or a previous + // instance of a given image name. optional string source_image_id = 55328291; - // URL of the source snapshot used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL + // URL of the source snapshot used to create this image. + // The following are valid formats for the URL: + // + // - https://www.googleapis.com/compute/v1/projects/project_id/global/ + // snapshots/snapshot_name + // - projects/project_id/global/snapshots/snapshot_name + // + // + // + // In order to create an image, you must provide the full or partial URL of + // one of the following: + // + // - The rawDisk.source URL + // - The sourceDisk URL + // - The sourceImage URL + // - The sourceSnapshot URL optional string source_snapshot = 126061928; - // The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. + // The customer-supplied encryption key of the source snapshot. Required if + // the source snapshot is protected by a customer-supplied encryption key. optional CustomerEncryptionKey source_snapshot_encryption_key = 303679322; - // [Output Only] The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name. + // [Output Only] + // The ID value of the snapshot used to create this image. This value may be + // used to determine whether the snapshot was taken from the current or a + // previous instance of a given snapshot name. optional string source_snapshot_id = 98962258; - // The type of the image used to create this disk. The default and only valid value is RAW. + // The type of the image used to create this disk. The + // default and only valid value is RAW. // Check the SourceType enum for the list of possible values. optional string source_type = 452245726; - // [Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. + // [Output Only] The status of the image. An image can be used to create other + // resources, such as instances, only after the image has been successfully + // created and the status is set to READY. Possible + // values are FAILED, PENDING, orREADY. // Check the Status enum for the list of possible values. optional string status = 181260274; - // Cloud Storage bucket storage location of the image (regional or multi-regional). + // Cloud Storage bucket storage location of the image (regional or + // multi-regional). repeated string storage_locations = 328005274; - // A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can be modified after the disk is created. This includes a list of URLs to the license resource. For example, to provide a debian license: https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + // A list of publicly visible user-licenses. Unlike regular licenses, user + // provided licenses can be modified after the disk is created. This includes + // a list of URLs to the license resource. For example, to provide a debian + // license: + // + // https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch repeated string user_licenses = 388193862; } // message ImageFamilyView { - // The latest image that is part of the specified image family in the requested location, and that is not deprecated. + // The latest image that is part of the specified image family in the + // requested location, and that is not deprecated. optional Image image = 100313435; } @@ -14538,7 +27747,11 @@ message ImageList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -14551,12 +27764,17 @@ message ImageList { // Additional image params. message ImageParams { - // Resource manager tags to be bound to the image. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + // Resource manager tags to be bound to the image. Tag keys and values have + // the same definition as resource + // manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and + // values are in the format `tagValues/456`. The field is ignored (both PUT & + // PATCH) when empty. map resource_manager_tags = 377671164; } -// Initial State for shielded instance, these are public keys which are safe to store in public +// Initial State for shielded instance, +// these are public keys which are safe to store in public message InitialStateConfig { // The Key Database (db). repeated FileContentBuffer dbs = 99253; @@ -14589,7 +27807,19 @@ message InsertAddressRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14605,7 +27835,19 @@ message InsertAutoscalerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the zone for this request. @@ -14627,7 +27869,19 @@ message InsertBackendBucketRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14643,7 +27897,19 @@ message InsertBackendServiceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14659,7 +27925,20 @@ message InsertCrossSiteNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; // [Input Only] Validate the new configuration, but don't create it. @@ -14678,7 +27957,19 @@ message InsertDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Source image to restore onto a disk. This field is optional. @@ -14703,7 +27994,19 @@ message InsertExternalVpnGatewayRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14713,13 +28016,27 @@ message InsertFirewallPolicyRequest { // The body resource for this request FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED]; - // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + // if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + // parent is an organization. string parent_id = 459714768 [ (google.cloud.operation_request_field) = "parent_id", (google.api.field_behavior) = REQUIRED ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14735,7 +28052,19 @@ message InsertFirewallRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14757,7 +28086,19 @@ message InsertForwardingRuleRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14773,7 +28114,19 @@ message InsertFutureReservationRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the zone for this request. Name should conform to RFC1035. @@ -14795,7 +28148,19 @@ message InsertGlobalAddressRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14811,7 +28176,19 @@ message InsertGlobalForwardingRuleRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14827,7 +28204,19 @@ message InsertGlobalNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14843,7 +28232,19 @@ message InsertGlobalPublicDelegatedPrefixeRequest { // The body resource for this request PublicDelegatedPrefix public_delegated_prefix_resource = 47594501 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14859,7 +28260,19 @@ message InsertHealthCheckRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14878,7 +28291,19 @@ message InsertImageRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -14894,10 +28319,23 @@ message InsertInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where you want to create the managed instance group. + // The name of the zone + // where you want to create the managed instance group. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -14907,7 +28345,9 @@ message InsertInstanceGroupManagerRequest { // A request message for InstanceGroupManagerResizeRequests.Insert. See the method description for details. message InsertInstanceGroupManagerResizeRequestRequest { - // The name of the managed instance group to which the resize request will be added. Name should conform to RFC1035 or be a resource ID. + // The name of the managed instance group to which the resize request will + // be added. + // Name should conform to RFC1035 or be a resource ID. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -14919,10 +28359,24 @@ message InsertInstanceGroupManagerResizeRequestRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located and where the resize request will be created. Name should conform to RFC1035. + // The name of thezone where the managed + // instance group is located and where the resize request will be created. + // Name should conform to RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -14941,10 +28395,23 @@ message InsertInstanceGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where you want to create the instance group. + // The name of the zone + // where you want to create the instance group. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -14963,13 +28430,41 @@ message InsertInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate + // Specifies instance template to create the instance. + // + // This field is optional. It can be a full or partial URL. For example, the + // following are all valid URLs to an instance template: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + // - projects/project/global/instanceTemplates/instanceTemplate + // - global/instanceTemplates/instanceTemplate optional string source_instance_template = 332423616; - // Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage + // Specifies the machine image to use to create the instance. + // + // This field is optional. It can be a full or partial URL. For example, the + // following are all valid URLs to a machine image: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage + // - projects/project/global/global/machineImages/machineImage + // - global/machineImages/machineImage optional string source_machine_image = 21769791; // The name of the zone for this request. @@ -14991,7 +28486,19 @@ message InsertInstanceTemplateRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15007,7 +28514,19 @@ message InsertInstantSnapshotRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the zone for this request. @@ -15029,7 +28548,20 @@ message InsertInterconnectAttachmentGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -15051,7 +28583,19 @@ message InsertInterconnectAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // If true, the request will not be committed. @@ -15070,7 +28614,20 @@ message InsertInterconnectGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -15086,7 +28643,19 @@ message InsertInterconnectRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15102,7 +28671,19 @@ message InsertLicenseRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15118,7 +28699,19 @@ message InsertMachineImageRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Required. Source instance that is used to create the machine image from. @@ -15143,7 +28736,20 @@ message InsertNetworkAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -15165,7 +28771,19 @@ message InsertNetworkEdgeSecurityServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // If true, the request will not be committed. @@ -15184,10 +28802,24 @@ message InsertNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. + // The name of the zone where + // you want to create the network endpoint group. It should comply with + // RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -15206,7 +28838,19 @@ message InsertNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15222,7 +28866,19 @@ message InsertNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15241,7 +28897,19 @@ message InsertNodeGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -15269,17 +28937,43 @@ message InsertNodeTemplateRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for OrganizationSecurityPolicies.Insert. See the method description for details. message InsertOrganizationSecurityPolicyRequest { - // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + // if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + // parent is an organization. optional string parent_id = 459714768 [(google.cloud.operation_request_field) = "parent_id"]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15304,7 +28998,19 @@ message InsertPacketMirroringRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15320,7 +29026,19 @@ message InsertPublicAdvertisedPrefixeRequest { // The body resource for this request PublicAdvertisedPrefix public_advertised_prefix_resource = 233614223 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15342,7 +29060,19 @@ message InsertPublicDelegatedPrefixeRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15364,7 +29094,53 @@ message InsertRegionAutoscalerRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionBackendBuckets.Insert. See the method description for details. +message InsertRegionBackendBucketRequest { + // The body resource for this request + BackendBucket backend_bucket_resource = 380757784 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region of this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15386,7 +29162,19 @@ message InsertRegionBackendServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15408,7 +29196,53 @@ message InsertRegionCommitmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionCompositeHealthChecks.Insert. See the method description for details. +message InsertRegionCompositeHealthCheckRequest { + // The body resource for this request + CompositeHealthCheck composite_health_check_resource = 132195824 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15430,7 +29264,19 @@ message InsertRegionDiskRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Source image to restore onto a disk. This field is optional. @@ -15438,6 +29284,40 @@ message InsertRegionDiskRequest { } +// A request message for RegionHealthAggregationPolicies.Insert. See the method description for details. +message InsertRegionHealthAggregationPolicyRequest { + // The body resource for this request + HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // A request message for RegionHealthChecks.Insert. See the method description for details. message InsertRegionHealthCheckRequest { // The body resource for this request @@ -15455,7 +29335,19 @@ message InsertRegionHealthCheckRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15477,7 +29369,19 @@ message InsertRegionHealthCheckServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15499,7 +29403,19 @@ message InsertRegionHealthSourceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15521,14 +29437,27 @@ message InsertRegionInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for RegionInstanceGroupManagerResizeRequests.Insert. See the method description for details. message InsertRegionInstanceGroupManagerResizeRequestRequest { - // Name of the managed instance group to which the resize request is scoped. Name should conform to RFC1035 or be a resource ID. + // Name of the managed instance group to which the resize request is scoped. + // Name should conform to RFC1035 or be a resource ID. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -15540,13 +29469,26 @@ message InsertRegionInstanceGroupManagerResizeRequestRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. Name should conform to RFC1035. + // Name of the region + // scoping this request. Name should conform to RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15568,7 +29510,19 @@ message InsertRegionInstanceTemplateRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15590,7 +29544,19 @@ message InsertRegionInstantSnapshotRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15612,7 +29578,19 @@ message InsertRegionMultiMigRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents you from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents you from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15628,13 +29606,27 @@ message InsertRegionNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region where you want to create the network endpoint group. It should comply with RFC1035. + // The name of the region where + // you want to create the network endpoint group. It should comply with + // RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15656,7 +29648,19 @@ message InsertRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15678,7 +29682,19 @@ message InsertRegionNetworkPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15700,7 +29716,19 @@ message InsertRegionNotificationEndpointRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -15719,7 +29747,19 @@ message InsertRegionSecurityPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15744,7 +29784,19 @@ message InsertRegionSnapshotRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15766,7 +29818,19 @@ message InsertRegionSslCertificateRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15788,7 +29852,19 @@ message InsertRegionSslPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15810,7 +29886,19 @@ message InsertRegionTargetHttpProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15832,7 +29920,19 @@ message InsertRegionTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15854,7 +29954,19 @@ message InsertRegionTargetTcpProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15876,7 +29988,8 @@ message InsertRegionUrlMapRequest { (google.cloud.operation_request_field) = "region" ]; - // begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + // begin_interface: MixerMutationRequestBuilder + // Request ID to support idempotency. optional string request_id = 37109963; // The body resource for this request @@ -15892,7 +30005,19 @@ message InsertReservationRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15920,7 +30045,19 @@ message InsertResourcePolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15936,7 +30073,19 @@ message InsertRouteRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15958,7 +30107,19 @@ message InsertRouterRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15974,7 +30135,19 @@ message InsertSecurityPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -15999,7 +30172,19 @@ message InsertServiceAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16015,7 +30200,19 @@ message InsertSnapshotRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16031,7 +30228,19 @@ message InsertSslCertificateRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16047,7 +30256,19 @@ message InsertSslPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16063,7 +30284,19 @@ message InsertStoragePoolRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16091,7 +30324,19 @@ message InsertSubnetworkRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16107,7 +30352,19 @@ message InsertTargetGrpcProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16123,7 +30380,19 @@ message InsertTargetHttpProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16139,7 +30408,19 @@ message InsertTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16155,7 +30436,19 @@ message InsertTargetInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16183,7 +30476,19 @@ message InsertTargetPoolRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16199,7 +30504,19 @@ message InsertTargetSslProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16215,7 +30532,19 @@ message InsertTargetTcpProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16237,7 +30566,19 @@ message InsertTargetVpnGatewayRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16253,7 +30594,19 @@ message InsertUrlMapRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16275,7 +30628,19 @@ message InsertVpnGatewayRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16297,7 +30662,19 @@ message InsertVpnTunnelRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -16315,7 +30692,20 @@ message InsertWireGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; // [Input Only] Validate the new configuration, but don't create it. @@ -16326,9 +30716,47 @@ message InsertWireGroupRequest { } -// Represents an Instance resource. An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances. +// A request message for ZoneVmExtensionPolicies.Insert. See the method description for details. +message InsertZoneVmExtensionPolicyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The body resource for this request + VmExtensionPolicy vm_extension_policy_resource = 515669235 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// Represents an Instance resource. +// +// An instance is a virtual machine that is hosted on Google Cloud Platform. +// For more information, readVirtual Machine Instances. message Instance { - // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + // KeyRevocationActionType of the instance. Supported options are "STOP" and + // "NONE". The default value is "NONE" if it is not specified. enum KeyRevocationActionType { // A value indicating that the enum field is not set. UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; @@ -16360,31 +30788,44 @@ message Instance { } - // The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. + // The private IPv6 google access type for the VM. + // If not specified, use INHERIT_FROM_SUBNETWORK as default. enum PrivateIpv6GoogleAccess { // A value indicating that the enum field is not set. UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS = 0; - // Bidirectional private IPv6 access to/from Google services. If specified, the subnetwork who is attached to the instance's default network interface will be assigned an internal IPv6 prefix if it doesn't have before. + // Bidirectional private IPv6 access to/from Google services. If + // specified, the subnetwork who is attached to the instance's default network + // interface will be assigned an internal IPv6 prefix if it doesn't have + // before. ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE = 427975994; - // Outbound private IPv6 access from VMs in this subnet to Google services. If specified, the subnetwork who is attached to the instance's default network interface will be assigned an internal IPv6 prefix if it doesn't have before. + // Outbound private IPv6 access from VMs in this subnet to Google services. If + // specified, the subnetwork who is attached to the instance's default network + // interface will be assigned an internal IPv6 prefix if it doesn't have + // before. ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE = 288210263; - // Each network interface inherits PrivateIpv6GoogleAccess from its subnetwork. + // Each network interface inherits PrivateIpv6GoogleAccess from its + // subnetwork. INHERIT_FROM_SUBNETWORK = 530256959; } - // [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. + // [Output Only] The status of the instance. One of the + // following values: PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For more information about the status of the + // instance, see + // Instance life cycle. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; - // The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc. + // The instance is halted and we are performing tear down tasks like network + // deprogramming, releasing quota, IP, tearing down disks etc. DEPROVISIONING = 428935662; - // For Flex Start provisioning instance is waiting for available capacity from Dynamic Workload Scheduler (DWS). + // For Flex Start provisioning instance is waiting for available capacity + // from Dynamic Workload Scheduler (DWS). PENDING = 35394935; // The instance is gracefully shutting down. @@ -16399,7 +30840,8 @@ message Instance { // The instance is running. RUNNING = 121282975; - // All required resources have been allocated and the instance is being started. + // All required resources have been allocated and the instance + // is being started. STAGING = 431072283; // The instance has stopped successfully. @@ -16414,7 +30856,8 @@ message Instance { // The instance is suspending. SUSPENDING = 514206246; - // The instance has stopped (either by explicit action or underlying failure). + // The instance has stopped (either by explicit action or underlying + // failure). TERMINATED = 250018339; } @@ -16422,7 +30865,9 @@ message Instance { // Controls for advanced machine-related behavior features. optional AdvancedMachineFeatures advanced_machine_features = 409646002; - // Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding . + // Allows this instance to send and receive packets with non-matching + // destination or source IPs. This is required if you plan to use this + // instance to forward routes. For more information, seeEnabling IP Forwarding. optional bool can_ip_forward = 467731324; optional ConfidentialInstanceConfig confidential_instance_config = 490637685; @@ -16430,89 +30875,161 @@ message Instance { // [Output Only] The CPU platform used by this instance. optional string cpu_platform = 410285354; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 text format. optional string creation_timestamp = 30525366; // Whether the resource should be protected against deletion. optional bool deletion_protection = 458014698; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Array of disks associated with this instance. Persistent disks must be created before you can assign them. + // Array of disks associated with this instance. Persistent disks must be + // created before you can assign them. repeated AttachedDisk disks = 95594102; // Enables display device for the instance. optional DisplayDevice display_device = 258933875; - // Specifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature. + // Specifies whether the disks restored from source snapshots or source + // machine image should erase Windows specific VSS signature. optional bool erase_windows_vss_signature = 52637562; - // Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance. + // Specifies a fingerprint for this resource, which is essentially a hash of + // the instance's contents and used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update the instance. You must always provide an + // up-to-date fingerprint hash in order to update the instance. + // + // To see the latest fingerprint, make get() request to the + // instance. optional string fingerprint = 234678500; // A list of the type and count of accelerator cards attached to the instance. repeated AcceleratorConfig guest_accelerators = 463595119; - // Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. + // Specifies the hostname of the instance. The specified hostname must be + // RFC1035 compliant. If hostname is not specified, the default hostname is + // [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and + // [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. optional string hostname = 237067315; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation. + // Encrypts suspended data for an instance with acustomer-managed + // encryption key. + // + // If you are creating a new instance, this field will encrypt the local SSD + // and in-memory contents of the instance during the suspend operation. + // + // If you do not provide an encryption key when creating the instance, then + // the local SSD and in-memory contents will be encrypted using + // an automatically generated key during the suspend operation. optional CustomerEncryptionKey instance_encryption_key = 64741517; - // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + // KeyRevocationActionType of the instance. Supported options are "STOP" and + // "NONE". The default value is "NONE" if it is not specified. // Check the KeyRevocationActionType enum for the list of possible values. optional string key_revocation_action_type = 235941474; - // [Output Only] Type of the resource. Always compute#instance for instances. + // [Output Only] Type of the resource. Always compute#instance + // for instances. optional string kind = 3292052; - // A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the instance. + // A fingerprint for this request, which is essentially a hash of + // the label's contents and used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels. + // + // To see the latest fingerprint, make get() request to the + // instance. optional string label_fingerprint = 178124825; - // Labels to apply to this instance. These can be later modified by the setLabels method. + // Labels to apply to this instance. These can be later modified by + // the setLabels method. map labels = 500195327; - // [Output Only] Last start timestamp in RFC3339 text format. + // [Output Only] Last start timestamp inRFC3339 text format. optional string last_start_timestamp = 443830736; - // [Output Only] Last stop timestamp in RFC3339 text format. + // [Output Only] Last stop timestamp inRFC3339 text format. optional string last_stop_timestamp = 412823010; - // [Output Only] Last suspended timestamp in RFC3339 text format. + // [Output Only] Last suspended timestamp inRFC3339 text format. optional string last_suspended_timestamp = 356275337; - // Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types. + // Full or partial URL of the machine type resource to use for this instance, + // in the format:zones/zone/machineTypes/machine-type. This is provided by the client + // when the instance is created. For example, the following is a valid partial + // url to a predefined + // machine type: + // + // zones/us-central1-f/machineTypes/n1-standard-1 + // + // + // To create acustom + // machine type, provide a URL to a machine type in the following format, + // where CPUS is 1 or an even number up to 32 (2, + // 4, 6, ... 24, etc), and MEMORY is the total + // memory for this instance. Memory must be a multiple of 256 MB and must + // be supplied in MB (e.g. 5 GB of memory is 5120 MB): + // + // zones/zone/machineTypes/custom-CPUS-MEMORY + // + // + // For example: zones/us-central1-f/machineTypes/custom-4-5120 + // For a full list of restrictions, read theSpecifications + // for custom machine types. optional string machine_type = 227711026; - // The metadata key/value pairs assigned to this instance. This includes metadata keys that were explicitly defined for the instance. + // The metadata key/value pairs assigned + // to this instance. This includes metadata keys that were explicitly defined + // for the instance. optional Metadata metadata = 86866735; - // Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". + // Specifies aminimum CPU + // platform for the VM instance. Applicable values are the friendly names + // of CPU platforms, such as minCpuPlatform: "Intel + // Haswell" or minCpuPlatform: "Intel Sandy + // Bridge". optional string min_cpu_platform = 242912759; - // The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // The name of the resource, provided by the client when initially creating + // the resource. The resource name must be 1-63 characters long, and comply + // withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; - // An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. + // An array of network configurations for this instance. These specify how + // interfaces are configured to interact with other network services, such as + // connecting to the internet. Multiple interfaces are supported + // per instance. repeated NetworkInterface network_interfaces = 52735243; optional NetworkPerformanceConfig network_performance_config = 398330850; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional InstanceParams params = 78313862; - // Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. + // Partner Metadata assigned to the instance. A map from a subdomain + // (namespace) to entries map. map partner_metadata = 65908934; // PostKeyRevocationActionType of the instance. // Check the PostKeyRevocationActionType enum for the list of possible values. optional string post_key_revocation_action_type = 292972897; - // The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. + // The private IPv6 google access type for the VM. + // If not specified, use INHERIT_FROM_SUBNETWORK as default. // Check the PrivateIpv6GoogleAccess enum for the list of possible values. optional string private_ipv6_google_access = 48277006; @@ -16522,7 +31039,9 @@ message Instance { // Resource policies applied to this instance. repeated string resource_policies = 22220385; - // [Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field. + // [Output Only] Specifies values set for instance attributes as + // compared to the values requested by user in the corresponding input only + // field. optional ResourceStatus resource_status = 249429315; // [Output Only] Reserved for future use. @@ -16537,7 +31056,13 @@ message Instance { // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information. + // A list of service accounts, with their specified scopes, authorized for + // this instance. Only one service account per VM instance is supported. + // + // Service accounts generate access tokens that can be accessed + // through the metadata server and used to authenticate applications on the + // instance. SeeService Accounts + // for more information. repeated ServiceAccount service_accounts = 277537328; optional ShieldedInstanceConfig shielded_instance_config = 12862901; @@ -16553,23 +31078,34 @@ message Instance { // Source machine image optional string source_machine_image = 21769791; - // Source machine image encryption key when creating an instance from a machine image. + // Source machine image encryption key when creating an instance from a + // machine image. optional CustomerEncryptionKey source_machine_image_encryption_key = 192839075; - // [Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. + // [Output Only] Whether a VM has been restricted for start because Compute + // Engine has detected suspicious activity. optional bool start_restricted = 123693144; - // [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle. + // [Output Only] The status of the instance. One of the + // following values: PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For more information about the status of the + // instance, see + // Instance life cycle. // Check the Status enum for the list of possible values. optional string status = 181260274; // [Output Only] An optional, human-readable explanation of the status. optional string status_message = 297428154; - // Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field. + // Tags to apply to this instance. Tags are used to identify valid + // sources or targets for network firewalls and are specified by the client + // during instance creation. The tags can be later modified by the setTags + // method. Each tag within the list must comply withRFC1035. + // Multiple tags can be specified via the 'tags.items' field. optional Tags tags = 3552281; - // [Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the zone where the instance resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string zone = 3744684; } @@ -16582,10 +31118,15 @@ message InstanceAggregatedList { // An object that contains a list of instances scoped by zone. map items = 100526016; - // [Output Only] Type of resource. Always compute#instanceAggregatedList for aggregated lists of Instance resources. + // [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for aggregated lists of + // Instance resources. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -16614,10 +31155,12 @@ message InstanceConsumptionInfo { // The number of virtual CPUs that are available to the instance. optional int32 guest_cpus = 393356754; - // The amount of local SSD storage available to the instance, defined in GiB. + // The amount of local SSD storage available to the instance, + // defined in GiB. optional int32 local_ssd_gb = 329237578; - // The amount of physical memory available to the instance, defined in MiB. + // The amount of physical memory available to the instance, + // defined in MiB. optional int32 memory_mb = 116001171; // The minimal guaranteed number of virtual CPUs that are reserved. @@ -16625,45 +31168,83 @@ message InstanceConsumptionInfo { } -// Represents an Instance Group resource. Instance Groups can be used to configure a target for load balancing. Instance groups can either be managed or unmanaged. To create managed instance groups, use the instanceGroupManager or regionInstanceGroupManager resource instead. Use zonal unmanaged instance groups if you need to apply load balancing to groups of heterogeneous instances or if you need to manage the instances yourself. You cannot create regional unmanaged instance groups. For more information, read Instance groups. +// Represents an Instance Group resource. +// +// Instance Groups can be used to configure a target forload +// balancing. +// +// Instance groups can either be managed or unmanaged. +// +// To create +// managed instance groups, use the instanceGroupManager orregionInstanceGroupManager resource instead. +// +// Use zonal unmanaged instance groups if you need to applyload +// balancing to groups of heterogeneous instances or if you need to manage +// the instances yourself. You cannot create regional unmanaged instance groups. +// +// For more information, readInstance +// groups. message InstanceGroup { - // [Output Only] The creation timestamp for this instance group in RFC3339 text format. + // [Output Only] The creation timestamp for this instance group inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently. + // [Output Only] The fingerprint of the named ports. The system + // uses this fingerprint to detect conflicts when multiple users change the + // named ports concurrently. optional string fingerprint = 234678500; - // [Output Only] A unique identifier for this instance group, generated by the server. + // [Output Only] A unique identifier for this instance group, generated + // by the server. optional uint64 id = 3355; - // [Output Only] The resource type, which is always compute#instanceGroup for instance groups. + // [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. optional string kind = 3292052; - // The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. + // The name of the instance group. The name must be 1-63 characters + // long, and comply withRFC1035. optional string name = 3373707; - // Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group. + // Optional. Assigns a name to a port number. For example:{name: "http", port: 80} + // + // This + // allows the system to reference ports by the assigned name instead of a + // port number. Named ports can also contain multiple ports. For example:[{name: "app1", port: 8080}, {name: + // "app1", port: 8081}, {name: "app2", port: + // 8082}] + // + // Named ports apply to all instances in this instance group. repeated NamedPort named_ports = 427598732; - // [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). + // [Output Only] The URL of the network to which all instances in the + // instance group belong. If your instance has multiple network interfaces, + // then the network and subnetwork fields only refer to the + // network and subnet used by your primary interface (nic0). optional string network = 232872494; - // [Output Only] The URL of the region where the instance group is located (for regional resources). + // [Output Only] The URL of theregion + // where the instance group is located (for regional resources). optional string region = 138946292; - // [Output Only] The URL for this instance group. The server generates this URL. + // [Output Only] The URL for this instance group. The server generates + // this URL. optional string self_link = 456214797; // [Output Only] The total number of instances in the instance group. optional int32 size = 3530753; - // [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). + // [Output Only] The URL of the subnetwork to which all instances in the + // instance group belong. If your instance has multiple network interfaces, + // then the network and subnetwork fields only refer to the + // network and subnet used by your primary interface (nic0). optional string subnetwork = 307827694; - // [Output Only] The URL of the zone where the instance group is located (for zonal resources). + // [Output Only] The URL of thezone + // where the instance group is located (for zonal resources). optional string zone = 3744684; } @@ -16676,10 +31257,15 @@ message InstanceGroupAggregatedList { // A list of InstanceGroupsScopedList resources. map items = 100526016; - // [Output Only] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups. + // [Output Only] The resource type, which is alwayscompute#instanceGroupAggregatedList for aggregated lists of + // instance groups. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -16701,10 +31287,14 @@ message InstanceGroupList { // A list of InstanceGroup resources. repeated InstanceGroup items = 100526016; - // [Output Only] The resource type, which is always compute#instanceGroupList for instance group lists. + // [Output Only] The resource type, which is alwayscompute#instanceGroupList for instance group lists. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -16715,9 +31305,17 @@ message InstanceGroupList { } -// Represents a Managed Instance Group resource. An instance group is a collection of VM instances that you can manage as a single entity. For more information, read Instance groups. For zonal Managed Instance Group, use the instanceGroupManagers resource. For regional Managed Instance Group, use the regionInstanceGroupManagers resource. +// Represents a Managed Instance Group resource. +// +// An instance group is a collection of VM instances that you can manage as a +// single entity. For more information, readInstance groups. +// +// For zonal Managed Instance Group, use the instanceGroupManagers +// resource. +// +// For regional Managed Instance Group, use theregionInstanceGroupManagers resource. message InstanceGroupManager { - // The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The default is NO_FAILOVER. + // The action to perform in case of zone failure. Only one value is supported,NO_FAILOVER. The default is NO_FAILOVER. enum FailoverAction { // A value indicating that the enum field is not set. UNDEFINED_FAILOVER_ACTION = 0; @@ -16728,51 +31326,83 @@ message InstanceGroupManager { } - // Pagination behavior of the listManagedInstances API method for this managed instance group. + // Pagination behavior of the listManagedInstances API method for + // this managed instance group. enum ListManagedInstancesResults { // A value indicating that the enum field is not set. UNDEFINED_LIST_MANAGED_INSTANCES_RESULTS = 0; - // (Default) Pagination is disabled for the group's listManagedInstances API method. maxResults and pageToken query parameters are ignored and all instances are returned in a single response. + // (Default) Pagination is disabled for the group'slistManagedInstances API method. maxResults + // and pageToken query parameters are ignored and all + // instances are returned in a single response. PAGELESS = 32183464; - // Pagination is enabled for the group's listManagedInstances API method. maxResults and pageToken query parameters are respected. + // Pagination is enabled for the group's listManagedInstances + // API method. maxResults and pageToken query + // parameters are respected. PAGINATED = 40190637; } - // Specifies configuration that overrides the instance template configuration for the group. + // Specifies configuration that overrides the instance template configuration + // for the group. optional InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737; - // The autohealing policy for this managed instance group. You can specify only one value. + // The autohealing policy for this managed instance group. You can specify + // only one value. repeated InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109; - // The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. The maximum character length is 58 and the name must comply with RFC1035 format. When a VM is created in the group, the MIG appends a hyphen and a random four-character string to the base instance name. If you want the MIG to assign sequential numbers instead of a random string, then end the base instance name with a hyphen followed by one or more hash symbols. The hash symbols indicate the number of digits. For example, a base instance name of "vm-###" results in "vm-001" as a VM name. @pattern [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) + // The base instance name is a prefix that you want to attach to the names of + // all VMs in a MIG. The maximum character length is 58 and the name must + // comply with RFC1035 format. + // + // When a VM is created in the group, the MIG appends a hyphen and a random + // four-character string to the base instance name. If you want the MIG to + // assign sequential numbers instead of a random string, then end the base + // instance name with a hyphen followed by one or more hash symbols. The hash + // symbols indicate the number of digits. For example, a base instance name of + // "vm-###" results in "vm-001" as a VM name. + // @pattern + // [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) optional string base_instance_name = 389106439; - // [Output Only] The creation timestamp for this managed instance group in RFC3339 text format. + // [Output Only] The creation timestamp for this managed instance group inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // [Output Only] The list of instance actions and the number of instances in this managed instance group that are scheduled for each of those actions. + // [Output Only] The list of instance actions and the number of instances + // in this managed instance group that are scheduled for each of those + // actions. optional InstanceGroupManagerActionsSummary current_actions = 164045879; // An optional description of this resource. optional string description = 422937596; - // Policy specifying the intended distribution of managed instances across zones in a regional managed instance group. + // Policy specifying the intended distribution of managed instances across + // zones in a regional managed instance group. optional DistributionPolicy distribution_policy = 534558541; - // The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The default is NO_FAILOVER. + // The action to perform in case of zone failure. Only one value is supported,NO_FAILOVER. The default is NO_FAILOVER. // Check the FailoverAction enum for the list of possible values. optional string failover_action = 202248739; - // Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. + // Fingerprint of this resource. This field may be used in optimistic locking. + // It will be ignored when inserting an InstanceGroupManager. An up-to-date + // fingerprint must be provided in order to update the InstanceGroupManager, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve an InstanceGroupManager. optional string fingerprint = 234678500; - // [Output Only] A unique identifier for this resource type. The server generates this identifier. + // [Output Only] A unique identifier for this resource type. The server + // generates this identifier. optional uint64 id = 3355; - // Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance flexibility configuration on MIG overrides instance template configuration. + // Instance flexibility allowing MIG to create VMs from multiple + // types of machines. + // Instance flexibility configuration on MIG overrides instance + // template configuration. optional InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090; // [Output Only] The URL of the Instance Group resource. @@ -16781,29 +31411,37 @@ message InstanceGroupManager { // The repair policy for this managed instance group. optional InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617; - // The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. + // The URL of the instance template that is specified for this managed + // instance group. The group uses this template to create all new instances + // in the managed instance group. The templates for existing instances in the + // group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. optional string instance_template = 309248228; - // [Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups. + // [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups. optional string kind = 3292052; - // Pagination behavior of the listManagedInstances API method for this managed instance group. + // Pagination behavior of the listManagedInstances API method for + // this managed instance group. // Check the ListManagedInstancesResults enum for the list of possible values. optional string list_managed_instances_results = 296047156; // URL to the multi-MIG that this Managed Instance Group belongs to. optional string multi_mig = 403990085; - // The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. + // The name of the managed instance group. The name must be 1-63 characters + // long, and comply withRFC1035. optional string name = 3373707; - // [Output Only] Named ports configured on the Instance Groups complementary to this Instance Group Manager. + // [Output Only] Named ports configured on the Instance Groups complementary + // to this Instance Group Manager. repeated NamedPort named_ports = 427598732; - // Input only. Additional params passed with the request, but not persisted as part of resource payload. + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. optional InstanceGroupManagerParams params = 78313862; - // [Output Only] The URL of the region where the managed instance group resides (for regional resources). + // [Output Only] The URL of theregion + // where the managed instance group resides (for regional resources). optional string region = 138946292; // Resource policies for this managed instance group. @@ -16815,10 +31453,15 @@ message InstanceGroupManager { // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; - // [Output Only] The URL for this managed instance group. The server defines this URL. + // [Output Only] The URL for this managed instance group. The server defines + // this URL. optional string self_link = 456214797; - // The service account to be used as credentials for all operations performed by the managed instance group on instances. The service accounts needs all permissions required to create and delete instances. By default, the service account {projectNumber}@cloudservices.gserviceaccount.com is used. + // The service account to be used as credentials for all operations performed + // by the managed instance group on instances. The service accounts needs all + // permissions required to create and delete instances. + // By default, the service account + // {projectNumber}@cloudservices.gserviceaccount.com is used. optional string service_account = 199455395; // Standby policy for stopped and suspended instances. @@ -16830,71 +31473,126 @@ message InstanceGroupManager { // [Output Only] The status of this managed instance group. optional InstanceGroupManagerStatus status = 181260274; - // The URLs for all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. + // The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically + // apply to all of the instances in the managed instance group. repeated string target_pools = 336072617; - // The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number. + // The target number of running instances for this managed instance group. + // You can reduce this number by using the instanceGroupManager + // deleteInstances or abandonInstances methods. Resizing the group also + // changes this number. optional int32 target_size = 62880239; - // The policy that specifies how the MIG creates its VMs to achieve the target size. + // The policy that specifies how the MIG creates its VMs to achieve the target + // size. optional InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506; - // The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method. + // The target number of stopped instances for this managed instance group. + // This number changes when you: + // + // - Stop instance using the stopInstances + // method or start instances using the startInstances + // method. + // - Manually change the targetStoppedSize using the update + // method. optional int32 target_stopped_size = 2419489; - // The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method. + // The target number of suspended instances for this managed instance group. + // This number changes when you: + // + // - Suspend instance using the suspendInstances + // method or resume instances using the resumeInstances + // method. + // - Manually change the targetSuspendedSize using the update + // method. optional int32 target_suspended_size = 308085843; // The update policy for this managed instance group. optional InstanceGroupManagerUpdatePolicy update_policy = 175809896; - // Specifies the instance templates used by this managed instance group to create instances. Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates. + // Specifies the instance templates used by this managed instance group to + // create instances. + // + // Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance + // group. This field overrides the top-level instanceTemplate + // field. Read more about therelationships + // between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all + // remaining instances. For more information, read aboutcanary + // updates. repeated InstanceGroupManagerVersion versions = 162430619; - // [Output Only] The URL of a zone where the managed instance group is located (for zonal resources). + // [Output Only] The URL of azone + // where the managed instance group is located (for zonal resources). optional string zone = 3744684; } // message InstanceGroupManagerActionsSummary { - // [Output Only] The total number of instances in the managed instance group that are scheduled to be abandoned. Abandoning an instance removes it from the managed instance group without deleting it. + // [Output Only] The total number of instances in the managed instance group + // that are scheduled to be abandoned. Abandoning an instance removes it + // from the managed instance group without deleting it. optional int32 abandoning = 440023373; - // [Output Only] The number of instances in the managed instance group that are scheduled to be created or are currently being created. If the group fails to create any of these instances, it tries again until it creates the instance successfully. If you have disabled creation retries, this field will not be populated; instead, the creatingWithoutRetries field will be populated. + // [Output Only] The number of instances in the managed instance group that + // are scheduled to be created or are currently being created. If the group + // fails to create any of these instances, it tries again until it creates + // the instance successfully. + // + // If you have disabled creation retries, this field will not be populated; + // instead, the creatingWithoutRetries field will be populated. optional int32 creating = 209809081; - // [Output Only] The number of instances that the managed instance group will attempt to create. The group attempts to create each instance only once. If the group fails to create any of these instances, it decreases the group's targetSize value accordingly. + // [Output Only] The number of instances that the managed instance group + // will attempt to create. The group attempts to create each instance + // only once. If the group fails to create any of these instances, it + // decreases the group's targetSize value accordingly. optional int32 creating_without_retries = 369916745; - // [Output Only] The number of instances in the managed instance group that are scheduled to be deleted or are currently being deleted. + // [Output Only] The number of instances in the managed instance group that + // are scheduled to be deleted or are currently being deleted. optional int32 deleting = 282846120; - // [Output Only] The number of instances in the managed instance group that are running and have no scheduled actions. + // [Output Only] The number of instances in the managed instance group that + // are running and have no scheduled actions. optional int32 none = 3387192; - // [Output Only] The number of instances in the managed instance group that are scheduled to be recreated or are currently being being recreated. Recreating an instance deletes the existing root persistent disk and creates a new disk from the image that is defined in the instance template. + // [Output Only] The number of instances in the managed instance group that + // are scheduled to be recreated or are currently being being recreated. + // Recreating an instance deletes the existing root persistent disk + // and creates a new disk from the image that is defined in the + // instance template. optional int32 recreating = 339057132; - // [Output Only] The number of instances in the managed instance group that are being reconfigured with properties that do not require a restart or a recreate action. For example, setting or removing target pools for the instance. + // [Output Only] The number of instances in the managed instance group that + // are being reconfigured with properties that do not require a restart + // or a recreate action. For example, setting or removing target + // pools for the instance. optional int32 refreshing = 215044903; - // [Output Only] The number of instances in the managed instance group that are scheduled to be restarted or are currently being restarted. + // [Output Only] The number of instances in the managed instance group that + // are scheduled to be restarted or are currently being restarted. optional int32 restarting = 372312947; - // [Output Only] The number of instances in the managed instance group that are scheduled to be resumed or are currently being resumed. + // [Output Only] The number of instances in the managed instance group that + // are scheduled to be resumed or are currently being resumed. optional int32 resuming = 201100714; - // [Output Only] The number of instances in the managed instance group that are scheduled to be started or are currently being started. + // [Output Only] The number of instances in the managed instance group that + // are scheduled to be started or are currently being started. optional int32 starting = 243064896; - // [Output Only] The number of instances in the managed instance group that are scheduled to be stopped or are currently being stopped. + // [Output Only] The number of instances in the managed instance group that + // are scheduled to be stopped or are currently being stopped. optional int32 stopping = 105035892; - // [Output Only] The number of instances in the managed instance group that are scheduled to be suspended or are currently being suspended. + // [Output Only] The number of instances in the managed instance group that + // are scheduled to be suspended or are currently being suspended. optional int32 suspending = 29113894; - // [Output Only] The number of instances in the managed instance group that are being verified. See the managedInstances[].currentAction property in the listManagedInstances method documentation. + // [Output Only] The number of instances in the managed instance group that + // are being verified. See the managedInstances[].currentAction + // property in the listManagedInstances method documentation. optional int32 verifying = 451612873; } @@ -16907,10 +31605,15 @@ message InstanceGroupManagerAggregatedList { // A list of InstanceGroupManagersScopedList resources. map items = 100526016; - // [Output Only] The resource type, which is always compute#instanceGroupManagerAggregatedList for an aggregated list of managed instance groups. + // [Output Only] The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for an aggregated + // list of managed instance groups. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -16926,7 +31629,12 @@ message InstanceGroupManagerAggregatedList { // message InstanceGroupManagerAllInstancesConfig { - // Properties to set on all instances in the group. You can add or modify properties using the instanceGroupManagers.patch or regionInstanceGroupManagers.patch. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration. To apply the configuration, set the group's updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances method. + // Properties to set on all instances in the group. + // + // You can add or modify properties using theinstanceGroupManagers.patch orregionInstanceGroupManagers.patch. After settingallInstancesConfig on the group, you must update the group's + // instances to apply the configuration. To apply the configuration, set the + // group's updatePolicy.type field to use proactive updates or + // use the applyUpdatesToInstances method. optional InstancePropertiesPatch properties = 147688755; } @@ -16936,17 +31644,26 @@ message InstanceGroupManagerAutoHealingPolicy { // The URL for the health check that signals autohealing. optional string health_check = 308876645; - // The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0. + // The initial delay is the number of seconds that a new VM takes to + // initialize and run its startup script. During a VM's initial delay + // period, the MIG ignores unsuccessful health checks because the VM might + // be in the startup process. This prevents the MIG from prematurely + // recreating a VM. If the health check receives a healthy response during + // the initial delay, it indicates that the startup process is complete and + // the VM is ready. The value of initial delay must be between 0 and 3600 + // seconds. The default value is 0. optional int32 initial_delay_sec = 263207002; } // message InstanceGroupManagerInstanceFlexibilityPolicy { - // Named instance selections configuring properties that the group will use when creating new VMs. + // Named instance selections configuring properties that the group will use + // when creating new VMs. map instance_selections = 22954577; - // Provisioning model configuration used by this managed instance group to create instances. + // Provisioning model configuration used by this managed instance group to + // create instances. optional InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix provisioning_model_mix = 272686452; } @@ -16956,24 +31673,38 @@ message InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection { // Full machine-type names, e.g. "n1-standard-16". repeated string machine_types = 79720065; - // Preference of this instance selection. Lower number means higher preference. MIG will first try to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference. + // Preference of this instance selection. Lower number means higher + // preference. MIG will first try to create a VM based on the machine-type + // with lowest rank and fallback to next rank based on availability. + // Machine types and instance selections with the same rank have the same + // preference. optional int32 rank = 3492908; } // message InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix { - // The base capacity that will always use Standard VMs to avoid risk of more preemption than the minimum capacity user needs. MIG will create only Standard VMs until it reaches standard_capacity_base and only then will start using standard_capacity_percent_above_base to mix Spot with Standard VMs. + // The base capacity that will always use Standard VMs to avoid risk of + // more preemption than the minimum capacity user needs. MIG will create + // only Standard VMs until it reaches standard_capacity_base and only + // then will start using standard_capacity_percent_above_base to mix Spot + // with Standard VMs. optional int32 standard_capacity_base = 388067636; - // The percentage of target capacity that should use Standard VM. The remaining percentage will use Spot VMs. The percentage applies only to the capacity above standard_capacity_base. + // The percentage of target capacity that should use Standard VM. The + // remaining percentage will use Spot VMs. The percentage applies only to + // the capacity above standard_capacity_base. optional int32 standard_capacity_percent_above_base = 401038224; } // message InstanceGroupManagerInstanceLifecyclePolicy { - // The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed VM. + // The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field + // is `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application + // fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + // VM by recreating it. For more information, seeAbout repairing + // VMs in a MIG. - DO_NOTHING: MIG does not repair a failed VM. // Additional supported values which may be not listed in the enum directly due to technical reasons: // DO_NOTHING // REPAIR @@ -16981,7 +31712,8 @@ message InstanceGroupManagerInstanceLifecyclePolicy { // A value indicating that the enum field is not set. UNDEFINED_DEFAULT_ACTION_ON_FAILURE = 0; - // MIG deletes a failed or an unhealthy VM. Deleting the VM decreases the target size of the MIG. + // MIG deletes a failed or an unhealthy VM. Deleting the VM decreases + // the target size of the MIG. DELETE = 402225579; DO_NOTHING = 451307513; @@ -16990,7 +31722,17 @@ message InstanceGroupManagerInstanceLifecyclePolicy { } - // A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. + // A bit indicating whether to forcefully apply the group's latest + // configuration when repairing a VM. Valid options are: + // + // + // + // - NO (default): If configuration updates are available, they are not + // forcefully applied during repair. Instead, configuration updates are + // applied according to the group's update policy. + // + // - YES: If configuration updates are available, they are applied + // during repair. enum ForceUpdateOnRepair { // A value indicating that the enum field is not set. UNDEFINED_FORCE_UPDATE_ON_REPAIR = 0; @@ -17001,7 +31743,17 @@ message InstanceGroupManagerInstanceLifecyclePolicy { } - // The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION (default): MIG uses the same action configured for instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For more information, see About repairing VMs in a MIG. + // The action that a MIG performs on an unhealthy VM. A VM is marked as + // unhealthy when the application running on that VM fails a health check. + // Valid values are: + // + // - DEFAULT_ACTION (default): MIG uses the same action + // configured for instanceLifecyclePolicy.defaultActionOnFailure field. + // - REPAIR: MIG automatically repairs an unhealthy VM by + // recreating it. + // - DO_NOTHING: MIG doesn't repair an unhealthy VM. + // For more information, see + // About repairing VMs in a MIG. // Additional supported values which may be not listed in the enum directly due to technical reasons: // DO_NOTHING // REPAIR @@ -17009,20 +31761,45 @@ message InstanceGroupManagerInstanceLifecyclePolicy { // A value indicating that the enum field is not set. UNDEFINED_ON_FAILED_HEALTH_CHECK = 0; - // (Default) MIG uses the same action configured for instanceLifecyclePolicy.defaultActionOnFailure field. + // (Default) MIG uses the same action configured for + // instanceLifecyclePolicy.defaultActionOnFailure field. DEFAULT_ACTION = 463967764; } - // The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed VM. + // The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field + // is `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application + // fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + // VM by recreating it. For more information, seeAbout repairing + // VMs in a MIG. - DO_NOTHING: MIG does not repair a failed VM. // Check the DefaultActionOnFailure enum for the list of possible values. optional string default_action_on_failure = 61383253; - // A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. + // A bit indicating whether to forcefully apply the group's latest + // configuration when repairing a VM. Valid options are: + // + // + // + // - NO (default): If configuration updates are available, they are not + // forcefully applied during repair. Instead, configuration updates are + // applied according to the group's update policy. + // + // - YES: If configuration updates are available, they are applied + // during repair. // Check the ForceUpdateOnRepair enum for the list of possible values. optional string force_update_on_repair = 356302027; - // The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION (default): MIG uses the same action configured for instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For more information, see About repairing VMs in a MIG. + // The action that a MIG performs on an unhealthy VM. A VM is marked as + // unhealthy when the application running on that VM fails a health check. + // Valid values are: + // + // - DEFAULT_ACTION (default): MIG uses the same action + // configured for instanceLifecyclePolicy.defaultActionOnFailure field. + // - REPAIR: MIG automatically repairs an unhealthy VM by + // recreating it. + // - DO_NOTHING: MIG doesn't repair an unhealthy VM. + // For more information, see + // About repairing VMs in a MIG. // Check the OnFailedHealthCheck enum for the list of possible values. optional string on_failed_health_check = 39807943; @@ -17034,6 +31811,12 @@ message InstanceGroupManagerInstanceLifecyclePolicy { // Configuration for VM repairs in the MIG. message InstanceGroupManagerInstanceLifecyclePolicyOnRepair { // Specifies whether the MIG can change a VM's zone during a repair. + // Valid values are: + // + // - NO (default): MIG cannot change a VM's zone during a + // repair. + // - YES: MIG can select a different zone for the VM during + // a repair. enum AllowChangingZone { // A value indicating that the enum field is not set. UNDEFINED_ALLOW_CHANGING_ZONE = 0; @@ -17047,6 +31830,12 @@ message InstanceGroupManagerInstanceLifecyclePolicyOnRepair { } // Specifies whether the MIG can change a VM's zone during a repair. + // Valid values are: + // + // - NO (default): MIG cannot change a VM's zone during a + // repair. + // - YES: MIG can select a different zone for the VM during + // a repair. // Check the AllowChangingZone enum for the list of possible values. optional string allow_changing_zone = 426055112; @@ -17060,10 +31849,15 @@ message InstanceGroupManagerList { // A list of InstanceGroupManager resources. repeated InstanceGroupManager items = 100526016; - // [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of managed instance groups. + // [Output Only] The resource type, which is always + // compute#instanceGroupManagerList for a list of managed instance groups. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -17076,19 +31870,27 @@ message InstanceGroupManagerList { // Input only additional params for instance group manager creation. message InstanceGroupManagerParams { - // Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys must be in the format tagKeys/123 and values in the format tagValues/456. For more information, see Manage tags for resources. + // Resource manager tags to bind to the managed instance group. The tags are + // key-value pairs. Keys must be in the format tagKeys/123 and values in the + // format tagValues/456. For more information, seeManage tags + // for resources. map resource_manager_tags = 377671164; } -// InstanceGroupManagerResizeRequest represents a request to create a number of VMs: either immediately or by queuing the request for the specified time. This resize request is nested under InstanceGroupManager and the VMs created by this request are added to the owning InstanceGroupManager. +// InstanceGroupManagerResizeRequest represents a request to create +// a number of VMs: either immediately or by queuing the request for the +// specified time. This resize request is nested under InstanceGroupManager +// and the VMs created by this request are added to the owning +// InstanceGroupManager. message InstanceGroupManagerResizeRequest { // [Output only] Current state of the request. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; - // The request was created successfully and was accepted for provisioning when the capacity becomes available. + // The request was created successfully and was accepted for provisioning + // when the capacity becomes available. ACCEPTED = 246714279; // The request is cancelled. @@ -17097,10 +31899,14 @@ message InstanceGroupManagerResizeRequest { // Resize request is being created and may still fail creation. CREATING = 455564985; - // The request failed before or during provisioning. If the request fails during provisioning, any VMs that were created during provisioning are rolled back and removed from the MIG. + // The request failed before or during provisioning. If the request fails + // during provisioning, any VMs that were created during provisioning are + // rolled back and removed from the MIG. FAILED = 455706685; - // The value is deprecated. ResizeRequests would stay in the ACCEPTED state during provisioning attempts. The target resource(s) are being provisioned. + // The value is deprecated. ResizeRequests would stay in the ACCEPTED state + // during provisioning attempts. + // The target resource(s) are being provisioned. PROVISIONING = 290896621; // Default value. This value should never be returned. @@ -17111,37 +31917,51 @@ message InstanceGroupManagerResizeRequest { } - // This field is deprecated, please use resize_by instead. The count of instances to create as part of this resize request. + // This field is deprecated, please use resize_by instead. + // The count of instances to create as part of this resize request. optional int32 count = 94851343; - // [Output Only] The creation timestamp for this resize request in RFC3339 text format. + // [Output Only] The creation timestamp for this resize request inRFC3339 + // text format. optional string creation_timestamp = 30525366; // An optional description of this resource. optional string description = 422937596; - // [Output Only] A unique identifier for this resource type. The server generates this identifier. + // [Output Only] A unique identifier for this resource type. The server + // generates this identifier. optional uint64 id = 3355; - // The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'. + // The names of instances to be created by this resize request. The number of + // names specified determines the number of instances to create. The group's + // target size will be increased by this number. This field cannot be used + // together with 'resize_by'. repeated PerInstanceConfig instances = 29097598; - // [Output Only] The resource type, which is always compute#instanceGroupManagerResizeRequest for resize requests. + // [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for + // resize requests. optional string kind = 3292052; - // The name of this resize request. The name must be 1-63 characters long, and comply with RFC1035. + // The name of this resize request. The name must be 1-63 characters + // long, and comply withRFC1035. optional string name = 3373707; - // [Output Only] The URL of a region where the resize request is located. Populated only for regional resize requests. + // [Output Only] The URL of aregion + // where the resize request is located. Populated only for regional resize + // requests. optional string region = 138946292; - // Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted. + // Requested run duration for instances that will be created by this request. + // At the end of the run duration instance will be deleted. optional Duration requested_run_duration = 232146425; - // The number of instances to be created by this resize request. The group's target size will be increased by this number. This field cannot be used together with 'instances'. + // The number of instances to be created by this resize request. The group's + // target size will be increased by this number. This field cannot be used + // together with 'instances'. optional int32 resize_by = 533735362; - // [Output Only] The URL for this resize request. The server defines this URL. + // [Output Only] The URL for this resize request. The server defines + // this URL. optional string self_link = 456214797; // [Output Only] Server-defined URL for this resource with the resource id. @@ -17154,17 +31974,30 @@ message InstanceGroupManagerResizeRequest { // [Output only] Status of the request. optional InstanceGroupManagerResizeRequestStatus status = 181260274; - // [Output Only] The URL of a zone where the resize request is located. Populated only for zonal resize requests. + // [Output Only] The URL of azone + // where the resize request is located. Populated only for zonal resize + // requests. optional string zone = 3744684; } // message InstanceGroupManagerResizeRequestStatus { - // [Output only] Fatal errors encountered during the queueing or provisioning phases of the ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt errors, this field is final and errors are never removed from here, as the ResizeRequest is not going to retry. + // [Output only] Fatal errors encountered during the queueing or + // provisioning phases of the ResizeRequest that caused the transition to + // the FAILED state. Contrary to the last_attempt errors, this field is + // final and errors are never removed from here, as the ResizeRequest is not + // going to retry. optional Error error = 96784904; - // [Output only] Information about the last attempt to fulfill the request. The value is temporary since the ResizeRequest can retry, as long as it's still active and the last attempt value can either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, the value may be stale and no longer show an active problem. The value is cleared when ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED the error describing it will be storred in the "error" field only. + // [Output only] Information about the last attempt to fulfill the request. + // The value is temporary since the ResizeRequest can retry, as long as it's + // still active and the last attempt value can either be cleared or replaced + // with a different error. Since ResizeRequest retries infrequently, the + // value may be stale and no longer show an active problem. The value is + // cleared when ResizeRequest transitions to the final state (becomes + // inactive). If the final state is FAILED the error describing it will be + // storred in the "error" field only. optional InstanceGroupManagerResizeRequestStatusLastAttempt last_attempt = 434771492; } @@ -17184,10 +32017,15 @@ message InstanceGroupManagerResizeRequestsListResponse { // A list of resize request resources. repeated InstanceGroupManagerResizeRequest items = 100526016; - // [Output Only] Type of the resource. Always compute#instanceGroupManagerResizeRequestList for a list of resize requests. + // [Output Only] Type of the resource. Alwayscompute#instanceGroupManagerResizeRequestList for + // a list of resize requests. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -17200,30 +32038,46 @@ message InstanceGroupManagerResizeRequestsListResponse { // message InstanceGroupManagerResourcePolicies { - // The URL of the workload policy that is specified for this managed instance group. It can be a full or partial URL. For example, the following are all valid URLs to a workload policy: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy + // The URL of the workload policy that is specified for this managed + // instance group. + // It can be a full or partial URL. For example, the following are + // all valid URLs to a workload policy: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy + // - projects/project/regions/region/resourcePolicies/resourcePolicy + // - regions/region/resourcePolicies/resourcePolicy optional string workload_policy = 114721530; } // message InstanceGroupManagerStandbyPolicy { - // Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`. + // Defines how a MIG resumes or starts VMs from a standby pool when the + // group scales out. The default mode is `MANUAL`. enum Mode { // A value indicating that the enum field is not set. UNDEFINED_MODE = 0; - // MIG does not automatically resume or start VMs in the standby pool when the group scales out. + // MIG does not automatically resume or start VMs in the standby pool when + // the group scales out. MANUAL = 119397318; - // MIG automatically resumes or starts VMs in the standby pool when the group scales out, and replenishes the standby pool afterwards. + // MIG automatically resumes or starts VMs in the standby pool when the + // group scales out, and replenishes the standby pool afterwards. SCALE_OUT_POOL = 635394; } - // Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0. + // Specifies the number of seconds that the MIG should wait to suspend or + // stop a VM after that VM was created. The initial delay gives the + // initialization script the time to prepare your VM for a quick scale out. + // The value of initial delay must be between 0 and 3600 seconds. The + // default value is 0. optional int32 initial_delay_sec = 263207002; - // Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`. + // Defines how a MIG resumes or starts VMs from a standby pool when the + // group scales out. The default mode is `MANUAL`. // Check the Mode enum for the list of possible values. optional string mode = 3357091; @@ -17234,39 +32088,51 @@ message InstanceGroupManagerStatus { // [Output only] Status of all-instances configuration on the group. optional InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737; - // [Output Only] The URL of the Autoscaler that targets this instance group manager. + // [Output Only] The URL of theAutoscaler + // that targets this instance group manager. optional string autoscaler = 517258967; // [Output Only] The status of bulk instance operation. optional InstanceGroupManagerStatusBulkInstanceOperation bulk_instance_operation = 501667466; - // [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified. + // [Output Only] A bit indicating whether the managed instance group is in a + // stable state. A stable state means that: none of the instances in the + // managed instance group is currently undergoing any type of change (for + // example, creation, restart, or deletion); no future changes are scheduled + // for instances in the managed instance group; and the managed instance + // group itself is not being modified. optional bool is_stable = 108410864; // [Output Only] Stateful status of the given Instance Group Manager. optional InstanceGroupManagerStatusStateful stateful = 244462412; - // [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager. + // [Output Only] A status of consistency of Instances' versions with their + // target version specified by version field on Instance Group + // Manager. optional InstanceGroupManagerStatusVersionTarget version_target = 289386200; } // message InstanceGroupManagerStatusAllInstancesConfig { - // [Output Only] Current all-instances configuration revision. This value is in RFC3339 text format. + // [Output Only] Current all-instances configuration revision. + // This value is in RFC3339 text format. optional string current_revision = 38355937; - // [Output Only] A bit indicating whether this configuration has been applied to all managed instances in the group. + // [Output Only] A bit indicating whether this configuration has + // been applied to all managed instances in the group. optional bool effective = 141961639; } -// Bulk instance operation is the creation of VMs in a MIG when the targetSizePolicy.mode is set to BULK. +// Bulk instance operation is the creation of VMs in a MIG when the +// targetSizePolicy.mode is set to BULK. message InstanceGroupManagerStatusBulkInstanceOperation { // [Output Only] Informs whether bulk instance operation is in progress. optional bool in_progress = 320200711; - // [Output Only] Information from the last progress check of bulk instance operation. + // [Output Only] Information from the last progress check of bulk instance + // operation. optional InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck last_progress_check = 208638271; } @@ -17276,17 +32142,29 @@ message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck { // [Output Only] Errors encountered during bulk instance operation. optional Error error = 96784904; - // [Output Only] Timestamp of the last progress check of bulk instance operation. Timestamp is in RFC3339 text format. + // [Output Only] Timestamp of the last progress check of bulk instance + // operation. Timestamp is in RFC3339 text format. optional string timestamp = 55126294; } // message InstanceGroupManagerStatusStateful { - // [Output Only] A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful configuration even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions. + // [Output Only] A bit indicating whether the managed instance group + // has stateful configuration, that is, if you have configured any items + // in a stateful policy or in per-instance configs. + // The group might report that it has no stateful configuration even when + // there is still some preserved state on a managed instance, for example, + // if you have deleted all PICs but not yet applied those deletions. optional bool has_stateful_config = 110474224; - // [Output Only] A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful configuration even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions. This field is deprecated in favor of has_stateful_config. + // [Output Only] A bit indicating whether the managed instance group + // has stateful configuration, that is, if you have configured any items + // in a stateful policy or in per-instance configs. + // The group might report that it has no stateful configuration even when + // there is still some preserved state on a managed instance, for example, + // if you have deleted all PICs but not yet applied those deletions. This + // field is deprecated in favor of has_stateful_config. optional bool is_stateful = 46302913; // [Output Only] Status of per-instance configurations on the instances. @@ -17296,37 +32174,48 @@ message InstanceGroupManagerStatusStateful { // message InstanceGroupManagerStatusStatefulPerInstanceConfigs { - // A bit indicating if all of the group's per-instance configurations (listed in the output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per-instance-configs. + // A bit indicating if all of the group's per-instance configurations + // (listed in the output of a listPerInstanceConfigs API call) have + // status EFFECTIVE or there are no per-instance-configs. optional bool all_effective = 516540553; } // message InstanceGroupManagerStatusVersionTarget { - // [Output Only] A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by version field on Instance Group Manager. + // [Output Only] A bit indicating whether version target has been reached + // in this managed instance group, i.e. all instances are in their target + // version. Instances' target version are specified byversion field on Instance Group Manager. optional bool is_reached = 433209149; } // message InstanceGroupManagerTargetSizePolicy { - // The mode of target size policy based on which the MIG creates its VMs individually or all at once. + // The mode of target size policy based on which the MIG creates its VMs + // individually or all at once. enum Mode { // A value indicating that the enum field is not set. UNDEFINED_MODE = 0; - // The mode in which the MIG creates VMs all at once. In this mode, if the MIG is unable to create even one VM, the MIG waits until all VMs can be created at the same time. + // The mode in which the MIG creates VMs all at once. In this mode, if the + // MIG is unable to create even one VM, the MIG waits until all VMs can be + // created at the same time. BULK = 2050322; - // The mode in which the MIG creates VMs individually. In this mode, if the MIG is unable to create a VM, the MIG will continue to create the other VMs in the group. This is the default mode. + // The mode in which the MIG creates VMs individually. In this mode, if + // the MIG is unable to create a VM, the MIG will continue to create the + // other VMs in the group. This is the default mode. INDIVIDUAL = 438800025; - // If mode is unspecified, MIG will behave as in the default `INDIVIDUAL` mode. + // If mode is unspecified, MIG will behave as in the default `INDIVIDUAL` + // mode. UNSPECIFIED_MODE = 53715403; } - // The mode of target size policy based on which the MIG creates its VMs individually or all at once. + // The mode of target size policy based on which the MIG creates its VMs + // individually or all at once. // Check the Mode enum for the list of possible values. optional string mode = 3357091; @@ -17334,7 +32223,14 @@ message InstanceGroupManagerTargetSizePolicy { // message InstanceGroupManagerUpdatePolicy { - // The instance redistribution policy for regional managed instance groups. Valid values are: - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution is disabled. + // The + // instance redistribution policy for regional managed instance groups. + // Valid values are: + // + // - PROACTIVE (default): The group attempts to maintain an + // even distribution of VM instances across zones in the region. + // - NONE: For non-autoscaled groups, proactive + // redistribution is disabled. // Additional supported values which may be not listed in the enum directly due to technical reasons: // NONE // PROACTIVE @@ -17344,7 +32240,18 @@ message InstanceGroupManagerUpdatePolicy { } - // Minimal action to be taken on an instance. Use this option to minimize disruption as much as possible or to apply a more disruptive action than is necessary. - To limit disruption as much as possible, set the minimal action to REFRESH. If your update requires a more disruptive action, Compute Engine performs the necessary action to execute the update. - To apply a more disruptive action than is strictly necessary, set the minimal action to RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its metadata. But if your application reads instance metadata only when a VM is restarted, you can set the minimal action to RESTART in order to pick up metadata changes. + // Minimal action to be taken on an instance. Use this option to minimize + // disruption as much as possible or to apply a more disruptive action than + // is necessary. + // + // - To limit disruption as much as possible, set the minimal action toREFRESH. If your update requires a more disruptive action, + // Compute Engine performs the necessary action to execute the update. + // - To apply a more disruptive action than is strictly necessary, set the + // minimal action to RESTART or REPLACE. For + // example, Compute Engine does not need to restart a VM to change its + // metadata. But if your application reads instance metadata only when a VM + // is restarted, you can set the minimal action to RESTART in + // order to pick up metadata changes. // Additional supported values which may be not listed in the enum directly due to technical reasons: // NONE // REFRESH @@ -17356,7 +32263,13 @@ message InstanceGroupManagerUpdatePolicy { } - // Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to avoid restarting the VM and to limit disruption as much as possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all. + // Most disruptive action that is allowed to be taken on an instance. + // You can specify either NONE to forbid any actions,REFRESH to avoid restarting the VM and to limit disruption + // as much as possible. RESTART to allow actions that can be + // applied without instance replacing or REPLACE to allow all + // possible actions. If the Updater determines that the minimal update + // action needed is more disruptive than most disruptive allowed action you + // specify it will not perform the update at all. // Additional supported values which may be not listed in the enum directly due to technical reasons: // NONE // REFRESH @@ -17368,7 +32281,8 @@ message InstanceGroupManagerUpdatePolicy { } - // What action should be used to replace instances. See minimal_action.REPLACE + // What action should be used to replace instances. + // See minimal_action.REPLACE enum ReplacementMethod { // A value indicating that the enum field is not set. UNDEFINED_REPLACEMENT_METHOD = 0; @@ -17381,44 +32295,105 @@ message InstanceGroupManagerUpdatePolicy { } - // The type of update process. You can specify either PROACTIVE so that the MIG automatically updates VMs to the latest configurations or OPPORTUNISTIC so that you can select the VMs that you want to update. + // The type + // of update process. You can specify either PROACTIVE so + // that the MIG automatically updates VMs to the latest configurations orOPPORTUNISTIC so that you can select the VMs that you want + // to update. // Additional supported values which may be not listed in the enum directly due to technical reasons: // PROACTIVE enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; - // MIG will apply new configurations to existing VMs only when you selectively target specific or all VMs to be updated. + // MIG will apply new configurations + // to existing VMs only when you selectively target specific or all VMs to + // be updated. OPPORTUNISTIC = 429530089; } - // The instance redistribution policy for regional managed instance groups. Valid values are: - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution is disabled. + // The + // instance redistribution policy for regional managed instance groups. + // Valid values are: + // + // - PROACTIVE (default): The group attempts to maintain an + // even distribution of VM instances across zones in the region. + // - NONE: For non-autoscaled groups, proactive + // redistribution is disabled. // Check the InstanceRedistributionType enum for the list of possible values. optional string instance_redistribution_type = 292630424; - // The maximum number of instances that can be created above the specified targetSize during the update process. This value can be either a fixed number or, if the group has 10 or more instances, a percentage. If you set a percentage, the number of instances is rounded if necessary. The default value for maxSurge is a fixed value equal to the number of zones in which the managed instance group operates. At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxSurge. + // The maximum number of instances that can be created above the specifiedtargetSize during the update process. This value can be + // either a fixed number or, if the group has 10 or more instances, a + // percentage. If you set a percentage, the number of instances is rounded + // if necessary. The default value for maxSurge is a fixed + // value equal to the number of zones in which the managed instance group + // operates. + // + // At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about maxSurge. optional FixedOrPercent max_surge = 302572691; - // The maximum number of instances that can be unavailable during the update process. An instance is considered available if all of the following conditions are satisfied: - The instance's status is RUNNING. - If there is a health check on the instance group, the instance's health check status must be HEALTHY at least once. If there is no health check on the group, then the instance only needs to have a status of RUNNING to be considered available. This value can be either a fixed number or, if the group has 10 or more instances, a percentage. If you set a percentage, the number of instances is rounded if necessary. The default value for maxUnavailable is a fixed value equal to the number of zones in which the managed instance group operates. At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxUnavailable. + // The maximum number of instances that can be unavailable during the update + // process. An instance is considered available if all of the following + // conditions are satisfied: + // + // + // + // - The instance's status is + // RUNNING. + // - If there is a health + // check on the instance group, the instance's health check status + // must be HEALTHY at least once. If there is no health check + // on the group, then the instance only needs to have a status of + // RUNNING to be considered available. + // + // + // This value can be either a fixed number or, if the group has 10 or more + // instances, a percentage. If you set a percentage, the number of instances + // is rounded if necessary. The default value formaxUnavailable is a fixed value equal to the number of zones + // in which the managed instance group operates. + // + // At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about maxUnavailable. optional FixedOrPercent max_unavailable = 404940277; - // Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range [0, 3600]. + // Minimum number of seconds to wait for after a newly created instance + // becomes available. This value must be from range [0, 3600]. optional int32 min_ready_sec = 372481544; - // Minimal action to be taken on an instance. Use this option to minimize disruption as much as possible or to apply a more disruptive action than is necessary. - To limit disruption as much as possible, set the minimal action to REFRESH. If your update requires a more disruptive action, Compute Engine performs the necessary action to execute the update. - To apply a more disruptive action than is strictly necessary, set the minimal action to RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its metadata. But if your application reads instance metadata only when a VM is restarted, you can set the minimal action to RESTART in order to pick up metadata changes. + // Minimal action to be taken on an instance. Use this option to minimize + // disruption as much as possible or to apply a more disruptive action than + // is necessary. + // + // - To limit disruption as much as possible, set the minimal action toREFRESH. If your update requires a more disruptive action, + // Compute Engine performs the necessary action to execute the update. + // - To apply a more disruptive action than is strictly necessary, set the + // minimal action to RESTART or REPLACE. For + // example, Compute Engine does not need to restart a VM to change its + // metadata. But if your application reads instance metadata only when a VM + // is restarted, you can set the minimal action to RESTART in + // order to pick up metadata changes. // Check the MinimalAction enum for the list of possible values. optional string minimal_action = 270567060; - // Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to avoid restarting the VM and to limit disruption as much as possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all. + // Most disruptive action that is allowed to be taken on an instance. + // You can specify either NONE to forbid any actions,REFRESH to avoid restarting the VM and to limit disruption + // as much as possible. RESTART to allow actions that can be + // applied without instance replacing or REPLACE to allow all + // possible actions. If the Updater determines that the minimal update + // action needed is more disruptive than most disruptive allowed action you + // specify it will not perform the update at all. // Check the MostDisruptiveAllowedAction enum for the list of possible values. optional string most_disruptive_allowed_action = 66103053; - // What action should be used to replace instances. See minimal_action.REPLACE + // What action should be used to replace instances. + // See minimal_action.REPLACE // Check the ReplacementMethod enum for the list of possible values. optional string replacement_method = 505931694; - // The type of update process. You can specify either PROACTIVE so that the MIG automatically updates VMs to the latest configurations or OPPORTUNISTIC so that you can select the VMs that you want to update. + // The type + // of update process. You can specify either PROACTIVE so + // that the MIG automatically updates VMs to the latest configurations orOPPORTUNISTIC so that you can select the VMs that you want + // to update. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -17426,27 +32401,65 @@ message InstanceGroupManagerUpdatePolicy { // message InstanceGroupManagerVersion { - // The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the `targetSize` for this version is reached. + // The URL of the instance template that is specified for this managed + // instance group. The group uses this template to create new instances in + // the managed instance group until the `targetSize` for this version is + // reached. The templates for existing instances in the group do not change + // unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE; in those cases, + // existing instances are updated until the `targetSize` for this version is + // reached. optional string instance_template = 309248228; - // Name of the version. Unique among all versions in the scope of this managed instance group. + // Name of the version. Unique among all versions in the scope of this + // managed instance group. optional string name = 3373707; - // Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information. + // Specifies the intended number of instances to be created from theinstanceTemplate. The final number of instances created + // from the template will be equal to: + // + // + // - If expressed as a fixed number, the minimum of either + // targetSize.fixed or + // instanceGroupManager.targetSize is used. + // - if expressed as a percent, the targetSize + // would be (targetSize.percent/100 * + // InstanceGroupManager.targetSize) If there is a remainder, the + // number is rounded. + // + // If unset, this version will update any remaining instances not + // updated by another version. ReadStarting + // a canary update for more information. optional FixedOrPercent target_size = 62880239; } // message InstanceGroupManagersAbandonInstancesRequest { - // The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to abandon. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // InstanceGroupManagers.applyUpdatesToInstances message InstanceGroupManagersApplyUpdatesRequest { - // The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. + // The minimal action that you want to perform on each instance during the + // update: + // + // + // - REPLACE: At minimum, delete the instance and create it + // again. + // - RESTART: Stop the instance and start it + // again. + // - REFRESH: Do not stop the instance and limit + // disruption as much as possible. + // - NONE: Do not + // disrupt the instance at all. + // + // + // By default, the minimum action is NONE. If your update + // requires a more disruptive action than you set with this flag, the + // necessary action is performed to execute the update. // Additional supported values which may be not listed in the enum directly due to technical reasons: // NONE // REFRESH @@ -17458,7 +32471,21 @@ message InstanceGroupManagersApplyUpdatesRequest { } - // The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. + // The most disruptive action that you want to perform on each instance during + // the update: + // + // + // - REPLACE: Delete the instance and create it again. + // - RESTART: Stop the instance and start it again. + // - REFRESH: Do not stop the instance and limit disruption + // as much as possible. + // - NONE: Do not disrupt the + // instance at all. + // + // + // By default, the most disruptive allowed action is REPLACE. If + // your update requires a more disruptive action than you set with this flag, + // the update request will fail. // Additional supported values which may be not listed in the enum directly due to technical reasons: // NONE // REFRESH @@ -17470,17 +32497,50 @@ message InstanceGroupManagersApplyUpdatesRequest { } - // Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request. + // Flag to update all instances instead of specified list of “instances”. + // If the flag is set to true then the instances may not be specified + // in the request. optional bool all_instances = 403676512; - // The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The list of URLs of one or more instances for which you want to apply + // updates. Each URL can be a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; - // The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. + // The minimal action that you want to perform on each instance during the + // update: + // + // + // - REPLACE: At minimum, delete the instance and create it + // again. + // - RESTART: Stop the instance and start it + // again. + // - REFRESH: Do not stop the instance and limit + // disruption as much as possible. + // - NONE: Do not + // disrupt the instance at all. + // + // + // By default, the minimum action is NONE. If your update + // requires a more disruptive action than you set with this flag, the + // necessary action is performed to execute the update. // Check the MinimalAction enum for the list of possible values. optional string minimal_action = 270567060; - // The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. + // The most disruptive action that you want to perform on each instance during + // the update: + // + // + // - REPLACE: Delete the instance and create it again. + // - RESTART: Stop the instance and start it again. + // - REFRESH: Do not stop the instance and limit disruption + // as much as possible. + // - NONE: Do not disrupt the + // instance at all. + // + // + // By default, the most disruptive allowed action is REPLACE. If + // your update requires a more disruptive action than you set with this flag, + // the update request will fail. // Check the MostDisruptiveAllowedAction enum for the list of possible values. optional string most_disruptive_allowed_action = 66103053; @@ -17495,27 +32555,85 @@ message InstanceGroupManagersCreateInstancesRequest { // message InstanceGroupManagersDeleteInstancesRequest { - // The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted only by name. One cannot specify both URLs and names in a single request. + // The URLs of one or more instances to delete. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // Queued instances do not have URL and can be deleted only by name. + // One cannot specify both URLs and names in a single request. repeated string instances = 29097598; - // Specifies whether the request should proceed despite the inclusion of instances that are not members of the group or that are already in the process of being deleted or abandoned. If this field is set to `false` and such an instance is specified in the request, the operation fails. The operation always fails if the request contains a malformed instance URL or a reference to an instance that exists in a zone or region other than the group's zone or region. + // Specifies whether the request should proceed despite the inclusion of + // instances that are not members of the group or that are already in the + // process of being deleted or abandoned. If this field is set to `false` and + // such an instance is specified in the request, the operation fails. The + // operation always fails if the request contains a malformed instance URL or + // a reference to an instance that exists in a zone or region other than the + // group's zone or region. optional bool skip_instances_on_validation_error = 40631073; } // InstanceGroupManagers.deletePerInstanceConfigs message InstanceGroupManagersDeletePerInstanceConfigsReq { - // The list of instance names for which we want to delete per-instance configs on this managed instance group. + // The list of instance names for which we want to delete per-instance configs + // on this managed instance group. repeated string names = 104585032; } +// +message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse { + // The accelerator topology information returned per id of the topology + // location. + map accelerator_topologies_info = 84833420; + +} + +// +message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo { + // + enum AcceleratorTopologyHealth { + // A value indicating that the enum field is not set. + UNDEFINED_ACCELERATOR_TOPOLOGY_HEALTH = 0; + + // All VM are in RUNNING state, but there is an issue with + // the inter-chip connectivity that makes this part + // of the infrastructure ready to use as a working + // inter-chip connected group only in a degraded mode. + // This is allowed only for Instances configured with ICI + // resiliency + DEGRADED = 396890926; + + // All VM are in RUNNING state, there are no issues with the + // inter-chip connectivity. + HEALTHY = 439801213; + + // Some VMs may not be in RUNNING state, or there is an + // issue with the inter-chip connectivity that makes this + // part of the infrastructure unsuitable for forming a + // working inter-chip connected group. + UNHEALTHY = 462118084; + + } + + // Topology in the format of: "16x16", "4x4x4", etc. + optional string accelerator_topology = 389323203; + + // + // Check the AcceleratorTopologyHealth enum for the list of possible values. + optional string accelerator_topology_health = 323449944; + +} + // message InstanceGroupManagersListErrorsResponse { // [Output Only] The list of errors of the managed instance group. repeated InstanceManagedByIgmError items = 100526016; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; } @@ -17525,7 +32643,11 @@ message InstanceGroupManagersListManagedInstancesResponse { // [Output Only] The list of instances in the managed instance group. repeated ManagedInstance managed_instances = 336219614; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; } @@ -17535,7 +32657,11 @@ message InstanceGroupManagersListPerInstanceConfigsResp { // [Output Only] The list of PerInstanceConfig. repeated PerInstanceConfig items = 100526016; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Informational warning message. @@ -17545,41 +32671,66 @@ message InstanceGroupManagersListPerInstanceConfigsResp { // InstanceGroupManagers.patchPerInstanceConfigs message InstanceGroupManagersPatchPerInstanceConfigsReq { - // The list of per-instance configurations to insert or patch on this managed instance group. + // The list of per-instance configurations to insert or patch on this managed + // instance group. repeated PerInstanceConfig per_instance_configs = 526265001; } // message InstanceGroupManagersRecreateInstancesRequest { - // The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to recreate. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // message InstanceGroupManagersResizeAdvancedRequest { - // If this flag is true, the managed instance group attempts to create all instances initiated by this resize request only once. If there is an error during creation, the managed instance group does not retry create this instance, and we will decrease the targetSize of the request instead. If the flag is false, the group attempts to recreate each instance continuously until it succeeds. This flag matters only in the first attempt of creation of an instance. After an instance is successfully created while this flag is enabled, the instance behaves the same way as all the other instances created with a regular resize request. In particular, if a running instance dies unexpectedly at a later time and needs to be recreated, this mode does not affect the recreation behavior in that scenario. This flag is applicable only to the current resize request. It does not influence other resize requests in any way. You can see which instances is being creating in which mode by calling the get or listManagedInstances API. + // If this flag is true, the managed instance group attempts to create all + // instances initiated by this resize request only once. If there is an error + // during creation, the managed instance group does not retry create this + // instance, and we will decrease the targetSize of the request + // instead. If the flag is false, the group attempts to recreate each instance + // continuously until it succeeds. + // + // This flag matters only in the first attempt of creation of an instance. + // After an instance is successfully created while this flag is enabled, the + // instance behaves the same way as all the other instances created with a + // regular resize request. In particular, if a running instance dies + // unexpectedly at a later time and needs to be recreated, this mode does not + // affect the recreation behavior in that scenario. + // + // This flag is applicable only to the current resize request. It does not + // influence other resize requests in any way. + // + // You can see which instances is being creating in which mode by calling + // the get or listManagedInstances API. optional bool no_creation_retries = 39329444; - // The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter. + // The number of running instances that the managed instance group should + // maintain at any given time. The group automatically adds or removes + // instances to maintain the number of instances specified by this parameter. optional int32 target_size = 62880239; } // message InstanceGroupManagersResumeInstancesRequest { - // The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to resume. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // message InstanceGroupManagersScopedList { - // [Output Only] The list of managed instance groups that are contained in the specified project and zone. + // [Output Only] The list of managed instance groups that are contained in + // the specified project and zone. repeated InstanceGroupManager instance_group_managers = 214072592; - // [Output Only] The warning that replaces the list of managed instance groups when the list is empty. + // [Output Only] The warning that replaces the list of managed instance + // groups when the list is empty. optional Warning warning = 50704284; } @@ -17592,51 +32743,68 @@ message InstanceGroupManagersSetAutoHealingRequest { // message InstanceGroupManagersSetInstanceTemplateRequest { - // The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. + // The URL of the instance template that is specified for this managed + // instance group. The group uses this template to create all new instances + // in the managed instance group. The templates for existing instances in the + // group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. optional string instance_template = 309248228; } // message InstanceGroupManagersSetTargetPoolsRequest { - // The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. + // The fingerprint of the target pools information. Use this optional + // property to prevent conflicts when multiple users change the target pools + // settings concurrently. Obtain the fingerprint with theinstanceGroupManagers.get + // method. Then, include the fingerprint in your request to ensure that you + // do not overwrite changes that were applied from another + // concurrent request. optional string fingerprint = 234678500; - // The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings. + // The list of target pool URLs that instances in this managed instance group + // belong to. The managed instance group applies these target pools to all + // of the instances in the group. Existing instances and new instances in the + // group all receive these target pool settings. repeated string target_pools = 336072617; } // message InstanceGroupManagersStartInstancesRequest { - // The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to start. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // message InstanceGroupManagersStopInstancesRequest { - // If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them. + // If this flag is set to true, the Instance Group Manager will proceed to + // stop the instances, skipping initialization on them. optional bool force_stop = 134762710; - // The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to stop. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // message InstanceGroupManagersSuspendInstancesRequest { - // If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them. + // If this flag is set to true, the Instance Group Manager will proceed to + // suspend the instances, skipping initialization on them. optional bool force_suspend = 27637480; - // The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to suspend. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // InstanceGroupManagers.updatePerInstanceConfigs message InstanceGroupManagersUpdatePerInstanceConfigsReq { - // The list of per-instance configurations to insert or patch on this managed instance group. + // The list of per-instance configurations to insert or patch on this managed + // instance group. repeated PerInstanceConfig per_instance_configs = 526265001; } @@ -17656,10 +32824,15 @@ message InstanceGroupsListInstances { // A list of InstanceWithNamedPorts resources. repeated InstanceWithNamedPorts items = 100526016; - // [Output Only] The resource type, which is always compute#instanceGroupsListInstances for the list of instances in the specified instance group. + // [Output Only] The resource type, which is alwayscompute#instanceGroupsListInstances for the list of instances + // in the specified instance group. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -17672,7 +32845,9 @@ message InstanceGroupsListInstances { // message InstanceGroupsListInstancesRequest { - // A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state. + // A filter for the state of the instances in the instance group. Valid + // options are ALL or RUNNING. If you do not specify + // this parameter the list includes all instances regardless of their state. enum InstanceState { // A value indicating that the enum field is not set. UNDEFINED_INSTANCE_STATE = 0; @@ -17680,12 +32855,15 @@ message InstanceGroupsListInstancesRequest { // Includes all instances in the generated list regardless of their state. ALL = 64897; - // Includes instances in the generated list only if they have a RUNNING state. + // Includes instances in the generated list only if they have a RUNNING + // state. RUNNING = 121282975; } - // A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state. + // A filter for the state of the instances in the instance group. Valid + // options are ALL or RUNNING. If you do not specify + // this parameter the list includes all instances regardless of their state. // Check the InstanceState enum for the list of possible values. optional string instance_state = 92223591; @@ -17700,17 +32878,24 @@ message InstanceGroupsRemoveInstancesRequest { // message InstanceGroupsScopedList { - // [Output Only] The list of instance groups that are contained in this scope. + // [Output Only] The list ofinstance + // groups that are contained in this scope. repeated InstanceGroup instance_groups = 366469310; - // [Output Only] An informational warning that replaces the list of instance groups when the list is empty. + // [Output Only] An informational warning that replaces the list of + // instance groups when the list is empty. optional Warning warning = 50704284; } // message InstanceGroupsSetNamedPortsRequest { - // The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. A request with an incorrect fingerprint will fail with error 412 conditionNotMet. + // The fingerprint of the named ports information for this instance group. + // Use this optional property to prevent conflicts when multiple users change + // the named ports settings concurrently. Obtain the fingerprint with theinstanceGroups.get + // method. Then, include the fingerprint in your request to ensure that you + // do not overwrite changes that were applied from another concurrent request. + // A request with an incorrect fingerprint will fail with error412 conditionNotMet. optional string fingerprint = 234678500; // The list of named ports to set for this instance group. @@ -17726,10 +32911,15 @@ message InstanceList { // A list of Instance resources. repeated Instance items = 100526016; - // [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + // [Output Only] Type of resource. Always compute#instanceList + // for lists of Instance resources. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -17748,10 +32938,14 @@ message InstanceListReferrers { // A list of Reference resources. repeated Reference items = 100526016; - // [Output Only] Type of resource. Always compute#instanceListReferrers for lists of Instance referrers. + // [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance referrers. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -17767,40 +32961,54 @@ message InstanceManagedByIgmError { // [Output Only] Contents of the error. optional InstanceManagedByIgmErrorManagedInstanceError error = 96784904; - // [Output Only] Details of the instance action that triggered this error. May be null, if the error was not caused by an action on an instance. This field is optional. + // [Output Only] Details of the instance action that triggered this error. + // May be null, if the error was not caused by an action on an instance. + // This field is optional. optional InstanceManagedByIgmErrorInstanceActionDetails instance_action_details = 292224547; - // [Output Only] The time that this error occurred. This value is in RFC3339 text format. + // [Output Only] The time that this error occurred. + // This value is in RFC3339 text format. optional string timestamp = 55126294; } // message InstanceManagedByIgmErrorInstanceActionDetails { - // [Output Only] Action that managed instance group was executing on the instance when the error occurred. Possible values: + // [Output Only] Action that managed instance group was executing on + // the instance when the error occurred. Possible values: enum Action { // A value indicating that the enum field is not set. UNDEFINED_ACTION = 0; - // The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. + // The managed instance group is abandoning this instance. The instance + // will be removed from the instance group and from any target pools that + // are associated with this group. ABANDONING = 388244813; - // The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. + // The managed instance group is creating this instance. If the group + // fails to create this instance, it will try again until it is + // successful. CREATING = 455564985; - // The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased. + // The managed instance group is attempting to create this instance + // only once. If the group fails to create this instance, it does + // not try again and the group's targetSize value is + // decreased. CREATING_WITHOUT_RETRIES = 428843785; // The managed instance group is permanently deleting this instance. DELETING = 528602024; - // The managed instance group has not scheduled any actions for this instance. + // The managed instance group has not scheduled any actions for this + // instance. NONE = 2402104; // The managed instance group is recreating this instance. RECREATING = 287278572; - // The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. + // The managed instance group is applying configuration changes to the + // instance without stopping it. For example, the group can update the + // target pool list for an instance without stopping that instance. REFRESHING = 163266343; // The managed instance group is restarting this instance. @@ -17818,19 +33026,31 @@ message InstanceManagedByIgmErrorInstanceActionDetails { // The managed instance group is suspending this instance. SUSPENDING = 514206246; - // The managed instance group is verifying this already created instance. Verification happens every time the instance is (re)created or restarted and consists of: 1. Waiting until health check specified as part of this managed instance group's autohealing policy reports HEALTHY. Note: Applies only if autohealing policy has a health check specified 2. Waiting for addition verification steps performed as post-instance creation (subject to future extensions). + // The managed instance group is verifying this already created instance. + // Verification happens every time the instance is (re)created or restarted + // and consists of: + // 1. Waiting until health check specified as part of this managed instance + // group's autohealing policy reports HEALTHY. + // Note: Applies only if autohealing policy has a health check specified + // 2. Waiting for addition verification steps performed as post-instance + // creation (subject to future extensions). VERIFYING = 16982185; } - // [Output Only] Action that managed instance group was executing on the instance when the error occurred. Possible values: + // [Output Only] Action that managed instance group was executing on + // the instance when the error occurred. Possible values: // Check the Action enum for the list of possible values. optional string action = 187661878; - // [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been created. + // [Output Only] The URL of the instance. + // The URL can be set even if the instance has not yet been created. optional string instance = 18257045; - // [Output Only] Version this instance was created from, or was being created from, but the creation failed. Corresponds to one of the versions that were set on the Instance Group Manager resource at the time this instance was being created. + // [Output Only] Version this instance was created from, or was being + // created from, but the creation failed. Corresponds to one of the versions + // that were set on the Instance Group Manager resource at the time this + // instance was being created. optional ManagedInstanceVersion version = 351608024; } @@ -17847,27 +33067,43 @@ message InstanceManagedByIgmErrorManagedInstanceError { // message InstanceMoveRequest { - // The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone + // The URL of the destination zone to move the instance. This can be a full or + // partial URL. For example, the following are all valid URLs to a zone: + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone + // - projects/project/zones/zone + // - zones/zone optional string destination_zone = 131854653; - // The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance + // The URL of the target instance to move. This can be a full or partial URL. + // For example, the following are all valid URLs to an instance: + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance + // - projects/project/zones/zone/instances/instance + // - zones/zone/instances/instance optional string target_instance = 289769347; } // Additional instance params. message InstanceParams { - // Relative deadline for waiting for capacity. Relevant only for Instances.Insert API. + // Relative deadline for waiting for capacity. Relevant only for + // Instances.Insert API. optional Duration request_valid_for_duration = 116247389; - // Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + // Resource manager tags to be bound to the instance. Tag keys and values + // have the same definition as resource + // manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and + // values are in the format `tagValues/456`. The field is ignored (both PUT & + // PATCH) when empty. map resource_manager_tags = 377671164; } // message InstanceProperties { - // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + // KeyRevocationActionType of the instance. Supported options are "STOP" and + // "NONE". The default value is "NONE" if it is not specified. enum KeyRevocationActionType { // A value indicating that the enum field is not set. UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; @@ -17899,57 +33135,92 @@ message InstanceProperties { } - // The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. + // The private IPv6 google access type for VMs. + // If not specified, use INHERIT_FROM_SUBNETWORK as default. + // Note that for MachineImage, this is not supported yet. enum PrivateIpv6GoogleAccess { // A value indicating that the enum field is not set. UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS = 0; - // Bidirectional private IPv6 access to/from Google services. If specified, the subnetwork who is attached to the instance's default network interface will be assigned an internal IPv6 prefix if it doesn't have before. + // Bidirectional private IPv6 access to/from Google services. If + // specified, the subnetwork who is attached to the instance's default network + // interface will be assigned an internal IPv6 prefix if it doesn't have + // before. ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE = 427975994; - // Outbound private IPv6 access from VMs in this subnet to Google services. If specified, the subnetwork who is attached to the instance's default network interface will be assigned an internal IPv6 prefix if it doesn't have before. + // Outbound private IPv6 access from VMs in this subnet to Google services. If + // specified, the subnetwork who is attached to the instance's default network + // interface will be assigned an internal IPv6 prefix if it doesn't have + // before. ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE = 288210263; - // Each network interface inherits PrivateIpv6GoogleAccess from its subnetwork. + // Each network interface inherits PrivateIpv6GoogleAccess from its + // subnetwork. INHERIT_FROM_SUBNETWORK = 530256959; } - // Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet. + // Controls for advanced machine-related behavior features. + // Note that for MachineImage, this is not supported yet. optional AdvancedMachineFeatures advanced_machine_features = 409646002; - // Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information. + // Enables instances created based on these properties to send packets with + // source IP addresses other than their own and receive packets with + // destination IP addresses other than their own. If these instances will be + // used as an IP gateway or it will be set as the next-hop in a Route + // resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding + // documentation for more information. optional bool can_ip_forward = 467731324; - // Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet. + // Specifies the Confidential Instance options. + // Note that for MachineImage, this is not supported yet. optional ConfidentialInstanceConfig confidential_instance_config = 490637685; - // An optional text description for the instances that are created from these properties. + // An optional text description for the instances that are created from these + // properties. optional string description = 422937596; - // An array of disks that are associated with the instances that are created from these properties. + // An array of disks that are associated with the instances that are created + // from these properties. repeated AttachedDisk disks = 95594102; - // Display Device properties to enable support for remote display products like: Teradici, VNC and TeamViewer Note that for MachineImage, this is not supported yet. + // Display Device properties to enable support + // for remote display products like: Teradici, + // VNC and TeamViewer + // Note that for MachineImage, this is not supported yet. optional DisplayDevice display_device = 258933875; - // A list of guest accelerator cards' type and count to use for instances created from these properties. + // A list of guest accelerator cards' type and count to use for instances + // created from these properties. repeated AcceleratorConfig guest_accelerators = 463595119; - // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + // KeyRevocationActionType of the instance. Supported options are "STOP" and + // "NONE". The default value is "NONE" if it is not specified. // Check the KeyRevocationActionType enum for the list of possible values. optional string key_revocation_action_type = 235941474; // Labels to apply to instances that are created from these properties. map labels = 500195327; - // The machine type to use for instances that are created from these properties. This field only accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or partial URL, for example `projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`. + // The machine type to use for instances that are created from these + // properties. + // This field only accepts a machine type name, for example `n2-standard-4`. + // If you use the machine type full or partial URL, for example + // `projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4`, + // the request will result in an `INTERNAL_ERROR`. optional string machine_type = 227711026; - // The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information. + // The metadata key/value pairs to assign to instances that are created from + // these properties. These pairs can consist of custom metadata or predefined + // keys. SeeProject and + // instance metadata for more information. optional Metadata metadata = 86866735; - // Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform. + // Minimum cpu/platform to be used by instances. The instance may be + // scheduled on the specified or newer cpu/platform. Applicable values are the + // friendly names of CPU platforms, such asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more + // information, read Specifying a + // Minimum CPU Platform. optional string min_cpu_platform = 242912759; // An array of network access configurations for this interface. @@ -17958,39 +33229,57 @@ message InstanceProperties { // Note that for MachineImage, this is not supported yet. optional NetworkPerformanceConfig network_performance_config = 398330850; - // Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to entries map. + // Partner Metadata assigned to the instance properties. A map from a + // subdomain (namespace) to entries map. map partner_metadata = 65908934; // PostKeyRevocationActionType of the instance. // Check the PostKeyRevocationActionType enum for the list of possible values. optional string post_key_revocation_action_type = 292972897; - // The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. + // The private IPv6 google access type for VMs. + // If not specified, use INHERIT_FROM_SUBNETWORK as default. + // Note that for MachineImage, this is not supported yet. // Check the PrivateIpv6GoogleAccess enum for the list of possible values. optional string private_ipv6_google_access = 48277006; - // Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet. + // Specifies the reservations that instances can consume from. + // Note that for MachineImage, this is not supported yet. optional ReservationAffinity reservation_affinity = 157850683; - // Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + // Resource manager tags to be bound to the instance. Tag keys and values + // have the same definition as resource + // manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and + // values are in the format `tagValues/456`. The field is ignored (both PUT & + // PATCH) when empty. map resource_manager_tags = 377671164; - // Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet. + // Resource policies (names, not URLs) applied to instances created from + // these properties. + // Note that for MachineImage, this is not supported yet. repeated string resource_policies = 22220385; - // Specifies the scheduling options for the instances that are created from these properties. + // Specifies the scheduling options for the instances that are created from + // these properties. optional Scheduling scheduling = 386688404; - // A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances. + // A list of service accounts with specified scopes. Access tokens for these + // service accounts are available to the instances that are created from + // these properties. Use metadata queries to obtain the access tokens for + // these instances. repeated ServiceAccount service_accounts = 277537328; // Note that for MachineImage, this is not supported yet. optional ShieldedInstanceConfig shielded_instance_config = 12862901; - // Specifies the Shielded VM options for the instances that are created from these properties. + // Specifies the Shielded VM options for the instances that are created from + // these properties. optional ShieldedVmConfig shielded_vm_config = 477568019; - // A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035. + // A list of tags to apply to the instances that are created from these + // properties. The tags identify valid sources or targets for network + // firewalls. The setTags method can modify this list of tags. Each tag within + // the list must comply with RFC1035. optional Tags tags = 3552281; } @@ -18000,71 +33289,122 @@ message InstancePropertiesPatch { // The label key-value pairs that you want to patch onto the instance. map labels = 500195327; - // The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata. + // The metadata key-value pairs that you want to patch onto the instance. For + // more information, see Project and + // instance metadata. map metadata = 86866735; } // message InstanceReference { - // The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances + // The URL for a specific instance. + // @required compute.instancegroups.addInstances/removeInstances optional string instance = 18257045; } -// Represents a Instance Settings resource. You can use instance settings to configure default settings for Compute Engine VM instances. For example, you can use it to configure default machine type of Compute Engine VM instances. +// Represents a Instance Settings resource. You can use instance settings to +// configure default settings for Compute Engine VM instances. For example, you +// can use it to configure default machine type of Compute Engine VM instances. message InstanceSettings { - // Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource. + // Specifies a fingerprint for instance settings, which is essentially a hash + // of the instance settings resource's contents and used for optimistic + // locking. The fingerprint is initially generated by Compute Engine and + // changes after every request to modify or update the instance settings + // resource. You must always provide an up-to-date fingerprint hash in order + // to update or change the resource, otherwise the request will fail with + // error 412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve the resource. optional string fingerprint = 234678500; - // [Output Only] Type of the resource. Always compute#instance_settings for instance settings. + // [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. optional string kind = 3292052; - // The metadata key/value pairs assigned to all the instances in the corresponding scope. + // The metadata key/value pairs assigned to all the instances in the + // corresponding scope. optional InstanceSettingsMetadata metadata = 86866735; - // [Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the zone where the resource resides + // You must specify this field as part of the HTTP request URL. It is not + // settable as a field in the request body. optional string zone = 3744684; } // message InstanceSettingsMetadata { - // A metadata key/value items map. The total size of all keys and values must be less than 512KB. + // A metadata key/value items map. + // The total size of all keys and values must be less than 512KB. map items = 100526016; - // [Output Only] Type of the resource. Always compute#metadata for metadata. + // [Output Only] Type of the resource. Always compute#metadata + // for metadata. optional string kind = 3292052; } -// Represents an Instance Template resource. Google Compute Engine has two Instance Template resources: * [Global](/compute/docs/reference/rest/beta/instanceTemplates) * [Regional](/compute/docs/reference/rest/beta/regionInstanceTemplates) You can reuse a global instance template in different regions whereas you can use a regional instance template in a specified region only. If you want to reduce cross-region dependency or achieve data residency, use a regional instance template. To create VMs, managed instance groups, and reservations, you can use either global or regional instance templates. For more information, read Instance Templates. +// Represents an Instance Template resource. +// +// Google Compute Engine has two Instance Template resources: +// +// * [Global](/compute/docs/reference/rest/beta/instanceTemplates) +// * [Regional](/compute/docs/reference/rest/beta/regionInstanceTemplates) +// +// You can reuse a global instance template in +// different regions whereas you can use a regional instance template in a +// specified region only. If you want to reduce cross-region dependency or +// achieve data residency, use a regional instance template. +// +// To create VMs, managed instance groups, and reservations, you can use either +// global or regional instance templates. +// +// For more information, readInstance Templates. message InstanceTemplate { - // [Output Only] The creation timestamp for this instance template in RFC3339 text format. + // [Output Only] The creation timestamp for this instance template inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] A unique identifier for this instance template. The server defines this identifier. + // [Output Only] A unique identifier for this instance template. The server + // defines this identifier. optional uint64 id = 3355; - // [Output Only] The resource type, which is always compute#instanceTemplate for instance templates. + // [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance templates. optional string kind = 3292052; - // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; // The instance properties for this instance template. optional InstanceProperties properties = 147688755; - // [Output Only] URL of the region where the instance template resides. Only applicable for regional resources. + // [Output Only] URL of the region where the instance template resides. Only + // applicable for regional resources. optional string region = 138946292; - // [Output Only] The URL for this instance template. The server defines this URL. + // [Output Only] The URL for this instance template. The server defines this + // URL. optional string self_link = 456214797; - // The source instance used to create the template. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance + // The source instance used to create the template. You can provide this as a + // partial or full URL to the resource. For example, the following are valid + // values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance + // - projects/project/zones/zone/instances/instance optional string source_instance = 396315705; // The source instance params to use to create this instance template. @@ -18083,7 +33423,11 @@ message InstanceTemplateAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -18102,10 +33446,15 @@ message InstanceTemplateList { // A list of InstanceTemplate resources. repeated InstanceTemplate items = 100526016; - // [Output Only] The resource type, which is always compute#instanceTemplatesListResponse for instance template lists. + // [Output Only] The resource type, which is alwayscompute#instanceTemplatesListResponse for instance template + // lists. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -18118,10 +33467,12 @@ message InstanceTemplateList { // message InstanceTemplatesScopedList { - // [Output Only] A list of instance templates that are contained within the specified project and zone. + // [Output Only] A list of instance templates that are contained within + // the specified project and zone. repeated InstanceTemplate instance_templates = 459889679; - // [Output Only] An informational warning that replaces the list of instance templates when the list is empty. + // [Output Only] An informational warning that replaces the list of instance + // templates when the list is empty. optional Warning warning = 50704284; } @@ -18133,10 +33484,12 @@ message InstanceWithNamedPorts { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; - // The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc. + // The instance is halted and we are performing tear down tasks like network + // deprogramming, releasing quota, IP, tearing down disks etc. DEPROVISIONING = 428935662; - // For Flex Start provisioning instance is waiting for available capacity from Dynamic Workload Scheduler (DWS). + // For Flex Start provisioning instance is waiting for available capacity + // from Dynamic Workload Scheduler (DWS). PENDING = 35394935; // The instance is gracefully shutting down. @@ -18151,7 +33504,8 @@ message InstanceWithNamedPorts { // The instance is running. RUNNING = 121282975; - // All required resources have been allocated and the instance is being started. + // All required resources have been allocated and the instance + // is being started. STAGING = 431072283; // The instance has stopped successfully. @@ -18166,7 +33520,8 @@ message InstanceWithNamedPorts { // The instance is suspending. SUSPENDING = 514206246; - // The instance has stopped (either by explicit action or underlying failure). + // The instance has stopped (either by explicit action or underlying + // failure). TERMINATED = 250018339; } @@ -18192,7 +33547,8 @@ message InstancesAddResourcePoliciesRequest { // message InstancesBulkInsertOperationMetadata { - // Status information per location (location name is key). Example key: zones/us-central1-a + // Status information per location (location name is key). + // Example key: zones/us-central1-a map per_location_status = 167851162; } @@ -18212,7 +33568,8 @@ message InstancesGetEffectiveFirewallsResponse { // message InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy { - // [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + // [Output Only] The type of the firewall policy. Can be one of HIERARCHY, + // NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -18231,7 +33588,8 @@ message InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy { } - // [Output Only] Deprecated, please use short name instead. The display name of the firewall policy. + // [Output Only] Deprecated, please use short name instead. The display name + // of the firewall policy. optional string display_name = 4473832; // [Output Only] The name of the firewall policy. @@ -18240,16 +33598,20 @@ message InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy { // [Output Only] The packet mirroring rules that apply to the instance. repeated FirewallPolicyRule packet_mirroring_rules = 531644356; - // [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + // [Output only] Priority of firewall policy association. Not applicable for + // type=HIERARCHY. optional int32 priority = 445151652; - // [Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules. + // [Output Only] The rules that apply to the instance. Only rules that + // target the specific VM instance are returned if target service accounts + // or target secure tags are specified in the rules. repeated FirewallPolicyRule rules = 108873975; // [Output Only] The short name of the firewall policy. optional string short_name = 492051566; - // [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + // [Output Only] The type of the firewall policy. Can be one of HIERARCHY, + // NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -18257,7 +33619,8 @@ message InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy { // A pruned SecurityPolicy containing ID and any applicable firewall rules. message InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy { - // The unique identifier for the security policy. This identifier is defined by the server. + // The unique identifier for the security policy. This + // identifier is defined by the server. optional uint64 id = 3355; // The rules that apply to the network. @@ -18326,10 +33689,22 @@ message InstancesReportHostAsFaultyRequestFaultReason { // message InstancesResumeRequest { - // Array of disks associated with this instance that are protected with a customer-supplied encryption key. In order to resume the instance, the disk url and its corresponding key must be provided. If the disk is not protected with a customer-supplied encryption key it should not be specified. + // Array of disks associated with this instance that are protected with acustomer-supplied + // encryption key. + // + // In order to resume the instance, the disk url and its corresponding key + // must be provided. + // + // If the disk is not protected with a customer-supplied encryption key it + // should not be specified. repeated CustomerEncryptionKeyProtectedDisk disks = 95594102; - // Decrypts data associated with an instance that is protected with a customer-supplied encryption key. If the instance you are starting is protected with a customer-supplied encryption key, the correct key must be provided otherwise the instance resume will not succeed. + // Decrypts data associated with an instance that is protected with acustomer-supplied + // encryption key. + // + // If the instance you are starting is protected with a customer-supplied + // encryption key, the correct key must be provided otherwise the + // instance resume will not succeed. optional CustomerEncryptionKey instance_encryption_key = 64741517; } @@ -18339,14 +33714,17 @@ message InstancesScopedList { // [Output Only] A list of instances contained in this scope. repeated Instance instances = 29097598; - // [Output Only] Informational warning which replaces the list of instances when the list is empty. + // [Output Only] Informational warning which replaces the list of instances + // when the list is empty. optional Warning warning = 50704284; } // message InstancesSetLabelsRequest { - // Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels. + // Fingerprint of the previous set of labels for this resource, + // used to prevent conflicts. Provide the latest fingerprint value when making + // a request to add or change labels. optional string label_fingerprint = 178124825; map labels = 500195327; @@ -18362,7 +33740,8 @@ message InstancesSetMachineResourcesRequest { // message InstancesSetMachineTypeRequest { - // Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example: zones/us-central1-f/machineTypes/n1-standard-1 + // Full or partial URL of the machine type resource. See Machine Types for a full list of + // machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1 optional string machine_type = 227711026; } @@ -18376,7 +33755,8 @@ message InstancesSetMinCpuPlatformRequest { // message InstancesSetNameRequest { - // The current name of this resource, used to prevent conflicts. Provide the latest name when making a request to change name. + // The current name of this resource, used to prevent conflicts. Provide the + // latest name when making a request to change name. optional string current_name = 394983825; // The name to be applied to the instance. Needs to be RFC 1035 compliant. @@ -18386,10 +33766,14 @@ message InstancesSetNameRequest { // message InstancesSetSecurityPolicyRequest { - // The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config. + // The network interfaces that the security policy will be applied to. Network + // interfaces use the nicN naming format. You can only set a + // security policy for network interfaces with an access config. repeated string network_interfaces = 52735243; - // A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy. + // A full or partial URL to a security policy to add to this instance. + // If this field is set to an empty string it will remove the associated + // security policy. optional string security_policy = 171082513; } @@ -18406,14 +33790,24 @@ message InstancesSetServiceAccountRequest { // message InstancesStartWithEncryptionKeyRequest { - // Array of disks associated with this instance that are protected with a customer-supplied encryption key. In order to start the instance, the disk url and its corresponding key must be provided. If the disk is not protected with a customer-supplied encryption key it should not be specified. + // Array of disks associated with this instance that are protected with acustomer-supplied + // encryption key. + // + // In order to start the instance, the disk url and its corresponding key must + // be provided. + // + // If the disk is not protected with a customer-supplied encryption key it + // should not be specified. repeated CustomerEncryptionKeyProtectedDisk disks = 95594102; } -// Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly.. +// Represents a InstantSnapshot resource. +// +// You can use instant snapshots to create disk rollback points quickly.. message InstantSnapshot { - // [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + // [Output Only] The architecture of the instant snapshot. Valid values are + // ARM64 or X86_64. enum Architecture { // A value indicating that the enum field is not set. UNDEFINED_ARCHITECTURE = 0; @@ -18429,7 +33823,7 @@ message InstantSnapshot { } - // [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. + // [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, orREADY. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -18446,40 +33840,63 @@ message InstantSnapshot { // InstantSnapshot has been created successfully. READY = 77848963; - // InstantSnapshot is currently unavailable and cannot be used for Disk restoration + // InstantSnapshot is currently unavailable and cannot be used for + // Disk restoration UNAVAILABLE = 413756464; } - // [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + // [Output Only] The architecture of the instant snapshot. Valid values are + // ARM64 or X86_64. // Check the Architecture enum for the list of possible values. optional string architecture = 302803283; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; // [Output Only] Size of the source disk, specified in GB. optional int64 disk_size_gb = 316263735; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources. + // [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot resources. optional string kind = 3292052; - // A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. + // A fingerprint for the labels being applied to this InstantSnapshot, which + // is essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a InstantSnapshot. optional string label_fingerprint = 178124825; - // Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty. + // Labels to apply to this InstantSnapshot. These can be later modified by + // the setLabels method. + // Label values may be empty. map labels = 500195327; - // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; - // [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the instant snapshot resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; // [Output Only] Status information for the instant snapshot resource. @@ -18497,17 +33914,43 @@ message InstantSnapshot { // [Output Only] Server-defined URL for this resource's resource id. optional string self_link_with_id = 44520962; - // URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk + // URL of the source disk used to create this instant snapshot. + // Note that the source disk must be in the same zone/region as the + // instant snapshot to be created. This can be a full or valid partial URL. + // For example, the following are valid values: + // + // + // - + // https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + // + // - + // https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk + // + // - + // projects/project/zones/zone/disks/disk + // + // - + // projects/project/regions/region/disks/disk + // + // - + // zones/zone/disks/disk + // + // - + // regions/region/disks/disk optional string source_disk = 451753793; - // [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name. + // [Output Only] The ID value of the disk used to create this InstantSnapshot. + // This value may be used to determine whether the InstantSnapshot + // was taken from the current or a previous instance of a given disk name. optional string source_disk_id = 454190809; - // [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. + // [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, orREADY. // Check the Status enum for the list of possible values. optional string status = 181260274; - // [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the zone where the instant snapshot resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string zone = 3744684; } @@ -18520,10 +33963,15 @@ message InstantSnapshotAggregatedList { // A list of InstantSnapshotsScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#instantSnapshotAggregatedList for aggregated lists of instantSnapshots. + // [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for aggregated lists of + // instantSnapshots. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -18548,7 +33996,11 @@ message InstantSnapshotList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -18571,12 +34023,14 @@ message InstantSnapshotsScopedList { // [Output Only] A list of instantSnapshots contained in this scope. repeated InstantSnapshot instant_snapshots = 329637457; - // [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty. + // [Output Only] Informational warning which replaces the list of + // instantSnapshots when the list is empty. optional Warning warning = 50704284; } -// HttpRouteRuleMatch criteria for field values that must stay within the specified integer range. +// HttpRouteRuleMatch criteria for field values that must stay +// within the specified integer range. message Int64RangeMatch { // The end of the range (exclusive) in signed long integer format. optional int64 range_end = 322439897; @@ -18586,11 +34040,16 @@ message Int64RangeMatch { } -// Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. For more information, read the Dedicated Interconnect Overview. +// Represents an Interconnect resource. +// +// An Interconnect resource is a dedicated connection between the Google +// Cloud network and your on-premises network. For more information, read the +// Dedicated Interconnect Overview. message Interconnect { // // Additional supported values which may be not listed in the enum directly due to technical reasons: // IF_CROSS_SITE_NETWORK + // IF_L2_FORWARDING // IF_MACSEC enum AvailableFeatures { // A value indicating that the enum field is not set. @@ -18598,7 +34057,15 @@ message Interconnect { } - // Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + // Type of interconnect, which can take one of the following values: + // + // - PARTNER: A partner-managed interconnection shared between customers + // though a partner. + // - DEDICATED: A dedicated physical interconnection with the + // customer. + // + // + // Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. enum InterconnectType { // A value indicating that the enum field is not set. UNDEFINED_INTERCONNECT_TYPE = 0; @@ -18614,7 +34081,15 @@ message Interconnect { } - // Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. + // Type of link requested, which can take one of the following values: + // + // - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics + // - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. + // - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. + // + // + // Note that this field indicates the speed of each of + // the links in the bundle, not the speed of the entire bundle. enum LinkType { // A value indicating that the enum field is not set. UNDEFINED_LINK_TYPE = 0; @@ -18622,7 +34097,8 @@ message Interconnect { // 100G Ethernet, LR Optics. LINK_TYPE_ETHERNET_100G_LR = 337672551; - // 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; + // 10G Ethernet, LR Optics. + // [(rate_bps) = 10000000000]; LINK_TYPE_ETHERNET_10G_LR = 236739749; // 400G Ethernet, LR4 Optics. @@ -18630,15 +34106,27 @@ message Interconnect { } - // [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. + // [Output Only] The current status of this Interconnect's functionality, + // which can take one of the following values: + // + // - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to + // use. Attachments may be provisioned on this Interconnect. + // + // - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No + // attachments may be provisioned on this Interconnect. + // - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal + // maintenance. No attachments may be provisioned or updated on this + // Interconnect. enum OperationalStatus { // A value indicating that the enum field is not set. UNDEFINED_OPERATIONAL_STATUS = 0; - // The interconnect is valid, turned up, and ready to use. Attachments may be provisioned on this interconnect. + // The interconnect is valid, turned up, and ready to use. Attachments may + // be provisioned on this interconnect. OS_ACTIVE = 55721409; - // The interconnect has not completed turnup. No attachments may be provisioned on this interconnect. + // The interconnect has not completed turnup. No attachments may be + // provisioned on this interconnect. OS_UNPROVISIONED = 239771840; } @@ -18646,6 +34134,7 @@ message Interconnect { // // Additional supported values which may be not listed in the enum directly due to technical reasons: // IF_CROSS_SITE_NETWORK + // IF_L2_FORWARDING // IF_MACSEC enum RequestedFeatures { // A value indicating that the enum field is not set. @@ -18653,20 +34142,32 @@ message Interconnect { } - // [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. + // [Output Only] The current state of Interconnect functionality, which can + // take one of the following values: + // + // - ACTIVE: The Interconnect is valid, turned up and ready to use. + // Attachments may be provisioned on this Interconnect. + // - UNPROVISIONED: The Interconnect has not completed turnup. No + // attachments may be provisioned on this Interconnect. + // - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + // No attachments may be provisioned or updated on this + // Interconnect. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; - // The interconnect is valid, turned up, and ready to use. Attachments may be provisioned on this interconnect. + // The interconnect is valid, turned up, and ready to use. Attachments may + // be provisioned on this interconnect. ACTIVE = 314733318; - // The interconnect has not completed turnup. No attachments may be provisioned on this interconnect. + // The interconnect has not completed turnup. No attachments may be + // provisioned on this interconnect. UNPROVISIONED = 517333979; } - // Specific subzone in the InterconnectLocation that represents where this connection is to be provisioned. + // Specific subzone in the InterconnectLocation that represents where + // this connection is to be provisioned. enum Subzone { // A value indicating that the enum field is not set. UNDEFINED_SUBZONE = 0; @@ -18679,99 +34180,190 @@ message Interconnect { } - // Enable or disable the application awareness feature on this Cloud Interconnect. + // Enable or disable the application awareness feature on this Cloud + // Interconnect. optional bool aai_enabled = 388780363; - // Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + // Administrative status of the interconnect. When this is set to true, the + // Interconnect is functional and can carry traffic. + // When set to false, no packets can be carried over the interconnect and + // no BGP routes are exchanged over it. By default, the status is set to true. optional bool admin_enabled = 445675089; - // Configuration information for application awareness on this Cloud Interconnect. + // Configuration information for application awareness on this Cloud + // Interconnect. optional InterconnectApplicationAwareInterconnect application_aware_interconnect = 429095966; - // [Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails. + // [Output only] List of features available for this Interconnect connection, + // which can take one of the following values: + // + // - IF_MACSEC: If present, then the Interconnect connection is + // provisioned on MACsec capable hardware ports. If not present, then the + // Interconnect connection is provisioned on non-MACsec capable ports. Any + // attempt to enable MACsec will fail. + // - IF_CROSS_SITE_NETWORK: If present, then the Interconnect connection is + // provisioned exclusively for Cross-Site Networking. Any attempt to configure + // VLAN attachments will fail. If not present, then the Interconnect + // connection is not provisioned for Cross-Site Networking. Any attempt to use + // it for Cross-Site Networking will fail. // Check the AvailableFeatures enum for the list of possible values. repeated string available_features = 496344307; - // [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + // [Output Only] A list of CircuitInfo objects, that describe the individual + // circuits in this LAG. repeated InterconnectCircuitInfo circuit_infos = 164839855; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. + // Customer name, to put in the Letter of Authorization as the party + // authorized to request a crossconnect. optional string customer_name = 3665484; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; // [Output Only] A list of outages expected for this Interconnect. repeated InterconnectOutageNotification expected_outages = 264484123; - // [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. + // [Output Only] IP address configured on the Google side of the Interconnect + // link. This can be used only for ping tests. optional string google_ip_address = 443105954; - // [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. + // [Output Only] Google reference ID to be used when raising support tickets + // with Google or otherwise to debug backend connectivity issues. optional string google_reference_id = 534944469; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. + // [Output Only] A list of the URLs of all InterconnectAttachments configured + // to use this Interconnect. repeated string interconnect_attachments = 425388415; - // [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and items are unique. + // [Output Only] URLs of InterconnectGroups that include this Interconnect. + // Order is arbitrary and items are unique. repeated string interconnect_groups = 237049509; - // Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + // Type of interconnect, which can take one of the following values: + // + // - PARTNER: A partner-managed interconnection shared between customers + // though a partner. + // - DEDICATED: A dedicated physical interconnection with the + // customer. + // + // + // Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. // Check the InterconnectType enum for the list of possible values. optional string interconnect_type = 515165259; - // [Output Only] Type of the resource. Always compute#interconnect for interconnects. + // [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. optional string kind = 3292052; - // A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Interconnect. + // A fingerprint for the labels being applied to this Interconnect, which + // is essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve an Interconnect. optional string label_fingerprint = 178124825; - // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. + // Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. + // Label values may be empty. map labels = 500195327; - // Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. + // Type of link requested, which can take one of the following values: + // + // - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics + // - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. + // - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. + // + // + // Note that this field indicates the speed of each of + // the links in the bundle, not the speed of the entire bundle. // Check the LinkType enum for the list of possible values. optional string link_type = 523207775; - // URL of the InterconnectLocation object that represents where this connection is to be provisioned. + // URL of the InterconnectLocation object that represents where this + // connection is to be provisioned. optional string location = 290430901; - // Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect connection between Google and your on-premises router. + // Configuration that enables Media Access Control security (MACsec) on the + // Cloud Interconnect connection between Google and your on-premises router. optional InterconnectMacsec macsec = 528867490; - // Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified. + // Enable or disable MACsec on this Interconnect connection. MACsec enablement + // fails if the MACsec object is not specified. optional bool macsec_enabled = 194203812; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; - // Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. + // Email address to contact the customer NOC for operations and maintenance + // notifications regarding this Interconnect. If specified, this will be used + // for notifications in addition to all other forms described, such as + // Cloud Monitoring logs alerting and Cloud Notifications. This field is + // required for users who sign up for Cloud Interconnect using + // workforce identity federation. optional string noc_contact_email = 14072832; - // [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. + // [Output Only] The current status of this Interconnect's functionality, + // which can take one of the following values: + // + // - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to + // use. Attachments may be provisioned on this Interconnect. + // + // - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No + // attachments may be provisioned on this Interconnect. + // - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal + // maintenance. No attachments may be provisioned or updated on this + // Interconnect. // Check the OperationalStatus enum for the list of possible values. optional string operational_status = 201070847; - // [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional InterconnectParams params = 78313862; + + // [Output Only] IP address configured on the customer side of the + // Interconnect link. The customer should configure this IP address during + // turnup when prompted by Google NOC. This can be used only for ping tests. optional string peer_ip_address = 207735769; // [Output Only] Number of links actually provisioned in this interconnect. optional int32 provisioned_link_count = 410888565; - // Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google's network that the interconnect is connected to. + // Indicates that this is a Cross-Cloud Interconnect. This field specifies the + // location outside of Google's network that the interconnect is connected to. optional string remote_location = 324388750; - // Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH. + // Optional. This parameter can be provided only with Interconnect INSERT. It + // isn't valid for Interconnect PATCH. List of features requested for this + // Interconnect connection, which can take one of the following values: + // + // - IF_MACSEC: If specified, then the connection is created on MACsec + // capable hardware ports. If not specified, non-MACsec capable ports will + // also be considered. + // - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + // exclusively for Cross-Site Networking. The connection can not be used for + // Cross-Site Networking unless this feature is specified. // Check the RequestedFeatures enum for the list of possible values. repeated string requested_features = 461240814; - // Target number of physical links in the link bundle, as requested by the customer. + // Target number of physical links in the link bundle, as requested by the + // customer. optional int32 requested_link_count = 45051387; // [Output Only] Reserved for future use. @@ -18780,34 +34372,52 @@ message Interconnect { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. + // [Output Only] The current state of Interconnect functionality, which can + // take one of the following values: + // + // - ACTIVE: The Interconnect is valid, turned up and ready to use. + // Attachments may be provisioned on this Interconnect. + // - UNPROVISIONED: The Interconnect has not completed turnup. No + // attachments may be provisioned on this Interconnect. + // - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + // No attachments may be provisioned or updated on this + // Interconnect. // Check the State enum for the list of possible values. optional string state = 109757585; - // Specific subzone in the InterconnectLocation that represents where this connection is to be provisioned. + // Specific subzone in the InterconnectLocation that represents where + // this connection is to be provisioned. // Check the Subzone enum for the list of possible values. optional string subzone = 280084972; - // [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. + // [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups + // configured to use this Interconnect. The Interconnect cannot be deleted if + // this list is non-empty. repeated string wire_groups = 40662734; } -// Configuration information for application awareness on this Cloud Interconnect. +// Configuration information for application awareness on this Cloud +// Interconnect. message InterconnectApplicationAwareInterconnect { optional InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy bandwidth_percentage_policy = 187018857; - // Description for the application awareness profile on this Cloud Interconnect. + // Description for the application awareness profile on this Cloud + // Interconnect. optional string profile_description = 262813286; - // Optional field to specify a list of shape average percentages to be applied in conjunction with StrictPriorityPolicy or BandwidthPercentagePolicy. + // Optional field to specify a list of shape average percentages to be + // applied in conjunction with StrictPriorityPolicy or + // BandwidthPercentagePolicy. repeated InterconnectApplicationAwareInterconnectBandwidthPercentage shape_average_percentages = 259857497; optional InterconnectApplicationAwareInterconnectStrictPriorityPolicy strict_priority_policy = 145083063; } -// Specify bandwidth percentages [1-100] for various traffic classes in BandwidthPercentagePolicy. The sum of all percentages must equal 100. All traffic classes must have a percentage value specified. +// Specify bandwidth percentages [1-100] for various traffic classes in +// BandwidthPercentagePolicy. The sum of all percentages must equal 100. +// All traffic classes must have a percentage value specified. message InterconnectApplicationAwareInterconnectBandwidthPercentage { // TrafficClass whose bandwidth percentage is being specified. enum TrafficClass { @@ -18845,7 +34455,8 @@ message InterconnectApplicationAwareInterconnectBandwidthPercentage { // message InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy { - // Specify bandwidth percentages for various traffic classes for queuing type Bandwidth Percent. + // Specify bandwidth percentages for various traffic classes for queuing + // type Bandwidth Percent. repeated InterconnectApplicationAwareInterconnectBandwidthPercentage bandwidth_percentages = 233373323; } @@ -18854,9 +34465,33 @@ message InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy { message InterconnectApplicationAwareInterconnectStrictPriorityPolicy { } -// Represents an Interconnect Attachment (VLAN) resource. You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments. +// Represents an Interconnect Attachment (VLAN) resource. +// +// You can use Interconnect attachments (VLANS) to connect your Virtual Private +// Cloud networks to your on-premises networks through an Interconnect. +// For more information, read +// Creating VLAN Attachments. message InterconnectAttachment { - // Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s + // Provisioned bandwidth capacity for the interconnect attachment. For + // attachments of type DEDICATED, the user can set the bandwidth. + // For attachments of type PARTNER, the Google Partner that is operating + // the interconnect must set the bandwidth. + // Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, + // and can take one of the following values: + // + // - BPS_50M: 50 Mbit/s + // - BPS_100M: 100 Mbit/s + // - BPS_200M: 200 Mbit/s + // - BPS_300M: 300 Mbit/s + // - BPS_400M: 400 Mbit/s + // - BPS_500M: 500 Mbit/s + // - BPS_1G: 1 Gbit/s + // - BPS_2G: 2 Gbit/s + // - BPS_5G: 5 Gbit/s + // - BPS_10G: 10 Gbit/s + // - BPS_20G: 20 Gbit/s + // - BPS_50G: 50 Gbit/s + // - BPS_100G: 100 Gbit/s enum Bandwidth { // A value indicating that the enum field is not set. UNDEFINED_BANDWIDTH = 0; @@ -18902,7 +34537,19 @@ message InterconnectAttachment { } - // Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. + // Input only. Desired availability domain for the attachment. Only available for type + // PARTNER, at creation time, and can take one of the following values: + // + // - AVAILABILITY_DOMAIN_ANY + // - AVAILABILITY_DOMAIN_1 + // - AVAILABILITY_DOMAIN_2 + // + // + // For improved reliability, customers should configure a pair of attachments, + // one per availability domain. The selected availability domain will be + // provided to the Partner via the pairing key, so that the provisioned + // circuit will lie in the specified domain. If not specified, the value will + // default to AVAILABILITY_DOMAIN_ANY. enum EdgeAvailabilityDomain { // A value indicating that the enum field is not set. UNDEFINED_EDGE_AVAILABILITY_DOMAIN = 0; @@ -18915,33 +34562,65 @@ message InterconnectAttachment { } - // Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible values are: - NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud Interconnect*, the VLAN attachment must be created with this option. + // Indicates the user-supplied encryption option of this VLAN attachment + // (interconnectAttachment). Can only be specified at attachment creation + // for PARTNER or DEDICATED attachments. + // Possible values are: + // + // - NONE - This is the default value, which means that the + // VLAN attachment carries unencrypted traffic. VMs are able to send + // traffic to, or receive traffic from, such a VLAN attachment. + // - IPSEC - The VLAN attachment carries only encrypted + // traffic that is encrypted by an IPsec device, such as an HA VPN gateway or + // third-party IPsec VPN. VMs cannot directly send traffic to, or receive + // traffic from, such a VLAN attachment. To use *HA VPN over Cloud + // Interconnect*, the VLAN attachment must be created with this + // option. enum Encryption { // A value indicating that the enum field is not set. UNDEFINED_ENCRYPTION = 0; - // The interconnect attachment will carry only encrypted traffic that is encrypted by an IPsec device such as HA VPN gateway; VMs cannot directly send traffic to or receive traffic from such an interconnect attachment. To use HA VPN over Cloud Interconnect, the interconnect attachment must be created with this option. + // The interconnect attachment will carry only encrypted traffic that is + // encrypted by an IPsec device such as HA VPN gateway; + // VMs cannot directly send traffic to or receive traffic from such an + // interconnect attachment. To use HA VPN over Cloud Interconnect, + // the interconnect attachment must be created with this option. IPSEC = 69882282; - // This is the default value, which means the Interconnect Attachment will carry unencrypted traffic. VMs will be able to send traffic to or receive traffic from such interconnect attachment. + // This is the default value, which means the Interconnect Attachment will + // carry unencrypted traffic. VMs will be able to send traffic to or receive + // traffic from such interconnect attachment. NONE = 2402104; } - // [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values: - OS_ACTIVE: The attachment has been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. + // [Output Only] The current status of whether or not this interconnect + // attachment is functional, which can take one of the following values: + // + // - OS_ACTIVE: The attachment has been turned up and is ready to + // use. + // - OS_UNPROVISIONED: The attachment is not ready to use yet, + // because turnup is not complete. enum OperationalStatus { // A value indicating that the enum field is not set. UNDEFINED_OPERATIONAL_STATUS = 0; - // Indicates that attachment has been turned up and is ready to use. + // Indicates that attachment has been turned up and is ready to + // use. OS_ACTIVE = 55721409; - // Indicates that attachment is not ready to use yet, because turnup is not complete. + // Indicates that attachment is not ready to use yet, because + // turnup is not complete. OS_UNPROVISIONED = 239771840; } - // The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. This field can be both set at interconnect attachments creation and update interconnect attachment operations. + // The stack type for this interconnect attachment to identify whether the + // IPv6 feature is enabled or not. If not specified, IPV4_ONLY + // will be used. + // + // This field can be both set at interconnect attachments creation and + // update interconnect attachment operations. enum StackType { // A value indicating that the enum field is not set. UNDEFINED_STACK_TYPE = 0; @@ -18954,7 +34633,27 @@ message InterconnectAttachment { } - // [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. + // [Output Only] The current state of this attachment's functionality. + // Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, + // PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values + // PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used + // for only PARTNER and PARTNER_PROVIDER interconnect attachments. + // This state can take one of the following values: + // + // - ACTIVE: The attachment has been turned up and is ready to use. + // - UNPROVISIONED: The attachment is not ready to use yet, because turnup + // is not complete. + // - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet + // been configured on the Partner side. + // - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of + // provisioning after a PARTNER_PROVIDER attachment was created that + // references it. + // - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER + // attachment that is waiting for a customer to activate it. + // - DEFUNCT: + // The attachment was deleted externally and is no longer functional. This + // could be because the associated Interconnect was removed, or because the + // other side of a Partner attachment was deleted. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -18962,26 +34661,41 @@ message InterconnectAttachment { // Indicates that attachment has been turned up and is ready to use. ACTIVE = 314733318; - // The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was wiped out, or because the other side of a Partner attachment was deleted. + // The attachment was deleted externally and is no longer functional. + // This could be because the associated Interconnect was wiped out, + // or because the other side of a Partner attachment was deleted. DEFUNCT = 115891759; - // A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. + // A PARTNER attachment is in the process of provisioning after a + // PARTNER_PROVIDER attachment was created that references it. PARTNER_REQUEST_RECEIVED = 513587304; - // PARTNER or PARTNER_PROVIDER attachment that is waiting for the customer to activate. + // PARTNER or PARTNER_PROVIDER attachment that is waiting for the customer + // to activate. PENDING_CUSTOMER = 167494054; - // A newly created PARTNER attachment that has not yet been configured on the Partner side. + // A newly created PARTNER attachment that has not yet been configured on + // the Partner side. PENDING_PARTNER = 387890656; STATE_UNSPECIFIED = 470755401; - // Indicates that attachment is not ready to use yet, because turnup is not complete. + // Indicates that attachment is not ready to use yet, because turnup is not + // complete. UNPROVISIONED = 517333979; } - // The type of interconnect attachment this is, which can take one of the following values: - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner. + // The type of interconnect attachment this is, which can take one of the + // following values: + // + // - DEDICATED: an attachment to a Dedicated Interconnect. + // - PARTNER: an attachment to a Partner Interconnect, created by the + // customer. + // - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by + // the partner. + // + // - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -18989,6 +34703,9 @@ message InterconnectAttachment { // Attachment to a dedicated interconnect. DEDICATED = 258411983; + // Attachment to a dedicated interconnect, forwarding L2 packets. + L2_DEDICATED = 336595510; + // Attachment to a partner interconnect, created by the customer. PARTNER = 461924520; @@ -18997,122 +34714,278 @@ message InterconnectAttachment { } - // Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER. + // Determines whether this Attachment will carry packets. + // Not present for PARTNER_PROVIDER. optional bool admin_enabled = 445675089; // [Output Only] URL of the AttachmentGroup that includes this Attachment. optional string attachment_group = 63442019; - // Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s + // Provisioned bandwidth capacity for the interconnect attachment. For + // attachments of type DEDICATED, the user can set the bandwidth. + // For attachments of type PARTNER, the Google Partner that is operating + // the interconnect must set the bandwidth. + // Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, + // and can take one of the following values: + // + // - BPS_50M: 50 Mbit/s + // - BPS_100M: 100 Mbit/s + // - BPS_200M: 200 Mbit/s + // - BPS_300M: 300 Mbit/s + // - BPS_400M: 400 Mbit/s + // - BPS_500M: 500 Mbit/s + // - BPS_1G: 1 Gbit/s + // - BPS_2G: 2 Gbit/s + // - BPS_5G: 5 Gbit/s + // - BPS_10G: 10 Gbit/s + // - BPS_20G: 20 Gbit/s + // - BPS_50G: 50 Gbit/s + // - BPS_100G: 100 Gbit/s // Check the Bandwidth enum for the list of possible values. optional string bandwidth = 181715121; - // Single IPv4 address + prefix length to be configured on the cloud router interface for this interconnect attachment. - Both candidate_cloud_router_ip_address and candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address must be the same. - Max prefix length is 31. + // Single IPv4 address + prefix length to be configured on the cloud router + // interface for this interconnect attachment. + // + // - Both candidate_cloud_router_ip_address and + // candidate_customer_router_ip_address fields must be set or both must be + // unset. + // - Prefix length of both candidate_cloud_router_ip_address and + // candidate_customer_router_ip_address must be the same. + // - Max prefix length is 31. optional string candidate_cloud_router_ip_address = 311379276; - // Single IPv6 address + prefix length to be configured on the cloud router interface for this interconnect attachment. - Both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix length of both candidate_cloud_router_ipv6_address and candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. + // Single IPv6 address + prefix length to be configured on the cloud router + // interface for this interconnect attachment. + // + // - Both candidate_cloud_router_ipv6_address and + // candidate_customer_router_ipv6_address fields must be set or both must be + // unset. + // - Prefix length of both candidate_cloud_router_ipv6_address and + // candidate_customer_router_ipv6_address must be the same. + // - Max prefix length is 126. optional string candidate_cloud_router_ipv6_address = 417499660; - // Single IPv4 address + prefix length to be configured on the customer router interface for this interconnect attachment. + // Single IPv4 address + prefix length to be configured on the customer router + // interface for this interconnect attachment. optional string candidate_customer_router_ip_address = 339113389; - // Single IPv6 address + prefix length to be configured on the customer router interface for this interconnect attachment. + // Single IPv6 address + prefix length to be configured on the customer router + // interface for this interconnect attachment. optional string candidate_customer_router_ipv6_address = 226436653; // This field is not available. repeated string candidate_ipv6_subnets = 70682522; - // Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space. + // Input only. Up to 16 candidate prefixes that can be used to restrict the allocation + // of cloudRouterIpAddress and customerRouterIpAddress for this attachment. + // All prefixes must be within link-local address space (169.254.0.0/16) and + // must be /29 or shorter (/28, /27, etc). Google will attempt to select an + // unused /29 from the supplied candidate prefix(es). The request will fail if + // all possible /29s are in use on Google's edge. If not supplied, Google will + // randomly select an unused /29 from all of link-local space. repeated string candidate_subnets = 237842938; - // [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment. + // [Output Only] IPv4 address + prefix length to be configured on Cloud Router + // Interface for this interconnect attachment. optional string cloud_router_ip_address = 287392776; - // [Output Only] IPv6 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment. + // [Output Only] IPv6 address + prefix length to be configured on Cloud + // Router Interface for this interconnect attachment. optional string cloud_router_ipv6_address = 451922376; // This field is not available. optional string cloud_router_ipv6_interface_id = 521282701; - // [Output Only] Constraints for this attachment, if any. The attachment does not work if these constraints are not met. + // [Output Only] Constraints for this attachment, if any. The attachment does + // not work if these constraints are not met. optional InterconnectAttachmentConfigurationConstraints configuration_constraints = 179681389; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment. + // [Output Only] IPv4 address + prefix length to be configured on the customer + // router subinterface for this interconnect attachment. optional string customer_router_ip_address = 332475761; - // [Output Only] IPv6 address + prefix length to be configured on the customer router subinterface for this interconnect attachment. + // [Output Only] IPv6 address + prefix length to be configured on the + // customer router subinterface for this interconnect attachment. optional string customer_router_ipv6_address = 290127089; // This field is not available. optional string customer_router_ipv6_interface_id = 380994308; - // [Output Only] Dataplane version for this InterconnectAttachment. This field is only present for Dataplane version 2 and higher. Absence of this field in the API output indicates that the Dataplane is version 1. + // [Output Only] Dataplane version for this InterconnectAttachment. This + // field is only present for Dataplane version 2 and higher. Absence of this + // field in the API output indicates that the Dataplane is version 1. optional int32 dataplane_version = 34920075; // An optional description of this resource. optional string description = 422937596; - // Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. + // Input only. Desired availability domain for the attachment. Only available for type + // PARTNER, at creation time, and can take one of the following values: + // + // - AVAILABILITY_DOMAIN_ANY + // - AVAILABILITY_DOMAIN_1 + // - AVAILABILITY_DOMAIN_2 + // + // + // For improved reliability, customers should configure a pair of attachments, + // one per availability domain. The selected availability domain will be + // provided to the Partner via the pairing key, so that the provisioned + // circuit will lie in the specified domain. If not specified, the value will + // default to AVAILABILITY_DOMAIN_ANY. // Check the EdgeAvailabilityDomain enum for the list of possible values. optional string edge_availability_domain = 71289510; - // Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible values are: - NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN over Cloud Interconnect*, the VLAN attachment must be created with this option. + // Indicates the user-supplied encryption option of this VLAN attachment + // (interconnectAttachment). Can only be specified at attachment creation + // for PARTNER or DEDICATED attachments. + // Possible values are: + // + // - NONE - This is the default value, which means that the + // VLAN attachment carries unencrypted traffic. VMs are able to send + // traffic to, or receive traffic from, such a VLAN attachment. + // - IPSEC - The VLAN attachment carries only encrypted + // traffic that is encrypted by an IPsec device, such as an HA VPN gateway or + // third-party IPsec VPN. VMs cannot directly send traffic to, or receive + // traffic from, such a VLAN attachment. To use *HA VPN over Cloud + // Interconnect*, the VLAN attachment must be created with this + // option. // Check the Encryption enum for the list of possible values. optional string encryption = 97980291; - // [Output Only] Google reference ID, to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used. + // [Output Only] Google reference ID, to be used when raising support tickets + // with Google or otherwise to debug backend connectivity issues. + // [Deprecated] This field is not used. optional string google_reference_id = 534944469; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // URL of the underlying Interconnect object that this attachment's traffic will traverse through. + // URL of the underlying Interconnect object that this attachment's traffic + // will traverse through. optional string interconnect = 224601230; - // A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool. + // A list of URLs of addresses that have been reserved for the VLAN + // attachment. Used only for the VLAN attachment that has the encryption + // option as IPSEC. The addresses must be regional internal IP address ranges. + // When creating an HA VPN gateway over the VLAN attachment, if the attachment + // is configured to use a regional internal IP address, then the VPN gateway's + // IP address is allocated from the IP address range specified here. For + // example, if the HA VPN gateway's interface 0 is paired to this VLAN + // attachment, then a regional internal IP address for the VPN gateway + // interface 0 will be allocated from the IP address specified for this + // VLAN attachment. + // If this field is not specified when creating the VLAN attachment, then + // later on when creating an HA VPN gateway on this VLAN attachment, the HA + // VPN gateway's IP address is allocated from the regional external IP address + // pool. repeated string ipsec_internal_addresses = 407648565; - // [Output Only] Type of the resource. Always compute#interconnectAttachment for interconnect attachments. + // [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for interconnect attachments. optional string kind = 3292052; - // A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. + // L2 Interconnect Attachment related config. This field is required if the + // type is L2_DEDICATED. + // + // The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad) + // within L2 packets are mapped to the destination appliances IP addresses. + // The packet is then encapsulated with the appliance IP address and sent to + // the edge appliance. + optional InterconnectAttachmentL2Forwarding l2_forwarding = 84784022; + + // A fingerprint for the labels being applied to this InterconnectAttachment, + // which is essentially a hash of the labels set used for optimistic locking. + // The fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve an InterconnectAttachment. optional string label_fingerprint = 178124825; - // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. + // Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. + // Label values may be empty. map labels = 500195327; - // Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will default to 1440. + // Maximum Transmission Unit (MTU), in bytes, of packets passing through this + // interconnect attachment. + // Valid values are 1440, 1460, 1500, and 8896. If not specified, + // the value will default to 1440. optional int32 mtu = 108462; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // [Output Only] The current status of whether or not this interconnect attachment is functional, which can take one of the following values: - OS_ACTIVE: The attachment has been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. + // [Output Only] The current status of whether or not this interconnect + // attachment is functional, which can take one of the following values: + // + // - OS_ACTIVE: The attachment has been turned up and is ready to + // use. + // - OS_UNPROVISIONED: The attachment is not ready to use yet, + // because turnup is not complete. // Check the OperationalStatus enum for the list of possible values. optional string operational_status = 201070847; - // [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The opaque identifier of a PARTNER attachment used to initiate provisioning with a selected partner. Of the form "XXXXX/region/domain" + // [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not + // present for DEDICATED]. + // The opaque identifier of a PARTNER attachment used to initiate + // provisioning with a selected partner. + // Of the form "XXXXX/region/domain" optional string pairing_key = 439695464; - // Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available for DEDICATED. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional InterconnectAttachmentParams params = 78313862; + + // Optional BGP ASN for the router supplied by a Layer 3 Partner if they + // configured BGP on behalf of the customer. + // Output only for PARTNER type, input only for PARTNER_PROVIDER, not + // available for DEDICATED. optional int64 partner_asn = 438166149; - // Informational metadata about Partner attachments from Partners to display to customers. Output only for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED. + // Informational metadata about Partner attachments from Partners to display + // to customers. + // Output only for PARTNER type, mutable for PARTNER_PROVIDER, not + // available for DEDICATED. optional InterconnectAttachmentPartnerMetadata partner_metadata = 65908934; - // [Output Only] Information specific to an InterconnectAttachment. This property is populated if the interconnect that this is attached to is of type DEDICATED. + // [Output Only] Information specific to an InterconnectAttachment. + // This property is populated if the interconnect that + // this is attached to is of type DEDICATED. optional InterconnectAttachmentPrivateInfo private_interconnect_info = 237270531; - // [Output Only] URL of the region where the regional interconnect attachment resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the regional interconnect attachment + // resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; - // [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this field contains the interconnect's remote location service provider. Example values: "Amazon Web Services" "Microsoft Azure". The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is copied from the InterconnectRemoteLocation remoteService field. + // [Output Only] + // If the attachment is on a Cross-Cloud Interconnect connection, this field + // contains the interconnect's remote location service provider. Example + // values: "Amazon Web Services" "Microsoft Azure". + // + // The field is set only for attachments on Cross-Cloud Interconnect + // connections. Its value is copied from the InterconnectRemoteLocation + // remoteService field. optional string remote_service = 391954364; - // URL of the Cloud Router to be used for dynamic routing. This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network & region within which the Cloud Router is configured. + // URL of the Cloud Router to be used for dynamic routing. This router must be + // in the same region as this InterconnectAttachment. The + // InterconnectAttachment will automatically connect the Interconnect to the + // network & region within which the Cloud Router is configured. optional string router = 148608841; // [Output Only] Reserved for future use. @@ -19121,22 +34994,72 @@ message InterconnectAttachment { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. This field can be both set at interconnect attachments creation and update interconnect attachment operations. + // The stack type for this interconnect attachment to identify whether the + // IPv6 feature is enabled or not. If not specified, IPV4_ONLY + // will be used. + // + // This field can be both set at interconnect attachments creation and + // update interconnect attachment operations. // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; - // [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. + // [Output Only] The current state of this attachment's functionality. + // Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, + // PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values + // PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used + // for only PARTNER and PARTNER_PROVIDER interconnect attachments. + // This state can take one of the following values: + // + // - ACTIVE: The attachment has been turned up and is ready to use. + // - UNPROVISIONED: The attachment is not ready to use yet, because turnup + // is not complete. + // - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet + // been configured on the Partner side. + // - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of + // provisioning after a PARTNER_PROVIDER attachment was created that + // references it. + // - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER + // attachment that is waiting for a customer to activate it. + // - DEFUNCT: + // The attachment was deleted externally and is no longer functional. This + // could be because the associated Interconnect was removed, or because the + // other side of a Partner attachment was deleted. // Check the State enum for the list of possible values. optional string state = 109757585; - // Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility. + // Input only. Length of the IPv4 subnet mask. + // Allowed values: + // + // + // - 29 (default) + // - 30 + // + // The default value is 29, except for Cross-Cloud Interconnect + // connections that use an InterconnectRemoteLocation with a + // constraints.subnetLengthRange.min equal to 30. For example, + // connections that use an Azure remote location fall into this + // category. In these cases, the default value is 30, and requesting + // 29 returns an error. + // + // Where both 29 and 30 are allowed, 29 is preferred, because it gives + // Google Cloud Support more debugging visibility. optional int32 subnet_length = 279831048; - // The type of interconnect attachment this is, which can take one of the following values: - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner. + // The type of interconnect attachment this is, which can take one of the + // following values: + // + // - DEDICATED: an attachment to a Dedicated Interconnect. + // - PARTNER: an attachment to a Partner Interconnect, created by the + // customer. + // - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by + // the partner. + // + // - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. // Check the Type enum for the list of possible values. optional string type = 3575610; - // The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation time. + // The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. + // Only specified at creation time. optional int32 vlan_tag8021q = 119927836; } @@ -19149,10 +35072,15 @@ message InterconnectAttachmentAggregatedList { // A list of InterconnectAttachmentsScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#interconnectAttachmentAggregatedList for aggregated lists of interconnect attachments. + // [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList for aggregated + // lists of interconnect attachments. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -19168,12 +35096,22 @@ message InterconnectAttachmentAggregatedList { // message InterconnectAttachmentConfigurationConstraints { - // [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, MD5_UNSUPPORTED. For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP MD5 authentication has the interconnectRemoteLocation attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if MD5 is requested. + // [Output Only] Whether the attachment's BGP session + // requires/allows/disallows BGP MD5 authentication. This can take one of + // the following values: MD5_OPTIONAL, MD5_REQUIRED, MD5_UNSUPPORTED. + // + // For example, a Cross-Cloud Interconnect connection to a remote cloud + // provider that requires BGP MD5 authentication has the + // interconnectRemoteLocation attachment_configuration_constraints.bgp_md5 + // field set to MD5_REQUIRED, and that property is propagated to the + // attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is + // returned if MD5 is requested. enum BgpMd5 { // A value indicating that the enum field is not set. UNDEFINED_BGP_MD5 = 0; - // MD5_OPTIONAL: BGP MD5 authentication is supported and can optionally be configured. + // MD5_OPTIONAL: BGP MD5 authentication is supported and can optionally be + // configured. MD5_OPTIONAL = 532156673; // MD5_REQUIRED: BGP MD5 authentication must be configured. @@ -19184,11 +35122,26 @@ message InterconnectAttachmentConfigurationConstraints { } - // [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, MD5_UNSUPPORTED. For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP MD5 authentication has the interconnectRemoteLocation attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if MD5 is requested. + // [Output Only] Whether the attachment's BGP session + // requires/allows/disallows BGP MD5 authentication. This can take one of + // the following values: MD5_OPTIONAL, MD5_REQUIRED, MD5_UNSUPPORTED. + // + // For example, a Cross-Cloud Interconnect connection to a remote cloud + // provider that requires BGP MD5 authentication has the + // interconnectRemoteLocation attachment_configuration_constraints.bgp_md5 + // field set to MD5_REQUIRED, and that property is propagated to the + // attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is + // returned if MD5 is requested. // Check the BgpMd5 enum for the list of possible values. optional string bgp_md5 = 373093386; - // [Output Only] List of ASN ranges that the remote location is known to support. Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the range 64512-65534. This field is only advisory. Although the API accepts other ranges, these are the ranges that we recommend. + // [Output Only] List of ASN ranges that the remote location is known to + // support. Formatted as an array of inclusive ranges {min: min-value, max: + // max-value}. For example, [{min: 123, max: 123}, {min: 64512, max: 65534}] + // allows the peer ASN to be 123 or anything in the range 64512-65534. + // + // This field is only advisory. Although the API accepts other ranges, these + // are the ranges that we recommend. repeated InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange bgp_peer_asn_ranges = 475946370; } @@ -19201,36 +35154,57 @@ message InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange { } -// An interconnect attachment group resource allows customers to create, analyze, and expand highly available deployments. +// An interconnect attachment group resource allows customers to create, +// analyze, and expand highly available deployments. message InterconnectAttachmentGroup { - // Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are encouraged, but not required, to use their preferred format for resource links as keys. Note that there are add-members and remove-members methods in gcloud. The size of this map is limited by an "Attachments per group" quota. + // Attachments in the AttachmentGroup. Keys are arbitrary user-specified + // strings. Users are encouraged, but not required, to use their preferred + // format for resource links as keys. + // Note that there are add-members and remove-members methods in gcloud. + // The size of this map is limited by an "Attachments per group" quota. map attachments = 334744496; optional InterconnectAttachmentGroupConfigured configured = 295631422; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Opaque system-generated token that uniquely identifies the configuration. If provided when patching a configuration in update mode, the provided token must match the current token or the update is rejected. This provides a reliable means of doing read-modify-write (optimistic locking) as described by AIP 154. + // Opaque system-generated token that uniquely identifies the configuration. + // If provided when patching a configuration in update mode, the provided + // token must match the current token or the update is rejected. This provides + // a reliable means of doing read-modify-write (optimistic locking) as + // described byAIP 154. optional string etag = 3123477; - // [Output Only] The unique identifier for the resource type. The server generates this identifier. + // [Output Only] The unique identifier for the resource type. The server + // generates this identifier. optional uint64 id = 3355; optional InterconnectAttachmentGroupIntent intent = 426849948; - // The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not need to set this unless directed by Google Support. + // The URL of an InterconnectGroup that groups these Attachments' + // Interconnects. Customers do not need to set this unless directed by + // Google Support. optional string interconnect_group = 388651918; - // [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + // [Output Only] Type of the resource. Always + // compute#interconnectAttachmentGroup. optional string kind = 3292052; optional InterconnectAttachmentGroupLogicalStructure logical_structure = 142412989; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; // [Output Only] Server-defined URL for the resource. @@ -19244,13 +35218,16 @@ message InterconnectAttachmentGroupAttachment { } -// [Output Only] The redundancy this group is configured to support. The way a user queries what SLA their Attachment gets is by looking at this field of the Attachment's AttachmentGroup. +// [Output Only] The redundancy this group is configured to support. The way a +// user queries what SLA their Attachment gets is by looking at this field of +// the Attachment's AttachmentGroup. message InterconnectAttachmentGroupConfigured { optional InterconnectAttachmentGroupConfiguredAvailabilitySLA availability_sla = 472702020; } -// [Output Only] Which SLA this group is configured to support, and why this group does or does not meet that SLA's requirements. +// [Output Only] Which SLA this group is configured to support, and why this +// group does or does not meet that SLA's requirements. message InterconnectAttachmentGroupConfiguredAvailabilitySLA { // enum EffectiveSla { @@ -19275,7 +35252,9 @@ message InterconnectAttachmentGroupConfiguredAvailabilitySLA { } -// [Output Only] Reasons why configuration.availabilitySLA.sla differs from intent.availabilitySLA. This list is empty if and only if those are the same. +// [Output Only] Reasons why configuration.availabilitySLA.sla differs from +// intent.availabilitySLA. This list is empty if and only if those are the +// same. message InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers { // enum BlockerType { @@ -19298,31 +35277,43 @@ message InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers } - // [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + // [Output Only] URLs of any particular Attachments to explain this + // blocker in more detail. repeated string attachments = 334744496; // // Check the BlockerType enum for the list of possible values. optional string blocker_type = 381194847; - // [Output Only] The url of Google Cloud public documentation explaining this requirement. This is set for every type of requirement. + // [Output Only] The url of Google Cloud public documentation explaining + // this requirement. This is set for every type of requirement. optional string documentation_link = 93465183; - // [Output Only] A human-readable explanation of this requirement and why it's not met. This is set for every type of requirement. + // [Output Only] A human-readable explanation of this requirement and + // why it's not met. This is set for every type of requirement. optional string explanation = 504745497; - // [Output Only] Metros used to explain this blocker in more detail. These are three-letter lowercase strings like "iad". This will be set for some blockers (like NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + // [Output Only] Metros used to explain this blocker in more detail. + // These are three-letter lowercase strings like "iad". This will be set + // for some blockers (like NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does + // not apply to others. repeated string metros = 533067386; - // [Output Only] Regions used to explain this blocker in more detail. These are region names formatted like "us-central1". This will be set for some blockers (like INCOMPATIBLE_REGIONS) but does not apply to others. + // [Output Only] Regions used to explain this blocker in more + // detail. These are region names formatted like "us-central1". This + // will be set for some blockers (like INCOMPATIBLE_REGIONS) but does + // not apply to others. repeated string regions = 12367871; - // [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to others. + // [Output Only] Zones used to explain this blocker in more detail. + // Format is "zone1" and/or "zone2". This will be set for some blockers + // (like MISSING_ZONE) but does not apply to others. repeated string zones = 116085319; } -// The user's intent for this AttachmentGroup. This is the only required field besides the name that must be specified on group creation. +// The user's intent for this AttachmentGroup. This is the only required field +// besides the name that must be specified on group creation. message InterconnectAttachmentGroupIntent { // enum AvailabilitySla { @@ -19345,7 +35336,8 @@ message InterconnectAttachmentGroupIntent { } -// [Output Only] An analysis of the logical layout of Attachments in this group. Every Attachment in the group is shown once in this structure. +// [Output Only] An analysis of the logical layout of Attachments in this +// group. Every Attachment in the group is shown once in this structure. message InterconnectAttachmentGroupLogicalStructure { repeated InterconnectAttachmentGroupLogicalStructureRegion regions = 12367871; @@ -19364,12 +35356,15 @@ message InterconnectAttachmentGroupLogicalStructureRegion { message InterconnectAttachmentGroupLogicalStructureRegionMetro { repeated InterconnectAttachmentGroupLogicalStructureRegionMetroFacility facilities = 536683137; - // [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the first component of the location of an Interconnect. + // [Output Only] The name of the metro, as a three-letter lowercase + // string like "iad". This is the first component of the location of an + // Interconnect. optional string metro = 103787801; } -// [Output Only] The facilities used for this group's Attachments' Interconnects. +// [Output Only] The facilities used for this group's Attachments' +// Interconnects. message InterconnectAttachmentGroupLogicalStructureRegionMetroFacility { // [Output Only] The name of a facility, like "iad-1234". optional string facility = 501116579; @@ -19378,9 +35373,13 @@ message InterconnectAttachmentGroupLogicalStructureRegionMetroFacility { } -// [Output Only] The zones that Attachments in this group are present in, in the given facilities. This is inherited from their Interconnects. +// [Output Only] The zones that Attachments in this group are present +// in, in the given facilities. This is inherited from their +// Interconnects. message InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone { - // [Output Only] URLs of Attachments in the given zone, to the given region, on Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. + // [Output Only] URLs of Attachments in the given zone, to the given + // region, on Interconnects in the given facility and metro. Every + // Attachment in the AG has such an entry. repeated string attachments = 334744496; // [Output Only] The name of a zone, either "zone1" or "zone2". @@ -19408,13 +35407,19 @@ message InterconnectAttachmentGroupsListResponse { optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: + // MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -19456,7 +35461,10 @@ message InterconnectAttachmentGroupsOperationalStatus { // The status of one Attachment in the group. List order is arbitrary. message InterconnectAttachmentGroupsOperationalStatusAttachmentStatus { - // Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the analysis that generates operational.availabilitySLA. + // Whether this Attachment is participating in the redundant configuration. + // This will be ACTIVE if and only if the status below is CONNECTION_UP. + // Any INACTIVE Attachments are excluded from the analysis that generates + // operational.availabilitySLA. enum IsActive { // A value indicating that the enum field is not set. UNDEFINED_IS_ACTIVE = 0; @@ -19506,13 +35514,17 @@ message InterconnectAttachmentGroupsOperationalStatusAttachmentStatus { } - // Whether this Attachment is enabled. This becomes false when the customer drains their Attachment. + // Whether this Attachment is enabled. This becomes false when the customer + // drains their Attachment. optional bool admin_enabled = 445675089; // The URL of the Attachment being described. optional string attachment = 183982371; - // Whether this Attachment is participating in the redundant configuration. This will be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are excluded from the analysis that generates operational.availabilitySLA. + // Whether this Attachment is participating in the redundant configuration. + // This will be ACTIVE if and only if the status below is CONNECTION_UP. + // Any INACTIVE Attachments are excluded from the analysis that generates + // operational.availabilitySLA. // Check the IsActive enum for the list of possible values. optional string is_active = 114830267; @@ -19522,7 +35534,95 @@ message InterconnectAttachmentGroupsOperationalStatusAttachmentStatus { } -// Response to the list request, and contains a list of interconnect attachments. +// L2 Interconnect Attachment related configuration. +message InterconnectAttachmentL2Forwarding { + // Optional. A map of VLAN tags to appliances and optional inner mapping + // rules. If VLANs are not explicitly mapped to any appliance, the + // defaultApplianceIpAddress is used. + // + // Each VLAN tag can be a single number or a range of numbers in the range + // of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping + // VLAN tag ranges are enforced, and violating operations will be rejected. + // + // The VLAN tags in the Ethernet header must use an ethertype value of + // 0x88A8 or 0x8100. + map appliance_mappings = 374529975; + + // Optional. A single IPv4 or IPv6 address used as the default destination + // IP when there is no VLAN mapping result found. + // + // Unset field (null-value) indicates the unmatched packet should be + // dropped. + optional string default_appliance_ip_address = 536490476; + + // Optional. It represents the structure of a Geneve (Generic Network + // Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various + // protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization + // environments. + optional InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424; + + // Required. Resource URL of the network to which this attachment belongs. + optional string network = 232872494; + + // Required. A single IPv4 or IPv6 address. This address will be used as the + // source IP address for packets sent to the appliances, and must be used as + // the destination IP address for packets that should be sent out through + // this attachment. + optional string tunnel_endpoint_ip_address = 468740975; + +} + +// Two-level VLAN-to-Appliance mapping rule. +message InterconnectAttachmentL2ForwardingApplianceMapping { + // Optional. A single IPv4 or IPv6 address used as the destination IP + // address for ingress packets that match on a VLAN tag, but do not match + // a more specific inner VLAN tag. + // + // Unset field (null-value) indicates both VLAN tags are required to be + // mapped. Otherwise, defaultApplianceIpAddress is used. + optional string appliance_ip_address = 57985710; + + // Optional. Used to match against the inner VLAN when the packet + // contains two VLAN tags. + // + // A list of mapping rules from inner VLAN tags to IP addresses. If the + // inner VLAN is not explicitly mapped to an IP address range, the + // applianceIpAddress is used. + repeated InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping inner_vlan_to_appliance_mappings = 97387944; + + // Optional. The name of this appliance mapping rule. + optional string name = 3373707; + +} + +// The inner VLAN-to-Appliance mapping. +message InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping { + // Required in this object. A single IPv4 or IPv6 address used as the + // destination IP address for ingress packets that match on both VLAN + // tags. + optional string inner_appliance_ip_address = 350619895; + + // Required in this object. Used to match the inner VLAN tag on the + // packet. Each entry can be a single number or a range of numbers in + // the range of 1 to 4094, e.g., ["1", "4001-4094"] is valid. Non-empty + // and Non-overlapping VLAN tag ranges are enforced, and violating + // operations will be rejected. + // + // The inner VLAN tags must have an ethertype value of 0x8100. + repeated string inner_vlan_tags = 431186636; + +} + +// GeneveHeader related configurations. +message InterconnectAttachmentL2ForwardingGeneveHeader { + // Optional. VNI is a 24-bit unique virtual network identifier, from 0 to + // 16,777,215. + optional uint32 vni = 116913; + +} + +// Response to the list request, and contains a list of interconnect +// attachments. message InterconnectAttachmentList { // [Output Only] Unique identifier for the resource; defined by the server. optional string id = 3355; @@ -19530,10 +35630,15 @@ message InterconnectAttachmentList { // A list of InterconnectAttachment resources. repeated InterconnectAttachment items = 100526016; - // [Output Only] Type of resource. Always compute#interconnectAttachmentList for lists of interconnect attachments. + // [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists of interconnect + // attachments. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -19544,22 +35649,51 @@ message InterconnectAttachmentList { } -// Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments. +// Additional interconnect attachment parameters. +message InterconnectAttachmentParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + +// Informational metadata about Partner attachments from Partners to display +// to customers. These fields are propagated from PARTNER_PROVIDER +// attachments to their corresponding PARTNER attachments. message InterconnectAttachmentPartnerMetadata { - // Plain text name of the Interconnect this attachment is connected to, as displayed in the Partner's portal. For instance "Chicago 1". This value may be validated to match approved Partner values. + // Plain text name of the Interconnect this attachment is connected to, as + // displayed in the Partner's portal. For instance "Chicago 1". + // This value may be validated to match approved Partner values. optional string interconnect_name = 514963356; - // Plain text name of the Partner providing this attachment. This value may be validated to match approved Partner values. + // Plain text name of the Partner providing this attachment. + // This value may be validated to match approved Partner values. optional string partner_name = 161747874; - // URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link to the specific resource on the Partner portal. This value may be validated to match approved Partner values. + // URL of the Partner's portal for this Attachment. Partners may customise + // this to be a deep link to the specific resource on the Partner portal. + // This value may be validated to match approved Partner values. optional string portal_url = 269182748; } -// Information for an interconnect attachment when this belongs to an interconnect of type DEDICATED. +// Information for an interconnect attachment when this belongs to an +// interconnect of type DEDICATED. message InterconnectAttachmentPrivateInfo { - // [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, going to and from this network and region. + // [Output Only] 802.1q encapsulation tag to be used for traffic between + // Google and the customer, going to and from this network and region. optional uint32 tag8021q = 271820992; } @@ -19569,12 +35703,14 @@ message InterconnectAttachmentsScopedList { // A list of interconnect attachments contained in this scope. repeated InterconnectAttachment interconnect_attachments = 425388415; - // Informational warning which replaces the list of addresses when the list is empty. + // Informational warning which replaces the list of addresses when + // the list is empty. optional Warning warning = 50704284; } -// Describes a single physical circuit between the Customer and Google. CircuitInfo objects are created by Google, so all fields are output only. +// Describes a single physical circuit between the Customer and Google. +// CircuitInfo objects are created by Google, so all fields are output only. message InterconnectCircuitInfo { // Customer-side demarc ID for this circuit. optional string customer_demarc_id = 28771859; @@ -19582,12 +35718,15 @@ message InterconnectCircuitInfo { // Google-assigned unique ID for this circuit. Assigned at circuit turn-up. optional string google_circuit_id = 262014711; - // Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to the customer in the LOA. + // Google-side demarc ID for this circuit. Assigned at circuit turn-up and + // provided by Google to the customer in the LOA. optional string google_demarc_id = 448196270; } -// Diagnostics information about the Interconnect connection, which contains detailed and current technical information about Google's side of the connection. +// Diagnostics information about the Interconnect connection, which contains +// detailed and current technical information about Google's side of the +// connection. message InterconnectDiagnostics { // The aggregation type of the bundle interface. enum BundleAggregationType { @@ -19607,15 +35746,24 @@ message InterconnectDiagnostics { // A value indicating that the enum field is not set. UNDEFINED_BUNDLE_OPERATIONAL_STATUS = 0; - // If bundleAggregationType is LACP: LACP is not established and/or all links in the bundle have DOWN operational status. If bundleAggregationType is STATIC: one or more links in the bundle has DOWN operational status. + // If bundleAggregationType is LACP: LACP is not established and/or all + // links in the bundle have DOWN operational status. If + // bundleAggregationType is STATIC: one or more links in the bundle has + // DOWN operational status. BUNDLE_OPERATIONAL_STATUS_DOWN = 453842693; - // If bundleAggregationType is LACP: LACP is established and at least one link in the bundle has UP operational status. If bundleAggregationType is STATIC: all links in the bundle (typically just one) have UP operational status. + // If bundleAggregationType is LACP: LACP is established and at least one + // link in the bundle has UP operational status. If bundleAggregationType + // is STATIC: all links in the bundle (typically just one) have UP + // operational status. BUNDLE_OPERATIONAL_STATUS_UP = 161366462; } - // A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently seen by the Google router in the ARP cache for the Interconnect. This will be empty when the Interconnect is not bundled. + // A list of InterconnectDiagnostics.ARPEntry objects, + // describing individual neighbors currently seen by the Google router in + // the ARP cache for the Interconnect. + // This will be empty when the Interconnect is not bundled. repeated InterconnectDiagnosticsARPEntry arp_caches = 414591761; // The aggregation type of the bundle interface. @@ -19626,7 +35774,8 @@ message InterconnectDiagnostics { // Check the BundleOperationalStatus enum for the list of possible values. optional string bundle_operational_status = 106433500; - // A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on the Interconnect. + // A list of InterconnectDiagnostics.LinkStatus objects, + // describing the status for each link on the Interconnect. repeated InterconnectDiagnosticsLinkStatus links = 102977465; // The MAC address of the Interconnect's bundle interface. @@ -19646,7 +35795,11 @@ message InterconnectDiagnosticsARPEntry { // message InterconnectDiagnosticsLinkLACPStatus { - // The state of a LACP link, which can take one of the following values: - ACTIVE: The link is configured and active within the bundle. - DETACHED: The link is not configured within the bundle. This means that the rest of the object should be empty. + // The state of a LACP link, which can take one of the following values: + // + // - ACTIVE: The link is configured and active within the bundle. + // - DETACHED: The link is not configured within the bundle. This means + // that the rest of the object should be empty. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -19654,7 +35807,8 @@ message InterconnectDiagnosticsLinkLACPStatus { // The link is configured and active within the bundle. ACTIVE = 314733318; - // The link is not configured within the bundle, this means the rest of the object should be empty. + // The link is not configured within the bundle, this means the rest of + // the object should be empty. DETACHED = 216562546; } @@ -19665,7 +35819,11 @@ message InterconnectDiagnosticsLinkLACPStatus { // System ID of the port on the neighbor's side of the LACP exchange. optional string neighbor_system_id = 343821342; - // The state of a LACP link, which can take one of the following values: - ACTIVE: The link is configured and active within the bundle. - DETACHED: The link is not configured within the bundle. This means that the rest of the object should be empty. + // The state of a LACP link, which can take one of the following values: + // + // - ACTIVE: The link is configured and active within the bundle. + // - DETACHED: The link is not configured within the bundle. This means + // that the rest of the object should be empty. // Check the State enum for the list of possible values. optional string state = 109757585; @@ -19673,7 +35831,20 @@ message InterconnectDiagnosticsLinkLACPStatus { // message InterconnectDiagnosticsLinkOpticalPower { - // The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The value has crossed above the high alarm threshold. + // The status of the current value when compared to the warning and alarm + // levels for the receiving or transmitting transceiver. Possible states + // include: + // + // + // - OK: The value has not crossed a warning threshold. + // - LOW_WARNING: The value has crossed below the low + // warning threshold. + // - HIGH_WARNING: The value has + // crossed above the high warning threshold. + // - LOW_ALARM: The value has crossed below the low alarm + // threshold. + // - HIGH_ALARM: The value has crossed above the high alarm + // threshold. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -19681,25 +35852,45 @@ message InterconnectDiagnosticsLinkOpticalPower { // The value has crossed above the high alarm threshold. HIGH_ALARM = 305363284; - // The value of the current optical power has crossed above the high warning threshold. + // The value of the current optical power has crossed above the high + // warning threshold. HIGH_WARNING = 220984799; - // The value of the current optical power has crossed below the low alarm threshold. + // The value of the current optical power has crossed below the low alarm + // threshold. LOW_ALARM = 316659046; - // The value of the current optical power has crossed below the low warning threshold. + // The value of the current optical power has crossed below the low + // warning threshold. LOW_WARNING = 338793841; - // The value of the current optical power has not crossed a warning threshold. + // The value of the current optical power has not crossed a warning + // threshold. OK = 2524; } - // The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The value has crossed above the high alarm threshold. + // The status of the current value when compared to the warning and alarm + // levels for the receiving or transmitting transceiver. Possible states + // include: + // + // + // - OK: The value has not crossed a warning threshold. + // - LOW_WARNING: The value has crossed below the low + // warning threshold. + // - HIGH_WARNING: The value has + // crossed above the high warning threshold. + // - LOW_ALARM: The value has crossed below the low alarm + // threshold. + // - HIGH_ALARM: The value has crossed above the high alarm + // threshold. // Check the State enum for the list of possible values. optional string state = 109757585; - // Value of the current receiving or transmitting optical power, read in dBm. Take a known good optical value, give it a 10% margin and trigger warnings relative to that value. In general, a -7dBm warning and a -11dBm alarm are good optical value estimates for most links. + // Value of the current receiving or transmitting optical power, read in + // dBm. Take a known good optical value, give it a 10% margin and trigger + // warnings relative to that value. In general, a -7dBm warning and a -11dBm + // alarm are good optical value estimates for most links. optional float value = 111972721; } @@ -19719,7 +35910,9 @@ message InterconnectDiagnosticsLinkStatus { } - // A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on this link. This will be empty if the link is bundled + // A list of InterconnectDiagnostics.ARPEntry objects, + // describing the ARP neighbor entries seen on this link. + // This will be empty if the link is bundled repeated InterconnectDiagnosticsARPEntry arp_caches = 414591761; // The unique ID for this link assigned during turn up by Google. @@ -19737,17 +35930,20 @@ message InterconnectDiagnosticsLinkStatus { // Check the OperationalStatus enum for the list of possible values. optional string operational_status = 201070847; - // An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the received light level. + // An InterconnectDiagnostics.LinkOpticalPower object, + // describing the current value and status of the received light level. optional InterconnectDiagnosticsLinkOpticalPower receiving_optical_power = 244717279; - // An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the transmitted light level. + // An InterconnectDiagnostics.LinkOpticalPower object, + // describing the current value and status of the transmitted light level. optional InterconnectDiagnosticsLinkOpticalPower transmitting_optical_power = 459431197; } // Describes the status of MACsec encryption on the link. message InterconnectDiagnosticsMacsecStatus { - // Indicates the Connectivity Association Key Name (CKN) currently being used if MACsec is operational. + // Indicates the Connectivity Association Key Name (CKN) + // currently being used if MACsec is operational. optional string ckn = 98566; // Indicates whether or not MACsec is operational on this link. @@ -19755,31 +35951,49 @@ message InterconnectDiagnosticsMacsecStatus { } -// An interconnect group resource allows customers to create, analyze, and expand their redundant connections. +// An interconnect group resource allows customers to create, analyze, and +// expand their redundant connections. message InterconnectGroup { optional InterconnectGroupConfigured configured = 295631422; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Opaque system-generated token that uniquely identifies the configuration. If provided when patching a configuration in update mode, the provided token must match the current token or the update is rejected. This provides a reliable means of doing read-modify-write (optimistic locking) as described by API 154. + // Opaque system-generated token that uniquely identifies the configuration. + // If provided when patching a configuration in update mode, the provided + // token must match the current token or the update is rejected. This provides + // a reliable means of doing read-modify-write (optimistic locking) as + // described by AIP 154. optional string etag = 3123477; - // [Output Only] The unique identifier for the resource type. The server generates this identifier. + // [Output Only] The unique identifier for the resource type. The server + // generates this identifier. optional uint64 id = 3355; optional InterconnectGroupIntent intent = 426849948; - // Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are encouraged, but not required, to use their preferred format for resource links as keys. Note that there are add-members and remove-members methods in gcloud. The size of this map is limited by an "Interconnects per group" quota. + // Interconnects in the InterconnectGroup. Keys are arbitrary user-specified + // strings. Users are encouraged, but not required, to use their preferred + // format for resource links as keys. + // Note that there are add-members and remove-members methods in gcloud. + // The size of this map is limited by an "Interconnects per group" quota. map interconnects = 520187301; // [Output Only] Type of the resource. Always compute#InterconnectGroup optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; optional InterconnectGroupPhysicalStructure physical_structure = 195307531; @@ -19789,13 +36003,18 @@ message InterconnectGroup { } -// [Output Only] The status of the group as configured. This has the same structure as the operational field reported by the OperationalStatus method, but does not take into account the operational status of each resource. +// [Output Only] The status of the group as configured. This has the same +// structure as the operational field reported by the OperationalStatus +// method, but does not take into account the operational status of each +// resource. message InterconnectGroupConfigured { optional InterconnectGroupConfiguredTopologyCapability topology_capability = 144190696; } -// [Output Only] How reliable this topology is configured to be, and why this group does or does not meet the requirements for the intended capability. +// [Output Only] How reliable this topology is configured to be, and why +// this group does or does not meet the requirements for the intended +// capability. message InterconnectGroupConfiguredTopologyCapability { // enum SupportedSla { @@ -19820,7 +36039,9 @@ message InterconnectGroupConfiguredTopologyCapability { } -// [Output Only] Reasons why configuration.topologyCapability.sla differs from intent.topologyCapability. This list is empty if and only if those are the same. +// [Output Only] Reasons why configuration.topologyCapability.sla differs +// from intent.topologyCapability. This list is empty if and only if those +// are the same. message InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers { // enum BlockerType { @@ -19845,27 +36066,37 @@ message InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers // Check the BlockerType enum for the list of possible values. optional string blocker_type = 381194847; - // [Output Only] The url of Google Cloud public documentation explaining this requirement. This is set for every type of requirement. + // [Output Only] The url of Google Cloud public documentation explaining + // this requirement. This is set for every type of requirement. optional string documentation_link = 93465183; - // [Output Only] A human-readable explanation of this requirement and why it's not met. This is set for every type of requirement. + // [Output Only] A human-readable explanation of this requirement and + // why it's not met. This is set for every type of requirement. optional string explanation = 504745497; - // [Output Only] Facilities used to explain this blocker in more detail. Like physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + // [Output Only] Facilities used to explain this blocker in more detail. + // Like physicalStructure.metros.facilities.facility, this is a numeric + // string like "5467". repeated string facilities = 536683137; - // [Output Only] Interconnects used to explain this blocker in more detail. + // [Output Only] Interconnects used to explain this blocker in more + // detail. repeated string interconnects = 520187301; - // [Output Only] Metros used to explain this blocker in more detail. These are three-letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the problematic metros in this field. + // [Output Only] Metros used to explain this blocker in more detail. + // These are three-letter lowercase strings like "iad". A blocker like + // INCOMPATIBLE_METROS will specify the problematic metros in this + // field. repeated string metros = 533067386; - // [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or "zone2". + // [Output Only] Zones used to explain this blocker in more detail. + // Zone names are "zone1" and/or "zone2". repeated string zones = 116085319; } -// The user's intent for this group. This is the only required field besides the name that must be specified on group creation. +// The user's intent for this group. This is the only required field besides +// the name that must be specified on group creation. message InterconnectGroupIntent { // enum TopologyCapability { @@ -19890,12 +36121,14 @@ message InterconnectGroupIntent { // An Interconnect in this InterconnectGroup. message InterconnectGroupInterconnect { - // The URL of an Interconnect in this group. All Interconnects in the group are unique. + // The URL of an Interconnect in this group. All Interconnects in the group + // are unique. optional string interconnect = 224601230; } -// [Output Only] An analysis of the physical layout of Interconnects in this group. Every Interconnect in the group is shown once in this structure. +// [Output Only] An analysis of the physical layout of Interconnects in this +// group. Every Interconnect in the group is shown once in this structure. message InterconnectGroupPhysicalStructure { repeated InterconnectGroupPhysicalStructureMetros metros = 533067386; @@ -19905,33 +36138,43 @@ message InterconnectGroupPhysicalStructure { message InterconnectGroupPhysicalStructureMetros { repeated InterconnectGroupPhysicalStructureMetrosFacilities facilities = 536683137; - // [Output Only] The name of the metro, as a three-letter lowercase string like "iad". This is the first component of the location of Interconnects underneath this. + // [Output Only] The name of the metro, as a three-letter lowercase string + // like "iad". This is the first component of the location of + // Interconnects underneath this. optional string metro = 103787801; } -// [Output Only] The facilities Interconnects in this metro are present in. +// [Output Only] The facilities Interconnects in this metro are present +// in. message InterconnectGroupPhysicalStructureMetrosFacilities { - // [Output Only] The ID of this facility, as a numeric string like "5467". This is the third component of the location of Interconnects in this facility. + // [Output Only] The ID of this facility, as a numeric string like + // "5467". This is the third component of the location of Interconnects + // in this facility. optional string facility = 501116579; repeated InterconnectGroupPhysicalStructureMetrosFacilitiesZones zones = 116085319; } -// [Output Only] The zones that Interconnects in this facility are present in. +// [Output Only] The zones that Interconnects in this facility are +// present in. message InterconnectGroupPhysicalStructureMetrosFacilitiesZones { - // [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and zone. + // [Output Only] URLs of Interconnects in this redundancy group in the + // given metro, facility, and zone. repeated string interconnects = 520187301; - // [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of the location of Interconnects in this facility. + // [Output Only] The name of the zone, either "zone1" or "zone2". + // This is the second component of the location of Interconnects in + // this facility. optional string zone = 3744684; } // message InterconnectGroupsCreateMembers { - // How to behave when configured.topologyCapability.supportedSLA would not equal intent.topologyCapability after this call. + // How to behave when configured.topologyCapability.supportedSLA would not + // equal intent.topologyCapability after this call. enum IntentMismatchBehavior { // A value indicating that the enum field is not set. UNDEFINED_INTENT_MISMATCH_BEHAVIOR = 0; @@ -19944,7 +36187,8 @@ message InterconnectGroupsCreateMembers { } - // How to behave when configured.topologyCapability.supportedSLA would not equal intent.topologyCapability after this call. + // How to behave when configured.topologyCapability.supportedSLA would not + // equal intent.topologyCapability after this call. // Check the IntentMismatchBehavior enum for the list of possible values. optional string intent_mismatch_behavior = 164408000; @@ -19957,7 +36201,15 @@ message InterconnectGroupsCreateMembers { // LINT.IfChange message InterconnectGroupsCreateMembersInterconnectInput { - // Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + // Type of interconnect, which can take one of the following values: + // + // - PARTNER: A partner-managed interconnection shared between + // customers though a partner. + // - DEDICATED: A dedicated physical + // interconnection with the customer. + // + // Note that a value IT_PRIVATE + // has been deprecated in favor of DEDICATED. enum InterconnectType { // A value indicating that the enum field is not set. UNDEFINED_INTERCONNECT_TYPE = 0; @@ -19973,7 +36225,15 @@ message InterconnectGroupsCreateMembersInterconnectInput { } - // Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. + // Type of link requested, which can take one of the following values: + // + // - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics + // - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. + // - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + // optics. + // + // Note that this field indicates the speed of each of the + // links in the bundle, not the speed of the entire bundle. enum LinkType { // A value indicating that the enum field is not set. UNDEFINED_LINK_TYPE = 0; @@ -19981,7 +36241,8 @@ message InterconnectGroupsCreateMembersInterconnectInput { // 100G Ethernet, LR Optics. LINK_TYPE_ETHERNET_100G_LR = 337672551; - // 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; + // 10G Ethernet, LR Optics. + // [(rate_bps) = 10000000000]; LINK_TYPE_ETHERNET_10G_LR = 236739749; // 400G Ethernet, LR4 Optics. @@ -19997,45 +36258,94 @@ message InterconnectGroupsCreateMembersInterconnectInput { // Cross-Site Networking IF_CROSS_SITE_NETWORK = 469111095; + // L2 Interconnect Attachment Forwarding + IF_L2_FORWARDING = 125563860; + // Media Access Control security (MACsec) IF_MACSEC = 396279300; } - // Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + // Administrative status of the interconnect. When this is set to true, the + // Interconnect is functional and can carry traffic. + // When set to false, no packets can be carried over the interconnect and + // no BGP routes are exchanged over it. By default, the status is set to + // true. optional bool admin_enabled = 445675089; - // Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. + // Customer name, to put in the Letter of Authorization as the party + // authorized to request a crossconnect. optional string customer_name = 3665484; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // A zone-free location to use for all Interconnects created in this call, like "iad-1234". + // A zone-free location to use for all Interconnects created in this call, + // like "iad-1234". optional string facility = 501116579; - // Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + // Type of interconnect, which can take one of the following values: + // + // - PARTNER: A partner-managed interconnection shared between + // customers though a partner. + // - DEDICATED: A dedicated physical + // interconnection with the customer. + // + // Note that a value IT_PRIVATE + // has been deprecated in favor of DEDICATED. // Check the InterconnectType enum for the list of possible values. optional string interconnect_type = 515165259; - // Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. + // Type of link requested, which can take one of the following values: + // + // - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics + // - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. + // - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + // optics. + // + // Note that this field indicates the speed of each of the + // links in the bundle, not the speed of the entire bundle. // Check the LinkType enum for the list of possible values. optional string link_type = 523207775; - // Name of the Interconnects to be created. This must be specified on the template and/or on each individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with RFC1035. Specifically, any nonempty name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the Interconnects to be created. This must be specified on the + // template and/or on each individual interconnect. The name, if not empty, + // must be 1-63 characters long, and comply with RFC1035. + // Specifically, any nonempty name must be 1-63 characters long and match + // the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. + // Email address to contact the customer NOC for operations and maintenance + // notifications regarding this Interconnect. If specified, this will be + // used for notifications in addition to all other forms described, such as + // Cloud Monitoring logs alerting and Cloud Notifications. This field is + // required for users who sign up for Cloud Interconnect using + // workforce identity federation. optional string noc_contact_email = 14072832; - // Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google's network that the interconnect is connected to. + // Indicates that this is a Cross-Cloud Interconnect. This field specifies + // the location outside of Google's network that the interconnect is + // connected to. optional string remote_location = 324388750; - // Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH. + // Optional. List of features requested for this Interconnect connection, + // which can take one of the following values: + // + // - IF_MACSEC: If specified, then the connection is created on MACsec + // capable hardware ports. If not specified, non-MACsec capable ports will + // also be considered. + // - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + // exclusively for Cross-Site Networking. The connection can not be used for + // Cross-Site Networking unless this feature is specified. // Check the RequestedFeatures enum for the list of possible values. repeated string requested_features = 461240814; - // Target number of physical links in the link bundle, as requested by the customer. + // Target number of physical links in the link bundle, as requested by the + // customer. optional int32 requested_link_count = 45051387; } @@ -20066,13 +36376,18 @@ message InterconnectGroupsListResponse { optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -20116,7 +36431,8 @@ message InterconnectGroupsOperationalStatus { // The status of one Interconnect in the group. The order is arbitrary. message InterconnectGroupsOperationalStatusInterconnectStatus { - // Whether this interconnect is participating in the redundant configuration. + // Whether this interconnect is participating in the redundant + // configuration. enum IsActive { // A value indicating that the enum field is not set. UNDEFINED_IS_ACTIVE = 0; @@ -20132,13 +36448,15 @@ message InterconnectGroupsOperationalStatusInterconnectStatus { // Whether the Interconnect is enabled. optional bool admin_enabled = 445675089; - // The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + // The diagnostics of the Interconnect, as returned by the existing + // get-diagnostics method. optional InterconnectDiagnostics diagnostics = 333355436; // The URL of the Interconnect being described. optional string interconnect = 224601230; - // Whether this interconnect is participating in the redundant configuration. + // Whether this interconnect is participating in the redundant + // configuration. // Check the IsActive enum for the list of possible values. optional string is_active = 114830267; @@ -20152,10 +36470,14 @@ message InterconnectList { // A list of Interconnect resources. repeated Interconnect items = 100526016; - // [Output Only] Type of resource. Always compute#interconnectList for lists of interconnects. + // [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -20166,7 +36488,11 @@ message InterconnectList { } -// Represents an Interconnect Attachment (VLAN) Location resource. You can use this resource to find location details about an Interconnect attachment (VLAN). For more information about interconnect attachments, read Creating VLAN Attachments. +// Represents an Interconnect Attachment (VLAN) Location resource. +// +// You can use this resource to find location details about an Interconnect +// attachment (VLAN). For more information about interconnect attachments, read +// Creating VLAN Attachments. message InterconnectLocation { // enum AvailableFeatures { @@ -20176,6 +36502,9 @@ message InterconnectLocation { // Cross-Site Networking IF_CROSS_SITE_NETWORK = 469111095; + // L2 Interconnect Attachment Forwarding + IF_L2_FORWARDING = 125563860; + // Media Access Control security (MACsec) IF_MACSEC = 396279300; @@ -20189,7 +36518,8 @@ message InterconnectLocation { // 100G Ethernet, LR Optics. LINK_TYPE_ETHERNET_100G_LR = 337672551; - // 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; + // 10G Ethernet, LR Optics. + // [(rate_bps) = 10000000000]; LINK_TYPE_ETHERNET_10G_LR = 236739749; // 400G Ethernet, LR4 Optics. @@ -20197,7 +36527,14 @@ message InterconnectLocation { } - // [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + // [Output Only] Continent for this location, which can take one of the + // following values: + // + // - AFRICA + // - ASIA_PAC + // - EUROPE + // - NORTH_AMERICA + // - SOUTH_AMERICA enum Continent { // A value indicating that the enum field is not set. UNDEFINED_CONTINENT = 0; @@ -20224,7 +36561,13 @@ message InterconnectLocation { } - // [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects. + // [Output Only] The status of this InterconnectLocation, which can take one + // of the following values: + // + // - CLOSED: The InterconnectLocation is closed and is unavailable for + // provisioning new Interconnects. + // - AVAILABLE: The InterconnectLocation is available for provisioning new + // Interconnects. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -20237,31 +36580,56 @@ message InterconnectLocation { } - // [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character. + // [Output Only] The postal address of the Point of Presence, each line in + // the address is separated by a newline character. optional string address = 462920692; - // [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2". + // [Output Only] Availability zone for this InterconnectLocation. Within a + // metropolitan area (metro), maintenance will not be simultaneously scheduled + // in more than one availability zone. Example: "zone1" or "zone2". optional string availability_zone = 158459920; - // [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC + // [Output only] List of features available at this InterconnectLocation, + // which can take one of the following values: + // + // - IF_MACSEC + // - IF_CROSS_SITE_NETWORK // Check the AvailableFeatures enum for the list of possible values. repeated string available_features = 496344307; - // [Output only] List of link types available at this InterconnectLocation, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR - LINK_TYPE_ETHERNET_400G_LR4 + // [Output only] List of link types available at this InterconnectLocation, + // which can take one of the following values: + // + // - LINK_TYPE_ETHERNET_10G_LR + // - LINK_TYPE_ETHERNET_100G_LR + // - LINK_TYPE_ETHERNET_400G_LR4 // Check the AvailableLinkTypes enum for the list of possible values. repeated string available_link_types = 509504298; - // [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". + // [Output Only] Metropolitan area designator that indicates which city an + // interconnect is located. + // For example: "Chicago, IL", "Amsterdam, Netherlands". optional string city = 3053931; - // [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + // [Output Only] Continent for this location, which can take one of the + // following values: + // + // - AFRICA + // - ASIA_PAC + // - EUROPE + // - NORTH_AMERICA + // - SOUTH_AMERICA // Check the Continent enum for the list of possible values. optional string continent = 133442996; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // [Output Only] A list of InterconnectLocation.CrossSiteInterconnectInfo objects, that describe where Cross-Site Interconnect wires may connect to from this location and associated connection parameters. Cross-Site Interconnect isn't allowed to locations which are not listed. + // [Output Only] A list of InterconnectLocation.CrossSiteInterconnectInfo + // objects, that describe where Cross-Site Interconnect wires may connect to + // from this location and associated connection parameters. Cross-Site + // Interconnect isn't allowed to locations which are not listed. repeated InterconnectLocationCrossSiteInterconnectInfo cross_site_interconnect_infos = 248573837; // [Output Only] An optional description of the resource. @@ -20270,31 +36638,44 @@ message InterconnectLocation { // [Output Only] The name of the provider for this facility (e.g., EQUINIX). optional string facility_provider = 533303309; - // [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + // [Output Only] A provider-assigned Identifier for this facility (e.g., + // Ashburn-DC1). optional string facility_provider_facility_id = 87269125; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#interconnectLocation for interconnect locations. + // [Output Only] Type of the resource. Alwayscompute#interconnectLocation for interconnect locations. optional string kind = 3292052; // [Output Only] Name of the resource. optional string name = 3373707; - // [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb). + // [Output Only] The peeringdb identifier for this facility (corresponding + // with a netfac type in peeringdb). optional string peeringdb_facility_id = 536567094; - // [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions. + // [Output Only] A list of InterconnectLocation.RegionInfo objects, that + // describe parameters pertaining to the relation between this + // InterconnectLocation and various Google Cloud regions. repeated InterconnectLocationRegionInfo region_infos = 312194170; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] URLs of the other locations that can pair up with this location to support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% peer locations of each other. + // [Output Only] URLs of the other locations that can pair up with this + // location to support Single-Region 99.99% SLA. E.g. iad-zone1-1 and + // iad-zone2-5467 are Single-Region 99.99% peer locations of each other. repeated string single_region_production_critical_peer_locations = 439537103; - // [Output Only] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects. + // [Output Only] The status of this InterconnectLocation, which can take one + // of the following values: + // + // - CLOSED: The InterconnectLocation is closed and is unavailable for + // provisioning new Interconnects. + // - AVAILABLE: The InterconnectLocation is available for provisioning new + // Interconnects. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -20303,9 +36684,12 @@ message InterconnectLocation { } -// Information about Cross-Site Interconnect wires which may be created between the containing location and another remote location. +// Information about Cross-Site Interconnect wires which may be created +// between the containing location and another remote location. message InterconnectLocationCrossSiteInterconnectInfo { - // The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation city (metropolitan area designator), which itself may match multiple InterconnectLocations. + // The remote location for Cross-Site Interconnect wires. This specifies an + // InterconnectLocation city (metropolitan area designator), which itself + // may match multiple InterconnectLocations. optional string city = 3053931; } @@ -20318,10 +36702,15 @@ message InterconnectLocationList { // A list of InterconnectLocation resources. repeated InterconnectLocation items = 100526016; - // [Output Only] Type of resource. Always compute#interconnectLocationList for lists of interconnect locations. + // [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of interconnect + // locations. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -20332,30 +36721,41 @@ message InterconnectLocationList { } -// Information about any potential InterconnectAttachments between an Interconnect at a specific InterconnectLocation, and a specific Cloud Region. +// Information about any potential InterconnectAttachments between an +// Interconnect at a specific InterconnectLocation, and a specific Cloud +// Region. message InterconnectLocationRegionInfo { // Identifies the network presence of this location. enum LocationPresence { // A value indicating that the enum field is not set. UNDEFINED_LOCATION_PRESENCE = 0; - // This region is not in any common network presence with this InterconnectLocation. + // This region is not in any common network presence with this + // InterconnectLocation. GLOBAL = 494663587; - // This region shares the same regional network presence as this InterconnectLocation. + // This region shares the same regional network presence as this + // InterconnectLocation. LOCAL_REGION = 403535464; - // [Deprecated] This region is not in any common network presence with this InterconnectLocation. + // [Deprecated] This region is not in any common network presence with + // this InterconnectLocation. LP_GLOBAL = 429584062; - // [Deprecated] This region shares the same regional network presence as this InterconnectLocation. + // [Deprecated] This region shares the same regional network presence as + // this InterconnectLocation. LP_LOCAL_REGION = 488598851; } - // Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this region. + // Expected round-trip time in milliseconds, from this InterconnectLocation + // to a VM in this region. optional int64 expected_rtt_ms = 422543866; + // Identifies whether L2 Interconnect Attachments can be created in this + // region for interconnects that are in this location. + optional bool l2_forwarding_enabled = 241364888; + // Identifies the network presence of this location. // Check the LocationPresence enum for the list of possible values. optional string location_presence = 101517893; @@ -20365,24 +36765,39 @@ message InterconnectLocationRegionInfo { } -// Configuration information for enabling Media Access Control security (MACsec) on this Cloud Interconnect connection between Google and your on-premises router. +// Configuration information for enabling Media Access Control security +// (MACsec) on this Cloud Interconnect connection between Google and your +// on-premises router. message InterconnectMacsec { - // If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be established with your router. + // If set to true, the Interconnect connection is configured with ashould-secure MACsec security policy, that allows the Google + // router to fallback to cleartext traffic if the MKA session cannot be + // established. By default, the Interconnect connection is configured with amust-secure security policy that drops all traffic if the + // MKA session cannot be established with your router. optional bool fail_open = 532597451; - // Required. A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link. + // Required. A keychain placeholder describing a set of named key objects + // along with their start times. A MACsec CKN/CAK is generated for each + // key in the key chain. Google router automatically picks the key with + // the most recent startTime when establishing or re-establishing a MACsec + // secure link. repeated InterconnectMacsecPreSharedKey pre_shared_keys = 420308466; } -// MACsec configuration information for the Interconnect connection. Contains the generated Connectivity Association Key Name (CKN) and the key (CAK) for this Interconnect connection. +// MACsec configuration information for the Interconnect connection. Contains +// the generated Connectivity Association Key Name (CKN) and the key (CAK) for +// this Interconnect connection. message InterconnectMacsecConfig { - // A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link. + // A keychain placeholder describing a set of named key objects + // along with their start times. A MACsec CKN/CAK is generated for each key in + // the key chain. Google router automatically picks the key with the most + // recent startTime when establishing or re-establishing a MACsec secure link. repeated InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466; } -// Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode. +// Describes a pre-shared key used to setup MACsec in static connectivity +// association key (CAK) mode. message InterconnectMacsecConfigPreSharedKey { // An auto-generated Connectivity Association Key (CAK) for this key. optional string cak = 98253; @@ -20398,38 +36813,73 @@ message InterconnectMacsecConfigPreSharedKey { } -// Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode. +// Describes a pre-shared key used to setup MACsec in static connectivity +// association key (CAK) mode. message InterconnectMacsecPreSharedKey { - // Required. A name for this pre-shared key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Required. A name for this pre-shared key. + // The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 + // characters long and match the regular expression + // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a + // lowercase letter, and all following characters must be a dash, + // lowercase letter, or digit, except the last character, which cannot be + // a dash. optional string name = 3373707; - // A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the keychain has a single key, startTime can be omitted. If the keychain has multiple keys, startTime is mandatory for each key. The start times of keys must be in increasing order. The start times of two consecutive keys must be at least 6 hours apart. + // A RFC3339 timestamp on or after which the key is + // valid. startTime can be in the future. If the keychain has a single + // key, startTime can be omitted. If the keychain has multiple keys, + // startTime is mandatory for each key. The start times of keys must be in + // increasing order. The start times of two consecutive keys must be + // at least 6 hours apart. optional string start_time = 37467274; } // Description of a planned outage on this Interconnect. message InterconnectOutageNotification { - // Form this outage is expected to take, which can take one of the following values: - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values. + // Form this outage is expected to take, which can take one of the following + // values: + // + // - OUTAGE: The Interconnect may be completely out of service for + // some or all of the specified window. + // - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole + // should remain up, but with reduced bandwidth. + // + // + // Note that the versions of this enum prefixed with "IT_" have been + // deprecated in favor of the unprefixed values. enum IssueType { // A value indicating that the enum field is not set. UNDEFINED_ISSUE_TYPE = 0; - // [Deprecated] The Interconnect may be completely out of service for some or all of the specified window. + // [Deprecated] The Interconnect may be completely out of service for some + // or all of the specified window. IT_OUTAGE = 175779973; - // [Deprecated] Some circuits comprising the Interconnect will be out of service during the expected window. The interconnect as a whole should remain up, albeit with reduced bandwidth. + // [Deprecated] Some circuits comprising the Interconnect will be out of + // service during the expected window. The interconnect as a whole should + // remain up, albeit with reduced bandwidth. IT_PARTIAL_OUTAGE = 92103971; - // The Interconnect may be completely out of service for some or all of the specified window. + // The Interconnect may be completely out of service for some or all of + // the specified window. OUTAGE = 195285745; - // Some circuits comprising the Interconnect will be out of service during the expected window. The interconnect as a whole should remain up, albeit with reduced bandwidth. + // Some circuits comprising the Interconnect will be out of service during + // the expected window. The interconnect as a whole should remain + // up, albeit with reduced bandwidth. PARTIAL_OUTAGE = 147053455; } - // The party that generated this notification, which can take the following value: - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. + // The party that generated this notification, which can take the following + // value: + // + // - GOOGLE: this notification as generated by Google. + // + // + // Note that the value of NSRC_GOOGLE has been deprecated in favor of + // GOOGLE. enum Source { // A value indicating that the enum field is not set. UNDEFINED_SOURCE = 0; @@ -20442,60 +36892,137 @@ message InterconnectOutageNotification { } - // State of this notification, which can take one of the following values: - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. - COMPLETED: The outage associated with this notification is complete. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values. + // State of this notification, which can take one of the following values: + // + // - ACTIVE: This outage notification is active. The event could be in + // the past, present, or future. See start_time and end_time for + // scheduling. + // - CANCELLED: The outage associated with this notification was cancelled + // before the outage was due to start. + // - COMPLETED: The outage associated with this notification is complete. + // + // + // Note that the versions of this enum prefixed with "NS_" have been + // deprecated in favor of the unprefixed values. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; - // This outage notification is active. The event could be in the future, present, or past. See start_time and end_time for scheduling. + // This outage notification is active. The event could be in the future, + // present, or past. See start_time and end_time for scheduling. ACTIVE = 314733318; - // The outage associated with this notification was cancelled before the outage was due to start. + // The outage associated with this notification was cancelled before the + // outage was due to start. CANCELLED = 41957681; // The outage associated with this notification is complete. COMPLETED = 309921323; - // [Deprecated] This outage notification is active. The event could be in the future, present, or past. See start_time and end_time for scheduling. + // [Deprecated] This outage notification is active. The event could be in + // the future, present, or past. See start_time and end_time for + // scheduling. NS_ACTIVE = 252563136; - // [Deprecated] The outage associated with this notification was canceled before the outage was due to start. + // [Deprecated] The outage associated with this notification was canceled + // before the outage was due to start. NS_CANCELED = 506579411; } - // If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected. + // If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit + // IDs that will be affected. repeated string affected_circuits = 177717013; // A description about the purpose of the outage. optional string description = 422937596; - // Scheduled end time for the outage (milliseconds since Unix epoch). + // Scheduled end time for the outage (milliseconds since Unix + // epoch). optional int64 end_time = 114938801; - // Form this outage is expected to take, which can take one of the following values: - OUTAGE: The Interconnect may be completely out of service for some or all of the specified window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should remain up, but with reduced bandwidth. Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the unprefixed values. + // Form this outage is expected to take, which can take one of the following + // values: + // + // - OUTAGE: The Interconnect may be completely out of service for + // some or all of the specified window. + // - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole + // should remain up, but with reduced bandwidth. + // + // + // Note that the versions of this enum prefixed with "IT_" have been + // deprecated in favor of the unprefixed values. // Check the IssueType enum for the list of possible values. optional string issue_type = 369639136; // Unique identifier for this outage notification. optional string name = 3373707; - // The party that generated this notification, which can take the following value: - GOOGLE: this notification as generated by Google. Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. + // The party that generated this notification, which can take the following + // value: + // + // - GOOGLE: this notification as generated by Google. + // + // + // Note that the value of NSRC_GOOGLE has been deprecated in favor of + // GOOGLE. // Check the Source enum for the list of possible values. optional string source = 177235995; - // Scheduled start time for the outage (milliseconds since Unix epoch). + // Scheduled start time for the outage (milliseconds since Unix + // epoch). optional int64 start_time = 37467274; - // State of this notification, which can take one of the following values: - ACTIVE: This outage notification is active. The event could be in the past, present, or future. See start_time and end_time for scheduling. - CANCELLED: The outage associated with this notification was cancelled before the outage was due to start. - COMPLETED: The outage associated with this notification is complete. Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the unprefixed values. + // State of this notification, which can take one of the following values: + // + // - ACTIVE: This outage notification is active. The event could be in + // the past, present, or future. See start_time and end_time for + // scheduling. + // - CANCELLED: The outage associated with this notification was cancelled + // before the outage was due to start. + // - COMPLETED: The outage associated with this notification is complete. + // + // + // Note that the versions of this enum prefixed with "NS_" have been + // deprecated in favor of the unprefixed values. // Check the State enum for the list of possible values. optional string state = 109757585; } -// Represents a Cross-Cloud Interconnect Remote Location resource. You can use this resource to find remote location details about an Interconnect attachment (VLAN). +// Additional interconnect parameters. +message InterconnectParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + +// Represents a Cross-Cloud Interconnect Remote Location resource. +// +// You can use this resource to find remote location details about an +// Interconnect attachment (VLAN). message InterconnectRemoteLocation { - // [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + // [Output Only] Continent for this location, which can take one of the + // following values: + // + // - AFRICA + // - ASIA_PAC + // - EUROPE + // - NORTH_AMERICA + // - SOUTH_AMERICA enum Continent { // A value indicating that the enum field is not set. UNDEFINED_CONTINENT = 0; @@ -20512,49 +37039,76 @@ message InterconnectRemoteLocation { } - // [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED + // [Output Only] Link Aggregation Control Protocol (LACP) constraints, which + // can take one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED enum Lacp { // A value indicating that the enum field is not set. UNDEFINED_LACP = 0; - // LACP_SUPPORTED: LACP is supported, and enabled by default on the Cross-Cloud Interconnect. + // LACP_SUPPORTED: LACP is supported, and enabled by default on + // the Cross-Cloud Interconnect. LACP_SUPPORTED = 339576113; - // LACP_UNSUPPORTED: LACP is not supported and is not be enabled on this port. GetDiagnostics shows bundleAggregationType as "static". GCP does not support LAGs without LACP, so requestedLinkCount must be 1. + // LACP_UNSUPPORTED: LACP is not supported and is not be enabled on this + // port. GetDiagnostics shows bundleAggregationType as "static". GCP does + // not support LAGs without LACP, so requestedLinkCount must be 1. LACP_UNSUPPORTED = 203930104; } - // [Output Only] The status of this InterconnectRemoteLocation, which can take one of the following values: - CLOSED: The InterconnectRemoteLocation is closed and is unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. + // [Output Only] The status of this InterconnectRemoteLocation, which can take + // one of the following values: + // + // - CLOSED: The InterconnectRemoteLocation is closed and is unavailable + // for provisioning new Cross-Cloud Interconnects. + // - AVAILABLE: The + // InterconnectRemoteLocation is available for provisioning new + // Cross-Cloud Interconnects. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; - // The InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. + // The InterconnectRemoteLocation is available for provisioning new + // Cross-Cloud Interconnects. AVAILABLE = 442079913; - // The InterconnectRemoteLocation is closed for provisioning new Cross-Cloud Interconnects. + // The InterconnectRemoteLocation is closed for provisioning new + // Cross-Cloud Interconnects. CLOSED = 380163436; } - // [Output Only] The postal address of the Point of Presence, each line in the address is separated by a newline character. + // [Output Only] The postal address of the Point of Presence, each line in + // the address is separated by a newline character. optional string address = 462920692; - // [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field that apply to all attachments for this remote location. + // [Output Only] Subset of fields from InterconnectAttachment's + // |configurationConstraints| field that apply to all attachments for this + // remote location. optional InterconnectAttachmentConfigurationConstraints attachment_configuration_constraints = 326825041; - // [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". + // [Output Only] Metropolitan area designator that indicates which city an + // interconnect is located. + // For example: "Chicago, IL", "Amsterdam, Netherlands". optional string city = 3053931; - // [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and associated InterconnectAttachments. + // [Output Only] Constraints on the parameters for creating Cross-Cloud + // Interconnect and associated InterconnectAttachments. optional InterconnectRemoteLocationConstraints constraints = 3909174; - // [Output Only] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + // [Output Only] Continent for this location, which can take one of the + // following values: + // + // - AFRICA + // - ASIA_PAC + // - EUROPE + // - NORTH_AMERICA + // - SOUTH_AMERICA // Check the Continent enum for the list of possible values. optional string continent = 133442996; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // [Output Only] An optional description of the resource. @@ -20563,44 +37117,66 @@ message InterconnectRemoteLocation { // [Output Only] The name of the provider for this facility (e.g., EQUINIX). optional string facility_provider = 533303309; - // [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + // [Output Only] A provider-assigned Identifier for this facility (e.g., + // Ashburn-DC1). optional string facility_provider_facility_id = 87269125; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#interconnectRemoteLocation for interconnect remote locations. + // [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect remote + // locations. optional string kind = 3292052; - // [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED + // [Output Only] Link Aggregation Control Protocol (LACP) constraints, which + // can take one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED // Check the Lacp enum for the list of possible values. optional string lacp = 3313826; - // [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. + // [Output Only] + // The maximum number of 100 Gbps ports supported in a link aggregation group + // (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed + // max_lag_size_100_gbps. optional int32 max_lag_size100_gbps = 245219253; - // [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. + // [Output Only] + // The maximum number of 10 Gbps ports supported in a link aggregation group + // (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed + // max_lag_size_10_gbps. optional int32 max_lag_size10_gbps = 294007573; - // [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. + // [Output Only] + // The maximum number of 400 Gbps ports supported in a link aggregation group + // (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed + // max_lag_size_400_gbps. optional int32 max_lag_size400_gbps = 104941138; // [Output Only] Name of the resource. optional string name = 3373707; - // [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb). + // [Output Only] The peeringdb identifier for this facility (corresponding + // with a netfac type in peeringdb). optional string peeringdb_facility_id = 536567094; // [Output Only] Permitted connections. repeated InterconnectRemoteLocationPermittedConnections permitted_connections = 442063278; - // [Output Only] Indicates the service provider present at the remote location. Example values: "Amazon Web Services", "Microsoft Azure". + // [Output Only] Indicates the service provider present at the remote + // location. Example values: "Amazon Web Services", "Microsoft Azure". optional string remote_service = 391954364; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] The status of this InterconnectRemoteLocation, which can take one of the following values: - CLOSED: The InterconnectRemoteLocation is closed and is unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. + // [Output Only] The status of this InterconnectRemoteLocation, which can take + // one of the following values: + // + // - CLOSED: The InterconnectRemoteLocation is closed and is unavailable + // for provisioning new Cross-Cloud Interconnects. + // - AVAILABLE: The + // InterconnectRemoteLocation is available for provisioning new + // Cross-Cloud Interconnects. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -20608,25 +37184,45 @@ message InterconnectRemoteLocation { // message InterconnectRemoteLocationConstraints { - // [Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. Google Cloud API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location. + // [Output Only] Port pair remote location constraints, which can take one + // of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, + // PORT_PAIR_MATCHING_REMOTE_LOCATION. + // + // Google Cloud API refers only to individual ports, but the UI uses this + // field when ordering a pair of ports, to prevent users from accidentally + // ordering something that is incompatible with their cloud provider. + // Specifically, when ordering a redundant pair of Cross-Cloud Interconnect + // ports, and one of them uses a remote location with + // portPairMatchingRemoteLocation set to matching, the UI requires that + // both ports use the same remote location. enum PortPairRemoteLocation { // A value indicating that the enum field is not set. UNDEFINED_PORT_PAIR_REMOTE_LOCATION = 0; - // If PORT_PAIR_MATCHING_REMOTE_LOCATION, the remote cloud provider allocates ports in pairs, and the user should choose the same remote location for both ports. + // If PORT_PAIR_MATCHING_REMOTE_LOCATION, the remote cloud provider + // allocates ports in pairs, and the user should choose the same remote + // location for both ports. PORT_PAIR_MATCHING_REMOTE_LOCATION = 207291859; - // If PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, a user may opt to provision a redundant pair of Cross-Cloud Interconnects using two different remote locations in the same city. + // If PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, a user may opt to provision + // a redundant pair of Cross-Cloud Interconnects using two different + // remote locations in the same city. PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION = 60609829; } - // [Output Only] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN + // [Output Only] Port pair VLAN constraints, which can take one of the + // following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN enum PortPairVlan { // A value indicating that the enum field is not set. UNDEFINED_PORT_PAIR_VLAN = 0; - // If PORT_PAIR_MATCHING_VLAN, the Interconnect for this attachment is part of a pair of ports that should have matching VLAN allocations. This occurs with Cross-Cloud Interconnect to Azure remote locations. While GCP's API does not explicitly group pairs of ports, the UI uses this field to ensure matching VLAN ids when configuring a redundant VLAN pair. + // If PORT_PAIR_MATCHING_VLAN, the Interconnect for this attachment is + // part of a pair of ports that should have matching VLAN allocations. + // This occurs with Cross-Cloud Interconnect to Azure remote locations. + // While GCP's API does not explicitly group pairs of ports, the UI uses + // this field to ensure matching VLAN ids when configuring a redundant + // VLAN pair. PORT_PAIR_MATCHING_VLAN = 250295358; // PORT_PAIR_UNCONSTRAINED_VLAN means there is no constraint. @@ -20634,15 +37230,40 @@ message InterconnectRemoteLocationConstraints { } - // [Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. Google Cloud API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location. + // [Output Only] Port pair remote location constraints, which can take one + // of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, + // PORT_PAIR_MATCHING_REMOTE_LOCATION. + // + // Google Cloud API refers only to individual ports, but the UI uses this + // field when ordering a pair of ports, to prevent users from accidentally + // ordering something that is incompatible with their cloud provider. + // Specifically, when ordering a redundant pair of Cross-Cloud Interconnect + // ports, and one of them uses a remote location with + // portPairMatchingRemoteLocation set to matching, the UI requires that + // both ports use the same remote location. // Check the PortPairRemoteLocation enum for the list of possible values. optional string port_pair_remote_location = 495917351; - // [Output Only] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN + // [Output Only] Port pair VLAN constraints, which can take one of the + // following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN // Check the PortPairVlan enum for the list of possible values. optional string port_pair_vlan = 478214506; - // [Output Only] [min-length, max-length] The minimum and maximum value (inclusive) for the IPv4 subnet length. For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets. This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}. + // [Output Only] + // + // [min-length, max-length] + // + // The minimum and maximum value (inclusive) for the IPv4 subnet + // length. + // + // For example, an interconnectRemoteLocation for Azure has {min: 30, + // max: + // 30} because Azure requires /30 subnets. + // + // This range specifies the values supported by both cloud providers. + // Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a + // remote cloud has no constraint on IPv4 subnet length, the range would + // thus be {min: 29, max: 30}. optional InterconnectRemoteLocationConstraintsSubnetLengthRange subnet_length_range = 184473670; } @@ -20655,7 +37276,8 @@ message InterconnectRemoteLocationConstraintsSubnetLengthRange { } -// Response to the list request, and contains a list of interconnect remote locations. +// Response to the list request, and contains a list of interconnect remote +// locations. message InterconnectRemoteLocationList { // [Output Only] Unique identifier for the resource; defined by the server. optional string id = 3355; @@ -20663,10 +37285,15 @@ message InterconnectRemoteLocationList { // A list of InterconnectRemoteLocation resources. repeated InterconnectRemoteLocation items = 100526016; - // [Output Only] Type of resource. Always compute#interconnectRemoteLocationList for lists of interconnect remote locations. + // [Output Only] Type of resource. Alwayscompute#interconnectRemoteLocationList for lists of + // interconnect remote locations. optional string kind = 3292052; - // [Output Only] This token lets you get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token lets you get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -20679,7 +37306,8 @@ message InterconnectRemoteLocationList { // message InterconnectRemoteLocationPermittedConnections { - // [Output Only] URL of an Interconnect location that is permitted to connect to this Interconnect remote location. + // [Output Only] URL of an Interconnect location that is permitted to + // connect to this Interconnect remote location. optional string interconnect_location = 492235846; } @@ -20716,7 +37344,8 @@ message InvalidateCacheRegionUrlMapRequest { (google.cloud.operation_request_field) = "region" ]; - // begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + // begin_interface: MixerMutationRequestBuilder + // Request ID to support idempotency. optional string request_id = 37109963; // Name of the UrlMap scoping this request. @@ -20735,7 +37364,19 @@ message InvalidateCacheUrlMapRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the UrlMap scoping this request. @@ -20745,59 +37386,87 @@ message InvalidateCacheUrlMapRequest { // Metadata message Items { - // Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project. + // Key for the metadata entry. Keys must conform to the following + // regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. + // This is reflected as part of a URL in the metadata server. Additionally, to + // avoid ambiguity, keys must not conflict with any other metadata keys + // for the project. optional string key = 106079; - // Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB). + // Value for the metadata entry. These are free-form strings, and only + // have meaning as interpreted by the image running in the instance. The + // only restriction placed on values is that their size must be less than + // or equal to 262144 bytes (256 KiB). optional string value = 111972721; } -// Represents a License resource. A License represents billing and aggregate usage data for public and marketplace images. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. +// Represents a License resource. +// +// A License represents billing and aggregate usage data forpublic andmarketplace images. +// *Caution* This resource is intended for +// use only by third-party partners who are creatingCloud Marketplace +// images. message License { - // Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false. + // Specifies licenseCodes of licenses that can replace this license. Note: + // such replacements are allowed even if removable_from_disk is false. repeated string allowed_replacement_licenses = 195677718; - // If true, this license can be appended to an existing disk's set of licenses. + // If true, this license can be appended to an existing disk's set of + // licenses. optional bool appendable_to_disk = 16959254; - // [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. + // [Output Only] Deprecated. This field no longer reflects whether a license + // charges a usage fee. optional bool charges_use_fee = 372412622; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional textual description of the resource; provided by the client when the resource is created. + // An optional textual description of the resource; provided by the client + // when the resource is created. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image. + // Specifies licenseCodes of licenses that are incompatible with this license. + // If a license is incompatible with this license, it cannot be attached to + // the same disk or image. repeated string incompatible_licenses = 334239768; - // [Output Only] Type of resource. Always compute#license for licenses. + // [Output Only] Type of resource. Always compute#license for + // licenses. optional string kind = 3292052; - // [Output Only] The unique code used to attach this license to images, snapshots, and disks. + // [Output Only] The unique code used to attach this license to images, + // snapshots, and disks. optional uint64 license_code = 1467179; - // If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed. + // If set, this license will be unable to be removed or replaced once attached + // to a disk until the minimum_retention period has passed. optional Duration minimum_retention = 155398189; // If true, this license can only be used on VMs on multi tenant nodes. optional bool multi_tenant_only = 274395163; - // Name of the resource. The name must be 1-63 characters long and comply with RFC1035. + // Name of the resource. The name must be 1-63 characters long and + // comply withRFC1035. optional string name = 3373707; - // If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time. + // If true, indicates this is an OS license. Only one OS license can be + // attached to a disk or image at a time. optional bool os_license = 487986406; - // If true, this license can be removed from a disk's set of licenses, with no replacement license needed. + // If true, this license can be removed from a disk's set of licenses, with no + // replacement license needed. optional bool removable_from_disk = 25854638; - // Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license. + // Specifies the set of permissible coattached licenseCodes of licenses that + // satisfy the coattachment requirement of this license. At least one license + // from the set must be attached to the same disk or image as this license. repeated string required_coattached_licenses = 129195265; // [Input Only] Deprecated. @@ -20812,22 +37481,31 @@ message License { // If true, this license can only be used on VMs on sole tenant nodes. optional bool sole_tenant_only = 427525559; - // If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk. + // If false, licenses will not be copied from the source resource when + // creating an image from a disk, disk from snapshot, or snapshot from disk. optional bool transferable = 4349893; - // [Output Only] Last update timestamp in RFC3339 text format. + // [Output Only] Last update timestamp inRFC3339 + // text format. optional string update_timestamp = 120894752; } -// Represents a License Code resource. A License Code is a unique identifier used to represent a license resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. +// Represents a License Code resource. +// +// A License Code is a unique identifier used to represent alicense +// resource. +// *Caution* This resource is intended for +// use only by third-party partners who are creatingCloud Marketplace +// images. message LicenseCode { // [Output Only] Current state of this License Code. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; - // Machines are not allowed to attach boot disks with this License Code. Requests to create new resources with this license will be rejected. + // Machines are not allowed to attach boot disks with this License Code. + // Requests to create new resources with this license will be rejected. DISABLED = 516696700; // Use is allowed for anyone with USE_READ_ONLY access to this License Code. @@ -20843,22 +37521,27 @@ message LicenseCode { } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // [Output Only] Description of this License Code. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of resource. Always compute#licenseCode for licenses. + // [Output Only] Type of resource. Always compute#licenseCode for + // licenses. optional string kind = 3292052; - // [Output Only] URL and description aliases of Licenses with the same License Code. + // [Output Only] URL and description aliases of Licenses with the same + // License Code. repeated LicenseCodeLicenseAlias license_alias = 43550930; - // [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer. + // [Output Only] Name of the resource. The name is 1-20 characters long and + // must be a valid 64 bit integer. optional string name = 3373707; // [Output Only] Server-defined URL for the resource. @@ -20868,7 +37551,8 @@ message LicenseCode { // Check the State enum for the list of possible values. optional string state = 109757585; - // [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred. + // [Output Only] If true, the license will remain attached when creating + // images or snapshots from disks. Otherwise, the license is not transferred. optional bool transferable = 4349893; } @@ -20898,10 +37582,12 @@ message LicenseResourceCommitment { // message LicenseResourceRequirements { - // [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance. + // [Input Only] Deprecated. This field no longer reflects the minimum number + // of guest cpus required to use the Instance. optional int32 min_guest_cpu_count = 477964836; - // [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance. + // [Input Only] Deprecated. This field no longer reflects the minimum memory + // required to use the Instance. optional int32 min_memory_mb = 504785894; } @@ -20914,7 +37600,11 @@ message LicensesListResponse { // A list of License resources. repeated License items = 100526016; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -20927,22 +37617,100 @@ message LicensesListResponse { // A request message for AcceleratorTypes.List. See the method description for details. message ListAcceleratorTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -20952,16 +37720,89 @@ message ListAcceleratorTypesRequest { // A request message for Addresses.List. See the method description for details. message ListAddressesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -20970,43 +37811,133 @@ message ListAddressesRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for FirewallPolicies.ListAssociations. See the method description for details. message ListAssociationsFirewallPolicyRequest { - // The target resource to list associations. It is an organization, or a folder. + // If set to "true", the response will contain a list of all associations for + // the containing folders and the containing organization of the target. The + // parameter has no effect if the target is an organization. + optional bool include_inherited_policies = 32280076; + + // The target resource to list associations. It is an organization, or a + // folder. optional string target_resource = 467318524; } // A request message for OrganizationSecurityPolicies.ListAssociations. See the method description for details. message ListAssociationsOrganizationSecurityPolicyRequest { - // The target resource to list associations. It is an organization, or a folder. + // The target resource to list associations. It is an organization, or a + // folder. optional string target_resource = 467318524; } // A request message for Autoscalers.List. See the method description for details. message ListAutoscalersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // Name of the zone for this request. @@ -21016,16 +37947,89 @@ message ListAutoscalersRequest { // A request message for RegionSslPolicies.ListAvailableFeatures. See the method description for details. message ListAvailableFeaturesRegionSslPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -21034,73 +38038,312 @@ message ListAvailableFeaturesRegionSslPoliciesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for SslPolicies.ListAvailableFeatures. See the method description for details. message ListAvailableFeaturesSslPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for BackendBuckets.List. See the method description for details. message ListBackendBucketsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for BackendServices.List. See the method description for details. message ListBackendServicesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } @@ -21120,7 +38363,8 @@ message ListBgpRoutesRoutersRequest { } - // (Required) limit results to this type of route (either LEARNED or ADVERTISED) + // (Required) limit results to this type of route (either LEARNED or + // ADVERTISED) enum RouteType { // A value indicating that the enum field is not set. UNDEFINED_ROUTE_TYPE = 0; @@ -21140,22 +38384,97 @@ message ListBgpRoutesRoutersRequest { // Limit results to destinations that are subnets of this CIDR range optional string destination_prefix = 263872483; - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; - // (Required) limit results to the BGP peer with the given name. Name should conform to RFC1035. + // (Required) limit results to the BGP peer with the given name. + // Name should conform to RFC1035. optional string peer = 3436898; - // When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + // When true, the method returns post-policy routes. Otherwise, it returns + // pre-policy routes. optional bool policy_applied = 379464304; // Project ID for this request. @@ -21164,58 +38483,221 @@ message ListBgpRoutesRoutersRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // (Required) limit results to this type of route (either LEARNED or ADVERTISED) + // (Required) limit results to this type of route (either LEARNED or + // ADVERTISED) // Check the RouteType enum for the list of possible values. optional string route_type = 375888752; - // Name or id of the resource for this request. Name should conform to RFC1035. + // Name or id of the resource for this request. + // Name should conform to RFC1035. string router = 148608841 [(google.api.field_behavior) = REQUIRED]; } // A request message for CrossSiteNetworks.List. See the method description for details. message ListCrossSiteNetworksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for DiskTypes.List. See the method description for details. message ListDiskTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -21225,22 +38707,100 @@ message ListDiskTypesRequest { // A request message for Disks.List. See the method description for details. message ListDisksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -21250,22 +38810,100 @@ message ListDisksRequest { // A request message for StoragePools.ListDisks. See the method description for details. message ListDisksStoragePoolsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // Name of the storage pool to list disks of. @@ -21278,138 +38916,612 @@ message ListDisksStoragePoolsRequest { // A request message for InstanceGroupManagers.ListErrors. See the method description for details. message ListErrorsInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + // The name of the managed instance group. + // It must be a string that meets the requirements in RFC1035, or an + // unsigned long integer: must match regexp pattern: + // (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where the managed instance group is located. It should conform to RFC1035. + // The name of thezone where the managed + // instance group is located. + // It should conform to RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } // A request message for RegionInstanceGroupManagers.ListErrors. See the method description for details. message ListErrorsRegionInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + // The name of the managed instance group. + // It must be a string that meets the requirements in RFC1035, or an + // unsigned long integer: must match regexp pattern: + // (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. This should conform to RFC1035. + // Name of the region scoping this request. + // This should conform to RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for ExternalVpnGateways.List. See the method description for details. message ListExternalVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for FirewallPolicies.List. See the method description for details. message ListFirewallPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; - // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + // if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + // parent is an organization. optional string parent_id = 459714768; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Firewalls.List. See the method description for details. message ListFirewallsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for ForwardingRules.List. See the method description for details. message ListForwardingRulesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -21418,29 +39530,112 @@ message ListForwardingRulesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for FutureReservations.List. See the method description for details. message ListFutureReservationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // Name of the zone for this request. Name should conform to RFC1035. @@ -21450,176 +39645,800 @@ message ListFutureReservationsRequest { // A request message for GlobalAddresses.List. See the method description for details. message ListGlobalAddressesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for GlobalForwardingRules.List. See the method description for details. message ListGlobalForwardingRulesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for GlobalNetworkEndpointGroups.List. See the method description for details. message ListGlobalNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for GlobalOperations.List. See the method description for details. message ListGlobalOperationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for GlobalOrganizationOperations.List. See the method description for details. message ListGlobalOrganizationOperationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Parent ID for this request. optional string parent_id = 459714768; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for GlobalPublicDelegatedPrefixes.List. See the method description for details. message ListGlobalPublicDelegatedPrefixesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for HealthChecks.List. See the method description for details. message ListHealthChecksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Images.List. See the method description for details. message ListImagesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The zone query parameter. @@ -21629,78 +40448,315 @@ message ListImagesRequest { // A request message for InstanceGroupManagerResizeRequests.List. See the method description for details. message ListInstanceGroupManagerResizeRequestsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; // The name of the managed instance group. The name should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where the managed instance group is located. The name should conform to RFC1035. + // The name of thezone where the managed + // instance group is located. The name should conform to RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } // A request message for InstanceGroupManagers.List. See the method description for details. message ListInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } // A request message for InstanceGroups.List. See the method description for details. message ListInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where the instance group is located. + // The name of thezone + // where the instance group is located. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } @@ -21723,22 +40779,100 @@ message ListInstanceTemplatesRequest { } - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // View of the instance template. @@ -21749,50 +40883,204 @@ message ListInstanceTemplatesRequest { // A request message for InstanceGroups.ListInstances. See the method description for details. message ListInstancesInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The name of the instance group from which you want to generate a list of included instances. + // The name of the instance group from which you want to generate a list + // of included instances. string instance_group = 81095253 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request InstanceGroupsListInstancesRequest instance_groups_list_instances_request_resource = 476255263 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where the instance group is located. + // The name of the zone + // where the instance group is located. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } // A request message for RegionInstanceGroups.ListInstances. See the method description for details. message ListInstancesRegionInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Name of the regional instance group for which we want to list the instances. + // Name of the regional instance group for which we want to list the + // instances. string instance_group = 81095253 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -21804,7 +41092,12 @@ message ListInstancesRegionInstanceGroupsRequest { // The body resource for this request RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } @@ -21827,22 +41120,100 @@ message ListInstancesRequest { } - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // View of the instance. @@ -21856,22 +41227,100 @@ message ListInstancesRequest { // A request message for InstantSnapshots.List. See the method description for details. message ListInstantSnapshotsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -21881,38 +41330,189 @@ message ListInstantSnapshotsRequest { // A request message for InterconnectAttachmentGroups.List. See the method description for details. message ListInterconnectAttachmentGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for InterconnectAttachments.List. See the method description for details. message ListInterconnectAttachmentsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -21921,161 +41521,712 @@ message ListInterconnectAttachmentsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for InterconnectGroups.List. See the method description for details. message ListInterconnectGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for InterconnectLocations.List. See the method description for details. message ListInterconnectLocationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for InterconnectRemoteLocations.List. See the method description for details. message ListInterconnectRemoteLocationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Interconnects.List. See the method description for details. message ListInterconnectsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Licenses.List. See the method description for details. message ListLicensesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for MachineImages.List. See the method description for details. message ListMachineImagesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for MachineTypes.List. See the method description for details. message ListMachineTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -22085,47 +42236,199 @@ message ListMachineTypesRequest { // A request message for InstanceGroupManagers.ListManagedInstances. See the method description for details. message ListManagedInstancesInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; // The name of the managed instance group. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } // A request message for RegionInstanceGroupManagers.ListManagedInstances. See the method description for details. message ListManagedInstancesRegionInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; // The name of the managed instance group. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22134,23 +42437,101 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for NetworkAttachments.List. See the method description for details. message ListNetworkAttachmentsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. - optional string filter = 336120696; + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22159,204 +42540,839 @@ message ListNetworkAttachmentsRequest { // Name of the region of this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for NetworkEndpointGroups.List. See the method description for details. message ListNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where the network endpoint group is located. It should comply with RFC1035. + // The name of thezone + // where the network endpoint group is located. It should comply with RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } // A request message for GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + // The name of the network endpoint group from which you want to generate a + // list of included network endpoints. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. message ListNetworkEndpointsNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + // The name of the network endpoint group from which you want to generate a + // list of included network endpoints. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request NetworkEndpointGroupsListEndpointsRequest network_endpoint_groups_list_endpoints_request_resource = 59493390 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where the network endpoint group is located. It should comply with RFC1035. + // The name of the zone where + // the network endpoint group is located. It should comply with RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } // A request message for RegionNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + // The name of the network endpoint group from which you want to generate a + // list of included network endpoints. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the region where the network endpoint group is located. It should comply with RFC1035. + // The name of theregion + // where the network endpoint group is located. It should comply with RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for NetworkFirewallPolicies.List. See the method description for details. message ListNetworkFirewallPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for NetworkProfiles.List. See the method description for details. message ListNetworkProfilesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Networks.List. See the method description for details. message ListNetworksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for NodeGroups.List. See the method description for details. message ListNodeGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -22366,16 +43382,89 @@ message ListNodeGroupsRequest { // A request message for NodeTemplates.List. See the method description for details. message ListNodeTemplatesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22384,29 +43473,112 @@ message ListNodeTemplatesRequest { // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for NodeTypes.List. See the method description for details. message ListNodeTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -22416,25 +43588,103 @@ message ListNodeTypesRequest { // A request message for NodeGroups.ListNodes. See the method description for details. message ListNodesNodeGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; // Name of the NodeGroup resource whose nodes you want to list. string node_group = 469958146 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -22444,38 +43694,189 @@ message ListNodesNodeGroupsRequest { // A request message for OrganizationSecurityPolicies.List. See the method description for details. message ListOrganizationSecurityPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Parent ID for this request. optional string parent_id = 459714768; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for PacketMirrorings.List. See the method description for details. message ListPacketMirroringsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22484,7 +43885,12 @@ message ListPacketMirroringsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } @@ -22508,19 +43914,92 @@ message ListPeeringRoutesNetworksRequest { // Check the Direction enum for the list of possible values. optional string direction = 111150975; - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; // Name of the network for this request. string network = 232872494 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // The response will show routes exchanged over the given peering connection. @@ -22529,57 +44008,216 @@ message ListPeeringRoutesNetworksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region. + // The region of the request. The response will include all subnet routes, + // static routes and dynamic routes in the region. optional string region = 138946292; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for InstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. message ListPerInstanceConfigsInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; // The name of the managed instance group. It should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where the managed instance group is located. It should conform to RFC1035. + // The name of thezone + // where the managed instance group is located. + // It should conform to RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } // A request message for RegionInstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; // The name of the managed instance group. It should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22588,111 +44226,501 @@ message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { // Name of the region scoping this request, should conform to RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for OrganizationSecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details. message ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Parent ID for this request. optional string parent_id = 459714768; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for SecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details. message ListPreconfiguredExpressionSetsSecurityPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for PreviewFeatures.List. See the method description for details. message ListPreviewFeaturesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for PublicAdvertisedPrefixes.List. See the method description for details. message ListPublicAdvertisedPrefixesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for PublicDelegatedPrefixes.List. See the method description for details. message ListPublicDelegatedPrefixesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22701,32 +44729,116 @@ message ListPublicDelegatedPrefixesRequest { // Name of the region of this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Instances.ListReferrers. See the method description for details. message ListReferrersInstancesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. + // Name of the target instance scoping this request, or '-' if the + // request should span over all instances in the container. string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -22736,16 +44848,89 @@ message ListReferrersInstancesRequest { // A request message for RegionAutoscalers.List. See the method description for details. message ListRegionAutoscalersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22754,23 +44939,204 @@ message ListRegionAutoscalersRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for RegionBackendBuckets.List. See the method description for details. +message ListRegionBackendBucketsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region of this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionBackendServices.List. See the method description for details. message ListRegionBackendServicesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22779,23 +45145,101 @@ message ListRegionBackendServicesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionCommitments.List. See the method description for details. message ListRegionCommitmentsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22804,23 +45248,204 @@ message ListRegionCommitmentsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for RegionCompositeHealthChecks.List. See the method description for details. +message ListRegionCompositeHealthChecksRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionDiskTypes.List. See the method description for details. message ListRegionDiskTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22829,23 +45454,101 @@ message ListRegionDiskTypesRequest { // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionDisks.List. See the method description for details. message ListRegionDisksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22854,23 +45557,204 @@ message ListRegionDisksRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for RegionHealthAggregationPolicies.List. See the method description for details. +message ListRegionHealthAggregationPoliciesRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionHealthCheckServices.List. See the method description for details. message ListRegionHealthCheckServicesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22879,23 +45763,101 @@ message ListRegionHealthCheckServicesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionHealthChecks.List. See the method description for details. message ListRegionHealthChecksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22904,23 +45866,101 @@ message ListRegionHealthChecksRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionHealthSources.List. See the method description for details. message ListRegionHealthSourcesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22929,51 +45969,208 @@ message ListRegionHealthSourcesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionInstanceGroupManagerResizeRequests.List. See the method description for details. message ListRegionInstanceGroupManagerResizeRequestsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; // The name of the managed instance group. The name should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. Name should conform to RFC1035. + // Name of the region + // scoping this request. Name should conform to RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionInstanceGroupManagers.List. See the method description for details. message ListRegionInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -22982,23 +46179,101 @@ message ListRegionInstanceGroupManagersRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionInstanceGroups.List. See the method description for details. message ListRegionInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23007,7 +46282,12 @@ message ListRegionInstanceGroupsRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } @@ -23030,16 +46310,89 @@ message ListRegionInstanceTemplatesRequest { } - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23048,7 +46401,12 @@ message ListRegionInstanceTemplatesRequest { // The name of the regions for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // View of the instance template. @@ -23059,16 +46417,89 @@ message ListRegionInstanceTemplatesRequest { // A request message for RegionInstantSnapshots.List. See the method description for details. message ListRegionInstantSnapshotsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23077,23 +46508,101 @@ message ListRegionInstantSnapshotsRequest { // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionMultiMigs.List. See the method description for details. message ListRegionMultiMigsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23102,48 +46611,205 @@ message ListRegionMultiMigsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionNetworkEndpointGroups.List. See the method description for details. message ListRegionNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the region where the network endpoint group is located. It should comply with RFC1035. + // The name of theregion + // where the network endpoint group is located. It should comply with RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionNetworkFirewallPolicies.List. See the method description for details. message ListRegionNetworkFirewallPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23152,23 +46818,101 @@ message ListRegionNetworkFirewallPoliciesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionNetworkPolicies.List. See the method description for details. message ListRegionNetworkPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23177,23 +46921,101 @@ message ListRegionNetworkPoliciesRequest { // Name of the region of this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionNotificationEndpoints.List. See the method description for details. message ListRegionNotificationEndpointsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23202,23 +47024,101 @@ message ListRegionNotificationEndpointsRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionOperations.List. See the method description for details. message ListRegionOperationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23227,23 +47127,101 @@ message ListRegionOperationsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionSecurityPolicies.List. See the method description for details. message ListRegionSecurityPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23252,23 +47230,101 @@ message ListRegionSecurityPoliciesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionSnapshots.List. See the method description for details. message ListRegionSnapshotsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23277,23 +47333,101 @@ message ListRegionSnapshotsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionSslCertificates.List. See the method description for details. message ListRegionSslCertificatesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23302,23 +47436,101 @@ message ListRegionSslCertificatesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionSslPolicies.List. See the method description for details. message ListRegionSslPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23327,23 +47539,101 @@ message ListRegionSslPoliciesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionTargetHttpProxies.List. See the method description for details. message ListRegionTargetHttpProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23352,23 +47642,101 @@ message ListRegionTargetHttpProxiesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionTargetHttpsProxies.List. See the method description for details. message ListRegionTargetHttpsProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23377,23 +47745,101 @@ message ListRegionTargetHttpsProxiesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionTargetTcpProxies.List. See the method description for details. message ListRegionTargetTcpProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23402,23 +47848,101 @@ message ListRegionTargetTcpProxiesRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionUrlMaps.List. See the method description for details. message ListRegionUrlMapsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23427,23 +47951,101 @@ message ListRegionUrlMapsRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionZones.List. See the method description for details. message ListRegionZonesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23452,54 +48054,216 @@ message ListRegionZonesRequest { // Region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Regions.List. See the method description for details. message ListRegionsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for ReservationBlocks.List. See the method description for details. message ListReservationBlocksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the reservation. Name should conform to RFC1035 or be a resource ID. + // The name of the reservation. + // Name should conform to RFC1035 or be a resource ID. string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // Name of the zone for this request. Zone name should conform to RFC1035. @@ -23509,25 +48273,104 @@ message ListReservationBlocksRequest { // A request message for ReservationSubBlocks.List. See the method description for details. message ListReservationSubBlocksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; - // The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + // The name of the parent reservation and parent block. In the format of + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // Name of the zone for this request. Zone name should conform to RFC1035. @@ -23537,22 +48380,100 @@ message ListReservationSubBlocksRequest { // A request message for Reservations.List. See the method description for details. message ListReservationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // Name of the zone for this request. @@ -23562,16 +48483,89 @@ message ListReservationsRequest { // A request message for ResourcePolicies.List. See the method description for details. message ListResourcePoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23580,23 +48574,101 @@ message ListResourcePoliciesRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Routers.ListRoutePolicies. See the method description for details. message ListRoutePoliciesRoutersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23605,26 +48677,105 @@ message ListRoutePoliciesRoutersRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // Name or id of the resource for this request. Name should conform to RFC1035. + // Name or id of the resource for this request. + // Name should conform to RFC1035. string router = 148608841 [(google.api.field_behavior) = REQUIRED]; } // A request message for Routers.List. See the method description for details. message ListRoutersRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23633,67 +48784,301 @@ message ListRoutersRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Routes.List. See the method description for details. message ListRoutesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for SecurityPolicies.List. See the method description for details. message ListSecurityPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for ServiceAttachments.List. See the method description for details. message ListServiceAttachmentsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23702,95 +49087,412 @@ message ListServiceAttachmentsRequest { // Name of the region of this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Snapshots.List. See the method description for details. message ListSnapshotsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for SslCertificates.List. See the method description for details. message ListSslCertificatesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for SslPolicies.List. See the method description for details. message ListSslPoliciesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for StoragePoolTypes.List. See the method description for details. message ListStoragePoolTypesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -23800,22 +49502,100 @@ message ListStoragePoolTypesRequest { // A request message for StoragePools.List. See the method description for details. message ListStoragePoolsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // The name of the zone for this request. @@ -23825,7 +49605,11 @@ message ListStoragePoolsRequest { // A request message for Subnetworks.List. See the method description for details. message ListSubnetworksRequest { - // Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. enum Views { // A value indicating that the enum field is not set. UNDEFINED_VIEWS = 0; @@ -23837,16 +49621,89 @@ message ListSubnetworksRequest { } - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23855,10 +49712,19 @@ message ListSubnetworksRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. // Check the Views enum for the list of possible values. optional string views = 112204398; @@ -23866,88 +49732,400 @@ message ListSubnetworksRequest { // A request message for TargetGrpcProxies.List. See the method description for details. message ListTargetGrpcProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for TargetHttpProxies.List. See the method description for details. message ListTargetHttpProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for TargetHttpsProxies.List. See the method description for details. message ListTargetHttpsProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for TargetInstances.List. See the method description for details. message ListTargetInstancesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // Name of the zone scoping this request. @@ -23957,16 +50135,89 @@ message ListTargetInstancesRequest { // A request message for TargetPools.List. See the method description for details. message ListTargetPoolsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -23975,67 +50226,301 @@ message ListTargetPoolsRequest { // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for TargetSslProxies.List. See the method description for details. message ListTargetSslProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for TargetTcpProxies.List. See the method description for details. message ListTargetTcpProxiesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for TargetVpnGateways.List. See the method description for details. message ListTargetVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -24044,139 +50529,714 @@ message ListTargetVpnGatewaysRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for UrlMaps.List. See the method description for details. message ListUrlMapsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for BackendBuckets.ListUsable. See the method description for details. message ListUsableBackendBucketsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for BackendServices.ListUsable. See the method description for details. message ListUsableBackendServicesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for RegionBackendBuckets.ListUsable. See the method description for details. +message ListUsableRegionBackendBucketsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Name of the region scoping this request. + // It must be a string that meets the requirements in RFC1035. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for RegionBackendServices.ListUsable. See the method description for details. message ListUsableRegionBackendServicesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + // Name of the region scoping this request. + // It must be a string that meets the requirements in RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Subnetworks.ListUsable. See the method description for details. message ListUsableSubnetworksRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; - // The project id or project number in which the subnetwork is intended to be used. Only applied for Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + // The project id or project number in which the subnetwork is intended to be + // used. Only applied for Shared VPC. See [Shared VPC + // documentation](https://cloud.google.com/vpc/docs/shared-vpc/) optional string service_project = 530592655; } // A request message for VpnGateways.List. See the method description for details. message ListVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -24185,23 +51245,101 @@ message ListVpnGatewaysRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for VpnTunnels.List. See the method description for details. message ListVpnTunnelsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -24210,7 +51348,12 @@ message ListVpnTunnelsRequest { // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } @@ -24219,38 +51362,189 @@ message ListVpnTunnelsRequest { message ListWireGroupsRequest { string cross_site_network = 108192469 [(google.api.field_behavior) = REQUIRED]; - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for Projects.ListXpnHosts. See the method description for details. message ListXpnHostsProjectsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. @@ -24259,29 +51553,112 @@ message ListXpnHostsProjectsRequest { // The body resource for this request ProjectsListXpnHostsRequest projects_list_xpn_hosts_request_resource = 238266391 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } // A request message for ZoneOperations.List. See the method description for details. message ListZoneOperationsRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; // Name of the zone for request. @@ -24289,24 +51666,205 @@ message ListZoneOperationsRequest { } +// A request message for ZoneVmExtensionPolicies.List. See the method description for details. +message ListZoneVmExtensionPoliciesRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // Name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Zones.List. See the method description for details. message ListZonesRequest { - // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. optional string order_by = 160562920; - // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. optional string page_token = 19994697; // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. optional bool return_partial_success = 517198390; } @@ -24319,14 +51877,20 @@ message LocalDisk { // Specifies the size of the disk in base-2 GB. optional int32 disk_size_gb = 316263735; - // Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL. + // Specifies the desired disk type on the node. This disk type must be a + // local storage type (e.g.: local-ssd). + // Note that for nodeTemplates, this should be the name of the disk type and + // not its URL. optional string disk_type = 93009052; } -// Provides a localized error message that is safe to return to the user which can be attached to an RPC error. +// Provides a localized error message that is safe to return to the user +// which can be attached to an RPC error. message LocalizedMessage { - // The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + // The locale used following the specification defined at + // https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + // Examples are: "en-US", "fr-CH", "es-MX" optional string locale = 513150554; // The localized error message in the above locale. @@ -24334,25 +51898,37 @@ message LocalizedMessage { } -// Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region). +// Configuration for location policy among multiple possible locations +// (e.g. preferences for zone selection among zones in a single region). message LocationPolicy { // Strategy for distributing VMs across zones in a region. enum TargetShape { // A value indicating that the enum field is not set. UNDEFINED_TARGET_SHAPE = 0; - // GCE picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads that do not require high availability. + // GCE picks zones for creating VM instances to fulfill the requested + // number of VMs within present resource constraints and to maximize + // utilization of unused zonal reservations. Recommended for batch workloads + // that do not require high availability. ANY = 64972; - // GCE always selects a single zone for all the VMs, optimizing for resource quotas, available reservations and general capacity. Recommended for batch workloads that cannot tollerate distribution over multiple zones. This the default shape in Bulk Insert and Capacity Advisor APIs. + // GCE always selects a single zone for all the VMs, optimizing for resource + // quotas, available reservations and general capacity. Recommended for + // batch workloads that cannot tollerate distribution over multiple zones. + // This the default shape in Bulk Insert and Capacity Advisor APIs. ANY_SINGLE_ZONE = 61100880; - // GCE prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across allowed zones to minimize the impact of zonal failure. Recommended for highly available serving workloads. + // GCE prioritizes acquisition of resources, scheduling VMs in zones + // where resources are available while distributing VMs as evenly as + // possible across allowed zones to minimize the impact of zonal failure. + // Recommended for highly available serving workloads. BALANCED = 468409608; } - // Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a. + // Location configurations mapped by location name. + // Currently only zone names are supported and must be represented as valid + // internal URLs, such as zones/us-central1-a. map locations = 413423454; // Strategy for distributing VMs across zones in a region. @@ -24363,7 +51939,7 @@ message LocationPolicy { // message LocationPolicyLocation { - // Preference for a given location. Set to either ALLOW or DENY. + // Preference for a given location. Set to either ALLOW orDENY. enum Preference { // A value indicating that the enum field is not set. UNDEFINED_PREFERENCE = 0; @@ -24379,10 +51955,11 @@ message LocationPolicyLocation { } - // Constraints that the caller requires on the result distribution in this zone. + // Constraints that the caller requires on the result distribution + // in this zone. optional LocationPolicyLocationConstraints constraints = 3909174; - // Preference for a given location. Set to either ALLOW or DENY. + // Preference for a given location. Set to either ALLOW orDENY. // Check the Preference enum for the list of possible values. optional string preference = 150781147; @@ -24390,14 +51967,19 @@ message LocationPolicyLocation { // Per-zone constraints on location policy for this zone. message LocationPolicyLocationConstraints { - // Maximum number of items that are allowed to be placed in this zone. The value must be non-negative. + // Maximum number of items that are allowed to be placed in this zone. + // The value must be non-negative. optional int32 max_count = 287620724; } -// Represents a machine image resource. A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. For more information, see Machine images. +// Represents a machine image resource. +// +// A machine image is a Compute Engine resource that stores all the +// configuration, metadata, permissions, and data from one or more disks +// required to create a Virtual machine (VM) instance. For more information, seeMachine images. message MachineImage { - // [Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. + // [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, READY,DELETING, and UPLOADING. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -24414,34 +51996,65 @@ message MachineImage { } - // [Output Only] The creation timestamp for this machine image in RFC3339 text format. + // [Output Only] The creation timestamp for this machine image inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process. + // [Input Only] Whether to attempt an application consistent machine image by + // informing the OS to prepare for the snapshot process. optional bool guest_flush = 385550813; - // [Output Only] A unique identifier for this machine image. The server defines this identifier. + // [Output Only] A unique identifier for this machine image. The server + // defines this identifier. optional uint64 id = 3355; // [Output Only] Properties of source instance optional InstanceProperties instance_properties = 215355165; - // [Output Only] The resource type, which is always compute#machineImage for machine image. + // [Output Only] The resource type, which is alwayscompute#machineImage for machine image. optional string kind = 3292052; - // A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the machine image. + // A fingerprint for the labels being applied to this machine image, which is + // essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels. + // + // To see the latest fingerprint, make get() request to the + // machine image. optional string label_fingerprint = 178124825; - // Labels to apply to this machine image. These can be later modified by the setLabels method. + // Labels to apply to this machine image. These can be later modified by + // the setLabels method. map labels = 500195327; - // Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later. + // Encrypts the machine image using acustomer-supplied + // encryption key. + // + // After you encrypt a machine image using a customer-supplied key, you must + // provide the same key if you use the machine image later. For example, you + // must provide the encryption key when you create an instance from the + // encrypted machine image in a future request. + // + // Customer-supplied encryption keys do not protect access to metadata of the + // machine image. + // + // If you do not provide an encryption key when creating the machine image, + // then the machine image will be encrypted using an automatically generated + // key and you do not need to provide a key to use the machine image later. optional CustomerEncryptionKey machine_image_encryption_key = 528089087; - // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; // Output only. Reserved for future use. @@ -24450,26 +52063,38 @@ message MachineImage { // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; - // An array of Machine Image specific properties for disks attached to the source instance + // An array of Machine Image specific properties for disks attached to the + // source instance repeated SavedDisk saved_disks = 397424318; // [Output Only] The URL for this machine image. The server defines this URL. optional string self_link = 456214797; - // [Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key. + // [Input Only] Thecustomer-supplied + // encryption key of the disks attached to the source instance. Required + // if the source disk is protected by a customer-supplied encryption key. repeated SourceDiskEncryptionKey source_disk_encryption_keys = 370408498; - // The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance + // The source instance used to create the machine image. You can provide this + // as a partial or full URL to the resource. For example, the following are + // valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance + // - projects/project/zones/zone/instances/instance optional string source_instance = 396315705; - // [Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field. + // [Output Only] DEPRECATED: Please use instance_properties + // instead for source instance related properties. New properties will not be + // added to this field. optional SourceInstanceProperties source_instance_properties = 475195641; - // [Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. + // [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, READY,DELETING, and UPLOADING. // Check the Status enum for the list of possible values. optional string status = 181260274; - // The regional or multi-regional Cloud Storage bucket location where the machine image is stored. + // The regional or multi-regional Cloud Storage bucket location where themachine image is + // stored. repeated string storage_locations = 328005274; // [Output Only] Total size of the storage used by the machine image. @@ -24485,10 +52110,14 @@ message MachineImageList { // A list of MachineImage resources. repeated MachineImage items = 100526016; - // [Output Only] The resource type, which is always compute#machineImagesListResponse for machine image lists. + // [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine image lists. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -24499,7 +52128,10 @@ message MachineImageList { } -// Represents a Machine Type resource. You can use specific machine types for your VM instances based on performance and pricing requirements. For more information, read Machine Types. +// Represents a Machine Type resource. +// +// You can use specific machine types for your VM instances based on performance +// and pricing requirements. For more information, readMachine Types. message MachineType { // [Output Only] The architecture of the machine type. enum Architecture { @@ -24517,7 +52149,8 @@ message MachineType { } - // [Output Only] A list of accelerator configurations assigned to this machine type. + // [Output Only] A list of accelerator configurations assigned to this + // machine type. repeated Accelerators accelerators = 269577064; // [Output Only] The architecture of the machine type. @@ -24527,27 +52160,32 @@ message MachineType { // [Output Only] The configuration of bundled local SSD for the machine type. optional BundledLocalSsds bundled_local_ssds = 387462016; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // [Output Only] The deprecation status associated with this machine type. Only applicable if the machine type is unavailable. + // [Output Only] The deprecation status associated with this machine type. + // Only applicable if the machine type is unavailable. optional DeprecationStatus deprecated = 515138995; // [Output Only] An optional textual description of the resource. optional string description = 422937596; - // [Output Only] The number of virtual CPUs that are available to the instance. + // [Output Only] The number of virtual CPUs that are available to the + // instance. optional int32 guest_cpus = 393356754; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; optional int32 image_space_gb = 75331864; - // [Output Only] Whether this machine type has a shared CPU. See Shared-core machine types for more information. + // [Output Only] Whether this machine type has a shared CPU. SeeShared-core machine + // types for more information. optional bool is_shared_cpu = 521399555; - // [Output Only] The type of the resource. Always compute#machineType for machine types. + // [Output Only] The type of the resource. Alwayscompute#machineType for machine types. optional string kind = 3292052; // [Output Only] Maximum persistent disks allowed. @@ -24556,7 +52194,8 @@ message MachineType { // [Output Only] Maximum total persistent disks size (GB) allowed. optional int64 maximum_persistent_disks_size_gb = 154274471; - // [Output Only] The amount of physical memory available to the instance, defined in MB. + // [Output Only] The amount of physical memory available to the instance, + // defined in MB. optional int32 memory_mb = 116001171; // [Output Only] Name of the resource. @@ -24565,7 +52204,8 @@ message MachineType { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] The name of the zone where the machine type resides, such as us-central1-a. + // [Output Only] The name of the zone where the machine type resides, + // such as us-central1-a. optional string zone = 3744684; } @@ -24578,10 +52218,15 @@ message MachineTypeAggregatedList { // A list of MachineTypesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#machineTypeAggregatedList for aggregated lists of machine types. + // [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for aggregated lists of + // machine types. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -24603,10 +52248,15 @@ message MachineTypeList { // A list of MachineType resources. repeated MachineType items = 100526016; - // [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + // [Output Only] Type of resource. Always compute#machineTypeList + // for lists of machine types. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -24622,14 +52272,40 @@ message MachineTypesScopedList { // [Output Only] A list of machine types contained in this scope. repeated MachineType machine_types = 79720065; - // [Output Only] An informational warning that appears when the machine types list is empty. + // [Output Only] An informational warning that appears when the machine types + // list is empty. optional Warning warning = 50704284; } // A Managed Instance resource. message ManagedInstance { - // [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. + // [Output Only] The current action that the managed instance group has + // scheduled for the instance. Possible values: + // + // - NONE The instance is running, and the managed + // instance group does not have any scheduled actions for this instance. + // - CREATING The managed instance group is creating this + // instance. If the group fails to create this instance, it will try again + // until it is successful. + // - CREATING_WITHOUT_RETRIES The managed instance group + // is attempting to create this instance only once. If the group fails + // to create this instance, it does not try again and the group'stargetSize value is decreased instead. + // - RECREATING The managed instance group is recreating + // this instance. + // - DELETING The managed instance group is permanently + // deleting this instance. + // - ABANDONING The managed instance group is abandoning + // this instance. The instance will be removed from the instance group + // and from any target pools that are associated with this group. + // - RESTARTING The managed instance group is restarting + // the instance. + // - REFRESHING The managed instance group is applying + // configuration changes to the instance without stopping it. For example, + // the group can update the target pool list for an instance without + // stopping that instance. + // - VERIFYING The managed instance group has created the + // instance and it is in the process of being verified. // Additional supported values which may be not listed in the enum directly due to technical reasons: // STOPPING // SUSPENDING @@ -24637,25 +52313,35 @@ message ManagedInstance { // A value indicating that the enum field is not set. UNDEFINED_CURRENT_ACTION = 0; - // The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. + // The managed instance group is abandoning this instance. The instance + // will be removed from the instance group and from any target pools that + // are associated with this group. ABANDONING = 388244813; - // The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. + // The managed instance group is creating this instance. If the group + // fails to create this instance, it will try again until it is + // successful. CREATING = 455564985; - // The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased. + // The managed instance group is attempting to create this instance + // only once. If the group fails to create this instance, it does + // not try again and the group's targetSize value is + // decreased. CREATING_WITHOUT_RETRIES = 428843785; // The managed instance group is permanently deleting this instance. DELETING = 528602024; - // The managed instance group has not scheduled any actions for this instance. + // The managed instance group has not scheduled any actions for this + // instance. NONE = 2402104; // The managed instance group is recreating this instance. RECREATING = 287278572; - // The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. + // The managed instance group is applying configuration changes to the + // instance without stopping it. For example, the group can update the + // target pool list for an instance without stopping that instance. REFRESHING = 163266343; // The managed instance group is restarting this instance. @@ -24667,12 +52353,20 @@ message ManagedInstance { // The managed instance group is starting this instance. STARTING = 488820800; - // The managed instance group is verifying this already created instance. Verification happens every time the instance is (re)created or restarted and consists of: 1. Waiting until health check specified as part of this managed instance group's autohealing policy reports HEALTHY. Note: Applies only if autohealing policy has a health check specified 2. Waiting for addition verification steps performed as post-instance creation (subject to future extensions). + // The managed instance group is verifying this already created instance. + // Verification happens every time the instance is (re)created or restarted + // and consists of: + // 1. Waiting until health check specified as part of this managed instance + // group's autohealing policy reports HEALTHY. + // Note: Applies only if autohealing policy has a health check specified + // 2. Waiting for addition verification steps performed as post-instance + // creation (subject to future extensions). VERIFYING = 16982185; } - // [Output Only] The status of the instance. This field is empty when the instance does not exist. + // [Output Only] The status of the instance. This field is empty when + // the instance does not exist. // Additional supported values which may be not listed in the enum directly due to technical reasons: // RUNNING // STOPPED @@ -24683,10 +52377,12 @@ message ManagedInstance { // A value indicating that the enum field is not set. UNDEFINED_INSTANCE_STATUS = 0; - // The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc. + // The instance is halted and we are performing tear down tasks like network + // deprogramming, releasing quota, IP, tearing down disks etc. DEPROVISIONING = 428935662; - // For Flex Start provisioning instance is waiting for available capacity from Dynamic Workload Scheduler (DWS). + // For Flex Start provisioning instance is waiting for available capacity + // from Dynamic Workload Scheduler (DWS). PENDING = 35394935; // The instance is gracefully shutting down. @@ -24700,7 +52396,8 @@ message ManagedInstance { RUNNING = 121282975; - // All required resources have been allocated and the instance is being started. + // All required resources have been allocated and the instance + // is being started. STAGING = 431072283; STOPPED = 444276141; @@ -24711,12 +52408,15 @@ message ManagedInstance { SUSPENDING = 514206246; - // The instance has stopped (either by explicit action or underlying failure). + // The instance has stopped (either by explicit action or underlying + // failure). TERMINATED = 250018339; } - // [Output Only] The eventual status of the instance. The instance group manager will not be identified as stable till each managed instance reaches its targetStatus. + // [Output Only] The eventual status of the instance. The instance group + // manager will not be identified as stable till each managed instance reaches + // its targetStatus. // Additional supported values which may be not listed in the enum directly due to technical reasons: // RUNNING // STOPPED @@ -24725,7 +52425,8 @@ message ManagedInstance { // A value indicating that the enum field is not set. UNDEFINED_TARGET_STATUS = 0; - // The managed instance will eventually be ABANDONED, i.e. dissociated from the managed instance group. + // The managed instance will eventually be ABANDONED, i.e. dissociated + // from the managed instance group. ABANDONED = 81797556; // The managed instance will eventually be DELETED. @@ -24733,45 +52434,82 @@ message ManagedInstance { } - // [Output Only] Current all-instances configuration revision applied to this instance. + // [Output Only] Current all-instances configuration revision applied to this + // instance. optional ManagedInstanceAllInstancesConfig all_instances_config = 112596737; - // [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. + // [Output Only] The current action that the managed instance group has + // scheduled for the instance. Possible values: + // + // - NONE The instance is running, and the managed + // instance group does not have any scheduled actions for this instance. + // - CREATING The managed instance group is creating this + // instance. If the group fails to create this instance, it will try again + // until it is successful. + // - CREATING_WITHOUT_RETRIES The managed instance group + // is attempting to create this instance only once. If the group fails + // to create this instance, it does not try again and the group'stargetSize value is decreased instead. + // - RECREATING The managed instance group is recreating + // this instance. + // - DELETING The managed instance group is permanently + // deleting this instance. + // - ABANDONING The managed instance group is abandoning + // this instance. The instance will be removed from the instance group + // and from any target pools that are associated with this group. + // - RESTARTING The managed instance group is restarting + // the instance. + // - REFRESHING The managed instance group is applying + // configuration changes to the instance without stopping it. For example, + // the group can update the target pool list for an instance without + // stopping that instance. + // - VERIFYING The managed instance group has created the + // instance and it is in the process of being verified. // Check the CurrentAction enum for the list of possible values. optional string current_action = 178475964; - // [Output only] The unique identifier for this resource. This field is empty when instance does not exist. + // [Output only] The unique identifier for this resource. This field is empty + // when instance does not exist. optional uint64 id = 3355; - // [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created. + // [Output Only] The URL of the instance. The URL can exist even if the + // instance has not yet been created. optional string instance = 18257045; // [Output Only] Health state of the instance per health-check. repeated ManagedInstanceInstanceHealth instance_health = 382667078; - // [Output Only] The status of the instance. This field is empty when the instance does not exist. + // [Output Only] The status of the instance. This field is empty when + // the instance does not exist. // Check the InstanceStatus enum for the list of possible values. optional string instance_status = 174577372; - // [Output Only] Information about the last attempt to create or delete the instance. + // [Output Only] Information about the last attempt to create or delete + // the instance. optional ManagedInstanceLastAttempt last_attempt = 434771492; - // [Output Only] The name of the instance. The name always exists even if the instance has not yet been created. + // [Output Only] The name of the instance. The name always exists even if the + // instance has not yet been created. optional string name = 3373707; - // [Output Only] Preserved state applied from per-instance config for this instance. + // [Output Only] Preserved state applied from per-instance config + // for this instance. optional PreservedState preserved_state_from_config = 98661858; - // [Output Only] Preserved state generated based on stateful policy for this instance. + // [Output Only] Preserved state generated based on stateful policy + // for this instance. optional PreservedState preserved_state_from_policy = 470783954; - // [Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy. + // [Output Only] Instance properties selected for this instance resulting from + // InstanceFlexibilityPolicy. optional ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825; - // [Output Only] Information about the termination timestamp of the instance, if applicable. + // [Output Only] Information about the termination timestamp of the instance, + // if applicable. optional ManagedInstanceScheduling scheduling = 386688404; - // [Output Only] The eventual status of the instance. The instance group manager will not be identified as stable till each managed instance reaches its targetStatus. + // [Output Only] The eventual status of the instance. The instance group + // manager will not be identified as stable till each managed instance reaches + // its targetStatus. // Check the TargetStatus enum for the list of possible values. optional string target_status = 307799648; @@ -24782,7 +52520,8 @@ message ManagedInstance { // message ManagedInstanceAllInstancesConfig { - // [Output Only] Current all-instances configuration revision. This value is in RFC3339 text format. + // [Output Only] Current all-instances configuration revision. + // This value is in RFC3339 text format. optional string revision = 276084699; } @@ -24794,19 +52533,26 @@ message ManagedInstanceInstanceHealth { // A value indicating that the enum field is not set. UNDEFINED_DETAILED_HEALTH_STATE = 0; - // The instance is being drained. The existing connections to the instance have time to complete, but the new ones are being refused. + // The instance is being drained. The existing connections to the instance + // have time to complete, but the new ones are being refused. DRAINING = 480455402; - // The instance is reachable i.e. a connection to the application health checking endpoint can be established, and conforms to the requirements defined by the health check. + // The instance is reachable i.e. a connection to the application health + // checking endpoint can be established, and conforms to the requirements + // defined by the health check. HEALTHY = 439801213; - // The instance is unreachable i.e. a connection to the application health checking endpoint cannot be established, or the server does not respond within the specified timeout. + // The instance is unreachable i.e. a connection to the application health + // checking endpoint cannot be established, or the server does not respond + // within the specified timeout. TIMEOUT = 477813057; - // The instance is reachable, but does not conform to the requirements defined by the health check. + // The instance is reachable, but does not conform to the requirements + // defined by the health check. UNHEALTHY = 462118084; - // The health checking system is aware of the instance but its health is not known at the moment. + // The health checking system is aware of the instance but its health is + // not known at the moment. UNKNOWN = 433141802; } @@ -24815,21 +52561,25 @@ message ManagedInstanceInstanceHealth { // Check the DetailedHealthState enum for the list of possible values. optional string detailed_health_state = 510470173; - // [Output Only] The URL for the health check that verifies whether the instance is healthy. + // [Output Only] The URL for the health check that verifies whether the + // instance is healthy. optional string health_check = 308876645; } // message ManagedInstanceLastAttempt { - // [Output Only] Encountered errors during the last attempt to create or delete the instance. + // [Output Only] Encountered errors during the last attempt to create or + // delete the instance. optional ManagedInstanceLastAttemptErrors errors = 315977579; } -// [Output Only] Encountered errors during the last attempt to create or delete the instance. +// [Output Only] Encountered errors during the last attempt to create or +// delete the instance. message ManagedInstanceLastAttemptErrors { - // [Output Only] The array of errors encountered while processing this operation. + // [Output Only] The array of errors encountered while processing this + // operation. repeated Errors errors = 315977579; } @@ -24841,7 +52591,8 @@ message ManagedInstancePropertiesFromFlexibilityPolicy { // A value indicating that the enum field is not set. UNDEFINED_PROVISIONING_MODEL = 0; - // Instance is provisioned using the Flex Start provisioning model and has a limited runtime. + // Instance is provisioned using the Flex Start provisioning model and + // has a limited runtime. FLEX_START = 101746812; // Bound to the lifecycle of the reservation in which it is provisioned. @@ -24866,14 +52617,16 @@ message ManagedInstancePropertiesFromFlexibilityPolicy { // message ManagedInstanceScheduling { - // [Output Only] The timestamp at which the managed instance will be terminated. This is in RFC3339 text format. + // [Output Only] The timestamp at which the managed instance will be + // terminated. This is in RFC3339 text format. optional string termination_timestamp = 364180891; } // message ManagedInstanceVersion { - // [Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }. + // [Output Only] The intended template of the instance. This field is empty + // when current_action is one of { DELETING, ABANDONING }. optional string instance_template = 309248228; // [Output Only] Name of the version. @@ -24883,50 +52636,102 @@ message ManagedInstanceVersion { // A metadata key/value entry. message Metadata { - // Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource. + // Specifies a fingerprint for this request, which is essentially a hash of + // the metadata's contents and used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update metadata. You must always provide an + // up-to-date fingerprint hash in order to update or change metadata, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve the resource. optional string fingerprint = 234678500; - // Array of key/value pairs. The total size of all keys and values must be less than 512 KB. + // Array of key/value pairs. The total size of all keys and values must be + // less than 512 KB. repeated Items items = 100526016; - // [Output Only] Type of the resource. Always compute#metadata for metadata. + // [Output Only] Type of the resource. Always compute#metadata + // for metadata. optional string kind = 3292052; } -// Opaque filter criteria used by load balancers to restrict routing configuration to a limited set of load balancing proxies. Proxies and sidecars involved in load balancing would typically present metadata to the load balancers that need to match criteria specified here. If a match takes place, the relevant configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. An example for using metadataFilters would be: if load balancing involves Envoys, they receive routing configuration when values in metadataFilters match values supplied in of their XDS requests to loadbalancers. +// Opaque filter criteria used by load balancers to restrict routing +// configuration to a limited set of load balancing proxies. Proxies and +// sidecars involved in load balancing would typically present metadata to the +// load balancers that need to match criteria specified here. If a match takes +// place, the relevant configuration is made available to those +// proxies. +// +// For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least +// one of thefilterLabels must match the corresponding label provided in +// the metadata. If its filterMatchCriteria is set to +// MATCH_ALL, then all of its filterLabels must match with +// corresponding labels provided in the metadata. +// +// An example for using metadataFilters would be: if +// load balancing involves +// Envoys, they receive routing configuration when values inmetadataFilters match values supplied in of their XDS requests to loadbalancers. message MetadataFilter { - // Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. + // Specifies how individual filter label matches + // within the list of filterLabels and contributes toward the + // overall metadataFilter match. + // + // Supported values are: + // + // - MATCH_ANY: at least one of the filterLabels + // must have a matching label in the provided metadata. + // - MATCH_ALL: all filterLabels must have + // matching labels in the provided metadata. enum FilterMatchCriteria { // A value indicating that the enum field is not set. UNDEFINED_FILTER_MATCH_CRITERIA = 0; - // Specifies that all filterLabels must match for the metadataFilter to be considered a match. + // Specifies that all filterLabels must match for themetadataFilter to be considered a match. MATCH_ALL = 180663271; - // Specifies that any filterLabel must match for the metadataFilter to be considered a match. + // Specifies that any filterLabel must match for themetadataFilter to be considered a match. MATCH_ANY = 180663346; - // Indicates that the match criteria was not set. A metadataFilter must never be created with this value. + // Indicates that the match criteria was not set. AmetadataFilter must never be created with this value. NOT_SET = 163646646; } - // The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. + // The list of label value pairs that must match labels in the provided + // metadata based on filterMatchCriteria + // + // This list must not be empty and can have at the most 64 entries. repeated MetadataFilterLabelMatch filter_labels = 307903142; - // Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. + // Specifies how individual filter label matches + // within the list of filterLabels and contributes toward the + // overall metadataFilter match. + // + // Supported values are: + // + // - MATCH_ANY: at least one of the filterLabels + // must have a matching label in the provided metadata. + // - MATCH_ALL: all filterLabels must have + // matching labels in the provided metadata. // Check the FilterMatchCriteria enum for the list of possible values. optional string filter_match_criteria = 239970368; } -// MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the load balancer. +// MetadataFilter label name value pairs that are expected +// to match corresponding labels presented as metadata to the load balancer. message MetadataFilterLabelMatch { - // Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long. + // Name of metadata label. + // + // The name can have a maximum length of 1024 characters and must be at + // least 1 character long. optional string name = 3373707; - // The value of the label must match the specified value. value can have a maximum length of 1024 characters. + // The value of the label must match the specified value. + // + // value can have a maximum length of 1024 characters. optional string value = 111972721; } @@ -24951,7 +52756,19 @@ message MoveAddressRequest { // The body resource for this request RegionAddressesMoveRequest region_addresses_move_request_resource = 409081924 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -24967,7 +52784,19 @@ message MoveDiskProjectRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -24977,13 +52806,27 @@ message MoveFirewallPolicyRequest { // Name of the firewall policy to update. string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; - // The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + // The new parent of the firewall policy. The ID can be either be + // "folders/[FOLDER_ID]" if the parent is a folder or + // "organizations/[ORGANIZATION_ID]" if the parent is an organization. string parent_id = 459714768 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "parent_id" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -25002,7 +52845,19 @@ message MoveGlobalAddressRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -25018,7 +52873,19 @@ message MoveInstanceProjectRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -25028,7 +52895,19 @@ message MoveOrganizationSecurityPolicyRequest { // The new parent of the security policy. optional string parent_id = 459714768 [(google.cloud.operation_request_field) = "parent_id"]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -25038,22 +52917,32 @@ message MoveOrganizationSecurityPolicyRequest { // Multi-MIG represents a group of managed instance groups. message MultiMig { - // [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + // [Output only] The creation timestamp of this multi-MIG in RFC3339 + // text format. optional string creation_timestamp = 30525366; // An optional description of this resource. optional string description = 422937596; - // [Output only] The unique identifier for this resource type. The server generates this identifier. + // [Output only] The unique identifier for this resource type. The server + // generates this identifier. optional uint64 id = 3355; - // [Output only] Type of the resource. Always compute#multiMig for multi-MIGs. + // [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. optional string kind = 3292052; - // The name of the multi-MIG. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // The name of the multi-MIG. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + // must be a lowercase letter, and all following characters must be a dash, + // lowercase letter, or digit, except the last character, which cannot be a + // dash. optional string name = 3373707; - // [Output only] The URL of the region where the resource resides. You must specify this field as part of the HTTP request URL. You cannot set the region as a field in the request body. + // [Output only] The URL of the region where the resource resides. You must + // specify this field as part of the HTTP request URL. You cannot set the + // region as a field in the request body. optional string region = 138946292; // Resource policies for this multi-MIG. @@ -25066,16 +52955,25 @@ message MultiMig { } -// Resource policies message for a multi-MIG. Specifies the workload policy configuration of the multi-MIG. +// Resource policies message for a multi-MIG. Specifies the workload policy +// configuration of the multi-MIG. message MultiMigResourcePolicies { - // The URL of the workload policy for this multi-MIG. It can be a full or partial URL. For example, the following are all valid URLs to a workload policy: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy + // The URL of the workload policy for this multi-MIG. + // It can be a full or partial URL. For example, the following are + // all valid URLs to a workload policy: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy + // - projects/project/regions/region/resourcePolicies/resourcePolicy + // - regions/region/resourcePolicies/resourcePolicy optional string workload_policy = 114721530; } // message MultiMigStatus { - // [Output Only] The accelerator topology applied to this multi-MIG. Currently only one accelerator topology is supported. + // [Output Only] The accelerator topology applied to this multi-MIG. + // Currently only one accelerator topology is supported. repeated MultiMigStatusAcceleratorTopology applied_accelerator_topologies = 481392547; } @@ -25102,19 +53000,22 @@ message MultiMigStatusAcceleratorTopology { // The accelerator topology failed. FAILED = 455706685; - // The configuration is incomplete and the accelerator topology cannot be activated due to insufficient number of running VMs. + // The configuration is incomplete and the accelerator topology cannot + // be activated due to insufficient number of running VMs. INCOMPLETE = 11941214; } - // [Output Only] Topology in the format of: "16x16", "4x4x4", etc. The value is the same as configured in the WorkloadPolicy. + // [Output Only] Topology in the format of: "16x16", "4x4x4", etc. + // The value is the same as configured in the WorkloadPolicy. optional string accelerator_topology = 389323203; // [Output Only] The state of the accelerator topology. // Check the AcceleratorTopologyState enum for the list of possible values. optional string accelerator_topology_state = 228860693; - // [Output Only] The result of the latest accelerator topology state check. + // [Output Only] The result of the latest accelerator topology state + // check. optional MultiMigStatusAcceleratorTopologyAcceleratorTopologyStateLastCheck accelerator_topology_state_last_check = 386725257; } @@ -25124,7 +53025,9 @@ message MultiMigStatusAcceleratorTopologyAcceleratorTopologyStateLastCheck { // [Output Only] Encountered errors on the last state check. optional Error error = 96784904; - // [Output Only] Timestamp is shown only if there is an error. The field has // RFC3339 // text format. + // [Output Only] Timestamp is shown only if there is an error. The field + // has // RFC3339 // + // text format. optional string timestamp = 55126294; } @@ -25142,7 +53045,10 @@ message MultiMigsList { // Type of resource. optional string kind = 3292052; - // This token allows you to get the next page of results for maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // This token allows you to get the next page of results formaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output only] Server-defined URL for this resource. @@ -25157,7 +53063,8 @@ message MultiMigsList { // The named port. For example: <"http", 80>. message NamedPort { - // The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. + // The name for this named port. + // The name must be 1-63 characters long, and comply withRFC1035. optional string name = 3373707; // The port number, which can be a value between 1 and 65535. @@ -25188,7 +53095,8 @@ message NatIpInfoNatIpInfoMapping { } - // Specifies whether NAT IP is currently serving at least one endpoint or not. + // Specifies whether NAT IP is currently serving at least one endpoint or + // not. enum Usage { // A value indicating that the enum field is not set. UNDEFINED_USAGE = 0; @@ -25206,7 +53114,8 @@ message NatIpInfoNatIpInfoMapping { // NAT IP address. For example: 203.0.113.11. optional string nat_ip = 21113093; - // Specifies whether NAT IP is currently serving at least one endpoint or not. + // Specifies whether NAT IP is currently serving at least one endpoint or + // not. // Check the Usage enum for the list of possible values. optional string usage = 111574433; @@ -25219,9 +53128,14 @@ message NatIpInfoResponse { } -// Represents a VPC Network resource. Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network. +// Represents a VPC Network resource. +// +// Networks connect resources to each other and to the internet. For more +// information, readVirtual Private Cloud (VPC) Network. message Network { - // The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. + // The network firewall policy enforcement order. Can be either + // AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to + // AFTER_CLASSIC_FIREWALL if the field is not specified. enum NetworkFirewallPolicyEnforcementOrder { // A value indicating that the enum field is not set. UNDEFINED_NETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER = 0; @@ -25232,56 +53146,101 @@ message Network { } - // Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created. + // Deprecated in favor of subnet mode networks. + // The range of internal addresses that are legal on this network. This + // range is aCIDR specification, for example:192.168.0.0/16. Provided by the client when the network is + // created. optional string I_pv4_range = 59234358; - // Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method. + // Must be set to create a VPC network. If not set, a legacy network is + // created. + // + // When set to true, the VPC network is created in auto mode. + // When set to false, the VPC network is created in custom mode. + // + // An auto mode VPC network starts with one subnet per region. Each subnet + // has a predetermined range as described inAuto mode VPC network IP ranges. + // + // For custom mode VPC networks, you can add subnets using the subnetworksinsert + // method. optional bool auto_create_subnetworks = 256156690; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this field when you create the resource. + // An optional description of this resource. Provide this field when you + // create the resource. optional string description = 422937596; - // Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. . + // Enable ULA internal ipv6 on this network. Enabling this feature will assign + // a /48 from google defined ULA prefix fd20::/20. + // . optional bool enable_ula_internal_ipv6 = 423757720; // [Output Only] URL of the firewall policy the network is associated with. optional string firewall_policy = 498173265; - // [Output Only] The gateway address for default routing out of the network, selected by Google Cloud. + // [Output Only] The gateway address for default routing out of the network, + // selected by Google Cloud. optional string gateway_i_pv4 = 178678877; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. . + // When enabling ula internal ipv6, caller optionally can specify the /48 + // range they want from the google defined ULA prefix fd20::/20. The input + // must be a valid /48 ULA IPv6 address and must be within the fd20::/20. + // Operation will fail if the speficied /48 is already in used by another + // resource. If the field is not speficied, then a /48 range will be randomly + // allocated from fd20::/20 and returned via this field. + // . optional string internal_ipv6_range = 277456807; - // [Output Only] Type of the resource. Always compute#network for networks. + // [Output Only] Type of the resource. Always compute#network for + // networks. optional string kind = 3292052; - // Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460. + // Maximum Transmission Unit in bytes. + // The minimum value for this field is 1300 and the maximum value is 8896. + // The suggested value is 1500, which is the default MTU used on the + // Internet, or 8896 if you want to use Jumbo frames. If unspecified, the + // value defaults to 1460. optional int32 mtu = 108462; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a + // lowercase letter, and all following characters (except for the last + // character) must be a dash, lowercase letter, or digit. The last character + // must be a lowercase letter or digit. optional string name = 3373707; - // The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. + // The network firewall policy enforcement order. Can be either + // AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to + // AFTER_CLASSIC_FIREWALL if the field is not specified. // Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values. optional string network_firewall_policy_enforcement_order = 6504784; - // A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name} + // A full or partial URL of the network profile to apply to this network. + // This field can be set only at resource creation time. For example, the + // following are valid URLs: + // + // - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} + // - projects/{project_id}/global/networkProfiles/{network_profile_name} optional string network_profile = 173112472; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional NetworkParams params = 78313862; // [Output Only] A list of network peerings for the resource. repeated NetworkPeering peerings = 69883187; - // The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. + // The network-level routing configuration for this network. Used by Cloud + // Router to determine what type of network-wide routing behavior to enforce. optional NetworkRoutingConfig routing_config = 523556059; // [Output Only] Server-defined URL for the resource. @@ -25290,12 +53249,14 @@ message Network { // [Output Only] Server-defined URL for this resource with the resource id. optional string self_link_with_id = 44520962; - // [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. + // [Output Only] Server-defined fully-qualified URLs for all subnetworks + // in this VPC network. repeated string subnetworks = 415853125; } -// NetworkAttachments A network attachment resource ... +// NetworkAttachments +// A network attachment resource ... message NetworkAttachment { // enum ConnectionPreference { @@ -25310,41 +53271,62 @@ message NetworkAttachment { } - // [Output Only] An array of connections for all the producers connected to this network attachment. + // [Output Only] An array of connections for all the producers connected + // to this network attachment. repeated NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813; // // Check the ConnectionPreference enum for the list of possible values. optional string connection_preference = 285818076; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch. + // Fingerprint of this resource. A hash of the contents stored + // in this object. This field is used in optimistic locking. An up-to-date + // fingerprint must be provided in order to patch. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource type. The server generates this identifier. + // [Output Only] The unique identifier for the resource type. The server + // generates this identifier. optional uint64 id = 3355; // [Output Only] Type of the resource. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks. + // [Output Only] The URL of the network which the Network Attachment + // belongs to. Practically it is inferred by fetching the network of the first + // subnetwork associated. Because it is required that all the subnetworks must + // be from the same network, it is assured that the Network Attachment belongs + // to the same network as all the subnetworks. optional string network = 232872494; - // Projects that are allowed to connect to this network attachment. The project can be specified using its id or number. + // Projects that are allowed to connect to this network attachment. + // The project can be specified using its id or number. repeated string producer_accept_lists = 202804523; - // Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number. + // Projects that are not allowed to connect to this network attachment. + // The project can be specified using its id or number. repeated string producer_reject_lists = 4112002; - // [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the network attachment resides. + // This field applies only to the region resource. You must specify this + // field as part of the HTTP request URL. It is not settable as a field in + // the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. @@ -25353,7 +53335,9 @@ message NetworkAttachment { // [Output Only] Server-defined URL for this resource's resource id. optional string self_link_with_id = 44520962; - // An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment. + // An array of URLs where each entry is the URL of a subnet + // provided by the service consumer to use for + // endpoints in the producers that connect to this network attachment. repeated string subnetworks = 415853125; } @@ -25368,7 +53352,11 @@ message NetworkAttachmentAggregatedList { optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -25395,7 +53383,8 @@ message NetworkAttachmentConnectedEndpoint { // The consumer needs to take further action before traffic can be served. NEEDS_ATTENTION = 344491452; - // The consumer neither allows nor prohibits traffic from the producer to reach its VPC. + // The consumer neither allows nor prohibits traffic + // from the producer to reach its VPC. PENDING = 35394935; // The consumer prohibits traffic from the producer to reach its VPC. @@ -25405,10 +53394,13 @@ message NetworkAttachmentConnectedEndpoint { } - // The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless. + // The IPv4 address assigned to the producer instance network interface. + // This value will be a range in case of Serverless. optional string ip_address = 406272220; - // The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6. + // The IPv6 address assigned to the producer instance network interface. + // This is only assigned when the stack types of both the instance network + // interface and the consumer subnet are IPv4_IPv6. optional string ipv6_address = 341563804; // The project id or number of the interface to which the IP was assigned. @@ -25421,10 +53413,12 @@ message NetworkAttachmentConnectedEndpoint { // Check the Status enum for the list of possible values. optional string status = 181260274; - // The subnetwork used to assign the IP to the producer instance network interface. + // The subnetwork used to assign the IP to the producer + // instance network interface. optional string subnetwork = 307827694; - // [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + // [Output Only] The CIDR range of the subnet from which the IPv4 internal + // IP was allocated from. optional string subnetwork_cidr_range = 383249827; } @@ -25439,7 +53433,11 @@ message NetworkAttachmentList { optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -25455,35 +53453,56 @@ message NetworkAttachmentsScopedList { // A list of NetworkAttachments contained in this scope. repeated NetworkAttachment network_attachments = 521514783; - // Informational warning which replaces the list of network attachments when the list is empty. + // Informational warning which replaces the list of + // network attachments when the list is empty. optional Warning warning = 50704284; } // Represents a Google Cloud Armor network edge security service resource. message NetworkEdgeSecurityService { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a NetworkEdgeSecurityService. An up-to-date fingerprint must be + // provided in order to update the NetworkEdgeSecurityService, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a NetworkEdgeSecurityService. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output only] Type of the resource. Always compute#networkEdgeSecurityService for NetworkEdgeSecurityServices + // [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + // NetworkEdgeSecurityServices optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // [Output Only] URL of the region where the resource resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the resource resides. You must + // specify this field as part of the HTTP request URL. It is not settable as a + // field in the request body. optional string region = 138946292; - // The resource URL for the network edge security service associated with this network edge security service. + // The resource URL for the network edge security service associated with this + // network edge security service. optional string security_policy = 171082513; // [Output Only] Server-defined URL for the resource. @@ -25504,10 +53523,15 @@ message NetworkEdgeSecurityServiceAggregatedList { // A list of NetworkEdgeSecurityServicesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security Services. + // [Output Only] Type of resource. Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of + // Network Edge Security Services. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -25526,7 +53550,8 @@ message NetworkEdgeSecurityServicesScopedList { // A list of NetworkEdgeSecurityServices contained in this scope. repeated NetworkEdgeSecurityService network_edge_security_services = 35530156; - // Informational warning which replaces the list of security policies when the list is empty. + // Informational warning which replaces the list of + // security policies when the list is empty. optional Warning warning = 50704284; } @@ -25536,29 +53561,58 @@ message NetworkEndpoint { // Optional metadata defined as annotations on the network endpoint. map annotations = 112032548; - // Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type. + // Represents the port number to which PSC consumer sends packets. + // + // Optional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type. optional int32 client_destination_port = 123765766; - // Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT. + // Optional fully qualified domain name of network endpoint. This can only be + // specified when NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT. optional string fqdn = 3150485; - // The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance. + // The name or a URL of VM instance of this network endpoint. + // Optional, the field presence depends on the network endpoint type. The + // field is required for network endpoints of type GCE_VM_IP andGCE_VM_IP_PORT. + // + // The instance must be in the same zone of network endpoint group (for zonal + // NEGs) or in the zone within the region of the NEG (for regional NEGs). + // If the ipAddress is specified, it must belongs to the VM + // instance. + // + // The name must be 1-63 characters long, and comply withRFC1035 + // or be a valid URL pointing to an existing instance. optional string instance = 18257045; - // Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork. + // Optional IPv4 address of network endpoint. The IP address must belong to a + // VM in Compute Engine (either the primary IP or as part of an aliased IP + // range). If the IP address is not specified, then the primary IP address for + // the VM instance in the network that the network endpoint group belongs to + // will be used. + // + // This field is redundant and need not be set for network endpoints of typeGCE_VM_IP. If set, it must be set to the primary internal IP + // address of the attached VM instance that matches the subnetwork of the NEG. + // The primary internal IP address from any NIC of a multi-NIC VM instance can + // be added to a NEG as long as it matches the NEG subnetwork. optional string ip_address = 406272220; // Optional IPv6 address of network endpoint. optional string ipv6_address = 341563804; - // Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. This field can not be set for network endpoints of type GCE_VM_IP. + // Optional port number of network endpoint. If not specified, the + // defaultPort for the network endpoint group will be used. + // + // This field can not be set for network endpoints of typeGCE_VM_IP. optional int32 port = 3446913; } -// Represents a collection of network endpoints. A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs for different use cases, see Network endpoint groups overview. +// Represents a collection of network endpoints. +// +// A network endpoint group (NEG) defines how a set of endpoints should be +// reached, whether they are reachable, and where they are located. +// For more information about using NEGs for different use cases, seeNetwork endpoint groups overview. message NetworkEndpointGroup { - // Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. + // Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. enum NetworkEndpointType { // A value indicating that the enum field is not set. UNDEFINED_NETWORK_ENDPOINT_TYPE = 0; @@ -25569,19 +53623,24 @@ message NetworkEndpointGroup { // The network endpoint is represented by IP address and port pair. GCE_VM_IP_PORT = 501838375; - // The network endpoint is represented by an IP, Port and Client Destination Port. + // The network endpoint is represented by an IP, Port and Client Destination + // Port. GCE_VM_IP_PORTMAP = 22819253; - // The network endpoint is represented by fully qualified domain name and port. + // The network endpoint is represented by fully qualified domain name and + // port. INTERNET_FQDN_PORT = 404154477; // The network endpoint is represented by an internet IP address and port. INTERNET_IP_PORT = 477719963; - // The network endpoint is represented by an IP address and port. The endpoint belongs to a VM or pod running in a customer's on-premises. + // The network endpoint is represented by an IP address and port. The + // endpoint belongs to a VM or pod running in a customer's on-premises. NON_GCP_PRIVATE_IP_PORT = 336447968; - // The network endpoint is either public Google APIs or services exposed by other GCP Project with a Service Attachment. The connection is set up by private service connect + // The network endpoint is either public Google APIs or + // services exposed by other GCP Project with a Service Attachment. + // The connection is set up by private service connect PRIVATE_SERVICE_CONNECT = 48134724; // The network endpoint is handled by specified serverless infrastructure. @@ -25592,65 +53651,88 @@ message NetworkEndpointGroup { // Optional. Metadata defined as annotations on the network endpoint group. map annotations = 112032548; - // Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. + // Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set. optional NetworkEndpointGroupAppEngine app_engine = 340788768; - // Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. + // Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set. optional NetworkEndpointGroupCloudFunction cloud_function = 519893666; - // Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. + // Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or cloudFunction may be set. optional NetworkEndpointGroupCloudRun cloud_run = 111060353; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified. + // The default port used if the port number is not specified in the network + // endpoint. + // + // Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or PRIVATE_SERVICE_CONNECT, this + // field must not be specified. optional int32 default_port = 423377855; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group. + // [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint group. optional string kind = 3292052; - // This field is only valid when the network endpoint group is used for load balancing. [Deprecated] This field is deprecated. + // This field is only valid when the network endpoint group is used for load + // balancing. + // [Deprecated] This field is deprecated. optional NetworkEndpointGroupLbNetworkEndpointGroup load_balancer = 525335631; - // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; - // The URL of the network to which all network endpoints in the NEG belong. Uses default project network if unspecified. + // The URL of the network to which all network endpoints in the NEG belong. + // Uses default project network if unspecified. optional string network = 232872494; - // Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. + // Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. // Check the NetworkEndpointType enum for the list of possible values. optional string network_endpoint_type = 118301523; - // Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT. + // Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. optional NetworkEndpointGroupPscData psc_data = 71937481; - // The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT. + // The target service url used to set up private service connection to + // a Google API or a PSC Producer Service Attachment. + // An example value is: asia-northeast3-cloudkms.googleapis.com. + // + // Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. optional string psc_target_service = 269132134; - // [Output Only] The URL of the region where the network endpoint group is located. + // [Output Only] The URL of theregion + // where the network endpoint group is located. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set. + // Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine, cloudFunction orserverlessDeployment may be set. optional NetworkEndpointGroupServerlessDeployment serverless_deployment = 366651272; // [Output only] Number of network endpoints in the network endpoint group. optional int32 size = 3530753; - // Optional URL of the subnetwork to which all network endpoints in the NEG belong. + // Optional URL of the subnetwork to which all network endpoints in the NEG + // belong. optional string subnetwork = 307827694; - // [Output Only] The URL of the zone where the network endpoint group is located. + // [Output Only] The URL of thezone + // where the network endpoint group is located. optional string zone = 3744684; } @@ -25663,10 +53745,15 @@ message NetworkEndpointGroupAggregatedList { // A list of NetworkEndpointGroupsScopedList resources. map items = 100526016; - // [Output Only] The resource type, which is always compute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint groups. + // [Output Only] The resource type, which is alwayscompute#networkEndpointGroupAggregatedList for aggregated + // lists of network endpoint groups. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -25680,54 +53767,136 @@ message NetworkEndpointGroupAggregatedList { } -// Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided explicitly or in the URL mask when service is present. Note: App Engine service must be in the same project and located in the same region as the Serverless NEG. +// Configuration for an App Engine network endpoint group (NEG). +// The service is optional, may be provided explicitly or in the +// URL mask. The version is optional and can only be provided +// explicitly or in the URL mask when service is present. +// +// Note: App Engine service must be in the same project and located in the +// same region as the Serverless NEG. message NetworkEndpointGroupAppEngine { - // Optional serving service. The service name is case-sensitive and must be 1-63 characters long. Example value: default, my-service. + // Optional serving service. + // + // The service name is case-sensitive and must be 1-63 + // characters long. + // + // Example value: default, my-service. optional string service = 373540533; - // An URL mask is one of the main components of the Cloud Function. A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs foo1-dot-appname.appspot.com/v1 and foo1-dot-appname.appspot.com/v2 can be backed by the same Serverless NEG with URL mask -dot-appname.appspot.com/. The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. + // An URL + // mask is one of the main components of the Cloud Function. + // + // A template to parse service and version fields + // from a request URL. URL mask allows for routing to multiple App Engine + // services without having to create multiple Network Endpoint Groups and + // backend services. + // + // For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 can be backed by the same + // Serverless NEG with URL mask-dot-appname.appspot.com/. + // The URL mask will parse them to { service = "foo1", version = "v1" + // } and { service = "foo1", version = "v2" } + // respectively. optional string url_mask = 103352252; - // Optional serving version. The version name is case-sensitive and must be 1-100 characters long. Example value: v1, v2. + // Optional serving version. + // + // The version name is case-sensitive and must be 1-100 + // characters long. + // + // Example value: v1, v2. optional string version = 351608024; } -// Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL mask. Note: Cloud Function must be in the same project and located in the same region as the Serverless NEG. +// Configuration for a Cloud Function network endpoint group (NEG). +// The function must be provided explicitly or in the URL mask. +// +// Note: Cloud Function must be in the same project and located in the same +// region as the Serverless NEG. message NetworkEndpointGroupCloudFunction { - // A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: func1. + // A user-defined name of the Cloud Function. + // + // The function name is case-sensitive and must be 1-63 + // characters long. + // + // Example value: func1. optional string function = 307196888; - // An URL mask is one of the main components of the Cloud Function. A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs mydomain.com/function1 and mydomain.com/function2 can be backed by the same Serverless NEG with URL mask /. The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. + // An URL + // mask is one of the main components of the Cloud Function. + // + // A template to parse function field from a request URL. URL + // mask allows for routing to multiple Cloud Functions without having to + // create multiple Network Endpoint Groups and backend services. + // + // For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the same + // Serverless NEG with URL mask /. The URL + // mask will parse them to { function = "function1" } and{ function = "function2" } respectively. optional string url_mask = 103352252; } -// Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG. +// Configuration for a Cloud Run network endpoint group (NEG). +// The service must be provided explicitly or in the URL mask. +// The tag is optional, may be provided explicitly or in the URL +// mask. +// +// Note: Cloud Run service must be in the same project and located in the same +// region as the Serverless NEG. message NetworkEndpointGroupCloudRun { - // Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service". + // Cloud Run service is the main resource of Cloud Run. + // + // The service must be 1-63 characters long, and comply withRFC1035. + // + // Example value: "run-service". optional string service = 373540533; - // Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010". + // Optional Cloud Run tag represents the "named-revision" to provide additional + // fine-grained traffic routing information. + // + // The tag must be 1-63 characters long, and comply withRFC1035. + // + // Example value: "revision-0010". optional string tag = 114586; - // An URL mask is one of the main components of the Cloud Function. A template to parse and fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs foo1.domain.com/bar1 and foo1.domain.com/bar2 can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask .domain.com/. The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. + // An URL + // mask is one of the main components of the Cloud Function. + // + // A template to parse and fields from a request URL. URL mask allows for + // routing to multiple Run services without having to create multiple + // network endpoint groups and backend services. + // + // For example, request URLs foo1.domain.com/bar1 andfoo1.domain.com/bar2 can be backed by the same Serverless + // Network Endpoint Group (NEG) with URL mask.domain.com/. The URL mask will + // parse them to { service="bar1", tag="foo1" } and { + // service="bar2", tag="foo2" } respectively. optional string url_mask = 103352252; } // Load balancing specific fields for network endpoint group. message NetworkEndpointGroupLbNetworkEndpointGroup { - // The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified. [Deprecated] This field is deprecated. + // The default port used if the port number is not specified in the network + // endpoint. + // + // If the network endpoint type is either GCE_VM_IP,SERVERLESS or PRIVATE_SERVICE_CONNECT, this + // field must not be specified. + // [Deprecated] This field is deprecated. optional int32 default_port = 423377855; - // The URL of the network to which all network endpoints in the NEG belong. Uses default project network if unspecified. [Deprecated] This field is deprecated. + // The URL of the network to which all network endpoints in the NEG belong. + // Uses default project network if unspecified. + // [Deprecated] This field is deprecated. optional string network = 232872494; - // Optional URL of the subnetwork to which all network endpoints in the NEG belong. [Deprecated] This field is deprecated. + // Optional URL of the subnetwork to which all network endpoints in the NEG + // belong. + // [Deprecated] This field is deprecated. optional string subnetwork = 307827694; - // [Output Only] The URL of the zone where the network endpoint group is located. [Deprecated] This field is deprecated. + // [Output Only] The URL of thezone + // where the network endpoint group is located. + // [Deprecated] This field is deprecated. optional string zone = 3744684; } @@ -25740,10 +53909,15 @@ message NetworkEndpointGroupList { // A list of NetworkEndpointGroup resources. repeated NetworkEndpointGroup items = 100526016; - // [Output Only] The resource type, which is always compute#networkEndpointGroupList for network endpoint group lists. + // [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network endpoint group + // lists. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -25754,7 +53928,8 @@ message NetworkEndpointGroupList { } -// All data that is specifically relevant to only network endpoint groups of type PRIVATE_SERVICE_CONNECT. +// All data that is specifically relevant to only network endpoint groups of +// type PRIVATE_SERVICE_CONNECT. message NetworkEndpointGroupPscData { // [Output Only] The connection status of the PSC Forwarding Rule. enum PscConnectionStatus { @@ -25764,10 +53939,13 @@ message NetworkEndpointGroupPscData { // The connection has been accepted by the producer. ACCEPTED = 246714279; - // The connection has been closed by the producer and will not serve traffic going forward. + // The connection has been closed by the producer and will not serve + // traffic going forward. CLOSED = 380163436; - // The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic. + // The connection has been accepted by the producer, but the producer + // needs to take further action before the forwarding rule can serve + // traffic. NEEDS_ATTENTION = 344491452; // The connection is pending acceptance by the producer. @@ -25780,13 +53958,18 @@ message NetworkEndpointGroupPscData { } - // [Output Only] Address allocated from given subnetwork for PSC. This IP address acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. + // [Output Only] Address allocated from given subnetwork for PSC. This IP + // address acts as a VIP for a PSC NEG, allowing it to act as an endpoint in + // L7 PSC-XLB. optional string consumer_psc_address = 452646572; - // The psc producer port is used to connect PSC NEG with specific port on the PSC Producer side; should only be used for the PRIVATE_SERVICE_CONNECT NEG type + // The psc producer port is used to connect PSC NEG with specific port on + // the PSC Producer side; should only be used for the + // PRIVATE_SERVICE_CONNECT NEG type optional int32 producer_port = 410021134; - // [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + // [Output Only] The PSC connection id of the PSC Network Endpoint Group + // Consumer. optional uint64 psc_connection_id = 292082397; // [Output Only] The connection status of the PSC Forwarding Rule. @@ -25795,18 +53978,54 @@ message NetworkEndpointGroupPscData { } -// Configuration for a serverless network endpoint group (NEG). The platform must be provided. Note: The target backend service must be in the same project and located in the same region as the Serverless NEG. +// Configuration for a serverless network endpoint group (NEG). Theplatform must be provided. +// +// Note: The target backend service must be in the same project and located in +// the same region as the Serverless NEG. message NetworkEndpointGroupServerlessDeployment { - // The platform of the backend target(s) of this NEG. The only supported value is API Gateway: apigateway.googleapis.com. + // The platform of the backend target(s) of this NEG. + // The only supported value is + // API Gateway: apigateway.googleapis.com. optional string platform = 264071283; - // The user-defined name of the workload/instance. This value must be provided explicitly or in the urlMask. The resource identified by this value is platform-specific and is as follows: 1. API Gateway: The gateway ID 2. App Engine: The service name 3. Cloud Functions: The function name 4. Cloud Run: The service name + // The user-defined name of the workload/instance. This value must be + // provided explicitly or in the urlMask. The resource + // identified by this value is platform-specific and is as follows: + // + // + // + // 1. API Gateway: The gateway ID + // 2. App Engine: The service name + // 3. Cloud Functions: The function name + // 4. Cloud Run: The service name optional string resource = 195806222; - // An URL mask is one of the main components of the Cloud Function. A template to parse platform-specific fields from a request URL. URL mask allows for routing to multiple resources on the same serverless platform without having to create multiple Network Endpoint Groups and backend resources. The fields parsed by this template are platform-specific and are as follows: 1. API Gateway: The gateway ID 2. App Engine: The service and version 3. Cloud Functions: The function name 4. Cloud Run: The service and tag + // An URL + // mask is one of the main components of the Cloud Function. + // + // A template to parse platform-specific fields from a request URL. URL mask + // allows for routing to multiple resources on the same serverless platform + // without having to create multiple Network Endpoint Groups and backend + // resources. The fields parsed by this template are platform-specific and + // are as follows: + // + // + // + // 1. API Gateway: The gateway ID + // 2. App Engine: The service and version + // 3. Cloud Functions: The function name + // 4. Cloud Run: The service and tag optional string url_mask = 103352252; - // The optional resource version. The version identified by this value is platform-specific and is follows: 1. API Gateway: Unused 2. App Engine: The service version 3. Cloud Functions: Unused 4. Cloud Run: The service tag + // The optional resource version. The version identified by this value is + // platform-specific and is follows: + // + // + // + // 1. API Gateway: Unused + // 2. App Engine: The service version + // 3. Cloud Functions: Unused + // 4. Cloud Run: The service tag optional string version = 351608024; } @@ -25827,12 +54046,16 @@ message NetworkEndpointGroupsDetachEndpointsRequest { // message NetworkEndpointGroupsListEndpointsRequest { - // Optional query parameter for showing the health status of each network endpoint. Valid options are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints will not be provided. + // Optional query parameter for showing the health status of each network + // endpoint. Valid options are SKIP or SHOW. If you + // don't specify this parameter, the health status of network endpoints will + // not be provided. enum HealthStatus { // A value indicating that the enum field is not set. UNDEFINED_HEALTH_STATUS = 0; - // Show the health status for each network endpoint. Impacts latency of the call. + // Show the health status for each network endpoint. Impacts latency of the + // call. SHOW = 2544381; // Health status for network endpoints will not be provided. @@ -25840,10 +54063,16 @@ message NetworkEndpointGroupsListEndpointsRequest { } - // Optional list of endpoints to query. This is a more efficient but also limited version of filter parameter. Endpoints in the filter must have ip_address and port fields populated, other fields are not supported. + // Optional list of endpoints to query. + // This is a more efficient but also limited version of filter parameter. + // Endpoints in the filter must have ip_address and port fields populated, + // other fields are not supported. repeated NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter endpoint_filters = 382665553; - // Optional query parameter for showing the health status of each network endpoint. Valid options are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints will not be provided. + // Optional query parameter for showing the health status of each network + // endpoint. Valid options are SKIP or SHOW. If you + // don't specify this parameter, the health status of network endpoints will + // not be provided. // Check the HealthStatus enum for the list of possible values. optional string health_status = 380545845; @@ -25863,10 +54092,15 @@ message NetworkEndpointGroupsListNetworkEndpoints { // A list of NetworkEndpointWithHealthStatus resources. repeated NetworkEndpointWithHealthStatus items = 100526016; - // [Output Only] The resource type, which is always compute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in the specified network endpoint group. + // [Output Only] The resource type, which is alwayscompute#networkEndpointGroupsListNetworkEndpoints for the list + // of network endpoints in the specified network endpoint group. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Informational warning message. @@ -25876,17 +54110,22 @@ message NetworkEndpointGroupsListNetworkEndpoints { // message NetworkEndpointGroupsScopedList { - // [Output Only] The list of network endpoint groups that are contained in this scope. + // [Output Only] The list ofnetwork + // endpoint groups that are contained in this scope. repeated NetworkEndpointGroup network_endpoint_groups = 29346733; - // [Output Only] An informational warning that replaces the list of network endpoint groups when the list is empty. + // [Output Only] An informational warning that replaces the list of network + // endpoint groups when the list is empty. optional Warning warning = 50704284; } // message NetworkEndpointWithHealthStatus { - // [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured. + // [Output only] The health status of network endpoint. + // + // Optional. Displayed only if the network endpoint has centralized health + // checking configured. repeated HealthStatusForNetworkEndpoint healths = 258689431; // [Output only] The network endpoint. @@ -25902,10 +54141,15 @@ message NetworkFirewallPolicyAggregatedList { // A list of FirewallPoliciesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies. + // [Output Only] Type of resource. Alwayscompute#networkFirewallPoliciesAggregatedList for lists of + // network firewall policies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -25921,7 +54165,8 @@ message NetworkFirewallPolicyAggregatedList { // A network interface resource attached to an instance. message NetworkInterface { - // Indicate whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported. + // Indicate whether igmp query is enabled on the network interface + // or not. If enabled, also indicates the version of IGMP supported. enum IgmpQuery { // A value indicating that the enum field is not set. UNDEFINED_IGMP_QUERY = 0; @@ -25934,7 +54179,11 @@ message NetworkInterface { } - // [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. + // [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be + // accessed from the Internet. This field is always inherited from its + // subnetwork. + // + // Valid only if stackType is IPV4_IPV6. enum Ipv6AccessType { // A value indicating that the enum field is not set. UNDEFINED_IPV6_ACCESS_TYPE = 0; @@ -25949,7 +54198,8 @@ message NetworkInterface { } - // The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. + // The type of vNIC to be used on this interface. This may be gVNIC or + // VirtioNet. enum NicType { // A value indicating that the enum field is not set. UNDEFINED_NIC_TYPE = 0; @@ -25974,7 +54224,11 @@ message NetworkInterface { } - // The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. + // The stack type for this network interface. To assign only IPv4 addresses, + // use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. + // + // This field can be both set at instance creation and update network + // interface operations. enum StackType { // A value indicating that the enum field is not set. UNDEFINED_STACK_TYPE = 0; @@ -25992,65 +54246,119 @@ message NetworkInterface { } - // An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access. + // An array of configurations for this interface. Currently, only one access + // config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have + // no external internet access. repeated AccessConfig access_configs = 111058326; - // An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks. + // An array of alias IP ranges for this network interface. + // You can only specify this field for network interfaces in VPC networks. repeated AliasIpRange alias_ip_ranges = 165085631; - // Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date. + // Fingerprint hash of contents stored in this network interface. + // This field will be ignored when inserting an Instance or + // adding a NetworkInterface. An up-to-date + // fingerprint must be provided in order to update theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. optional string fingerprint = 234678500; - // Indicate whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported. + // Indicate whether igmp query is enabled on the network interface + // or not. If enabled, also indicates the version of IGMP supported. // Check the IgmpQuery enum for the list of possible values. optional string igmp_query = 30249546; // The prefix length of the primary internal IPv6 range. optional int32 internal_ipv6_prefix_length = 203833757; - // An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access. + // An array of IPv6 access configurations for this interface. Currently, only + // one IPv6 access config, DIRECT_IPV6, is supported. If there + // is no ipv6AccessConfig specified, then this instance will + // have no external IPv6 Internet access. repeated AccessConfig ipv6_access_configs = 483472110; - // [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. + // [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be + // accessed from the Internet. This field is always inherited from its + // subnetwork. + // + // Valid only if stackType is IPV4_IPV6. // Check the Ipv6AccessType enum for the list of possible values. optional string ipv6_access_type = 504658653; - // An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. + // An IPv6 internal network address for this network interface. To + // use a static internal IP address, it must be unused and in the same region + // as the instance's zone. If not specified, Google Cloud will automatically + // assign an internal IPv6 address from the instance's subnetwork. optional string ipv6_address = 341563804; - // [Output Only] Type of the resource. Always compute#networkInterface for network interfaces. + // [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. optional string kind = 3292052; - // [Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0. + // [Output Only] The name of the network interface, which is generated by the + // server. For a VM, the network interface uses the nicN naming + // format. Where N is a value between 0 and7. The default interface value is nic0. optional string name = 3373707; - // URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default + // URL of the VPC network resource for this instance. When creating an + // instance, if neither the network nor the subnetwork is specified, the + // default network global/networks/default is used. If the + // selected project doesn't have the default network, you must specify a + // network or subnet. If the network is not specified but the subnetwork is + // specified, the network is inferred. + // + // If you specify this property, you can specify the network as + // a full or partial URL. For example, the following are all valid URLs: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/networks/network + // - projects/project/global/networks/network + // - global/networks/default optional string network = 232872494; - // The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. + // The URL of the network attachment that this interface should connect + // to in the following format: + // projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. optional string network_attachment = 224644052; - // An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. + // An IPv4 internal IP address to assign to the instance for this network + // interface. If not specified by the user, an unused internal IP is + // assigned by the system. optional string network_i_p = 207181961; - // The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. + // The type of vNIC to be used on this interface. This may be gVNIC or + // VirtioNet. // Check the NicType enum for the list of possible values. optional string nic_type = 59810577; // Name of the parent network interface of a dynamic network interface. optional string parent_nic_name = 418764375; - // The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users. + // The networking queue count that's specified by users for the network + // interface. Both Rx and Tx queues will be set to this number. It'll be empty + // if not specified by the users. optional int32 queue_count = 503708769; - // The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. + // The stack type for this network interface. To assign only IPv4 addresses, + // use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. + // + // This field can be both set at instance creation and update network + // interface operations. // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; - // The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork + // The URL of the Subnetwork resource for this instance. If the network + // resource is inlegacy + // mode, do not specify this field. If the network is in auto subnet + // mode, specifying the subnetwork is optional. If the network is in custom + // subnet mode, specifying the subnetwork is required. If you specify this + // field, you can specify the subnetwork as a full or partial URL. For + // example, the following are all valid URLs: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork + // - regions/region/subnetworks/subnetwork optional string subnetwork = 307827694; - // VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively. + // VLAN tag of a dynamic network interface, must be an integer in the range + // from 2 to 255 inclusively. optional int32 vlan = 3622243; } @@ -26063,10 +54371,15 @@ message NetworkList { // A list of Network resources. repeated Network items = 100526016; - // [Output Only] Type of resource. Always compute#networkList for lists of networks. + // [Output Only] Type of resource. Always compute#networkList for + // lists of networks. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -26079,27 +54392,47 @@ message NetworkList { // Additional network parameters. message NetworkParams { - // Tag keys/values directly bound to this resource. Tag keys and values have the same definition as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {"123/environment" : "tagValues/444"} is invalid. + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. map resource_manager_tags = 377671164; } -// A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering. +// A network peering attached to a network resource. The message includes the +// peering name, peer network, peering state, and a flag indicating whether +// Google Compute Engine should automatically create routes for the peering. message NetworkPeering { - // Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. + // Which IP version(s) of traffic and routes are allowed to be imported or + // exported between peer networks. The default value is IPV4_ONLY. enum StackType { // A value indicating that the enum field is not set. UNDEFINED_STACK_TYPE = 0; - // This Peering will allow IPv4 traffic and routes to be exchanged. Additionally if the matching peering is IPV4_IPV6, IPv6 traffic and routes will be exchanged as well. + // This Peering will allow IPv4 traffic and routes to be + // exchanged. Additionally if the matching peering is + // IPV4_IPV6, IPv6 traffic and routes will be exchanged as + // well. IPV4_IPV6 = 22197249; - // This Peering will only allow IPv4 traffic and routes to be exchanged, even if the matching peering is IPV4_IPV6. + // This Peering will only allow IPv4 traffic and routes to be + // exchanged, even if the matching peering is IPV4_IPV6. IPV4_ONLY = 22373798; } - // [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. + // [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The + // peering is `ACTIVE` when there's a matching configuration in the peer + // network. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -26107,112 +54440,169 @@ message NetworkPeering { // Matching configuration exists on the peer. ACTIVE = 314733318; - // There is no matching configuration on the peer, including the case when peer does not exist. + // There is no matching configuration on the peer, including the case when + // peer does not exist. INACTIVE = 270421099; } - // The update strategy determines the semantics for updates and deletes to the peering connection configuration. + // The update strategy determines the semantics for updates and deletes to the + // peering connection configuration. enum UpdateStrategy { // A value indicating that the enum field is not set. UNDEFINED_UPDATE_STRATEGY = 0; - // Updates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the matching peering. To delete a peering with the consensus update strategy, both the peerings must request the deletion of the peering before the peering can be deleted. + // Updates are reflected in the local peering but aren't applied to the + // peering connection until a complementary change is made to the + // matching peering. + // To delete a peering with the consensus update strategy, both the peerings + // must request the deletion of the peering before the peering can be + // deleted. CONSENSUS = 203373655; - // In this mode, changes to the peering configuration can be unilaterally altered by changing either side of the peering. This is the default value if the field is unspecified. + // In this mode, changes to the peering configuration can + // be unilaterally altered by changing either side of the peering. + // This is the default value if the field is unspecified. INDEPENDENT = 127011674; - // Peerings with update strategy UNSPECIFIED are created with update strategy INDEPENDENT. + // Peerings with update strategy UNSPECIFIED are created with + // update strategy INDEPENDENT. UNSPECIFIED = 526786327; } - // This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE. + // This field will be deprecated soon. Use theexchange_subnet_routes field instead. + // Indicates whether full mesh connectivity is created and managed + // automatically between peered networks. Currently this field should always + // be true since Google Compute Engine will automatically create and manage + // subnetwork routes between two networks when peering state isACTIVE. optional bool auto_create_routes = 57454941; - // [Output Only] The effective state of the peering connection as a whole. + // [Output Only] The effective state of the peering connection + // as a whole. optional NetworkPeeringConnectionStatus connection_status = 525629555; - // Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE. + // Indicates whether full mesh connectivity is created and managed + // automatically between peered networks. Currently this field should always + // be true since Google Compute Engine will automatically create and manage + // subnetwork routes between two networks when peering state isACTIVE. optional bool exchange_subnet_routes = 26322256; - // Whether to export the custom routes to peer network. The default value is false. + // Whether to export the custom routes to peer network. The default value is + // false. optional bool export_custom_routes = 60281485; - // Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field. + // Whether subnet routes with public IP range are exported. The default value + // is true, all subnet routes are exported.IPv4 + // special-use ranges are always + // exported to peers and are not controlled by this field. optional bool export_subnet_routes_with_public_ip = 97940834; - // Whether to import the custom routes from peer network. The default value is false. + // Whether to import the custom routes from peer network. The default value is + // false. optional bool import_custom_routes = 197982398; - // Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field. + // Whether subnet routes with public IP range are imported. The default value + // is false.IPv4 + // special-use ranges are always + // imported from peers and are not controlled by this field. optional bool import_subnet_routes_with_public_ip = 14419729; - // Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of this peering. Provided by the client when the peering is created. + // The name must comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a + // lowercase letter, and all the following characters must be a dash, + // lowercase letter, or digit, except the last character, which cannot be a + // dash. optional string name = 3373707; - // The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network. + // The URL of the peer network. It can be either full URL or partial URL. The + // peer network may belong to a different project. If the partial URL does not + // contain project, it is assumed that the peer network is in the same project + // as the current network. optional string network = 232872494; // [Output Only] Maximum Transmission Unit in bytes of the peer network. optional int32 peer_mtu = 69584721; - // Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. + // Which IP version(s) of traffic and routes are allowed to be imported or + // exported between peer networks. The default value is IPV4_ONLY. // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; - // [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. + // [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The + // peering is `ACTIVE` when there's a matching configuration in the peer + // network. // Check the State enum for the list of possible values. optional string state = 109757585; // [Output Only] Details about the current state of the peering. optional string state_details = 95566996; - // The update strategy determines the semantics for updates and deletes to the peering connection configuration. + // The update strategy determines the semantics for updates and deletes to the + // peering connection configuration. // Check the UpdateStrategy enum for the list of possible values. optional string update_strategy = 6123049; } -// [Output Only] Describes the state of a peering connection, not just the local peering. This field provides information about the effective settings for the connection as a whole, including pending delete/update requests for CONSENSUS peerings. +// [Output Only] Describes the state of a peering connection, not just the +// local peering. This field provides information about the effective settings +// for the connection as a whole, including pending delete/update requests for +// CONSENSUS peerings. message NetworkPeeringConnectionStatus { - // The update strategy determines the update/delete semantics for this peering connection. + // The update strategy determines the update/delete semantics for this + // peering connection. enum UpdateStrategy { // A value indicating that the enum field is not set. UNDEFINED_UPDATE_STRATEGY = 0; - // Updates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the matching peering. To delete a peering with the consensus update strategy, both the peerings must request the deletion of the peering before the peering can be deleted. + // Updates are reflected in the local peering but aren't applied to the + // peering connection until a complementary change is made to the + // matching peering. + // To delete a peering with the consensus update strategy, both the peerings + // must request the deletion of the peering before the peering can be + // deleted. CONSENSUS = 203373655; - // In this mode, changes to the peering configuration can be unilaterally altered by changing either side of the peering. This is the default value if the field is unspecified. + // In this mode, changes to the peering configuration can + // be unilaterally altered by changing either side of the peering. + // This is the default value if the field is unspecified. INDEPENDENT = 127011674; - // Peerings with update strategy UNSPECIFIED are created with update strategy INDEPENDENT. + // Peerings with update strategy UNSPECIFIED are created with + // update strategy INDEPENDENT. UNSPECIFIED = 526786327; } - // The consensus state contains information about the status of update and delete for a consensus peering connection. + // The consensus state contains information about the status of update + // and delete for a consensus peering connection. optional NetworkPeeringConnectionStatusConsensusState consensus_state = 379772617; - // The active connectivity settings for the peering connection based on the settings of the network peerings. + // The active connectivity settings for the peering connection based on the + // settings of the network peerings. optional NetworkPeeringConnectionStatusTrafficConfiguration traffic_configuration = 133016116; - // The update strategy determines the update/delete semantics for this peering connection. + // The update strategy determines the update/delete semantics for this + // peering connection. // Check the UpdateStrategy enum for the list of possible values. optional string update_strategy = 6123049; } -// The status of update/delete for a consensus peering connection. Only set when connection_status.update_strategy is CONSENSUS or a network peering is proposing to update the strategy to CONSENSUS. +// The status of update/delete for a consensus peering connection. Only set +// when connection_status.update_strategy isCONSENSUS or a network peering is proposing to update the +// strategy to CONSENSUS. message NetworkPeeringConnectionStatusConsensusState { // The status of the delete request. enum DeleteStatus { // A value indicating that the enum field is not set. UNDEFINED_DELETE_STATUS = 0; - // Both network admins have agreed this consensus peering connection can be deleted. + // Both network admins have agreed this consensus peering connection can + // be deleted. DELETE_ACKNOWLEDGED = 325293916; DELETE_STATUS_UNSPECIFIED = 395396446; @@ -26220,7 +54610,8 @@ message NetworkPeeringConnectionStatusConsensusState { // Network admin has requested deletion of this peering connection. LOCAL_DELETE_REQUESTED = 227335214; - // The peer network admin has requested deletion of this peering connection. + // The peer network admin has requested deletion of this peering + // connection. PEER_DELETE_REQUESTED = 197847799; } @@ -26230,13 +54621,15 @@ message NetworkPeeringConnectionStatusConsensusState { // A value indicating that the enum field is not set. UNDEFINED_UPDATE_STATUS = 0; - // No pending configuration update proposals to the peering connection. + // No pending configuration update proposals to the peering connection. IN_SYNC = 2273653; - // The peer network admin has made an updatePeering call. The change is awaiting acknowledgment from this peering's network admin. + // The peer network admin has made an updatePeering call. The change is + // awaiting acknowledgment from this peering's network admin. PENDING_LOCAL_ACKNOWLEDMENT = 229926592; - // The local network admin has made an updatePeering call. The change is awaiting acknowledgment from the peer network admin. + // The local network admin has made an updatePeering call. The change + // is awaiting acknowledgment from the peer network admin. PENDING_PEER_ACKNOWLEDGEMENT = 420185797; UPDATE_STATUS_UNSPECIFIED = 120836480; @@ -26255,15 +54648,20 @@ message NetworkPeeringConnectionStatusConsensusState { // message NetworkPeeringConnectionStatusTrafficConfiguration { - // Which IP version(s) of traffic and routes are being imported or exported between peer networks. + // Which IP version(s) of traffic and routes are being imported or + // exported between peer networks. enum StackType { // A value indicating that the enum field is not set. UNDEFINED_STACK_TYPE = 0; - // This Peering will allow IPv4 traffic and routes to be exchanged. Additionally if the matching peering is IPV4_IPV6, IPv6 traffic and routes will be exchanged as well. + // This Peering will allow IPv4 traffic and routes to be + // exchanged. Additionally if the matching peering is + // IPV4_IPV6, IPv6 traffic and routes will be exchanged as + // well. IPV4_IPV6 = 22197249; - // This Peering will only allow IPv4 traffic and routes to be exchanged, even if the matching peering is IPV4_IPV6. + // This Peering will only allow IPv4 traffic and routes to be + // exchanged, even if the matching peering is IPV4_IPV6. IPV4_ONLY = 22373798; } @@ -26271,16 +54669,19 @@ message NetworkPeeringConnectionStatusTrafficConfiguration { // Whether custom routes are being exported to the peer network. optional bool export_custom_routes_to_peer = 286428404; - // Whether subnet routes with public IP ranges are being exported to the peer network. + // Whether subnet routes with public IP ranges are being exported to the + // peer network. optional bool export_subnet_routes_with_public_ip_to_peer = 8358601; // Whether custom routes are being imported from the peer network. optional bool import_custom_routes_from_peer = 398584470; - // Whether subnet routes with public IP ranges are being imported from the peer network. + // Whether subnet routes with public IP ranges are being imported + // from the peer network. optional bool import_subnet_routes_with_public_ip_from_peer = 234712361; - // Which IP version(s) of traffic and routes are being imported or exported between peer networks. + // Which IP version(s) of traffic and routes are being imported or + // exported between peer networks. // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; @@ -26310,7 +54711,8 @@ message NetworkPoliciesScopedList { // A list of network policies contained in this scope. repeated NetworkPolicy network_policies = 473193537; - // Informational warning which replaces the list of network policies when the list is empty. + // Informational warning which replaces the list of network policies when + // the list is empty. optional Warning warning = 50704284; } @@ -26320,25 +54722,31 @@ message NetworkPolicy { // [Output Only] A list of associations that belong to this network policy. repeated NetworkPolicyAssociation associations = 508736530; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output only] Type of the resource. Always compute#networkPolicy for network policies + // [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies optional string kind = 3292052; // Name of the resource. optional string name = 3373707; - // [Output Only] URL of the region where the regional network policy resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the regional network policy resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; - // [Output Only] Total count of all network policy rule tuples. A network policy can not exceed a set number of tuples. + // [Output Only] Total count of all network policy rule tuples. A network + // policy can not exceed a set number of tuples. optional int32 rule_tuple_count = 388342037; // [Output Only] Server-defined URL for the resource. @@ -26347,7 +54755,8 @@ message NetworkPolicy { // [Output Only] Server-defined URL for this resource with the resource id. optional string self_link_with_id = 44520962; - // [Output Only] A list of traffic classification rules that belong to this policy. + // [Output Only] A list of traffic classification rules that belong to this + // policy. repeated NetworkPolicyTrafficClassificationRule traffic_classification_rules = 291759200; } @@ -26360,10 +54769,15 @@ message NetworkPolicyAggregatedList { // A list of NetworkPoliciesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#networkPolicyAggregatedList for lists of network policies. + // [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for lists of + // network policies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -26395,10 +54809,14 @@ message NetworkPolicyList { // A list of NetworkPolicy resources. repeated NetworkPolicy items = 100526016; - // [Output Only] Type of resource. Always compute#networkPolicyList for lists of network policies. + // [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Informational warning message. @@ -26406,7 +54824,9 @@ message NetworkPolicyList { } -// Represents a traffic classification rule that describes one or more match conditions along with the action to be taken when traffic matches this condition. +// Represents a traffic classification rule that describes one or more match +// conditions along with the action to be taken when traffic matches this +// condition. message NetworkPolicyTrafficClassificationRule { // The Action to perform when the client connection triggers the rule. optional NetworkPolicyTrafficClassificationRuleAction action = 187661878; @@ -26414,43 +54834,68 @@ message NetworkPolicyTrafficClassificationRule { // An optional description for this resource. optional string description = 422937596; - // Denotes whether the network policy rule is disabled. When set to true, the network policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the network policy rule will be enabled. + // Denotes whether the network policy rule is disabled. When set to true, + // the network policy rule is not enforced and traffic behaves as if it did + // not exist. If this is unspecified, the network policy rule will be + // enabled. optional bool disabled = 270940796; - // [Output only] Type of the resource. Always compute#networkPolicyTrafficClassificationRule for network policy traffic classification rules + // [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network + // policy traffic classification rules optional string kind = 3292052; - // A match condition that outgoing traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced. + // A match condition that outgoing traffic is evaluated against. + // If it evaluates to true, the corresponding 'action' is enforced. optional NetworkPolicyTrafficClassificationRuleMatcher match = 103668165; - // An integer indicating the priority of a rule in the list. The priority must be a positive value between 1 and 2147482647. The priority values from 2147482648 to 2147483647 (1000) are reserved for system default network policy rules. Rules are evaluated from highest to lowest priority where 1 is the highest priority and 2147483647 is the lowest priority. + // An integer indicating the priority of a rule in the list. The priority + // must be a positive value between 1 and 2147482647. + // The priority values from 2147482648 to 2147483647 (1000) are reserved for + // system default network policy rules. Rules are evaluated from highest to + // lowest priority where 1 is the highest priority and 2147483647 is the + // lowest priority. optional int32 priority = 445151652; - // An optional name for the rule. This field is not a unique identifier and can be updated. + // An optional name for the rule. This field is not a unique identifier + // and can be updated. optional string rule_name = 55286254; - // [Output Only] Calculation of the complexity of a single network policy rule. + // [Output Only] Calculation of the complexity of a single network policy + // rule. optional int32 rule_tuple_count = 388342037; - // A list of secure tags that controls which instances the traffic classification rule applies to. If targetSecureTag are specified, then the traffic classification rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the targetSecureTag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the traffic classification rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256. + // A list of secure tags that controls which instances the traffic + // classification rule applies to. If targetSecureTag are + // specified, then the traffic classification rule applies only to instances + // in the VPC network that have one of those EFFECTIVE secure tags, if all + // the targetSecureTag are in INEFFECTIVE state, then this rule + // will be ignored. targetSecureTag may not be set at the same + // time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are + // specified, the traffic classification rule applies to all instances on + // the specified network. Maximum number of target label tags allowed is + // 256. repeated NetworkPolicyTrafficClassificationRuleSecureTag target_secure_tags = 468132403; - // A list of service accounts indicating the sets of instances that are applied with this rule. + // A list of service accounts indicating the sets of instances that are + // applied with this rule. repeated string target_service_accounts = 457639710; } // message NetworkPolicyTrafficClassificationRuleAction { - // The traffic class that should be applied to the matching packet. + // DSCP mode. When set to AUTO, the DSCP value will be picked + // automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified. enum DscpMode { // A value indicating that the enum field is not set. UNDEFINED_DSCP_MODE = 0; - // DSCP value will be automatically picked up based on configured traffic_class. + // DSCP value will be automatically picked up based on configured + // traffic_class. AUTO = 2020783; - // Allows to specify custom DSCP value from selected traffic_class range. + // Allows to specify custom DSCP value from selected traffic_class + // range. CUSTOM = 388595569; } @@ -26480,7 +54925,8 @@ message NetworkPolicyTrafficClassificationRuleAction { } - // The traffic class that should be applied to the matching packet. + // DSCP mode. When set to AUTO, the DSCP value will be picked + // automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified. // Check the DscpMode enum for the list of possible values. optional string dscp_mode = 242755270; @@ -26496,32 +54942,45 @@ message NetworkPolicyTrafficClassificationRuleAction { } -// Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified. +// Represents a match condition that incoming traffic is evaluated against. +// Exactly one field must be specified. message NetworkPolicyTrafficClassificationRuleMatcher { - // CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. + // CIDR IP address range. + // Maximum number of destination CIDR IP ranges allowed is 5000. repeated string dest_ip_ranges = 337357713; // Pairs of IP protocols and ports that the rule should match. repeated NetworkPolicyTrafficClassificationRuleMatcherLayer4Config layer4_configs = 373534261; - // CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. + // CIDR IP address range. + // Maximum number of source CIDR IP ranges allowed is 5000. repeated string src_ip_ranges = 432128083; } // message NetworkPolicyTrafficClassificationRuleMatcherLayer4Config { - // The IP protocol to which this rule applies. The protocol type is required when creating a traffic classification rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number. + // The IP protocol to which this rule applies. The protocol type is + // required when creating a traffic classification rule. This value can + // either be one of the following well known protocol strings + // (tcp, udp, icmp,esp, ah, ipip,sctp), or the IP protocol number. optional string ip_protocol = 475958960; - // An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + // An optional list of ports to which this rule applies. This field is + // only applicable for UDP, TCP or SCTP protocol. Each entry must be + // either an integer or a range. If not specified, this rule applies to + // connections through any port. + // + // Example inputs include: ["22"],["80","443"], and ["12345-12349"]. repeated string ports = 106854418; } // message NetworkPolicyTrafficClassificationRuleSecureTag { - // [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. + // [Output Only] State of the secure tag, either `EFFECTIVE` or + // `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted + // or its network is deleted. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -26537,7 +54996,9 @@ message NetworkPolicyTrafficClassificationRuleSecureTag { // Name of the secure tag, created with TagManager's TagValue API. optional string name = 3373707; - // [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. + // [Output Only] State of the secure tag, either `EFFECTIVE` or + // `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted + // or its network is deleted. // Check the State enum for the list of possible values. optional string state = 109757585; @@ -26545,7 +55006,8 @@ message NetworkPolicyTrafficClassificationRuleSecureTag { // NetworkProfile represents a Google managed network profile resource. message NetworkProfile { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // [Output Only] An optional description of this resource. @@ -26554,10 +55016,11 @@ message NetworkProfile { // [Output Only] Features supported by the network. optional NetworkProfileNetworkFeatures features = 246211645; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#networkProfile for network profiles. + // [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. optional string kind = 3292052; // [Output Only] Location to which the network is restricted. @@ -26615,7 +55078,13 @@ message NetworkProfileNetworkFeatures { // VM internal/alias IP, Internal LB service IP, etc. GCE_ENDPOINT = 230515243; - // A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range. + // A regional internal IP address range reserved for the VLAN attachment + // that is used in HA VPN over Cloud Interconnect. This regional + // internal IP address range must not overlap with any IP address range + // of subnet/route in the VPC network and its peering networks. After the + // VLAN attachment is created with the reserved IP address range, when + // creating a new VPN gateway, its interface IP address is allocated + // from the associated VLAN attachment’s IP address range. IPSEC_INTERCONNECT = 340437251; // External IP automatically reserved for Cloud NAT. @@ -26626,7 +55095,8 @@ message NetworkProfileNetworkFeatures { // A regional internal IP address range reserved for Serverless. SERVERLESS = 270492508; - // A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules. + // A private network IP address that can be shared by multiple Internal + // Load Balancer forwarding rules. SHARED_LOADBALANCER_VIP = 294447572; // IP range for peer networks. @@ -26634,7 +55104,8 @@ message NetworkProfileNetworkFeatures { } - // Specifies whether alias IP ranges (and secondary address ranges) are allowed. + // Specifies whether alias IP ranges (and secondary address ranges) are + // allowed. enum AllowAliasIpRanges { // A value indicating that the enum field is not set. UNDEFINED_ALLOW_ALIAS_IP_RANGES = 0; @@ -26700,7 +55171,8 @@ message NetworkProfileNetworkFeatures { } - // Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC. + // Specifies whether VMs are allowed to have external IP access on network + // interfaces connected to this VPC. enum AllowExternalIpAccess { // A value indicating that the enum field is not set. UNDEFINED_ALLOW_EXTERNAL_IP_ACCESS = 0; @@ -26711,6 +55183,17 @@ message NetworkProfileNetworkFeatures { } + // Specifies whether firewall policy can be attached to the network. + enum AllowFirewallPolicy { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_FIREWALL_POLICY = 0; + + FIREWALL_POLICY_ALLOWED = 388488346; + + FIREWALL_POLICY_BLOCKED = 204651742; + + } + // Specifies whether Cloud Interconnect creation is allowed. enum AllowInterconnect { // A value indicating that the enum field is not set. @@ -26755,6 +55238,17 @@ message NetworkProfileNetworkFeatures { } + // Specifies whether multicast is allowed. + enum AllowMulticast { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_MULTICAST = 0; + + MULTICAST_ALLOWED = 44693537; + + MULTICAST_BLOCKED = 397727845; + + } + // Specifies whether NCC is allowed. enum AllowNcc { // A value indicating that the enum field is not set. @@ -26865,6 +55359,17 @@ message NetworkProfileNetworkFeatures { } + // + enum FirewallPolicyTypes { + // A value indicating that the enum field is not set. + UNDEFINED_FIREWALL_POLICY_TYPES = 0; + + RDMA_ROCE_POLICY = 148757145; + + VPC_POLICY = 74319208; + + } + // enum InterfaceTypes { // A value indicating that the enum field is not set. @@ -26890,6 +55395,17 @@ message NetworkProfileNetworkFeatures { } + // Specifies which type of multicast is supported. + enum Multicast { + // A value indicating that the enum field is not set. + UNDEFINED_MULTICAST = 0; + + MULTICAST_SDN = 532209462; + + MULTICAST_ULL = 532211630; + + } + // enum SubnetPurposes { // A value indicating that the enum field is not set. @@ -26924,10 +55440,13 @@ message NetworkProfileNetworkFeatures { // Subnet reserved for Global Envoy-based Load Balancing. GLOBAL_MANAGED_PROXY = 236463602; - // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY instead. + // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy + // purpose, please use REGIONAL_MANAGED_PROXY instead. INTERNAL_HTTPS_LOAD_BALANCER = 248748889; - // Subnetwork will be used for Migration from one peered VPC to another. (a transient state of subnetwork while migrating resources from one project to another). + // Subnetwork will be used for Migration from one peered VPC to another. + // (a transient state of subnetwork + // while migrating resources from one project to another). PEER_MIGRATION = 491902225; // Regular user created or automatically created subnet. @@ -26955,7 +55474,7 @@ message NetworkProfileNetworkFeatures { // New VMs in this subnet will only be assigned IPv4 addresses. IPV4_ONLY = 22373798; - // New VMs in this subnet will only be assigned IPv6 addresses. + // New VMs in this subnet will only be assigned IPv6 addresses. IPV6_ONLY = 79632100; } @@ -26971,11 +55490,13 @@ message NetworkProfileNetworkFeatures { } - // Specifies what address purposes are supported. If empty, all address purposes are supported. + // Specifies what address purposes are supported. If empty, all address + // purposes are supported. // Check the AddressPurposes enum for the list of possible values. repeated string address_purposes = 433024768; - // Specifies whether alias IP ranges (and secondary address ranges) are allowed. + // Specifies whether alias IP ranges (and secondary address ranges) are + // allowed. // Check the AllowAliasIpRanges enum for the list of possible values. optional string allow_alias_ip_ranges = 457984201; @@ -26999,10 +55520,15 @@ message NetworkProfileNetworkFeatures { // Check the AllowDefaultNicAttachment enum for the list of possible values. optional string allow_default_nic_attachment = 53917486; - // Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC. + // Specifies whether VMs are allowed to have external IP access on network + // interfaces connected to this VPC. // Check the AllowExternalIpAccess enum for the list of possible values. optional string allow_external_ip_access = 131538110; + // Specifies whether firewall policy can be attached to the network. + // Check the AllowFirewallPolicy enum for the list of possible values. + optional string allow_firewall_policy = 254200923; + // Specifies whether Cloud Interconnect creation is allowed. // Check the AllowInterconnect enum for the list of possible values. optional string allow_interconnect = 280512964; @@ -27019,6 +55545,10 @@ message NetworkProfileNetworkFeatures { // Check the AllowMultiNicInSameNetwork enum for the list of possible values. optional string allow_multi_nic_in_same_network = 88251004; + // Specifies whether multicast is allowed. + // Check the AllowMulticast enum for the list of possible values. + optional string allow_multicast = 11002498; + // Specifies whether NCC is allowed. // Check the AllowNcc enum for the list of possible values. optional string allow_ncc = 372354904; @@ -27059,10 +55589,19 @@ message NetworkProfileNetworkFeatures { // Check the AllowVpn enum for the list of possible values. optional string allow_vpn = 372363006; - // If set, limits the interface types that the network supports. If empty, all interface types are supported. + // + // Check the FirewallPolicyTypes enum for the list of possible values. + repeated string firewall_policy_types = 390742027; + + // If set, limits the interface types that the network supports. If + // empty, all interface types are supported. // Check the InterfaceTypes enum for the list of possible values. repeated string interface_types = 157981171; + // Specifies which type of multicast is supported. + // Check the Multicast enum for the list of possible values. + optional string multicast = 404098040; + // Specifies which subnetwork purposes are supported. // Check the SubnetPurposes enum for the list of possible values. repeated string subnet_purposes = 301338039; @@ -27167,16 +55706,23 @@ message NetworkProfilesListResponse { // A list of NetworkProfile resources. repeated NetworkProfile items = 100526016; - // [Output Only] Type of resource. Always compute#networkProfileList for network profiles. + // [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + // for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken + // to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -27184,9 +55730,13 @@ message NetworkProfilesListResponse { } -// A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide. +// A routing configuration attached to a network resource. The message +// includes the list of routers associated with the network, and a flag +// indicating the type of routing behavior to enforce network-wide. message NetworkRoutingConfig { - // The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. + // The BGP best path selection algorithm to be employed within this network + // for dynamic routes learned by Cloud Routers. Can be LEGACY + // (default) or STANDARD. enum BgpBestPathSelectionMode { // A value indicating that the enum field is not set. UNDEFINED_BGP_BEST_PATH_SELECTION_MODE = 0; @@ -27197,7 +55747,9 @@ message NetworkRoutingConfig { } - // Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. + // Allows to define a preferred approach for handling inter-region cost in + // the selection process when using the STANDARD BGP best path + // selection algorithm. Can be DEFAULT orADD_COST_TO_MED. // Additional supported values which may be not listed in the enum directly due to technical reasons: // ADD_COST_TO_MED // DEFAULT @@ -27211,7 +55763,8 @@ message NetworkRoutingConfig { } - // [Output Only] Effective value of the bgp_inter_region_cost field. + // [Output Only] Effective value of the bgp_inter_region_cost + // field. // Additional supported values which may be not listed in the enum directly due to technical reasons: // ADD_COST_TO_MED // DEFAULT @@ -27221,7 +55774,10 @@ message NetworkRoutingConfig { } - // The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. + // The network-wide routing mode to use. If set to REGIONAL, + // this network's Cloud Routers will only advertise routes with subnets + // of this network in the same region as the router. If set toGLOBAL, this network's Cloud Routers will advertise + // routes with all subnets of this network, across regions. enum RoutingMode { // A value indicating that the enum field is not set. UNDEFINED_ROUTING_MODE = 0; @@ -27232,25 +55788,36 @@ message NetworkRoutingConfig { } - // Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm. + // Enable comparison of Multi-Exit Discriminators (MED) across routes with + // different neighbor ASNs when using the STANDARD BGP best path selection + // algorithm. optional bool bgp_always_compare_med = 213102902; - // The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. + // The BGP best path selection algorithm to be employed within this network + // for dynamic routes learned by Cloud Routers. Can be LEGACY + // (default) or STANDARD. // Check the BgpBestPathSelectionMode enum for the list of possible values. optional string bgp_best_path_selection_mode = 317816297; - // Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. + // Allows to define a preferred approach for handling inter-region cost in + // the selection process when using the STANDARD BGP best path + // selection algorithm. Can be DEFAULT orADD_COST_TO_MED. // Check the BgpInterRegionCost enum for the list of possible values. optional string bgp_inter_region_cost = 462142689; - // [Output Only] Effective value of the bgp_always_compare_med field. + // [Output Only] Effective value of the bgp_always_compare_med + // field. optional bool effective_bgp_always_compare_med = 214661838; - // [Output Only] Effective value of the bgp_inter_region_cost field. + // [Output Only] Effective value of the bgp_inter_region_cost + // field. // Check the EffectiveBgpInterRegionCost enum for the list of possible values. optional string effective_bgp_inter_region_cost = 185098313; - // The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. + // The network-wide routing mode to use. If set to REGIONAL, + // this network's Cloud Routers will only advertise routes with subnets + // of this network in the same region as the router. If set toGLOBAL, this network's Cloud Routers will advertise + // routes with all subnets of this network, across regions. // Check the RoutingMode enum for the list of possible values. optional string routing_mode = 475143548; @@ -27258,23 +55825,39 @@ message NetworkRoutingConfig { // message NetworksAddPeeringRequest { - // This field will be deprecated soon. Use exchange_subnet_routes in network_peering instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE. + // This field will be deprecated soon. Useexchange_subnet_routes in network_peering + // instead. + // Indicates whether full mesh connectivity is created and managed + // automatically between peered networks. Currently this field should always + // be true since Google Compute Engine will automatically create and manage + // subnetwork routes between two networks when peering state isACTIVE. optional bool auto_create_routes = 57454941; // Name of the peering, which should conform to RFC1035. optional string name = 3373707; - // Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon. + // Network peering parameters. + // In order to specify route policies for peering using import and export + // custom routes, you must specify all peering related parameters + // (name, peer network,exchange_subnet_routes) in the network_peering + // field. + // The corresponding fields in NetworksAddPeeringRequest will be + // deprecated soon. optional NetworkPeering network_peering = 328926767; - // URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network. + // URL of the peer network. It can be either full URL or partial URL. The + // peer network may belong to a different project. If the partial URL does not + // contain project, it is assumed that the peer network is in the same project + // as the current network. optional string peer_network = 500625489; } // message NetworksGetEffectiveFirewallsResponse { - // [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall Policies and Hierarchical Firewall Policies. Use regionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall Policies as well. + // [Output Only] Effective firewalls from firewall policy. It returns Global + // Network Firewall Policies and Hierarchical Firewall Policies. UseregionNetworkFirewallPolicies.getEffectiveFirewalls to get + // Regional Network Firewall Policies as well. repeated NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy firewall_policys = 410985794; // Effective firewalls on the network. @@ -27302,7 +55885,8 @@ message NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy { } - // [Output Only] Deprecated, please use short name instead. The display name of the firewall policy. + // [Output Only] Deprecated, please use short name instead. The display name + // of the firewall policy. optional string display_name = 4473832; // [Output Only] The name of the firewall policy. @@ -27311,7 +55895,8 @@ message NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy { // [Output Only] The packet mirroring rules that apply to the network. repeated FirewallPolicyRule packet_mirroring_rules = 531644356; - // [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + // [Output only] Priority of firewall policy association. Not applicable for + // type=HIERARCHY. optional int32 priority = 445151652; // [Output Only] The rules that apply to the network. @@ -27328,7 +55913,8 @@ message NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy { // A pruned SecurityPolicy containing ID and any applicable firewall rules. message NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy { - // [Output Only] The unique identifier for the security policy. This identifier is defined by the server. + // [Output Only] The unique identifier for the security policy. This + // identifier is defined by the server. optional uint64 id = 3355; // The rules that apply to the network. @@ -27356,38 +55942,67 @@ message NetworksUpdatePeeringRequest { } -// Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. +// Represents a sole-tenant Node Group resource. +// +// A sole-tenant node is a physical server that is dedicated to +// hosting VM instances only for your specific project. Use sole-tenant nodes to +// keep your instances physically separated from instances in other projects, or +// to group your instances together on the same host hardware. For more +// information, readSole-tenant nodes. message NodeGroup { - // Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and `RECURRENT`. + // Specifies the frequency of planned maintenance events. The accepted values + // are: `AS_NEEDED` and `RECURRENT`. enum MaintenanceInterval { // A value indicating that the enum field is not set. UNDEFINED_MAINTENANCE_INTERVAL = 0; - // VMs are eligible to receive infrastructure and hypervisor updates as they become available. This may result in more maintenance operations (live migrations or terminations) for the VM than the PERIODIC and RECURRENT options. + // VMs are eligible to receive infrastructure and hypervisor updates as they + // become available. This may result in more maintenance operations (live + // migrations or terminations) for the VM than the PERIODIC andRECURRENT options. AS_NEEDED = 500724834; - // VMs receive infrastructure and hypervisor updates on a periodic basis, minimizing the number of maintenance operations (live migrations or terminations) on an individual VM. This may mean a VM will take longer to receive an update than if it was configured for AS_NEEDED. Security updates will still be applied as soon as they are available. + // VMs receive infrastructure and hypervisor updates on a periodic basis, + // minimizing the number of maintenance operations (live migrations or + // terminations) on an individual VM. This may mean a VM will take longer + // to receive an update than if it was configured forAS_NEEDED. Security updates will still be applied as soon + // as they are available. PERIODIC = 142804635; - // VMs receive infrastructure and hypervisor updates on a periodic basis, minimizing the number of maintenance operations (live migrations or terminations) on an individual VM. This may mean a VM will take longer to receive an update than if it was configured for AS_NEEDED. Security updates will still be applied as soon as they are available. RECURRENT is used for GEN3 and Slice of Hardware VMs. + // VMs receive infrastructure and hypervisor updates on a periodic basis, + // minimizing the number of maintenance operations (live migrations or + // terminations) on an individual VM. This may mean a VM will take longer + // to receive an update than if it was configured forAS_NEEDED. Security updates will still be applied as soon + // as they are available. RECURRENT is used for GEN3 and Slice + // of Hardware VMs. RECURRENT = 194244550; } - // Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. + // Specifies how to handle instances when a node in the group undergoes + // maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. + // The default value is DEFAULT. For more information, see + // Maintenance policies. enum MaintenancePolicy { // A value indicating that the enum field is not set. UNDEFINED_MAINTENANCE_POLICY = 0; - // Allow the node and corresponding instances to retain default maintenance behavior. + // Allow the node and corresponding instances to retain default + // maintenance behavior. DEFAULT = 115302945; MAINTENANCE_POLICY_UNSPECIFIED = 72964182; - // When maintenance must be done on a node, the instances on that node will be moved to other nodes in the group. Instances with onHostMaintenance = MIGRATE will live migrate to their destinations while instances with onHostMaintenance = TERMINATE will terminate and then restart on their destination nodes if automaticRestart = true. + // When maintenance must be done on a node, the instances on that node will + // be moved to other nodes in the group. + // Instances with onHostMaintenance = MIGRATE will live migrate to their + // destinations while instances with onHostMaintenance = TERMINATE will + // terminate and then restart on their destination nodes if + // automaticRestart = true. MIGRATE_WITHIN_NODE_GROUP = 153483394; - // Instances in this group will restart on the same node when maintenance has completed. Instances must have onHostMaintenance = TERMINATE, and they will only restart if automaticRestart = true. + // Instances in this group will restart on the same node when maintenance + // has completed. Instances must have onHostMaintenance = TERMINATE, and + // they will only restart if automaticRestart = true. RESTART_IN_PLACE = 228647325; } @@ -27410,34 +56025,52 @@ message NodeGroup { // Specifies how autoscaling should behave. optional NodeGroupAutoscalingPolicy autoscaling_policy = 221950041; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] The type of the resource. Always compute#nodeGroup for node group. + // [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. optional string kind = 3292052; - // An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate. + // An opaque location hint used to place the Node close to other + // resources. + // This field is for use by internal tools that use the public API. + // The location hint here on the NodeGroup overrides any location_hint + // present in the NodeTemplate. optional string location_hint = 350519505; - // Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and `RECURRENT`. + // Specifies the frequency of planned maintenance events. The accepted values + // are: `AS_NEEDED` and `RECURRENT`. // Check the MaintenanceInterval enum for the list of possible values. optional string maintenance_interval = 403368049; - // Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. + // Specifies how to handle instances when a node in the group undergoes + // maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. + // The default value is DEFAULT. For more information, see + // Maintenance policies. // Check the MaintenancePolicy enum for the list of possible values. optional string maintenance_policy = 528327646; optional NodeGroupMaintenanceWindow maintenance_window = 186374812; - // The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // The name of the resource, provided by the client when initially creating + // the resource. The resource name must be 1-63 characters long, and comply + // withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; // URL of the node template to create the node group from. @@ -27456,7 +56089,8 @@ message NodeGroup { // Check the Status enum for the list of possible values. optional string status = 181260274; - // [Output Only] The name of the zone where the node group resides, such as us-central1-a. + // [Output Only] The name of the zone where the node group resides, + // such as us-central1-a. optional string zone = 3744684; } @@ -27469,10 +56103,15 @@ message NodeGroupAggregatedList { // A list of NodeGroupsScopedList resources. map items = 100526016; - // [Output Only] Type of resource.Always compute#nodeGroupAggregatedList for aggregated lists of node groups. + // [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for aggregated lists of node + // groups. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -27488,7 +56127,9 @@ message NodeGroupAggregatedList { // message NodeGroupAutoscalingPolicy { - // The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. + // The autoscaling mode. Set to one of: ON, OFF, + // or ONLY_SCALE_OUT. For more information, see + // Autoscaler modes. enum Mode { // A value indicating that the enum field is not set. UNDEFINED_MODE = 0; @@ -27506,13 +56147,16 @@ message NodeGroupAutoscalingPolicy { } - // The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100. + // The maximum number of nodes that the group should have. Must be set if + // autoscaling is enabled. Maximum value allowed is 100. optional int32 max_nodes = 297762838; // The minimum number of nodes that the group should have. optional int32 min_nodes = 533370500; - // The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. + // The autoscaling mode. Set to one of: ON, OFF, + // or ONLY_SCALE_OUT. For more information, see + // Autoscaler modes. // Check the Mode enum for the list of possible values. optional string mode = 3357091; @@ -27526,10 +56170,15 @@ message NodeGroupList { // A list of NodeGroup resources. repeated NodeGroup items = 100526016; - // [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + // [Output Only] Type of resource.Always compute#nodeGroupList + // for lists of node groups. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -27540,12 +56189,16 @@ message NodeGroupList { } -// Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window. +// Time window specified for daily maintenance operations. GCE's internal +// maintenance will be performed within this window. message NodeGroupMaintenanceWindow { - // [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. + // [Output only] A predetermined duration for the window, automatically + // chosen to be the smallest possible in the given scenario. optional Duration maintenance_duration = 525291840; - // Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. + // Start time of the window. This must be in UTC format that resolves to one + // of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For + // example, both 13:00-5 and 08:00 are valid. optional string start_time = 37467274; } @@ -27650,10 +56303,15 @@ message NodeGroupsListNodes { // A list of Node resources. repeated NodeGroupNode items = 100526016; - // [Output Only] The resource type, which is always compute.nodeGroupsListNodes for the list of nodes in the specified node group. + // [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of nodes in the + // specified node group. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -27679,14 +56337,16 @@ message NodeGroupsScopedList { // [Output Only] A list of node groups contained in this scope. repeated NodeGroup node_groups = 73188017; - // [Output Only] An informational warning that appears when the nodeGroup list is empty. + // [Output Only] An informational warning that appears when the nodeGroup + // list is empty. optional Warning warning = 50704284; } // message NodeGroupsSetNodeTemplateRequest { - // Full or partial URL of the node template resource to be updated for this node group. + // Full or partial URL of the node template resource to be updated for this + // node group. optional string node_template = 323154455; } @@ -27698,7 +56358,11 @@ message NodeGroupsSimulateMaintenanceEventRequest { } -// Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, read Creating node groups and instances. +// Represent a sole-tenant Node Template resource. +// +// You can use a template to define properties for nodes in a node group. For +// more information, readCreating node groups +// and instances. message NodeTemplate { // CPU overcommit. enum CpuOvercommitType { @@ -27713,7 +56377,7 @@ message NodeTemplate { } - // [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. + // [Output Only] The status of the node template. One of the following values:CREATING, READY, and DELETING. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -27738,21 +56402,31 @@ message NodeTemplate { // Check the CpuOvercommitType enum for the list of possible values. optional string cpu_overcommit_type = 247727959; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; repeated LocalDisk disks = 95594102; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] The type of the resource. Always compute#nodeTemplate for node templates. + // [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. optional string kind = 3292052; - // The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // The name of the resource, provided by the client when initially creating + // the resource. The resource name must be 1-63 characters long, and comply + // withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; // Labels to use for node affinity, which will be used in instance scheduling. @@ -27764,16 +56438,28 @@ message NodeTemplate { // Do not use. Instead, use the node_type property. optional NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; - // [Output Only] The name of the region where the node template resides, such as us-central1. + // [Output Only] The name of the region where the node template resides, + // such as us-central1. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // Sets the binding properties for the physical server. Valid values include: - *[Default]* RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information. + // Sets the binding properties for the physical server. Valid values include: + // + // - *[Default]* RESTART_NODE_ON_ANY_SERVER: + // Restarts VMs on any available + // physical server + // - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same + // physical server whenever possible + // + // + // + // See Sole-tenant + // node options for more information. optional ServerBinding server_binding = 208179593; - // [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. + // [Output Only] The status of the node template. One of the following values:CREATING, READY, and DELETING. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -27790,10 +56476,15 @@ message NodeTemplateAggregatedList { // A list of NodeTemplatesScopedList resources. map items = 100526016; - // [Output Only] Type of resource.Always compute#nodeTemplateAggregatedList for aggregated lists of node templates. + // [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for aggregated lists of + // node templates. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -27815,10 +56506,15 @@ message NodeTemplateList { // A list of NodeTemplate resources. repeated NodeTemplate items = 100526016; - // [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + // [Output Only] Type of resource.Always compute#nodeTemplateList + // for lists of node templates. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -27844,17 +56540,25 @@ message NodeTemplatesScopedList { // [Output Only] A list of node templates contained in this scope. repeated NodeTemplate node_templates = 354111804; - // [Output Only] An informational warning that appears when the node templates list is empty. + // [Output Only] An informational warning that appears when the node templates + // list is empty. optional Warning warning = 50704284; } -// Represent a sole-tenant Node Type resource. Each node within a node group must have a node type. A node type specifies the total amount of cores and memory for that node. Currently, the only available node type is n1-node-96-624 node type that has 96 vCPUs and 624 GB of memory, available in multiple zones. For more information read Node types. +// Represent a sole-tenant Node Type resource. +// +// Each node within a node group must have a node type. A node type specifies +// the total amount of cores and memory for that node. Currently, the only +// available node type is n1-node-96-624 node type that has 96 +// vCPUs and 624 GB of memory, available in multiple zones. For more information +// readNode types. message NodeType { // [Output Only] The CPU platform used by this node type. optional string cpu_platform = 410285354; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // [Output Only] The deprecation status associated with this node type. @@ -27863,13 +56567,15 @@ message NodeType { // [Output Only] An optional textual description of the resource. optional string description = 422937596; - // [Output Only] The number of virtual CPUs that are available to the node type. + // [Output Only] The number of virtual CPUs that are available to the node + // type. optional int32 guest_cpus = 393356754; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] The type of the resource. Always compute#nodeType for node types. + // [Output Only] The type of the resource. Alwayscompute#nodeType for node types. optional string kind = 3292052; // [Output Only] Local SSD available to the node type, defined in GB. @@ -27878,7 +56584,8 @@ message NodeType { // [Output Only] Maximum number of VMs that can be created for this node type. optional int32 max_vms = 307579713; - // [Output Only] The amount of physical memory available to the node type, defined in MB. + // [Output Only] The amount of physical memory available to the node type, + // defined in MB. optional int32 memory_mb = 116001171; // [Output Only] Name of the resource. @@ -27887,7 +56594,8 @@ message NodeType { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] The name of the zone where the node type resides, such as us-central1-a. + // [Output Only] The name of the zone where the node type resides, + // such as us-central1-a. optional string zone = 3744684; } @@ -27900,10 +56608,15 @@ message NodeTypeAggregatedList { // A list of NodeTypesScopedList resources. map items = 100526016; - // [Output Only] Type of resource.Always compute#nodeTypeAggregatedList for aggregated lists of node types. + // [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated lists of node + // types. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -27925,10 +56638,15 @@ message NodeTypeList { // A list of NodeType resources. repeated NodeType items = 100526016; - // [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + // [Output Only] Type of resource.Always compute#nodeTypeList for + // lists of node types. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -27944,32 +56662,53 @@ message NodeTypesScopedList { // [Output Only] A list of node types contained in this scope. repeated NodeType node_types = 482172924; - // [Output Only] An informational warning that appears when the node types list is empty. + // [Output Only] An informational warning that appears when the node types + // list is empty. optional Warning warning = 50704284; } -// Represents a notification endpoint. A notification endpoint resource defines an endpoint to receive notifications when there are status changes detected by the associated health check service. For more information, see Health checks overview. +// Represents a notification endpoint. +// +// A notification endpoint resource defines an endpoint to receive notifications +// when there are status changes detected by the associated health check +// service. +// +// For more information, see +// Health checks overview. message NotificationEndpoint { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Settings of the gRPC notification endpoint including the endpoint URL and the retry duration. + // Settings of the gRPC notification endpoint including the endpoint URL and + // the retry duration. optional NotificationEndpointGrpcSettings grpc_settings = 456139556; - // [Output Only] A unique identifier for this resource type. The server generates this identifier. + // [Output Only] A unique identifier for this resource type. The server + // generates this identifier. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints. + // [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification endpoints. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // [Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the notification endpoint resides. + // This field applies only to the regional resource. You must specify this + // field as part of the HTTP request URL. It is not settable as a field in + // the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. @@ -27977,21 +56716,32 @@ message NotificationEndpoint { } -// Represents a gRPC setting that describes one gRPC notification endpoint and the retry duration attempting to send notification to this endpoint. +// Represents a gRPC setting that describes one gRPC notification endpoint and +// the retry duration attempting to send notification to this endpoint. message NotificationEndpointGrpcSettings { - // Optional. If specified, this field is used to set the authority header by the sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3 + // Optional. If specified, this field is used to set the authority header by + // the sender of notifications. See + // https://tools.ietf.org/html/rfc7540#section-8.1.2.3 optional string authority = 401868611; - // Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name. + // Endpoint to which gRPC notifications are sent. This must be a valid + // gRPCLB DNS name. optional string endpoint = 130489749; - // Optional. If specified, this field is used to populate the "name" field in gRPC requests. + // Optional. If specified, this field is used to populate the "name" field + // in gRPC requests. optional string payload_name = 300358300; - // Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints. + // Optional. This field is used to configure how often to send a full update + // of all non-healthy backends. If unspecified, full updates are not sent. + // If specified, must be in the range between 600 seconds to 3600 seconds. + // Nanos are disallowed. Can only be set for regional notification + // endpoints. optional Duration resend_interval = 478288969; - // How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number. + // How much time (in seconds) is spent attempting notification retries + // until a successful response is received. Default is 30s. Limit is 20m + // (1200s). Must be a positive number. optional uint32 retry_duration_sec = 115681117; } @@ -28004,10 +56754,14 @@ message NotificationEndpointList { // A list of NotificationEndpoint resources. repeated NotificationEndpoint items = 100526016; - // [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints. + // [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification endpoints. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -28018,9 +56772,38 @@ message NotificationEndpointList { } -// Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/beta/globalOperations) * [Regional](/compute/docs/reference/rest/beta/regionOperations) * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zoneOperations` resource. For more information, read Global, Regional, and Zonal Resources. Note that completed Operation resources have a limited retention period. +// Represents an Operation resource. +// +// Google Compute Engine has three Operation resources: +// +// * [Global](/compute/docs/reference/rest/beta/globalOperations) +// * [Regional](/compute/docs/reference/rest/beta/regionOperations) +// * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) +// +// You can use an operation resource to manage asynchronous API requests. +// For more information, readHandling +// API responses. +// +// Operations can be global, regional or zonal. +// +// - For global operations, use the `globalOperations` +// resource. +// - For regional operations, use the +// `regionOperations` resource. +// - For zonal operations, use +// the `zoneOperations` resource. +// +// +// +// For more information, read +// Global, Regional, and Zonal Resources. +// +// Note that completed Operation resources have a limited +// retention period. message Operation { - // [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. + // [Output Only] The status of the operation, which can be one of the + // following: + // `PENDING`, `RUNNING`, or `DONE`. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -28033,97 +56816,136 @@ message Operation { } - // [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. + // [Output Only] The value of `requestId` if you provided it in the request. + // Not present otherwise. optional string client_operation_id = 297240295; // [Deprecated] This field is deprecated. optional string creation_timestamp = 30525366; - // [Output Only] A textual description of the operation, which is set when the operation is created. + // [Output Only] A textual description of the operation, which is + // set when the operation is created. optional string description = 422937596; - // [Output Only] The time that this operation was completed. This value is in RFC3339 text format. + // [Output Only] The time that this operation was completed. This value is inRFC3339 + // text format. optional string end_time = 114938801; - // [Output Only] If errors are generated during processing of the operation, this field will be populated. + // [Output Only] If errors are generated during processing of the operation, + // this field will be populated. optional Error error = 96784904; - // [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. + // [Output Only] If the operation fails, this field contains the HTTP error + // message that was returned, such as `NOT FOUND`. optional string http_error_message = 202521945 [(google.cloud.operation_field) = ERROR_MESSAGE]; - // [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. + // [Output Only] If the operation fails, this field contains the HTTP error + // status code that was returned. For example, a `404` means the + // resource was not found. optional int32 http_error_status_code = 312345196 [(google.cloud.operation_field) = ERROR_CODE]; - // [Output Only] The unique identifier for the operation. This identifier is defined by the server. + // [Output Only] The unique identifier for the operation. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] The time that this operation was requested. This value is in RFC3339 text format. + // [Output Only] The time that this operation was requested. + // This value is inRFC3339 + // text format. optional string insert_time = 433722515; optional InstancesBulkInsertOperationMetadata instances_bulk_insert_operation_metadata = 89146177; - // [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + // [Output Only] Type of the resource. Always `compute#operation` for + // Operation resources. optional string kind = 3292052; // [Output Only] Name of the operation. optional string name = 3373707 [(google.cloud.operation_field) = NAME]; - // [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. + // [Output Only] An ID that represents a group of operations, such as when a + // group of operations results from a `bulkInsert` API request. optional string operation_group_id = 40171187; - // [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. + // [Output Only] The type of operation, such as `insert`, + // `update`, or `delete`, and so on. optional string operation_type = 177650450; - // [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. + // [Output Only] An optional progress indicator that ranges from 0 to 100. + // There is no requirement that this be linear or support any granularity of + // operations. This should not be used to guess when the operation will be + // complete. This number should monotonically increase as the operation + // progresses. optional int32 progress = 72663597; - // [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. + // [Output Only] The URL of the region where the operation resides. Only + // applicable when performing regional operations. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state. + // [Output Only] If the operation is for projects.setCommonInstanceMetadata, + // this field will contain information on all underlying zonal actions and + // their state. optional SetCommonInstanceMetadataOperationMetadata set_common_instance_metadata_operation_metadata = 490378980; - // [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. + // [Output Only] The time that this operation was started by the server. + // This value is inRFC3339 + // text format. optional string start_time = 37467274; - // [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. + // [Output Only] The status of the operation, which can be one of the + // following: + // `PENDING`, `RUNNING`, or `DONE`. optional Status status = 181260274 [(google.cloud.operation_field) = STATUS]; - // [Output Only] An optional textual description of the current status of the operation. + // [Output Only] An optional textual description of the current status of the + // operation. optional string status_message = 297428154; - // [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. + // [Output Only] The unique target ID, which identifies a specific incarnation + // of the target resource. optional uint64 target_id = 258165385; - // [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the disk that the snapshot was created from. + // [Output Only] The URL of the resource that the operation modifies. For + // operations related to creating a snapshot, this points to the disk + // that the snapshot was created from. optional string target_link = 62671336; - // [Output Only] User who requested the operation, for example: `user@example.com` or `alice_smith_identifier (global/workforcePools/example-com-us-employees)`. + // [Output Only] User who requested the operation, for example: + // `user@example.com` or + // `alice_smith_identifier (global/workforcePools/example-com-us-employees)`. optional string user = 3599307; - // [Output Only] If warning messages are generated during processing of the operation, this field will be populated. + // [Output Only] If warning messages are generated during processing of the + // operation, this field will be populated. repeated Warnings warnings = 498091095; - // [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. + // [Output Only] The URL of the zone where the operation resides. Only + // applicable when performing per-zone operations. optional string zone = 3744684; } // message OperationAggregatedList { - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional string id = 3355; // [Output Only] A map of scoped operation lists. map items = 100526016; - // [Output Only] Type of resource. Always `compute#operationAggregatedList` for aggregated lists of operations. + // [Output Only] Type of resource. Always `compute#operationAggregatedList` + // for aggregated lists of operations. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query parameter `pageToken` in the next list request. Subsequent list requests will have their own `nextPageToken` to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger than + // `maxResults`, use the `nextPageToken` as a value for + // the query parameter `pageToken` in the next list request. + // Subsequent list requests will have their own `nextPageToken` to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -28139,16 +56961,23 @@ message OperationAggregatedList { // Contains a list of Operation resources. message OperationList { - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional string id = 3355; // [Output Only] A list of Operation resources. repeated Operation items = 100526016; - // [Output Only] Type of resource. Always `compute#operations` for Operations resource. + // [Output Only] Type of resource. Always `compute#operations` for Operations + // resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query parameter `pageToken` in the next list request. Subsequent list requests will have their own `nextPageToken` to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger than + // `maxResults`, use the `nextPageToken` as a value for + // the query parameter `pageToken` in the next list request. + // Subsequent list requests will have their own `nextPageToken` to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -28164,7 +56993,8 @@ message OperationsScopedList { // [Output Only] A list of operations contained in this scope. repeated Operation operations = 4184044; - // [Output Only] Informational warning which replaces the list of operations when the list is empty. + // [Output Only] Informational warning which replaces the list of operations + // when the list is empty. optional Warning warning = 50704284; } @@ -28174,44 +57004,90 @@ message OrganizationSecurityPoliciesListAssociationsResponse { // A list of associations. repeated SecurityPolicyAssociation associations = 508736530; - // [Output Only] Type of securityPolicy associations. Always compute#organizationSecurityPoliciesListAssociations for lists of securityPolicy associations. + // [Output Only] Type of securityPolicy associations. Alwayscompute#organizationSecurityPoliciesListAssociations for lists + // of securityPolicy associations. optional string kind = 3292052; } -// Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service. +// Settings controlling the eviction of unhealthy hosts from the load balancing +// pool for the backend service. message OutlierDetection { - // The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. After a backend endpoint is returned back to the load balancing pool, it can be ejected again in another ejection analysis. Thus, the total ejection time is equal to the base ejection time multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or 30s. + // The base time that a backend endpoint is ejected for. Defaults to 30000ms + // or 30s. + // + // After a backend endpoint is returned back to the load balancing pool, it + // can be ejected again in another ejection analysis. Thus, the total ejection + // time is equal to the base ejection time multiplied by the number of times + // the backend endpoint has been ejected. Defaults to 30000ms or 30s. optional Duration base_ejection_time = 80997255; - // Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. Defaults to 5. + // Number of consecutive errors before a backend endpoint is ejected from the + // load balancing pool. When the backend endpoint is accessed over HTTP, a 5xx + // return code qualifies as an error. Defaults to 5. optional int32 consecutive_errors = 387193248; - // The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection occurs. Defaults to 3. + // The number of consecutive gateway failures (502, 503, 504 status or + // connection errors that are mapped to one of those status codes) before a + // consecutive gateway failure ejection occurs. Defaults to 3. optional int32 consecutive_gateway_failure = 417504250; - // The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 0. + // The percentage chance that a backend endpoint will be ejected when an + // outlier status is detected through consecutive 5xx. This setting can be + // used to disable ejection or to ramp it up slowly. Defaults to 0. optional int32 enforcing_consecutive_errors = 213133760; - // The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. + // The percentage chance that a backend endpoint will be ejected when an + // outlier status is detected through consecutive gateway failures. This + // setting can be used to disable ejection or to ramp it up slowly. Defaults + // to 100. optional int32 enforcing_consecutive_gateway_failure = 394440666; - // The percentage chance that a backend endpoint will be ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. Not supported when the backend service uses Serverless NEG. + // The percentage chance that a backend endpoint will be ejected when an + // outlier status is detected through success rate statistics. This setting + // can be used to disable ejection or to ramp it up slowly. Defaults to 100. + // + // Not supported when the backend service uses Serverless NEG. optional int32 enforcing_success_rate = 194508732; - // Time interval between ejection analysis sweeps. This can result in both new ejections and backend endpoints being returned to service. The interval is equal to the number of seconds as defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in outlierDetection.interval.nanos. Defaults to 1 second. + // Time interval between ejection analysis sweeps. This can result in both new + // ejections and backend endpoints being returned to service. The interval is + // equal to the number of seconds as defined in + // outlierDetection.interval.seconds plus the number of nanoseconds as defined + // in outlierDetection.interval.nanos. Defaults to 1 second. optional Duration interval = 33547461; - // Maximum percentage of backend endpoints in the load balancing pool for the backend service that can be ejected if the ejection conditions are met. Defaults to 50%. + // Maximum percentage of backend endpoints in the load balancing pool for the + // backend service that can be ejected if the ejection conditions are met. + // Defaults to 50%. optional int32 max_ejection_percent = 18436888; - // The number of backend endpoints in the load balancing pool that must have enough request volume to detect success rate outliers. If the number of backend endpoints is fewer than this setting, outlier detection via success rate statistics is not performed for any backend endpoint in the load balancing pool. Defaults to 5. Not supported when the backend service uses Serverless NEG. + // The number of backend endpoints in the load balancing pool that must have + // enough request volume to detect success rate outliers. If the number of + // backend endpoints is fewer than this setting, outlier detection via success + // rate statistics is not performed for any backend endpoint in the load + // balancing pool. Defaults to 5. + // + // Not supported when the backend service uses Serverless NEG. optional int32 success_rate_minimum_hosts = 525766903; - // The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this backend endpoint in success rate based outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that backend endpoint. Defaults to 100. Not supported when the backend service uses Serverless NEG. + // The minimum number of total requests that must be collected in one interval + // (as defined by the interval duration above) to include this backend + // endpoint in success rate based outlier detection. If the volume is lower + // than this setting, outlier detection via success rate statistics is not + // performed for that backend endpoint. Defaults to 100. + // + // Not supported when the backend service uses Serverless NEG. optional int32 success_rate_request_volume = 281425357; - // This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of this factor and the standard deviation of the mean success rate: mean - (stdev * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. Not supported when the backend service uses Serverless NEG. + // This factor is used to determine the ejection threshold for success rate + // outlier ejection. The ejection threshold is the difference between the mean + // success rate, and the product of this factor and the standard deviation of + // the mean success rate: mean - (stdev * successRateStdevFactor). This factor + // is divided by a thousand to get a double. That is, if the desired factor + // is 1.9, the runtime value should be 1900. Defaults to 1900. + // + // Not supported when the backend service uses Serverless NEG. optional int32 success_rate_stdev_factor = 174735773; } @@ -28239,7 +57115,8 @@ message PacketIntervals { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; - // Only applies to Echo packets. This shows the intervals between sending and receiving the same packet. + // Only applies to Echo packets. This shows the intervals between sending + // and receiving the same packet. LOOPBACK = 356174219; // Intervals between received packets. @@ -28274,9 +57151,19 @@ message PacketIntervals { } -// Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring. +// Represents a Packet Mirroring resource. +// +// Packet Mirroring clones the traffic of specified instances in your Virtual +// Private Cloud (VPC) network and forwards it to a collector destination, +// such as an instance group of an internal TCP/UDP load balancer, for analysis +// or examination. +// For more information about setting up Packet Mirroring, seeUsing Packet Mirroring. message PacketMirroring { - // Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE. + // Indicates whether or not this packet mirroring takes effect. + // If set to FALSE, this packet mirroring policy will not be enforced on the + // network. + // + // The default is TRUE. enum Enable { // A value indicating that the enum field is not set. UNDEFINED_ENABLE = 0; @@ -28287,38 +57174,63 @@ message PacketMirroring { } - // The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. + // The Forwarding Rule resource of typeloadBalancingScheme=INTERNAL that will be used as collector + // for mirrored traffic. + // The specified forwarding rule must have isMirroringCollector + // set to true. optional PacketMirroringForwardingRuleInfo collector_ilb = 426607853; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE. + // Indicates whether or not this packet mirroring takes effect. + // If set to FALSE, this packet mirroring policy will not be enforced on the + // network. + // + // The default is TRUE. // Check the Enable enum for the list of possible values. optional string enable = 311764355; // Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored. optional PacketMirroringFilter filter = 336120696; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings. + // [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. optional string kind = 3292052; - // PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored. + // PacketMirroring mirroredResourceInfos. + // MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks + // and/or tags for which traffic from/to all VM instances will be mirrored. optional PacketMirroringMirroredResourceInfo mirrored_resources = 124817348; - // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; - // Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network. + // Specifies the mirrored VPC network. Only packets in this network will be + // mirrored. All mirrored VMs should have a NIC in the given network. + // All mirrored subnetworks should belong to the given network. optional PacketMirroringNetworkInfo network = 232872494; - // The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535. + // The priority of applying this configuration. Priority is used to break ties + // in cases where there is more than one matching rule. In the case of two + // rules that apply for a given Instance, the one with the lowest-numbered + // priority value wins. + // + // Default value is 1000. Valid range is 0 through 65535. optional uint32 priority = 445151652; // [Output Only] URI of the region where the packetMirroring resides. @@ -28340,7 +57252,11 @@ message PacketMirroringAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -28356,7 +57272,8 @@ message PacketMirroringAggregatedList { // message PacketMirroringFilter { - // Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. + // Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. + // The default is BOTH. enum Direction { // A value indicating that the enum field is not set. UNDEFINED_DIRECTION = 0; @@ -28372,13 +57289,23 @@ message PacketMirroringFilter { } - // Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. + // Protocols that apply as filter on mirrored traffic. + // If no protocols are specified, all traffic that matches the specified + // CIDR ranges is mirrored. + // If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is + // mirrored. repeated string I_p_protocols = 98544854; - // One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". + // One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source + // (ingress) or destination (egress) IP in the IP header. If no ranges are + // specified, all IPv4 traffic that matches the specified IPProtocols is + // mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 + // traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use + // "0.0.0.0/0,::/0". repeated string cidr_ranges = 487901697; - // Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. + // Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. + // The default is BOTH. // Check the Direction enum for the list of possible values. optional string direction = 111150975; @@ -28386,10 +57313,12 @@ message PacketMirroringFilter { // message PacketMirroringForwardingRuleInfo { - // [Output Only] Unique identifier for the forwarding rule; defined by the server. + // [Output Only] Unique identifier for the forwarding rule; defined by the + // server. optional string canonical_url = 512294820; - // Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic. + // Resource URL to the forwarding rule representing the ILB + // configured as destination of the mirrored traffic. optional string url = 116079; } @@ -28402,10 +57331,15 @@ message PacketMirroringList { // A list of PacketMirroring resources. repeated PacketMirroring items = 100526016; - // [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + // [Output Only] Type of resource. Always compute#packetMirroring + // for packetMirrorings. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -28418,20 +57352,32 @@ message PacketMirroringList { // message PacketMirroringMirroredResourceInfo { - // A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. You may specify a maximum of 50 Instances. + // A set of virtual machine instances that are being mirrored. + // They must live in zones contained in the same region as this + // packetMirroring. + // + // Note that this config will apply only to those network interfaces of the + // Instances that belong to the network specified in this packetMirroring. + // + // You may specify a maximum of 50 Instances. repeated PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598; - // A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring. You may specify a maximum of 5 subnetworks. + // A set of subnetworks for which traffic from/to all VM instances will be + // mirrored. They must live in the same region as this packetMirroring. + // + // You may specify a maximum of 5 subnetworks. repeated PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125; - // A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored. + // A set of mirrored tags. Traffic from/to all VM instances that have one or + // more of these tags will be mirrored. repeated string tags = 3552281; } // message PacketMirroringMirroredResourceInfoInstanceInfo { - // [Output Only] Unique identifier for the instance; defined by the server. + // [Output Only] Unique identifier for the instance; defined by the + // server. optional string canonical_url = 512294820; // Resource URL to the virtual machine instance which is being mirrored. @@ -28441,10 +57387,12 @@ message PacketMirroringMirroredResourceInfoInstanceInfo { // message PacketMirroringMirroredResourceInfoSubnetInfo { - // [Output Only] Unique identifier for the subnetwork; defined by the server. + // [Output Only] Unique identifier for the subnetwork; defined by the + // server. optional string canonical_url = 512294820; - // Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. + // Resource URL to the subnetwork for which + // traffic from/to all VM instances will be mirrored. optional string url = 116079; } @@ -28464,17 +57412,25 @@ message PacketMirroringsScopedList { // A list of packetMirrorings contained in this scope. repeated PacketMirroring packet_mirrorings = 154615079; - // Informational warning which replaces the list of packetMirrorings when the list is empty. + // Informational warning which replaces the list of packetMirrorings when the + // list is empty. optional Warning warning = 50704284; } -// Model definition of partner_metadata field. To be used in dedicated Partner Metadata methods and to be inlined in the Instance and InstanceTemplate resources. +// Model definition of partner_metadata field. +// To be used in dedicated Partner Metadata methods and to be inlined in +// the Instance and InstanceTemplate resources. message PartnerMetadata { - // Instance-level hash to be used for optimistic locking. + // Instance-level hash to be used for optimistic + // locking. optional string fingerprint = 234678500; - // Partner Metadata assigned to the instance. A map from a subdomain to entries map. Subdomain name must be compliant with RFC1035 definition. The total size of all keys and values must be less than 2MB. Subdomain 'metadata.compute.googleapis.com' is reserverd for instance's metadata. + // Partner Metadata assigned to the instance. A map from a subdomain to + // entries map. Subdomain name must be compliant withRFC1035 + // definition. The total size of all keys and values must be less than 2MB. + // Subdomain 'metadata.compute.googleapis.com' is reserverd for instance's + // metadata. map partner_metadata = 65908934; } @@ -28499,7 +57455,19 @@ message PatchAssociationRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28518,7 +57486,19 @@ message PatchAutoscalerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the zone for this request. @@ -28543,7 +57523,19 @@ message PatchBackendBucketRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28562,7 +57554,19 @@ message PatchBackendServiceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28581,7 +57585,20 @@ message PatchCrossSiteNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -28603,7 +57620,19 @@ message PatchDiskSettingRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -28625,7 +57654,19 @@ message PatchFirewallPolicyRequest { // The body resource for this request FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28644,7 +57685,19 @@ message PatchFirewallRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28669,7 +57722,19 @@ message PatchForwardingRuleRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28688,7 +57753,19 @@ message PatchGlobalForwardingRuleRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28707,7 +57784,19 @@ message PatchGlobalPublicDelegatedPrefixeRequest { // The body resource for this request PublicDelegatedPrefix public_delegated_prefix_resource = 47594501 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28726,7 +57815,19 @@ message PatchHealthCheckRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28745,7 +57846,19 @@ message PatchImageRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28764,10 +57877,23 @@ message PatchInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where you want to create the managed instance group. + // The name of the zone where + // you want to create the managed instance group. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -28786,7 +57912,19 @@ message PatchInstanceSettingRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -28814,7 +57952,20 @@ message PatchInterconnectAttachmentGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; // The list of fields to update. @@ -28842,7 +57993,19 @@ message PatchInterconnectAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28861,7 +58024,20 @@ message PatchInterconnectGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; // The list of fields to update. @@ -28883,7 +58059,19 @@ message PatchInterconnectRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28908,7 +58096,20 @@ message PatchNetworkAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -28935,7 +58136,19 @@ message PatchNetworkEdgeSecurityServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Indicates fields to be updated as part of this request. @@ -28957,7 +58170,19 @@ message PatchNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28976,7 +58201,19 @@ message PatchNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -28995,7 +58232,19 @@ message PatchNodeGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -29008,7 +58257,19 @@ message PatchNodeGroupRequest { // A request message for OrganizationSecurityPolicies.Patch. See the method description for details. message PatchOrganizationSecurityPolicyRequest { - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -29042,7 +58303,19 @@ message PatchPacketMirroringRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29058,7 +58331,19 @@ message PatchPacketMirroringRuleFirewallPolicyRequest { // The priority of the rule to patch. optional int32 priority = 445151652; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29080,7 +58365,19 @@ message PatchPacketMirroringRuleNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29099,7 +58396,19 @@ message PatchPartnerMetadataInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -29112,7 +58421,8 @@ message PatchPartnerMetadataInstanceRequest { // A request message for InstanceGroupManagers.PatchPerInstanceConfigs. See the method description for details. message PatchPerInstanceConfigsInstanceGroupManagerRequest { - // The name of the managed instance group. It should conform to RFC1035. + // The name of the managed instance group. + // It should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -29124,10 +58434,24 @@ message PatchPerInstanceConfigsInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. It should conform to RFC1035. + // The name of thezone + // where the managed instance group is located. + // It should conform to RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -29137,7 +58461,8 @@ message PatchPerInstanceConfigsInstanceGroupManagerRequest { // A request message for RegionInstanceGroupManagers.PatchPerInstanceConfigs. See the method description for details. message PatchPerInstanceConfigsRegionInstanceGroupManagerRequest { - // The name of the managed instance group. It should conform to RFC1035. + // The name of the managed instance group. + // It should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -29155,7 +58480,19 @@ message PatchPerInstanceConfigsRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagerPatchInstanceConfigReq region_instance_group_manager_patch_instance_config_req_resource = 197682890 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29174,7 +58511,19 @@ message PatchPublicAdvertisedPrefixeRequest { // The body resource for this request PublicAdvertisedPrefix public_advertised_prefix_resource = 233614223 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29199,7 +58548,19 @@ message PatchPublicDelegatedPrefixeRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29224,7 +58585,57 @@ message PatchRegionAutoscalerRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionBackendBuckets.Patch. See the method description for details. +message PatchRegionBackendBucketRequest { + // Name of the BackendBucket resource to patch. + string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + BackendBucket backend_bucket_resource = 380757784 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; } @@ -29249,7 +58660,57 @@ message PatchRegionBackendServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionCompositeHealthChecks.Patch. See the method description for details. +message PatchRegionCompositeHealthCheckRequest { + // Name of the CompositeHealthCheck to update. The name + // must be 1-63 characters long, and comply with RFC1035. + string composite_health_check = 466984989 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + CompositeHealthCheck composite_health_check_resource = 132195824 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29271,7 +58732,19 @@ message PatchRegionDiskSettingRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -29279,6 +58752,44 @@ message PatchRegionDiskSettingRequest { } +// A request message for RegionHealthAggregationPolicies.Patch. See the method description for details. +message PatchRegionHealthAggregationPolicyRequest { + // Name of the HealthAggregationPolicy to update. The name + // must be 1-63 characters long, and comply with RFC1035. + string health_aggregation_policy = 240314354 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // A request message for RegionHealthChecks.Patch. See the method description for details. message PatchRegionHealthCheckRequest { // Name of the HealthCheck resource to patch. @@ -29299,14 +58810,27 @@ message PatchRegionHealthCheckRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for RegionHealthCheckServices.Patch. See the method description for details. message PatchRegionHealthCheckServiceRequest { - // Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the HealthCheckService to update. The name + // must be 1-63 characters long, and comply with RFC1035. string health_check_service = 408374747 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -29324,14 +58848,27 @@ message PatchRegionHealthCheckServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for RegionHealthSources.Patch. See the method description for details. message PatchRegionHealthSourceRequest { - // Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the HealthSource to update. The name + // must be 1-63 characters long, and comply with RFC1035. string health_source = 376521566 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -29349,7 +58886,19 @@ message PatchRegionHealthSourceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29374,7 +58923,19 @@ message PatchRegionInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29399,7 +58960,19 @@ message PatchRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29424,7 +58997,19 @@ message PatchRegionNetworkPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29443,7 +59028,19 @@ message PatchRegionSecurityPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -29471,7 +59068,19 @@ message PatchRegionSnapshotSettingRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -29496,10 +59105,23 @@ message PatchRegionSslPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the SSL policy to update. The name must be 1-63 characters long, + // and comply with RFC1035. string ssl_policy = 295190213 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -29521,7 +59143,19 @@ message PatchRegionTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpsProxy resource to patch. @@ -29546,7 +59180,8 @@ message PatchRegionUrlMapRequest { (google.cloud.operation_request_field) = "region" ]; - // begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + // begin_interface: MixerMutationRequestBuilder + // Request ID to support idempotency. optional string request_id = 37109963; // Name of the UrlMap resource to patch. @@ -29571,7 +59206,19 @@ message PatchResourcePolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Id of the resource policy to patch. @@ -29599,7 +59246,19 @@ message PatchRoutePolicyRouterRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -29624,7 +59283,19 @@ message PatchRouterRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Router resource to patch. @@ -29646,7 +59317,19 @@ message PatchRuleFirewallPolicyRequest { // The priority of the rule to patch. optional int32 priority = 445151652; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29668,7 +59351,19 @@ message PatchRuleNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29678,7 +59373,19 @@ message PatchRuleOrganizationSecurityPolicyRequest { // The priority of the rule to patch. optional int32 priority = 445151652; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -29715,7 +59422,19 @@ message PatchRuleRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29784,7 +59503,19 @@ message PatchSecurityPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -29812,10 +59543,23 @@ message PatchServiceAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number. + // The resource id of the ServiceAttachment to patch. It should conform to + // RFC1035 resource name or be a string form on an unsigned long number. string service_attachment = 338957549 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -29831,7 +59575,19 @@ message PatchSnapshotSettingRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -29850,10 +59606,23 @@ message PatchSslPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the SSL policy to update. The name must be 1-63 characters long, + // and comply with RFC1035. string ssl_policy = 295190213 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -29863,7 +59632,15 @@ message PatchSslPolicyRequest { // A request message for Subnetworks.Patch. See the method description for details. message PatchSubnetworkRequest { - // The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. + // The drain timeout specifies the upper bound in seconds on the amount of + // time allowed to drain connections from the current ACTIVE subnetwork + // to the current BACKUP subnetwork. The drain timeout is only applicable + // when the following conditions are true: + // - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER + // - the subnetwork being patched has role = BACKUP + // - the patch request is setting the role to ACTIVE. Note that after this + // patch operation the roles of the ACTIVE and BACKUP subnetworks will be + // swapped. optional int32 drain_timeout_seconds = 357707098; // Project ID for this request. @@ -29878,7 +59655,19 @@ message PatchSubnetworkRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Subnetwork resource to patch. @@ -29897,7 +59686,19 @@ message PatchTargetGrpcProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetGrpcProxy resource to patch. @@ -29916,7 +59717,19 @@ message PatchTargetHttpProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpProxy resource to patch. @@ -29935,7 +59748,19 @@ message PatchTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpsProxy resource to patch. @@ -29954,7 +59779,8 @@ message PatchTrafficClassificationRuleRegionNetworkPolicyRequest { // The body resource for this request NetworkPolicyTrafficClassificationRule network_policy_traffic_classification_rule_resource = 464294582 [(google.api.field_behavior) = REQUIRED]; - // The priority of the traffic classification rule to patch. Only rules with a priority value between 1 and 2147482647 (inclusive) can be patched. + // The priority of the traffic classification rule to patch. Only rules with + // a priority value between 1 and 2147482647 (inclusive) can be patched. optional int32 priority = 445151652; // Project ID for this request. @@ -29969,7 +59795,19 @@ message PatchTrafficClassificationRuleRegionNetworkPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -29982,7 +59820,19 @@ message PatchUrlMapRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the UrlMap resource to patch. @@ -30003,7 +59853,20 @@ message PatchWireGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + // end_interface: MixerMutationRequestBuilder optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -30020,93 +59883,268 @@ message PatchWireGroupRequest { } -// A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service is used. +// A matcher for the path portion of the URL. The BackendService +// from the longest-matched rule will serve the URL. If no rule was matched, the +// default service is used. message PathMatcher { - // defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the PathMatcher level and applies only when no policy has been defined for the error code at lower levels like RouteRule and PathRule within this PathMatcher. If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect. For example, consider a UrlMap with the following configuration: - UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors - A RouteRule for /coming_soon/ is configured for the error code 404. If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with pathMatcher.defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers. + // defaultCustomErrorResponsePolicy specifies how the Load + // Balancer returns error responses when BackendServiceorBackendBucket responds with an error. + // + // This policy takes + // effect at the PathMatcher level and applies only when no + // policy has been defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. If an error code does not have a policy defined + // in defaultCustomErrorResponsePolicy, then a policy defined for + // the error code in UrlMap.defaultCustomErrorResponsePolicy + // takes effect. + // + // For example, consider a UrlMap with the following + // configuration: + // + // + // - UrlMap.defaultCustomErrorResponsePolicy is configured + // with policies for 5xx and 4xx errors + // - A RouteRule for /coming_soon/ is configured for the + // error code 404. + // + // If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher's policy + // takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404, + // the policy in RouteRule.customErrorResponsePolicy takes + // effect. If any of the requests in this example encounter a 500 + // error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + // + // When + // used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take + // precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting + // a retry, if load balancer is successful in reaching the + // service, the defaultCustomErrorResponsePolicy is ignored and + // the response from the service is returned to the client. + // + // defaultCustomErrorResponsePolicy is supported only for + // global external Application Load Balancers. optional CustomErrorResponsePolicy default_custom_error_response_policy = 81266089; - // defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction. + // defaultRouteAction takes effect when none of the + // pathRules or routeRules match. The load balancer + // performs advanced routing actions, such as URL rewrites and + // header transformations, before forwarding the request to the + // selected backend. + // + // + // Only one of defaultUrlRedirect, defaultService + // or defaultRouteAction.weightedBackendService can be set. + // + // + // URL maps for classic Application Load Balancers only support + // the urlRewrite action within a path matcher'sdefaultRouteAction. optional HttpRouteAction default_route_action = 378919466; - // The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use + // The full or partial URL to the BackendService resource. This + // URL is used if none of the pathRules orrouteRules defined by this PathMatcher are + // matched. For example, the + // following are all valid URLs to a BackendService resource: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService + // - compute/v1/projects/project/global/backendServices/backendService + // - global/backendServices/backendService + // + // + // If defaultRouteAction is also specified, advanced + // routing actions, such as URL rewrites, take effect before sending the + // request to the backend. + // + // + // Only one of defaultUrlRedirect, defaultService + // or defaultRouteAction.weightedBackendService can be set. + // + // + // Authorization requires one or more of the following Google IAM permissions on the + // specified resource default_service: + // + // + // - compute.backendBuckets.use + // - compute.backendServices.use optional string default_service = 370242231; - // When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy. + // When none of the specified pathRules orrouteRules match, the request is redirected to a URL specified + // by defaultUrlRedirect. + // + // + // Only one of defaultUrlRedirect, defaultService + // or defaultRouteAction.weightedBackendService can be set. + // + // + // Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction default_url_redirect = 359503338; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Specifies changes to request and response headers that need to take effect for the selected backend service. HeaderAction specified here are applied after the matching HttpRouteRule HeaderAction and before the HeaderAction in the UrlMap HeaderAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. + // Specifies changes to request and response headers that need to take effect + // for the selected backend service. + // + // HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before theHeaderAction in the UrlMap + // + // HeaderAction is not supported for load balancers + // that have + // their loadBalancingScheme set to EXTERNAL. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has validateForProxyless field set to true. optional HttpHeaderAction header_action = 328077352; - // The name to which this PathMatcher is referred by the HostRule. + // The name to which this PathMatcher is referred by theHostRule. optional string name = 3373707; - // The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that's required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set. + // The list of path rules. Use this list instead of routeRules + // when routing based on simple path matching is all that's required. The + // order by which path rules are specified does not matter. Matches are always + // done on the longest-path-first basis. + // + // For example: a pathRule with a path /a/b/c/* will match + // before /a/b/* irrespective of the order in which those paths appear in this + // list. + // + // Within a given pathMatcher, only one ofpathRules or routeRules must be set. repeated PathRule path_rules = 104439901; - // The list of HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. routeRules are evaluated in order of priority, from the lowest to highest number. Within a given pathMatcher, you can set only one of pathRules or routeRules. + // The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching and routing actions are + // desired. routeRules are evaluated in order of priority, from + // the lowest to highest number. + // + // Within a given pathMatcher, you can set only one ofpathRules or routeRules. repeated HttpRouteRule route_rules = 376292225; } -// A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL. +// A path-matching rule for a URL. If matched, will use the specifiedBackendService to handle the traffic arriving at this URL. message PathRule { - // customErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. If a policy for an error code is not configured for the PathRule, a policy for the error code configured in pathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified in pathMatcher.defaultCustomErrorResponsePolicy, the policy configured in UrlMap.defaultCustomErrorResponsePolicy takes effect. For example, consider a UrlMap with the following configuration: - UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx errors - A PathRule for /coming_soon/ is configured for the error code 404. If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect. customErrorResponsePolicy is supported only for global external Application Load Balancers. + // customErrorResponsePolicy specifies how the Load + // Balancer returns error responses when BackendServiceorBackendBucket responds with an error. + // + // If a policy for an + // error code is not configured for the PathRule, a policy for + // the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If + // one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy + // configured in UrlMap.defaultCustomErrorResponsePolicy takes + // effect. + // + // For example, consider a UrlMap with the following configuration: + // + // + // - UrlMap.defaultCustomErrorResponsePolicy are configured + // with policies for 5xx and 4xx errors + // - A PathRule for /coming_soon/ is configured for the error + // code 404. + // + // If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher's policy + // takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404, + // the policy in PathRule.customErrorResponsePolicy takes + // effect. If any of the requests in this example encounter a 500 + // error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + // + // customErrorResponsePolicy is supported only for + // global external Application Load Balancers. optional CustomErrorResponsePolicy custom_error_response_policy = 202816619; - // The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. + // The list of path patterns to match. Each must start with / + // and the only place a * is allowed is at the end following + // a /. The string fed to the path matcher does not include + // any text after the first ? or #, and + // those chars are not allowed here. repeated string paths = 106438894; - // In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction. + // In response to a matching path, the load balancer + // performs advanced routing actions, such as URL rewrites and header + // transformations, before forwarding the request to the selected + // backend. + // + // + // Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + // + // + // URL maps for classic Application Load Balancers only support + // the urlRewrite action within a path rule'srouteAction. optional HttpRouteAction route_action = 424563948; - // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. + // The full or partial URL of the backend service resource to which traffic + // is directed if this rule is matched. If routeAction is + // also specified, advanced routing actions, such as URL rewrites, + // take effect before sending the request to the backend. + // + // + // Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. optional string service = 373540533; - // When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy. + // When a path pattern is matched, the request is redirected to a URL + // specified by urlRedirect. + // + // + // Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + // + // + // Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction url_redirect = 405147820; } // message PerInstanceConfig { - // The status of applying this per-instance configuration on the corresponding managed instance. + // The status of applying this per-instance configuration on the corresponding + // managed instance. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; - // The per-instance configuration is being applied to the instance, but is not yet effective, possibly waiting for the instance to, for example, REFRESH. + // The per-instance configuration is being applied to the instance, but is + // not yet effective, possibly waiting for the instance to, for example,REFRESH. APPLYING = 352003508; - // The per-instance configuration deletion is being applied on the instance, possibly waiting for the instance to, for example, REFRESH. + // The per-instance configuration deletion is being applied on the instance, + // possibly waiting for the instance to, for example, REFRESH. DELETING = 528602024; - // The per-instance configuration is effective on the instance, meaning that all disks, ips and metadata specified in this configuration are attached or set on the instance. + // The per-instance configuration is effective on the instance, meaning that + // all disks, ips and metadata specified in this configuration are attached + // or set on the instance. EFFECTIVE = 244201863; - // *[Default]* The default status, when no per-instance configuration exists. + // *[Default]* The default status, when no per-instance configuration + // exists. NONE = 2402104; - // The per-instance configuration is set on an instance but not been applied yet. + // The per-instance configuration is set on an instance but not been applied + // yet. UNAPPLIED = 483935140; - // The per-instance configuration has been deleted, but the deletion is not yet applied. + // The per-instance configuration has been deleted, but the deletion is not + // yet applied. UNAPPLIED_DELETION = 313956873; } - // Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset. + // Fingerprint of this per-instance config. This field can be used in + // optimistic locking. It is ignored when inserting a per-instance + // config. An up-to-date fingerprint must be provided in order to update an + // existing per-instance configuration or the field needs to be unset. optional string fingerprint = 234678500; - // The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error. + // The name of a per-instance configuration and its corresponding instance. + // Serves as a merge key during UpdatePerInstanceConfigs + // operations, that is, if a per-instance configuration with the same name + // exists then it will be updated, otherwise a new one will be created for the + // VM instance with the same name. An attempt to create a per-instance + // configuration for a VM instance that either doesn't exist or is not part + // of the group will result in an error. optional string name = 3373707; - // The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy. + // The intended preserved state for the given instance. Does not contain + // preserved state generated from a stateful policy. optional PreservedState preserved_state = 2634026; - // The status of applying this per-instance configuration on the corresponding managed instance. + // The status of applying this per-instance configuration on the corresponding + // managed instance. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -30123,7 +60161,19 @@ message PerformMaintenanceInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -30148,7 +60198,19 @@ message PerformMaintenanceNodeGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -30167,13 +60229,27 @@ message PerformMaintenanceReservationBlockRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the reservation. Name should conform to RFC1035 or be a resource ID. + // The name of the reservation. + // Name should conform to RFC1035 or be a resource ID. string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; - // The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + // The name of the reservation block. + // Name should conform to RFC1035 or be a resource ID. string reservation_block = 532832858 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -30195,10 +60271,23 @@ message PerformMaintenanceReservationRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the reservation. Name should conform to RFC1035 or be a resource ID. + // The name of the reservation. + // Name should conform to RFC1035 or be a resource ID. string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -30214,7 +60303,8 @@ message PerformMaintenanceReservationRequest { // A request message for ReservationSubBlocks.PerformMaintenance. See the method description for details. message PerformMaintenanceReservationSubBlockRequest { - // The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + // The name of the parent reservation and parent block. In the format of + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -30223,10 +60313,23 @@ message PerformMaintenanceReservationSubBlockRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + // The name of the reservation subBlock. + // Name should conform to RFC1035 or be a resource ID. string reservation_sub_block = 22750491 [(google.api.field_behavior) = REQUIRED]; // Name of the zone for this request. Zone name should conform to RFC1035. @@ -30237,20 +60340,133 @@ message PerformMaintenanceReservationSubBlockRequest { } -// An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). +// An Identity and Access Management (IAM) policy, which specifies access +// controls for Google Cloud resources. +// +// +// A `Policy` is a collection of `bindings`. A `binding` binds one or more +// `members`, or principals, to a single `role`. Principals can be user +// accounts, service accounts, Google groups, and domains (such as G Suite). A +// `role` is a named list of permissions; each `role` can be an IAM predefined +// role or a user-created custom role. +// +// For some types of Google Cloud resources, a `binding` can also specify a +// `condition`, which is a logical expression that allows access to a resource +// only if the expression evaluates to `true`. A condition can add constraints +// based on attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the +// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). +// +// **JSON example:** +// +// ``` +// { +// "bindings": [ +// { +// "role": "roles/resourcemanager.organizationAdmin", +// "members": [ +// "user:mike@example.com", +// "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" +// ] +// }, +// { +// "role": "roles/resourcemanager.organizationViewer", +// "members": [ +// "user:eve@example.com" +// ], +// "condition": { +// "title": "expirable access", +// "description": "Does not grant access after Sep 2020", +// "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", +// } +// } +// ], +// "etag": "BwWWja0YfJA=", +// "version": 3 +// } +// ``` +// +// **YAML example:** +// +// ``` +// bindings: +// - members: +// - user:mike@example.com +// - group:admins@example.com +// - domain:google.com +// - serviceAccount:my-project-id@appspot.gserviceaccount.com +// role: roles/resourcemanager.organizationAdmin +// - members: +// - user:eve@example.com +// role: roles/resourcemanager.organizationViewer +// condition: +// title: expirable access +// description: Does not grant access after Sep 2020 +// expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// etag: BwWWja0YfJA= +// version: 3 +// ``` +// +// For a description of IAM and its features, see the +// [IAM documentation](https://cloud.google.com/iam/docs/). message Policy { // Specifies cloud audit logging configuration for this policy. repeated AuditConfig audit_configs = 328080653; - // Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. + // Associates a list of `members`, or principals, with a `role`. Optionally, + // may specify a `condition` that determines how and when the `bindings` are + // applied. Each of the `bindings` must contain at least one principal. + // + // The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + // of these principals can be Google groups. Each occurrence of a principal + // counts towards these limits. For example, if the `bindings` grant 50 + // different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. repeated Binding bindings = 403251854; - // `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. + // `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. + // It is strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. optional string etag = 3123477; optional bool iam_owned = 450566203; - // Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + // Specifies the format of the policy. + // + // Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + // are rejected. + // + // Any operation that affects conditional role bindings must specify version + // `3`. This requirement applies to the following operations: + // + // * Getting a policy that includes a conditional role binding + // * Adding a conditional role binding to a policy + // * Changing a conditional role binding in a policy + // * Removing any role binding, with or without a condition, from a policy + // that includes conditions + // + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + // + // If a policy does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. + // + // To learn which resources support conditions in their IAM policies, see the + // [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). optional int32 version = 351608024; } @@ -30264,13 +60480,16 @@ message PreconfiguredWafSet { // Preserved state for a given instance. message PreservedState { - // Preserved disks defined for this instance. This map is keyed with the device names of the disks. + // Preserved disks defined for this instance. + // This map is keyed with the device names of the disks. map disks = 95594102; - // Preserved external IPs defined for this instance. This map is keyed with the name of the network interface. + // Preserved external IPs defined for this instance. + // This map is keyed with the name of the network interface. map external_i_ps = 532687245; - // Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface. + // Preserved internal IPs defined for this instance. + // This map is keyed with the name of the network interface. map internal_i_ps = 215731675; // Preserved metadata defined for this instance. @@ -30280,7 +60499,12 @@ message PreservedState { // message PreservedStatePreservedDisk { - // These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. + // These stateful disks will never be deleted during autohealing, + // update, instance recreate operations. This flag is used to configure + // if the disk should be deleted after it is no longer used by the group, + // e.g. when the given instance or the whole MIG is deleted. + // Note: disks attached in READ_ONLY mode cannot be + // auto-deleted. enum AutoDelete { // A value indicating that the enum field is not set. UNDEFINED_AUTO_DELETE = 0; @@ -30291,35 +60515,49 @@ message PreservedStatePreservedDisk { } - // The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. + // The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the + // disk in READ_WRITE mode. enum Mode { // A value indicating that the enum field is not set. UNDEFINED_MODE = 0; - // Attaches this disk in read-only mode. Multiple VM instances can use a disk in READ_ONLY mode at a time. + // Attaches this disk in read-only mode. Multiple VM instances can use + // a disk in READ_ONLY mode at a time. READ_ONLY = 91950261; - // *[Default]* Attaches this disk in READ_WRITE mode. Only one VM instance at a time can be attached to a disk in READ_WRITE mode. + // *[Default]* Attaches this disk in READ_WRITE mode. Only + // one VM instance at a time can be attached to a disk inREAD_WRITE mode. READ_WRITE = 173607894; } - // These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. + // These stateful disks will never be deleted during autohealing, + // update, instance recreate operations. This flag is used to configure + // if the disk should be deleted after it is no longer used by the group, + // e.g. when the given instance or the whole MIG is deleted. + // Note: disks attached in READ_ONLY mode cannot be + // auto-deleted. // Check the AutoDelete enum for the list of possible values. optional string auto_delete = 464761403; - // The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. + // The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the + // disk in READ_WRITE mode. // Check the Mode enum for the list of possible values. optional string mode = 3357091; - // The URL of the disk resource that is stateful and should be attached to the VM instance. + // The URL of the disk resource that is stateful and should be attached + // to the VM instance. optional string source = 177235995; } // message PreservedStatePreservedNetworkIp { - // These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. + // These stateful IPs will never be released during autohealing, + // update or VM instance recreate operations. + // This flag is used to configure if the IP reservation should be deleted + // after it is no longer used by the group, e.g. when the given instance + // or the whole group is deleted. enum AutoDelete { // A value indicating that the enum field is not set. UNDEFINED_AUTO_DELETE = 0; @@ -30330,7 +60568,11 @@ message PreservedStatePreservedNetworkIp { } - // These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. + // These stateful IPs will never be released during autohealing, + // update or VM instance recreate operations. + // This flag is used to configure if the IP reservation should be deleted + // after it is no longer used by the group, e.g. when the given instance + // or the whole group is deleted. // Check the AutoDelete enum for the list of possible values. optional string auto_delete = 464761403; @@ -30344,7 +60586,8 @@ message PreservedStatePreservedNetworkIpIpAddress { // The URL of the reservation for this IP address. optional string address = 462920692; - // An IPv4 internal network address to assign to the instance for this network interface. + // An IPv4 internal network address to assign to the instance for this + // network interface. optional string literal = 182460591; } @@ -30368,16 +60611,19 @@ message PreviewFeature { // Check the ActivationStatus enum for the list of possible values. optional string activation_status = 71960379; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // [Output Only] Description of the feature. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + // [Output only] The type of the feature. Always "compute#previewFeature" for + // preview features. optional string kind = 3292052; // Name of the feature. @@ -30404,13 +60650,18 @@ message PreviewFeatureList { // A list of PreviewFeature resources. repeated PreviewFeature items = 100526016; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -30440,7 +60691,13 @@ message PreviewFeatureRolloutOperationRolloutInput { } - // The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + // The name of the rollout plan + // Ex. + // organizations//locations/global/rolloutPlans/ + // Ex. + // folders//locations/global/rolloutPlans/ + // Ex. + // projects//locations/global/rolloutPlans/. optional string name = 3373707; // Predefined rollout plan. @@ -30507,9 +60764,16 @@ message PreviewRouterRequest { } -// Represents a Project resource. A project is used to organize resources in a Google Cloud Platform environment. For more information, read about the Resource Hierarchy. +// Represents a Project resource. +// +// A project is used to organize resources in a Google Cloud Platform +// environment. For more information, read about the +// Resource Hierarchy. message Project { - // [Output Only] The Cloud Armor tier for this project. It can be one of the following values: CA_STANDARD, CA_ENTERPRISE_PAYGO. If this field is not specified, it is assumed to be CA_STANDARD. + // [Output Only] The Cloud Armor tier for this project. It can be one of the + // following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. + // + // If this field is not specified, it is assumed to beCA_STANDARD. // Additional supported values which may be not listed in the enum directly due to technical reasons: // CA_STANDARD enum CloudArmorTier { @@ -30526,7 +60790,9 @@ message Project { } - // This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. + // This signifies the default network tier used for configuring resources of + // the project and can only take the following values:PREMIUM, STANDARD. Initially the default network + // tier is PREMIUM. enum DefaultNetworkTier { // A value indicating that the enum field is not set. UNDEFINED_DEFAULT_NETWORK_TIER = 0; @@ -30534,18 +60800,24 @@ message Project { // Public internet quality with fixed bandwidth. FIXED_STANDARD = 310464328; - // High quality, Google-grade network tier, support for all networking products. + // High quality, Google-grade network tier, support for all networking + // products. PREMIUM = 399530551; - // Public internet quality, only limited support for other networking products. + // Public internet quality, only limited support for other networking + // products. STANDARD = 484642493; - // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured. + // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier + // is expired or not configured. STANDARD_OVERRIDES_FIXED_STANDARD = 465847234; } - // [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of the following values: CA_STANDARD, CAMP_PLUS_PAYGO. If this field is not specified, it is assumed to be CA_STANDARD. + // [Output Only] The Cloud Armor Managed Protection (CAMP) tier for + // this project. It can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + // + // If this field is not specified, it is assumed to beCA_STANDARD. // Additional supported values which may be not listed in the enum directly due to technical reasons: // CA_STANDARD enum ManagedProtectionTier { @@ -30560,7 +60832,8 @@ message Project { } - // [Output Only] Default internal DNS setting used by VMs running in this project. + // [Output Only] Default internal DNS setting used by VMs running in + // this project. enum VmDnsSetting { // A value indicating that the enum field is not set. UNDEFINED_VM_DNS_SETTING = 0; @@ -30575,7 +60848,9 @@ message Project { } - // [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. + // [Output Only] The role this project has in a shared VPC configuration. + // Currently, only projects with the host role, which is specified by the + // value HOST, are differentiated. enum XpnProjectStatus { // A value indicating that the enum field is not set. UNDEFINED_XPN_PROJECT_STATUS = 0; @@ -30586,17 +60861,25 @@ message Project { } - // [Output Only] The Cloud Armor tier for this project. It can be one of the following values: CA_STANDARD, CA_ENTERPRISE_PAYGO. If this field is not specified, it is assumed to be CA_STANDARD. + // [Output Only] The Cloud Armor tier for this project. It can be one of the + // following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. + // + // If this field is not specified, it is assumed to beCA_STANDARD. // Check the CloudArmorTier enum for the list of possible values. optional string cloud_armor_tier = 4427052; - // Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. + // Metadata key/value pairs available to all instances contained in this + // project. See Custom + // metadata for more information. optional Metadata common_instance_metadata = 185794117; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. + // This signifies the default network tier used for configuring resources of + // the project and can only take the following values:PREMIUM, STANDARD. Initially the default network + // tier is PREMIUM. // Check the DefaultNetworkTier enum for the list of possible values. optional string default_network_tier = 471753361; @@ -30609,17 +60892,24 @@ message Project { // An optional list of restricted features enabled for use on this project. repeated string enabled_features = 469017467; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. This is *not* the project ID, and is + // just a unique ID used by Compute Engine to identify resources. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#project for projects. + // [Output Only] Type of the resource. Always compute#project for + // projects. optional string kind = 3292052; - // [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of the following values: CA_STANDARD, CAMP_PLUS_PAYGO. If this field is not specified, it is assumed to be CA_STANDARD. + // [Output Only] The Cloud Armor Managed Protection (CAMP) tier for + // this project. It can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + // + // If this field is not specified, it is assumed to beCA_STANDARD. // Check the ManagedProtectionTier enum for the list of possible values. optional string managed_protection_tier = 7804648; - // The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. + // The project ID. For example: my-example-project. Use the + // project ID to make requests to Compute Engine. optional string name = 3373707; // [Output Only] Quotas assigned to this project. @@ -30628,14 +60918,18 @@ message Project { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. + // An optional naming prefix for daily usage reports and the Google Cloud + // Storage bucket where they are stored. optional UsageExportLocation usage_export_location = 347543874; - // [Output Only] Default internal DNS setting used by VMs running in this project. + // [Output Only] Default internal DNS setting used by VMs running in + // this project. // Check the VmDnsSetting enum for the list of possible values. optional string vm_dns_setting = 58856370; - // [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. + // [Output Only] The role this project has in a shared VPC configuration. + // Currently, only projects with the host role, which is specified by the + // value HOST, are differentiated. // Check the XpnProjectStatus enum for the list of possible values. optional string xpn_project_status = 228419265; @@ -30657,20 +60951,28 @@ message ProjectsEnableXpnResourceRequest { // message ProjectsGetXpnResources { - // [Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects) + // [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service resources + // (a.k.a service projects) optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; - // Service resources (a.k.a service projects) attached to this project as their shared VPC host. + // Service resources (a.k.a service projects) attached to this project as + // their shared VPC host. repeated XpnResourceId resources = 164412965; } // message ProjectsListXpnHostsRequest { - // Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host projects. If not specified, the organization will be inferred from the project. + // Optional organization ID managed by Cloud Resource Manager, for which to + // list shared VPC host projects. If not specified, the organization will be + // inferred from the project. optional string organization = 105180467; } @@ -30709,13 +61011,16 @@ message ProjectsSetDefaultNetworkTierRequest { // Public internet quality with fixed bandwidth. FIXED_STANDARD = 310464328; - // High quality, Google-grade network tier, support for all networking products. + // High quality, Google-grade network tier, support for all networking + // products. PREMIUM = 399530551; - // Public internet quality, only limited support for other networking products. + // Public internet quality, only limited support for other networking + // products. STANDARD = 484642493; - // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured. + // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier + // is expired or not configured. STANDARD_OVERRIDES_FIXED_STANDARD = 465847234; } @@ -30750,38 +61055,84 @@ message ProjectsSetManagedProtectionTierRequest { } -// A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet. +// A public advertised prefix represents an aggregated IP prefix or netblock +// which customers bring to cloud. The IP prefix is a single unit of route +// advertisement and is announced globally to the internet. message PublicAdvertisedPrefix { // [Output Only] The version of BYOIP API. enum ByoipApiVersion { // A value indicating that the enum field is not set. UNDEFINED_BYOIP_API_VERSION = 0; - // This public advertised prefix can be used to create both regional and global public delegated prefixes. It usually takes 4 weeks to create or delete a public delegated prefix. The BGP status cannot be changed. + // This public advertised prefix can be used to create both regional and + // global public delegated prefixes. It usually takes 4 weeks to create or + // delete a public delegated prefix. The BGP status cannot be changed. V1 = 2715; - // This public advertised prefix can only be used to create regional public delegated prefixes. Public delegated prefix creation and deletion takes minutes and the BGP status can be modified. + // This public advertised prefix can only be used to create regional public + // delegated prefixes. Public delegated prefix creation and deletion takes + // minutes and the BGP status can be modified. V2 = 2716; } - // Specifies how child public delegated prefix will be scoped. It could be one of following values: - `REGIONAL`: The public delegated prefix is regional only. The provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no longer supported in BYOIP V2. + // The internet access type for IPv6 Public Advertised Prefixes. + enum Ipv6AccessType { + // A value indicating that the enum field is not set. + UNDEFINED_IPV6_ACCESS_TYPE = 0; + + // Default IPv6 access type. The prefix will be announced to the internet. + // All children Public Delegated Prefixes will have IPv6 access type as + // EXTERNAL. + EXTERNAL = 35607499; + + // The prefix will not be announced to the internet. Prefix will be used + // privately within Cloud. All children Public Delegated Prefixes + // will have IPv6 access type as INTERNAL. + INTERNAL = 279295677; + + } + + // Specifies how child public delegated prefix will be scoped. It could + // be one of following values: + // + // + // - `REGIONAL`: The public delegated prefix is regional only. The + // provisioning will take a few minutes. + // - `GLOBAL`: The public delegated prefix is global only. The + // provisioning will take ~4 weeks. + // - `GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is + // BYOIP V1 legacy prefix. This is output only value and no longer + // supported in BYOIP V2. enum PdpScope { // A value indicating that the enum field is not set. UNDEFINED_PDP_SCOPE = 0; - // The public delegated prefix is global only. The provisioning will take ~4 weeks. + // The public delegated prefix is global only. The provisioning will take ~4 + // weeks. GLOBAL = 494663587; - // The public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no longer supported in BYOIP V2. + // The public delegated prefixes is BYOIP V1 legacy prefix. This is output + // only value and no longer supported in BYOIP V2. GLOBAL_AND_REGIONAL = 318053059; - // The public delegated prefix is regional only. The provisioning will take a few minutes. + // The public delegated prefix is regional only. The provisioning will take + // a few minutes. REGIONAL = 92288543; } - // The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. + // The status of the public advertised prefix. Possible values include: + // + // + // - `INITIAL`: RPKI validation is complete. + // - `PTR_CONFIGURED`: User has configured the PTR. + // - `VALIDATED`: Reverse DNS lookup is successful. + // - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. + // - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being + // configured. + // - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. + // - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -30819,35 +61170,67 @@ message PublicAdvertisedPrefix { // Check the ByoipApiVersion enum for the list of possible values. optional string byoip_api_version = 162683283; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; // The address to be used for reverse DNS verification. optional string dns_verification_ip = 241011381; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a new PublicAdvertisedPrefix. An up-to-date + // fingerprint must be provided in order to update thePublicAdvertisedPrefix, otherwise the request will fail with + // error 412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a PublicAdvertisedPrefix. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource type. The server generates this identifier. + // [Output Only] The unique identifier for the resource type. The server + // generates this identifier. optional uint64 id = 3355; - // The address range, in CIDR format, represented by this public advertised prefix. + // The address range, in CIDR format, represented by this public advertised + // prefix. optional string ip_cidr_range = 98117322; - // [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. + // The internet access type for IPv6 Public Advertised Prefixes. + // Check the Ipv6AccessType enum for the list of possible values. + optional string ipv6_access_type = 504658653; + + // [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised prefixes. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // Specifies how child public delegated prefix will be scoped. It could be one of following values: - `REGIONAL`: The public delegated prefix is regional only. The provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no longer supported in BYOIP V2. + // Specifies how child public delegated prefix will be scoped. It could + // be one of following values: + // + // + // - `REGIONAL`: The public delegated prefix is regional only. The + // provisioning will take a few minutes. + // - `GLOBAL`: The public delegated prefix is global only. The + // provisioning will take ~4 weeks. + // - `GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is + // BYOIP V1 legacy prefix. This is output only value and no longer + // supported in BYOIP V2. // Check the PdpScope enum for the list of possible values. optional string pdp_scope = 524264785; - // [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. + // [Output Only] The list of public delegated prefixes that exist for this + // public advertised prefix. repeated PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; // [Output Only] Server-defined URL for the resource. @@ -30856,7 +61239,17 @@ message PublicAdvertisedPrefix { // [Output Only] The shared secret to be used for reverse DNS verification. optional string shared_secret = 381932490; - // The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. + // The status of the public advertised prefix. Possible values include: + // + // + // - `INITIAL`: RPKI validation is complete. + // - `PTR_CONFIGURED`: User has configured the PTR. + // - `VALIDATED`: Reverse DNS lookup is successful. + // - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. + // - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being + // configured. + // - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. + // - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -30870,10 +61263,14 @@ message PublicAdvertisedPrefixList { // A list of PublicAdvertisedPrefix resources. repeated PublicAdvertisedPrefix items = 100526016; - // [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. + // [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised prefixes. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -30895,50 +61292,104 @@ message PublicAdvertisedPrefixPublicDelegatedPrefix { // The project number of the public delegated prefix optional string project = 227560217; - // The region of the public delegated prefix if it is regional. If absent, the prefix is global. + // The region of the public delegated prefix if it is regional. If absent, + // the prefix is global. optional string region = 138946292; - // The status of the public delegated prefix. Possible values are: INITIALIZING: The public delegated prefix is being initialized and addresses cannot be created yet. ANNOUNCED: The public delegated prefix is active. + // The status of the public delegated prefix. Possible values are: + // INITIALIZING: The public delegated prefix is being initialized and + // addresses cannot be created yet. + // ANNOUNCED: The public delegated prefix is active. optional string status = 181260274; } -// A PublicDelegatedPrefix resource represents an IP block within a PublicAdvertisedPrefix that is configured within a single cloud scope (global or region). IPs in the block can be allocated to resources within that scope. Public delegated prefixes may be further broken up into smaller IP blocks in the same scope as the parent block. +// A PublicDelegatedPrefix resource represents an IP block within a +// PublicAdvertisedPrefix that is configured within a single cloud scope +// (global or region). IPs in the block can be allocated to resources within +// that scope. Public delegated prefixes may be further broken up into +// smaller IP blocks in the same scope as the parent block. message PublicDelegatedPrefix { // [Output Only] The version of BYOIP API. enum ByoipApiVersion { // A value indicating that the enum field is not set. UNDEFINED_BYOIP_API_VERSION = 0; - // This public delegated prefix usually takes 4 weeks to delete, and the BGP status cannot be changed. Announce and Withdraw APIs can not be used on this prefix. + // This public delegated prefix usually takes 4 weeks to delete, and the BGP + // status cannot be changed. Announce and Withdraw APIs can not be used on + // this prefix. V1 = 2715; - // This public delegated prefix takes minutes to delete. Announce and Withdraw APIs can be used on this prefix to change the BGP status. + // This public delegated prefix takes minutes to delete. Announce and + // Withdraw APIs can be used on this prefix to change the BGP status. V2 = 2716; } + // [Output Only] The internet access type for IPv6 Public Delegated Prefixes. + // Inherited from parent prefix. + enum Ipv6AccessType { + // A value indicating that the enum field is not set. + UNDEFINED_IPV6_ACCESS_TYPE = 0; + + // The parent public advertised prefix will be announced to the internet. + // All children public delegated prefixes will have IPv6 access type as + // EXTERNAL. + EXTERNAL = 35607499; + + // The parent public advertised prefix will not be announced to the + // internet. Prefix will be used privately within Cloud. All children + // public delegated prefixes will have IPv6 access type as INTERNAL. + INTERNAL = 279295677; + + } + // The public delegated prefix mode for IPv6 only. enum Mode { // A value indicating that the enum field is not set. UNDEFINED_MODE = 0; - // The public delegated prefix is used for further sub-delegation only. Such prefixes cannot set allocatablePrefixLength. + // The public delegated prefix is used for further sub-delegation only. Such + // prefixes cannot set allocatablePrefixLength. DELEGATION = 264149288; - // The public delegated prefix is used for creating forwarding rules only. Such prefixes cannot set publicDelegatedSubPrefixes. + // The public delegated prefix is used for creating forwarding rules only. + // Such prefixes cannot set publicDelegatedSubPrefixes. Parent public + // delegated prefix must have IPv6 access type as EXTERNAL. EXTERNAL_IPV6_FORWARDING_RULE_CREATION = 398684356; - // The public delegated prefix is used for creating dual-mode subnetworks only. Such prefixes cannot set publicDelegatedSubPrefixes. + // The public delegated prefix is used for creating dual-mode subnetworks + // only. Such prefixes cannot set publicDelegatedSubPrefixes. Parent public + // delegated prefix must have IPv6 access type as EXTERNAL. EXTERNAL_IPV6_SUBNETWORK_CREATION = 61198284; + // The public delegated prefix is used for creating dual stack or IPv6-only + // subnetwork with internal access only. Such prefixes cannot set + // publicDelegatedSubPrefixes and allocatablePrefixLength. Parent public + // delegated prefix must have IPv6 access type as INTERNAL. + INTERNAL_IPV6_SUBNETWORK_CREATION = 153239834; + } - // [Output Only] The status of the public delegated prefix, which can be one of following values: - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - `DELETING` The public delegated prefix is being deprovsioned. + // [Output Only] The status of the public delegated prefix, which can be one + // of following values: + // + // + // - `INITIALIZING` The public delegated prefix is being initialized and + // addresses cannot be created yet. + // - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration + // prefix and is active. + // - `ANNOUNCED` The public delegated prefix is announced and ready to + // use. + // - `DELETING` The public delegated prefix is being deprovsioned. + // - `ACTIVE` The public delegated prefix is ready to use. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; + // The public delegated prefix is ready to use. + ACTIVE = 314733318; + // The public delegated prefix is announced and ready to use. ANNOUNCED = 365103355; @@ -30951,65 +61402,108 @@ message PublicDelegatedPrefix { // The public delegated prefix is being deprovsioned. DELETING = 528602024; - // The public delegated prefix is being initialized and addresses cannot be created yet. + // The public delegated prefix is being initialized and addresses cannot be + // created yet. INITIALIZING = 306588749; - // The public delegated prefix is currently withdrawn but ready to be announced. + // The public delegated prefix is currently withdrawn but ready to be + // announced. READY_TO_ANNOUNCE = 64641265; } - // The allocatable prefix length supported by this public delegated prefix. This field is optional and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, and it always defaults to 32. + // The allocatable prefix length supported by this public delegated prefix. + // This field is optional and cannot be set for prefixes in DELEGATION mode. + // It cannot be set for IPv4 prefixes either, and it always defaults to 32. optional int32 allocatable_prefix_length = 38427446; // [Output Only] The version of BYOIP API. // Check the ByoipApiVersion enum for the list of possible values. optional string byoip_api_version = 162683283; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs only. + // [Output Only] Whether this PDP supports enhanced IPv4 allocations. + // Applicable for IPv4 PDPs only. optional bool enable_enhanced_ipv4_allocation = 54582253; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a new PublicDelegatedPrefix. An up-to-date + // fingerprint must be provided in order to update thePublicDelegatedPrefix, otherwise the request will fail with + // error 412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a PublicDelegatedPrefix. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource type. The server generates this identifier. + // [Output Only] The unique identifier for the resource type. The server + // generates this identifier. optional uint64 id = 3355; - // The IP address range, in CIDR format, represented by this public delegated prefix. + // The IP address range, in CIDR format, represented by this public + // delegated prefix. optional string ip_cidr_range = 98117322; + // [Output Only] The internet access type for IPv6 Public Delegated Prefixes. + // Inherited from parent prefix. + // Check the Ipv6AccessType enum for the list of possible values. + optional string ipv6_access_type = 504658653; + // If true, the prefix will be live migrated. optional bool is_live_migration = 511823856; - // [Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes. + // [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public delegated prefixes. optional string kind = 3292052; // The public delegated prefix mode for IPv6 only. // Check the Mode enum for the list of possible values. optional string mode = 3357091; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix. + // The URL of parent prefix. Either PublicAdvertisedPrefix or + // PublicDelegatedPrefix. optional string parent_prefix = 15233991; - // The list of sub public delegated prefixes that exist for this public delegated prefix. + // The list of sub public delegated prefixes that exist for this public + // delegated prefix. repeated PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044; - // [Output Only] URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the public delegated prefix resides. + // This field applies only to the region resource. You must specify this + // field as part of the HTTP request URL. It is not settable as a field in + // the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] The status of the public delegated prefix, which can be one of following values: - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and is active. - `ANNOUNCED` The public delegated prefix is announced and ready to use. - `DELETING` The public delegated prefix is being deprovsioned. + // [Output Only] The status of the public delegated prefix, which can be one + // of following values: + // + // + // - `INITIALIZING` The public delegated prefix is being initialized and + // addresses cannot be created yet. + // - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration + // prefix and is active. + // - `ANNOUNCED` The public delegated prefix is announced and ready to + // use. + // - `DELETING` The public delegated prefix is being deprovsioned. + // - `ACTIVE` The public delegated prefix is ready to use. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -31023,10 +61517,15 @@ message PublicDelegatedPrefixAggregatedList { // A list of PublicDelegatedPrefixesScopedList resources. map items = 100526016; - // [Output Only] Type of the resource. Always compute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated prefixes. + // [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated + // lists of public delegated prefixes. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -31048,10 +61547,15 @@ message PublicDelegatedPrefixList { // A list of PublicDelegatedPrefix resources. repeated PublicDelegatedPrefix items = 100526016; - // [Output Only] Type of the resource. Always compute#publicDelegatedPrefixList for public delegated prefixes. + // [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public delegated + // prefixes. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -31064,20 +61568,49 @@ message PublicDelegatedPrefixList { // Represents a sub PublicDelegatedPrefix. message PublicDelegatedPrefixPublicDelegatedSubPrefix { + // [Output Only] The internet access type for IPv6 Public Delegated Sub + // Prefixes. Inherited from parent prefix. + enum Ipv6AccessType { + // A value indicating that the enum field is not set. + UNDEFINED_IPV6_ACCESS_TYPE = 0; + + // The parent public advertised prefix will be announced to the internet. + // All children public delegated prefixes will have IPv6 access type as + // EXTERNAL. + EXTERNAL = 35607499; + + // The parent public advertised prefix will not be announced to the + // internet. Prefix will be used privately within Cloud. All children + // public delegated prefixes will have IPv6 access type as INTERNAL. + INTERNAL = 279295677; + + } + // The PublicDelegatedSubPrefix mode for IPv6 only. enum Mode { // A value indicating that the enum field is not set. UNDEFINED_MODE = 0; - // The public delegated prefix is used for further sub-delegation only. Such prefixes cannot set allocatablePrefixLength. + // The public delegated prefix is used for further sub-delegation only. Such + // prefixes cannot set allocatablePrefixLength. DELEGATION = 264149288; - // The public delegated prefix is used for creating forwarding rules only. Such prefixes cannot set publicDelegatedSubPrefixes. + // The public delegated prefix is used for creating forwarding rules only. + // Such prefixes cannot set publicDelegatedSubPrefixes. Parent public + // delegated prefix must have IPv6 access type as EXTERNAL. EXTERNAL_IPV6_FORWARDING_RULE_CREATION = 398684356; - // The public delegated prefix is used for creating dual-mode subnetworks only. Such prefixes cannot set publicDelegatedSubPrefixes. + // The public delegated prefix is used for creating dual-mode subnetworks + // only. Such prefixes cannot set publicDelegatedSubPrefixes. Parent public + // delegated prefix must have IPv6 access type as EXTERNAL. EXTERNAL_IPV6_SUBNETWORK_CREATION = 61198284; + // The public delegated prefix is used for creating dual stack or IPv6-only + // subnetwork with internal access only. Such prefixes cannot set + // publicDelegatedSubPrefixes and allocatablePrefixLength. Parent public + // delegated prefix must have IPv6 access type as INTERNAL. + INTERNAL_IPV6_SUBNETWORK_CREATION = 153239834; + } // [Output Only] The status of the sub public delegated prefix. @@ -31097,16 +61630,25 @@ message PublicDelegatedPrefixPublicDelegatedSubPrefix { // Name of the project scoping this PublicDelegatedSubPrefix. optional string delegatee_project = 414860634; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs only. + // [Output Only] Whether this PDP supports enhanced IPv4 allocations. + // Applicable for IPv4 PDPs only. optional bool enable_enhanced_ipv4_allocation = 54582253; - // The IP address range, in CIDR format, represented by this sub public delegated prefix. + // The IP address range, in CIDR format, represented by this sub public + // delegated prefix. optional string ip_cidr_range = 98117322; - // Whether the sub prefix is delegated to create Address resources in the delegatee project. + // [Output Only] The internet access type for IPv6 Public Delegated Sub + // Prefixes. Inherited from parent prefix. + // Check the Ipv6AccessType enum for the list of possible values. + optional string ipv6_access_type = 504658653; + + // Whether the sub prefix is delegated to create Address resources in the + // delegatee project. optional bool is_address = 352617951; // The PublicDelegatedSubPrefix mode for IPv6 only. @@ -31116,7 +61658,8 @@ message PublicDelegatedPrefixPublicDelegatedSubPrefix { // The name of the sub public delegated prefix. optional string name = 3373707; - // [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the sub prefix is global. + // [Output Only] The region of the sub public delegated prefix if it is + // regional. If absent, the sub prefix is global. optional string region = 138946292; // [Output Only] The status of the sub public delegated prefix. @@ -31130,7 +61673,8 @@ message PublicDelegatedPrefixesScopedList { // [Output Only] A list of PublicDelegatedPrefixes contained in this scope. repeated PublicDelegatedPrefix public_delegated_prefixes = 315261206; - // [Output Only] Informational warning which replaces the list of public delegated prefixes when the list is empty. + // [Output Only] Informational warning which replaces the list of + // public delegated prefixes when the list is empty. optional Warning warning = 50704284; } @@ -31483,7 +62027,8 @@ message Quota { // Check the Metric enum for the list of possible values. optional string metric = 533067184; - // [Output Only] Owning resource. This is the resource on which this quota is applied. + // [Output Only] Owning resource. This is the resource on which this quota + // is applied. optional string owner = 106164915; // [Output Only] Current usage of this metric. @@ -31498,10 +62043,12 @@ message QuotaExceededInfo { // A value indicating that the enum field is not set. UNDEFINED_ROLLOUT_STATUS = 0; - // IN_PROGRESS - A rollout is in process which will change the limit value to future limit. + // IN_PROGRESS - A rollout is in process which will change the limit value + // to future limit. IN_PROGRESS = 469193735; - // ROLLOUT_STATUS_UNSPECIFIED - Rollout status is not specified. The default value. + // ROLLOUT_STATUS_UNSPECIFIED - Rollout status is not specified. The default + // value. ROLLOUT_STATUS_UNSPECIFIED = 26864568; } @@ -31509,10 +62056,12 @@ message QuotaExceededInfo { // The map holding related quota dimensions. map dimensions = 414334925; - // Future quota limit being rolled out. The limit's unit depends on the quota type or metric. + // Future quota limit being rolled out. The limit's unit depends on the quota + // type or metric. optional double future_limit = 456564287; - // Current effective quota limit. The limit's unit depends on the quota type or metric. + // Current effective quota limit. The limit's unit depends on the quota type + // or metric. optional double limit = 102976443; // The name of the quota limit. @@ -31527,68 +62076,82 @@ message QuotaExceededInfo { } -// [Output Only] Warning of fetching the `quotas` field for this region. This field is populated only if fetching of the `quotas` field fails. +// [Output Only] Warning of fetching the `quotas` field for this region. This +// field is populated only if fetching of the `quotas` field fails. message QuotaStatusWarning { - // [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. enum Code { // A value indicating that the enum field is not set. UNDEFINED_CODE = 0; - // Warning about failed cleanup of transient changes made by a failed operation. + // Warning about failed cleanup of transient changes made by a failed + // operation. CLEANUP_FAILED = 150308440; // A link to a deprecated resource was created. DEPRECATED_RESOURCE_USED = 391835586; - // When deploying and at least one of the resources has a type marked as deprecated + // When deploying and at least one of the resources has a type marked as + // deprecated DEPRECATED_TYPE_USED = 346526230; // The user created a boot disk that is larger than image size. DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 369442967; - // When deploying and at least one of the resources has a type marked as experimental + // When deploying and at least one of the resources has a type marked as + // experimental EXPERIMENTAL_TYPE_USED = 451954443; // Warning that is present in an external api call EXTERNAL_API_WARNING = 175546307; - // Warning that value of a field has been overridden. Deprecated unused field. + // Warning that value of a field has been overridden. + // Deprecated unused field. FIELD_VALUE_OVERRIDEN = 329669423; // The operation involved use of an injected kernel, which is deprecated. INJECTED_KERNELS_DEPRECATED = 417377419; - // A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2. + // A WEIGHTED_MAGLEV backend service is associated with a health check that is + // not of type HTTP/HTTPS/HTTP2. INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; // When deploying a deployment with a exceedingly large number of resources LARGE_DEPLOYMENT_WARNING = 481440678; - // Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter. + // Resource can't be retrieved due to list overhead quota exceed + // which captures the amount of resources filtered out by + // user-defined list filter. LIST_OVERHEAD_QUOTA_EXCEED = 47618117; // A resource depends on a missing type MISSING_TYPE_DEPENDENCY = 344505463; - // The route's nextHopIp address is not assigned to an instance on the network. + // The route's nextHopIp address is not assigned to an instance on the + // network. NEXT_HOP_ADDRESS_NOT_ASSIGNED = 324964999; // The route's next hop instance cannot ip forward. NEXT_HOP_CANNOT_IP_FORWARD = 383382887; - // The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route. + // The route's nextHopInstance URL refers to an instance that does not have an + // ipv6 interface on the same network as the route. NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 146748434; // The route's nextHopInstance URL refers to an instance that does not exist. NEXT_HOP_INSTANCE_NOT_FOUND = 464250446; - // The route's nextHopInstance URL refers to an instance that is not on the same network as the route. + // The route's nextHopInstance URL refers to an instance that is not on the + // same network as the route. NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 243758146; // The route's next hop instance does not have a status of RUNNING. NEXT_HOP_NOT_RUNNING = 417081265; - // Error which is not critical. We decided to continue the process despite the mentioned error. + // Error which is not critical. We decided to continue the process despite + // the mentioned error. NOT_CRITICAL_ERROR = 105763924; // No results are present on a particular list page. @@ -31597,22 +62160,27 @@ message QuotaStatusWarning { // Success is reported, but some results may be missing due to errors PARTIAL_SUCCESS = 39966469; - // Quota information is not available to client requests (e.g: regions.list). + // Quota information is not available to client requests (e.g: + // regions.list). QUOTA_INFO_UNAVAILABLE = 304294182; - // The user attempted to use a resource that requires a TOS they have not accepted. + // The user attempted to use a resource that requires a TOS they have not + // accepted. REQUIRED_TOS_AGREEMENT = 3745539; // Warning that a resource is in use. RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 496728641; - // One or more of the resources set to auto-delete could not be deleted because they were in use. + // One or more of the resources set to auto-delete could not be deleted + // because they were in use. RESOURCE_NOT_DELETED = 168598460; // When a resource schema validation is ignored. SCHEMA_VALIDATION_IGNORED = 275245642; - // Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group. + // Instance template used in instance group manager is valid as such, but + // its application does not make a lot of sense, because it allows only + // single instance in instance group. SINGLE_INSTANCE_PROPERTY_TEMPLATE = 268305617; // When undeclared properties in the schema are present @@ -31623,11 +62191,20 @@ message QuotaStatusWarning { } - // [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. // Check the Code enum for the list of possible values. optional string code = 3059181; - // [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // [Output Only] Metadata about this warning in key: + // value format. For example: + // + // "data": [ + // { + // "key": "scope", + // "value": "zones/us-east1-d" + // } repeated Data data = 3076010; // [Output Only] A human-readable description of the warning code. @@ -31637,7 +62214,8 @@ message QuotaStatusWarning { // The parameters of the raw disk image. message RawDisk { - // The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. + // The format used to encode and transmit the block device, which should beTAR. This is just a container and transmission format and not + // a runtime format. Provided by the client when the disk image is created. enum ContainerType { // A value indicating that the enum field is not set. UNDEFINED_CONTAINER_TYPE = 0; @@ -31646,14 +62224,32 @@ message RawDisk { } - // The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. + // The format used to encode and transmit the block device, which should beTAR. This is just a container and transmission format and not + // a runtime format. Provided by the client when the disk image is created. // Check the ContainerType enum for the list of possible values. optional string container_type = 318809144; - // [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created. + // [Deprecated] This field is deprecated. + // An optional SHA1 checksum of the disk image before unpackaging provided + // by the client when the disk image is created. optional string sha1_checksum = 314444349; - // The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL + // The full Google Cloud Storage URL where the raw disk image archive is + // stored. + // The following are valid formats for the URL: + // + // - https://storage.googleapis.com/bucket_name/image_archive_name + // - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name + // + // + // + // In order to create an image, you must provide the full or partial URL of + // one of the following: + // + // - The rawDisk.source URL + // - The sourceDisk URL + // - The sourceImage URL + // - The sourceSnapshot URL optional string source = 177235995; } @@ -31672,10 +62268,23 @@ message RecreateInstancesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -31703,17 +62312,34 @@ message RecreateInstancesRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersRecreateRequest region_instance_group_managers_recreate_request_resource = 170999316 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // Represents a reference to a resource. message Reference { - // [Output Only] Type of the resource. Always compute#reference for references. + // [Output Only] Type of the resource. Always compute#reference + // for references. optional string kind = 3292052; - // A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF + // A description of the reference type with no implied semantics. Possible + // values include: + // + // + // 1. MEMBER_OF optional string reference_type = 247521198; // URL of the resource which refers to the target. @@ -31724,9 +62350,13 @@ message Reference { } -// Represents a Region resource. A region is a geographical area where a resource is located. For more information, read Regions and Zones. +// Represents a Region resource. +// +// A region is a geographical area where a resource is located. For more +// information, readRegions +// and Zones. message Region { - // [Output Only] Status of the region, either UP or DOWN. + // [Output Only] Status of the region, either UP orDOWN. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -31737,7 +62367,8 @@ message Region { } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // [Output Only] The deprecation status associated with this region. @@ -31746,16 +62377,19 @@ message Region { // [Output Only] Textual description of the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#region for regions. + // [Output Only] Type of the resource. Always compute#region for + // regions. optional string kind = 3292052; // [Output Only] Name of the resource. optional string name = 3373707; - // [Output Only] Warning of fetching the `quotas` field for this region. This field is populated only if fetching of the `quotas` field fails. + // [Output Only] Warning of fetching the `quotas` field for this region. This + // field is populated only if fetching of the `quotas` field fails. optional QuotaStatusWarning quota_status_warning = 302941430; // [Output Only] Quotas assigned to this region. @@ -31764,24 +62398,33 @@ message Region { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] Status of the region, either UP or DOWN. + // [Output Only] Status of the region, either UP orDOWN. // Check the Status enum for the list of possible values. optional string status = 181260274; // [Output Only] Reserved for future use. optional bool supports_pzs = 83983214; - // [Output Only] A list of zones available in this region, in the form of resource URLs. + // [Output Only] A list of zones available in this region, in the form of + // resource URLs. repeated string zones = 116085319; } // message RegionAddressesMoveRequest { - // An optional destination address description if intended to be different from the source. + // An optional destination address description if intended to be different + // from the source. optional string description = 422937596; - // The URL of the destination address to move to. This can be a full or partial URL. For example, the following are all valid URLs to a address: - https://www.googleapis.com/compute/v1/projects/project/regions/region /addresses/address - projects/project/regions/region/addresses/address Note that destination project must be different from the source project. So /regions/region/addresses/address is not valid partial url. + // The URL of the destination address to move to. This can be a full or + // partial URL. For example, the following are all valid URLs to a address: + // + // - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address + // - projects/project/regions/region/addresses/address + // + // + // Note that destination project must be different from the source project. So/regions/region/addresses/address is not valid partial url. optional string destination_address = 371693763; } @@ -31797,7 +62440,11 @@ message RegionAutoscalerList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -31823,10 +62470,14 @@ message RegionDiskTypeList { // A list of DiskType resources. repeated DiskType items = 100526016; - // [Output Only] Type of resource. Always compute#regionDiskTypeList for region disk types. + // [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -31860,7 +62511,28 @@ message RegionDisksResizeRequest { // message RegionDisksStartAsyncReplicationRequest { - // The secondary disk to start asynchronous replication to. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk + // The secondary disk to start asynchronous replication to. + // You can provide this as a partial or full URL to the resource. For example, + // the following are valid values: + // + // + // - + // https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + // + // - + // https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk + // + // - + // projects/project/zones/zone/disks/disk + // + // - + // projects/project/regions/region/disks/disk + // + // - + // zones/zone/disks/disk + // + // - + // regions/region/disks/disk optional string async_secondary_disk = 131645867; } @@ -31876,7 +62548,11 @@ message RegionInstanceGroupList { // The resource type. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -31889,7 +62565,8 @@ message RegionInstanceGroupList { // RegionInstanceGroupManagers.deletePerInstanceConfigs message RegionInstanceGroupManagerDeleteInstanceConfigReq { - // The list of instance names for which we want to delete per-instance configs on this managed instance group. + // The list of instance names for which we want to delete per-instance configs + // on this managed instance group. repeated string names = 104585032; } @@ -31902,10 +62579,16 @@ message RegionInstanceGroupManagerList { // A list of InstanceGroupManager resources. repeated InstanceGroupManager items = 100526016; - // [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of managed instance groups that exist in th regional scope. + // [Output Only] The resource type, which is always + // compute#instanceGroupManagerList for a list of managed instance groups that + // exist in th regional scope. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -31918,7 +62601,8 @@ message RegionInstanceGroupManagerList { // RegionInstanceGroupManagers.patchPerInstanceConfigs message RegionInstanceGroupManagerPatchInstanceConfigReq { - // The list of per-instance configurations to insert or patch on this managed instance group. + // The list of per-instance configurations to insert or patch on this managed + // instance group. repeated PerInstanceConfig per_instance_configs = 526265001; } @@ -31933,16 +62617,22 @@ message RegionInstanceGroupManagerResizeRequestsListResponse { // A list of Resize Request resources. repeated InstanceGroupManagerResizeRequest items = 100526016; - // [Output Only] Type of the resource. Always compute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests. + // [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for + // a list of Resize Requests. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -31952,21 +62642,39 @@ message RegionInstanceGroupManagerResizeRequestsListResponse { // RegionInstanceGroupManagers.updatePerInstanceConfigs message RegionInstanceGroupManagerUpdateInstanceConfigReq { - // The list of per-instance configurations to insert or patch on this managed instance group. + // The list of per-instance configurations to insert or patch on this managed + // instance group. repeated PerInstanceConfig per_instance_configs = 526265001; } // message RegionInstanceGroupManagersAbandonInstancesRequest { - // The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to abandon. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // RegionInstanceGroupManagers.applyUpdatesToInstances message RegionInstanceGroupManagersApplyUpdatesRequest { - // The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. + // The minimal action that you want to perform on each instance during the + // update: + // + // + // - REPLACE: At minimum, delete the instance and create it + // again. + // - RESTART: Stop the instance and start it + // again. + // - REFRESH: Do not stop the instance and limit + // disruption as much as possible. + // - NONE: Do not + // disrupt the instance at all. + // + // + // By default, the minimum action is NONE. If your update + // requires a more disruptive action than you set with this flag, the + // necessary action is performed to execute the update. // Additional supported values which may be not listed in the enum directly due to technical reasons: // NONE // REFRESH @@ -31978,7 +62686,21 @@ message RegionInstanceGroupManagersApplyUpdatesRequest { } - // The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. + // The most disruptive action that you want to perform on each instance during + // the update: + // + // + // - REPLACE: Delete the instance and create it again. + // - RESTART: Stop the instance and start it again. + // - REFRESH: Do not stop the instance and limit disruption + // as much as possible. + // - NONE: Do not disrupt the + // instance at all. + // + // + // By default, the most disruptive allowed action is REPLACE. If + // your update requires a more disruptive action than you set with this flag, + // the update request will fail. // Additional supported values which may be not listed in the enum directly due to technical reasons: // NONE // REFRESH @@ -31990,17 +62712,50 @@ message RegionInstanceGroupManagersApplyUpdatesRequest { } - // Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request. + // Flag to update all instances instead of specified list of “instances”. + // If the flag is set to true then the instances may not be specified + // in the request. optional bool all_instances = 403676512; - // The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The list of URLs of one or more instances for which you want to apply + // updates. Each URL can be a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; - // The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. + // The minimal action that you want to perform on each instance during the + // update: + // + // + // - REPLACE: At minimum, delete the instance and create it + // again. + // - RESTART: Stop the instance and start it + // again. + // - REFRESH: Do not stop the instance and limit + // disruption as much as possible. + // - NONE: Do not + // disrupt the instance at all. + // + // + // By default, the minimum action is NONE. If your update + // requires a more disruptive action than you set with this flag, the + // necessary action is performed to execute the update. // Check the MinimalAction enum for the list of possible values. optional string minimal_action = 270567060; - // The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. + // The most disruptive action that you want to perform on each instance during + // the update: + // + // + // - REPLACE: Delete the instance and create it again. + // - RESTART: Stop the instance and start it again. + // - REFRESH: Do not stop the instance and limit disruption + // as much as possible. + // - NONE: Do not disrupt the + // instance at all. + // + // + // By default, the most disruptive allowed action is REPLACE. If + // your update requires a more disruptive action than you set with this flag, + // the update request will fail. // Check the MostDisruptiveAllowedAction enum for the list of possible values. optional string most_disruptive_allowed_action = 66103053; @@ -32015,10 +62770,17 @@ message RegionInstanceGroupManagersCreateInstancesRequest { // message RegionInstanceGroupManagersDeleteInstancesRequest { - // The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to delete. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; - // Specifies whether the request should proceed despite the inclusion of instances that are not members of the group or that are already in the process of being deleted or abandoned. If this field is set to `false` and such an instance is specified in the request, the operation fails. The operation always fails if the request contains a malformed instance URL or a reference to an instance that exists in a zone or region other than the group's zone or region. + // Specifies whether the request should proceed despite the inclusion of + // instances that are not members of the group or that are already in the + // process of being deleted or abandoned. If this field is set to `false` and + // such an instance is specified in the request, the operation fails. The + // operation always fails if the request contains a malformed instance URL or + // a reference to an instance that exists in a zone or region other than the + // group's zone or region. optional bool skip_instances_on_validation_error = 40631073; } @@ -32028,7 +62790,11 @@ message RegionInstanceGroupManagersListErrorsResponse { // [Output Only] The list of errors of the managed instance group. repeated InstanceManagedByIgmError items = 100526016; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; } @@ -32038,7 +62804,11 @@ message RegionInstanceGroupManagersListInstanceConfigsResp { // [Output Only] The list of PerInstanceConfig. repeated PerInstanceConfig items = 100526016; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Informational warning message. @@ -32051,31 +62821,57 @@ message RegionInstanceGroupManagersListInstancesResponse { // A list of managed instances. repeated ManagedInstance managed_instances = 336219614; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; } // message RegionInstanceGroupManagersRecreateRequest { - // The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to recreate. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // message RegionInstanceGroupManagersResizeAdvancedRequest { - // If this flag is true, the managed instance group attempts to create all instances initiated by this resize request only once. If there is an error during creation, the managed instance group does not retry create this instance, and we will decrease the targetSize of the request instead. If the flag is false, the group attempts to recreate each instance continuously until it succeeds. This flag matters only in the first attempt of creation of an instance. After an instance is successfully created while this flag is enabled, the instance behaves the same way as all the other instances created with a regular resize request. In particular, if a running instance dies unexpectedly at a later time and needs to be recreated, this mode does not affect the recreation behavior in that scenario. This flag is applicable only to the current resize request. It does not influence other resize requests in any way. You can see which instances ar being created in which mode by calling the get or listManagedInstances API. + // If this flag is true, the managed instance group attempts to create all + // instances initiated by this resize request only once. If there is an error + // during creation, the managed instance group does not retry create this + // instance, and we will decrease the targetSize of the request + // instead. If the flag is false, the group attempts to recreate each instance + // continuously until it succeeds. + // + // This flag matters only in the first attempt of creation of an instance. + // After an instance is successfully created while this flag is enabled, the + // instance behaves the same way as all the other instances created with a + // regular resize request. In particular, if a running instance dies + // unexpectedly at a later time and needs to be recreated, this mode does not + // affect the recreation behavior in that scenario. + // + // This flag is applicable only to the current resize request. It does not + // influence other resize requests in any way. + // + // You can see which instances ar being created in which mode by calling + // the get or listManagedInstances API. optional bool no_creation_retries = 39329444; - // The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter. + // The number of running instances that the managed instance group should + // maintain at any given time. The group automatically adds or removes + // instances to maintain the number of instances specified by this parameter. optional int32 target_size = 62880239; } // message RegionInstanceGroupManagersResumeInstancesRequest { - // The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to resume. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } @@ -32088,44 +62884,53 @@ message RegionInstanceGroupManagersSetAutoHealingRequest { // message RegionInstanceGroupManagersSetTargetPoolsRequest { - // Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional. + // Fingerprint of the target pools information, which is a hash of the + // contents. This field is used for optimistic locking when you update the + // target pool entries. This field is optional. optional string fingerprint = 234678500; - // The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. + // The URL of all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically + // apply to all of the instances in the managed instance group. repeated string target_pools = 336072617; } // message RegionInstanceGroupManagersSetTemplateRequest { - // URL of the InstanceTemplate resource from which all new instances will be created. + // URL of the InstanceTemplate resource from which all new instances will be + // created. optional string instance_template = 309248228; } // message RegionInstanceGroupManagersStartInstancesRequest { - // The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to start. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // message RegionInstanceGroupManagersStopInstancesRequest { - // If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them. + // If this flag is set to true, the Instance Group Manager will proceed to + // stop the instances, skipping initialization on them. optional bool force_stop = 134762710; - // The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to stop. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } // message RegionInstanceGroupManagersSuspendInstancesRequest { - // If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them. + // If this flag is set to true, the Instance Group Manager will proceed to + // suspend the instances, skipping initialization on them. optional bool force_suspend = 27637480; - // The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + // The URLs of one or more instances to suspend. This can be a full URL or + // a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. repeated string instances = 29097598; } @@ -32141,7 +62946,11 @@ message RegionInstanceGroupsListInstances { // The resource type. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -32154,7 +62963,8 @@ message RegionInstanceGroupsListInstances { // message RegionInstanceGroupsListInstancesRequest { - // Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, it lists all instances. + // Instances in which state should be returned. Valid options are: + // 'ALL', 'RUNNING'. By default, it lists all instances. enum InstanceState { // A value indicating that the enum field is not set. UNDEFINED_INSTANCE_STATE = 0; @@ -32167,18 +62977,27 @@ message RegionInstanceGroupsListInstancesRequest { } - // Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, it lists all instances. + // Instances in which state should be returned. Valid options are: + // 'ALL', 'RUNNING'. By default, it lists all instances. // Check the InstanceState enum for the list of possible values. optional string instance_state = 92223591; - // Name of port user is interested in. It is optional. If it is set, only information about this ports will be returned. If it is not set, all the named ports will be returned. Always lists all instances. + // Name of port user is interested in. It is optional. If it is set, only + // information about this ports will be returned. If it is not set, all the + // named ports will be returned. + // Always lists all instances. optional string port_name = 41534345; } // message RegionInstanceGroupsSetNamedPortsRequest { - // The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. + // The fingerprint of the named ports information for this instance group. + // Use this optional property to prevent conflicts when multiple users change + // the named ports settings concurrently. Obtain the fingerprint with theinstanceGroups.get + // method. Then, include the fingerprint in your request to ensure that you + // do not overwrite changes that were applied from another + // concurrent request. optional string fingerprint = 234678500; // The list of named ports to set for this instance group. @@ -32194,10 +63013,15 @@ message RegionList { // A list of Region resources. repeated Region items = 100526016; - // [Output Only] Type of resource. Always compute#regionList for lists of regions. + // [Output Only] Type of resource. Always compute#regionList for + // lists of regions. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -32224,7 +63048,10 @@ message RegionNetworkEndpointGroupsDetachEndpointsRequest { // message RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse { - // [Output only] Effective firewalls from firewall policy. It applies to Regional Network Firewall Policies in the specified region, Global Network Firewall Policies and Hierachial Firewall Policies which are associated with the network. + // [Output only] Effective firewalls from firewall policy. It applies to + // Regional Network Firewall Policies in the specified region, Global Network + // Firewall Policies and Hierachial Firewall Policies which are associated + // with the network. repeated RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy firewall_policys = 410985794; // Effective firewalls on the network. @@ -32234,7 +63061,8 @@ message RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse { // message RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy { - // [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + // [Output Only] The type of the firewall policy. Can be one of HIERARCHY, + // NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -32262,13 +63090,15 @@ message RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirew // [Output only] The packet mirroring rules that apply to the network. repeated FirewallPolicyRule packet_mirroring_rules = 531644356; - // [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + // [Output only] Priority of firewall policy association. Not applicable for + // type=HIERARCHY. optional int32 priority = 445151652; // [Output only] The rules that apply to the network. repeated FirewallPolicyRule rules = 108873975; - // [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + // [Output Only] The type of the firewall policy. Can be one of HIERARCHY, + // NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -32276,7 +63106,12 @@ message RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirew // message RegionSetLabelsRequest { - // The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint. + // The fingerprint of the previous set of labels for this resource, + // used to detect conflicts. The fingerprint is initially generated by Compute + // Engine and changes after every request to modify or update labels. You must + // always provide an up-to-date fingerprint hash in order to update or change + // labels. Make a get() request to the resource to get the latest + // fingerprint. optional string label_fingerprint = 178124825; // The labels to set for this resource. @@ -32286,20 +63121,25 @@ message RegionSetLabelsRequest { // message RegionSetPolicyRequest { - // Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. + // Flatten Policy to create a backwacd compatible wire-format. + // Deprecated. Use 'policy' to specify bindings. repeated Binding bindings = 403251854; - // Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. + // Flatten Policy to create a backward compatible wire-format. + // Deprecated. Use 'policy' to specify the etag. optional string etag = 3123477; - // REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. + // REQUIRED: The complete policy to be applied to the 'resource'. The size of + // the policy is limited to a few 10s of KB. An empty policy is in general a + // valid policy but certain services (like Projects) might reject them. optional Policy policy = 91071794; } // message RegionTargetHttpsProxiesSetSslCertificatesRequest { - // New set of SslCertificate resources to associate with this TargetHttpsProxy resource. + // New set of SslCertificate resources to associate + // with this TargetHttpsProxy resource. repeated string ssl_certificates = 366006543; } @@ -32319,7 +63159,19 @@ message RemoveAssociationFirewallPolicyRequest { // Name for the attachment that will be removed. optional string name = 3373707; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32338,7 +63190,19 @@ message RemoveAssociationNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32348,7 +63212,19 @@ message RemoveAssociationOrganizationSecurityPolicyRequest { // Name for the attachment that will be removed. optional string name = 3373707; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -32376,7 +63252,19 @@ message RemoveAssociationRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32401,7 +63289,19 @@ message RemoveAssociationRegionNetworkPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32420,7 +63320,19 @@ message RemoveHealthCheckTargetPoolRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the target pool to remove health checks from. @@ -32445,7 +63357,19 @@ message RemoveInstanceTargetPoolRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetPool resource to remove instances from. @@ -32458,7 +63382,8 @@ message RemoveInstanceTargetPoolRequest { // A request message for InstanceGroups.RemoveInstances. See the method description for details. message RemoveInstancesInstanceGroupRequest { - // The name of the instance group where the specified instances will be removed. + // The name of the instance group where the specified instances will be + // removed. string instance_group = 81095253 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -32470,10 +63395,23 @@ message RemoveInstancesInstanceGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the instance group is located. + // The name of the zone + // where the instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -32489,7 +63427,19 @@ message RemovePacketMirroringRuleFirewallPolicyRequest { // The priority of the rule to remove from the firewall policy. optional int32 priority = 445151652; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32508,7 +63458,19 @@ message RemovePacketMirroringRuleNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32527,7 +63489,19 @@ message RemovePeeringNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32546,7 +63520,19 @@ message RemoveResourcePoliciesDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -32571,7 +63557,19 @@ message RemoveResourcePoliciesInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -32602,7 +63600,19 @@ message RemoveResourcePoliciesRegionDiskRequest { // The body resource for this request RegionDisksRemoveResourcePoliciesRequest region_disks_remove_resource_policies_request_resource = 8741283 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32615,7 +63625,19 @@ message RemoveRuleFirewallPolicyRequest { // The priority of the rule to remove from the firewall policy. optional int32 priority = 445151652; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32634,7 +63656,19 @@ message RemoveRuleNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32644,7 +63678,19 @@ message RemoveRuleOrganizationSecurityPolicyRequest { // The priority of the rule to remove from the security policy. optional int32 priority = 445151652; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the security policy to update. @@ -32672,7 +63718,19 @@ message RemoveRuleRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -32735,14 +63793,27 @@ message RemoveTrafficClassificationRuleRegionNetworkPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for ReservationSubBlocks.ReportFaulty. See the method description for details. message ReportFaultyReservationSubBlockRequest { - // The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + // The name of the parent reservation and parent block. In the format of + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -32751,10 +63822,23 @@ message ReportFaultyReservationSubBlockRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + // The name of the reservation subBlock. + // Name should conform to RFC1035 or be a resource ID. string reservation_sub_block = 22750491 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -32782,7 +63866,19 @@ message ReportHostAsFaultyInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -32793,9 +63889,20 @@ message ReportHostAsFaultyInstanceRequest { } -// A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host or authority header is suffixed with -shadow. +// A policy that specifies how requests intended for the route's backends +// are shadowed to a separate mirrored backend service. The load balancer +// doesn't wait for responses from the shadow service. Before sending traffic +// to the shadow service, the host or authority header is suffixed with-shadow. message RequestMirrorPolicy { - // The full or partial URL to the BackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service. + // The full or partial URL to the BackendService resource being + // mirrored to. + // + // The backend service configured for a mirroring + // policy must reference backends that are of the same type as the original + // backend service matched in the URL map. + // + // Serverless NEG backends are not currently supported as a mirrored + // backend service. optional string backend_service = 306946058; // The percentage of requests to be mirrored to `backend_service`. @@ -32817,12 +63924,27 @@ message RequestRemovePeeringNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } -// Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources. +// Represents a reservation resource. A reservation ensures that capacity is +// held in a specific zone even if the reserved VMs are not running. For more +// information, read Reserving zonal +// resources. message Reservation { // Specifies the deployment strategy for this reservation. enum DeploymentType { @@ -32834,23 +63956,34 @@ message Reservation { DEPLOYMENT_TYPE_UNSPECIFIED = 234847180; - // The reserved capacity is made up of highly flexible, logical reservation blocks. + // The reserved capacity is made up of highly flexible, logical reservation + // blocks. FLEXIBLE = 379880395; } - // Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures). + // Protection tier for the workload which specifies the workload expectations + // in the event of infrastructure failures at data center (e.g. power + // and/or cooling failures). enum ProtectionTier { // A value indicating that the enum field is not set. UNDEFINED_PROTECTION_TIER = 0; - // CAPACITY_OPTIMIZED capacity leverages redundancies (e.g. power, cooling) at the data center during normal operating conditions. In the event of infrastructure failures at data center (e.g. power and/or cooling failures), this workload may be disrupted. As a consequence, it has a weaker availability SLO than STANDARD. + // CAPACITY_OPTIMIZED capacity leverages redundancies (e.g. power, cooling) + // at the data center during normal operating conditions. In the event of + // infrastructure failures at data center (e.g. power and/or cooling + // failures), this workload may be disrupted. As a consequence, it has a + // weaker availability SLO than STANDARD. CAPACITY_OPTIMIZED = 17430466; // Unspecified protection tier. PROTECTION_TIER_UNSPECIFIED = 262261984; - // STANDARD protection for workload that should be protected by redundancies (e.g. power, cooling) at the data center level. In the event of infrastructure failures at data center (e.g. power and/or cooling failures), this workload is expected to continue as normal using the redundancies. + // STANDARD protection for workload that should be protected by redundancies + // (e.g. power, cooling) at the data center level. In the event of + // infrastructure failures at data center (e.g. power and/or cooling + // failures), this workload is expected to continue as normal using the + // redundancies. STANDARD = 484642493; } @@ -32860,10 +63993,14 @@ message Reservation { // A value indicating that the enum field is not set. UNDEFINED_RESERVATION_MODE = 0; - // The delivered reservations terminate at specified endtime along with terminating VMs running on it. The price for this reservation is different from on-demand. Currently offered for A3+ GPUs and TPUs only. + // The delivered reservations terminate at specified endtime along with + // terminating VMs running on it. The price for this reservation is + // different from on-demand. Currently offered for A3+ GPUs and TPUs only. CALENDAR = 67431230; - // The delivered reservations do not terminate VMs at the end of reservations. On-demand pricing and available for all VM families. This is default mode. + // The delivered reservations do not terminate VMs at the end of + // reservations. On-demand pricing and available for all VM families. + // This is default mode. DEFAULT = 115302945; RESERVATION_MODE_UNSPECIFIED = 233810606; @@ -32881,12 +64018,21 @@ message Reservation { // Unknown maintenance type. GROUP_MAINTENANCE_TYPE_UNSPECIFIED = 447183678; - // Maintenance is not synchronized for this reservation. Instead, each instance has its own maintenance window. + // Maintenance is not synchronized for this reservation. Instead, each + // instance has its own maintenance window. INDEPENDENT = 127011674; } - // [Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. + // [Output Only] The status of the reservation. + // + // + // - CREATING: Reservation resources are being + // allocated. + // - READY: Reservation resources have been allocated, + // and the reservation is ready for use. + // - DELETING: Reservation deletion is in progress. + // - UPDATING: Reservation update is in progress. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -32899,7 +64045,8 @@ message Reservation { INVALID = 530283991; - // Reservation resources have been allocated, and the reservation is ready for use. + // Reservation resources have been allocated, and the reservation is ready + // for use. READY = 77848963; // Reservation update is in progress. @@ -32907,47 +64054,65 @@ message Reservation { } - // Advanced control for cluster management, applicable only to DENSE deployment type reservations. + // Advanced control for cluster management, applicable only to DENSE + // deployment type reservations. optional ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144; // Reservation for aggregated resources, providing shape flexibility. optional AllocationAggregateReservation aggregate_reservation = 291567948; - // [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. + // [Output Only] Full or partial URL to a parent commitment. This field + // displays for reservations that are tied to a commitment. optional string commitment = 482134805; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // Duration time relative to reservation creation when Compute Engine will automatically delete this resource. + // Duration time relative to reservation creation when Compute Engine will + // automatically delete this resource. optional Duration delete_after_duration = 323997099; - // Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. + // Absolute time in future when the reservation will be + // auto-deleted by Compute Engine. Timestamp is represented inRFC3339 text format. optional string delete_at_time = 83294405; // Specifies the deployment strategy for this reservation. // Check the DeploymentType enum for the list of possible values. optional string deployment_type = 396722292; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors. + // Indicates whether Compute Engine allows unplanned maintenance for your VMs; + // for example, to fix hardware errors. optional bool enable_emergent_maintenance = 353759497; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#reservations for reservations. + // [Output Only] Type of the resource. Alwayscompute#reservations for reservations. optional string kind = 3292052; - // [Output Only] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments. + // [Output Only] Full or partial URL to parent commitments. This field + // displays for reservations that are tied to multiple commitments. repeated string linked_commitments = 470957784; - // The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // The name of the resource, provided by the client when initially creating + // the resource. The resource name must be 1-63 characters long, and comply + // withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; - // Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures). + // Protection tier for the workload which specifies the workload expectations + // in the event of infrastructure failures at data center (e.g. power + // and/or cooling failures). // Check the ProtectionTier enum for the list of possible values. optional string protection_tier = 503959432; @@ -32955,10 +64120,13 @@ message Reservation { // Check the ReservationMode enum for the list of possible values. optional string reservation_mode = 277294646; - // Specify the reservation sharing policy. If unspecified, the reservation will not be shared with Google Cloud managed services. + // Specify the reservation sharing policy. If unspecified, the reservation + // will not be shared with Google Cloud managed services. optional AllocationReservationSharingPolicy reservation_sharing_policy = 205970120; - // Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation. + // Resource policies to be added to this reservation. The key is defined by + // user, and the value is resource policy url. This is to define placement + // policy with reservation. map resource_policies = 22220385; // [Output Only] Status information for Reservation resource. @@ -32974,35 +64142,52 @@ message Reservation { // [Output Only] Server-defined fully-qualified URL for this resource. optional string self_link = 456214797; - // Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation. + // Specify share-settings to create a shared reservation. This property is + // optional. For more information about the syntax and options for this + // field and its subfields, see the guide for creating + // a shared reservation. optional ShareSettings share_settings = 266668163; // Reservation for instances with specific machine shapes. optional AllocationSpecificSKUReservation specific_reservation = 404901951; - // Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. + // Indicates whether the reservation can be consumed by VMs with affinity + // for "any" reservation. If the field is set, then only VMs that target + // the reservation by name can consume from this reservation. optional bool specific_reservation_required = 226550687; - // [Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. + // [Output Only] The status of the reservation. + // + // + // - CREATING: Reservation resources are being + // allocated. + // - READY: Reservation resources have been allocated, + // and the reservation is ready for use. + // - DELETING: Reservation deletion is in progress. + // - UPDATING: Reservation update is in progress. // Check the Status enum for the list of possible values. optional string status = 181260274; - // Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. + // Zone in which the reservation resides. A zone must be provided if the + // reservation is created within a commitment. optional string zone = 3744684; } -// Advance control for cluster management, applicable only to DENSE deployment type reservations. +// Advance control for cluster management, applicable only to DENSE deployment +// type reservations. message ReservationAdvancedDeploymentControl { // Indicates chosen reservation operational mode for the reservation. enum ReservationOperationalMode { // A value indicating that the enum field is not set. UNDEFINED_RESERVATION_OPERATIONAL_MODE = 0; - // Google Cloud does not manage the failure of machines, but provides additional capacity, which is not guaranteed to be available. + // Google Cloud does not manage the failure of machines, but provides + // additional capacity, which is not guaranteed to be available. ALL_CAPACITY = 500029880; - // Google Cloud manages the failure of machines to provide high availability. + // Google Cloud manages the failure of machines to provide high + // availability. HIGHLY_AVAILABLE_CAPACITY = 110861600; RESERVATION_OPERATIONAL_MODE_UNSPECIFIED = 194296603; @@ -33017,7 +64202,9 @@ message ReservationAdvancedDeploymentControl { // Specifies the reservations that this instance can consume from. message ReservationAffinity { - // Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. + // Specifies the type of reservation from which this instance can consume + // resources: ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See + // Consuming reserved instances for examples. enum ConsumeReservationType { // A value indicating that the enum field is not set. UNDEFINED_CONSUME_RESERVATION_TYPE = 0; @@ -33028,27 +64215,38 @@ message ReservationAffinity { // Do not consume from any allocated capacity. NO_RESERVATION = 169322030; - // Must consume from a specific reservation. Must specify key value fields for specifying the reservations. + // Must consume from a specific reservation. Must specify key value fields + // for specifying the reservations. SPECIFIC_RESERVATION = 229889055; - // Prefer to consume from a specific reservation, but still consume any reservation available if the specified reservation is not available or exhausted. Must specify key value fields for specifying the reservations. + // Prefer to consume from a specific reservation, but still consume any + // reservation available if the specified reservation is not available or + // exhausted. Must specify key value fields for specifying the reservations. SPECIFIC_THEN_ANY_RESERVATION = 37025924; - // Prefer to consume from a specific reservation, but still consume from the on-demand pool if the specified reservation is exhausted. Must specify key value fields for specifying the reservations. + // Prefer to consume from a specific reservation, but still consume + // from the on-demand pool if the specified reservation is exhausted. Must + // specify key value fields for specifying the reservations. SPECIFIC_THEN_NO_RESERVATION = 406522371; UNSPECIFIED = 526786327; } - // Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. + // Specifies the type of reservation from which this instance can consume + // resources: ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See + // Consuming reserved instances for examples. // Check the ConsumeReservationType enum for the list of possible values. optional string consume_reservation_type = 300736944; - // Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value. + // Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by name, specifygoogleapis.com/reservation-name as the key and specify + // the name of your reservation as its value. optional string key = 106079; - // Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project. + // Corresponds to the label values of a reservation resource. This can be + // either a name to a reservation in the same project or + // "projects/different-project/reservations/some-reservation-name" to target a + // shared reservation in the same zone but in a different project. repeated string values = 249928994; } @@ -33064,7 +64262,11 @@ message ReservationAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -33098,28 +64300,34 @@ message ReservationBlock { } - // [Output Only] The number of resources that are allocated in this reservation block. + // [Output Only] The number of resources that are allocated in this + // reservation block. optional int32 count = 94851343; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 text format. optional string creation_timestamp = 30525366; // [Output Only] Health information for the reservation block. optional ReservationBlockHealthInfo health_info = 235287729; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] The number of instances that are currently in use on this reservation block. + // [Output Only] The number of instances that are currently in use on this + // reservation block. optional int32 in_use_count = 493458877; - // Number of hosts currently in use. If there is one or more Instances running on the host, it is considered in use. + // Number of hosts currently in use. If there is one or more Instances running + // on the host, it is considered in use. optional int32 in_use_host_count = 364069834; - // [Output Only] Type of the resource. Always compute#reservationBlock for reservation blocks. + // [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. optional string kind = 3292052; - // [Output Only] The name of this reservation block generated by Google Compute Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? + // [Output Only] The name of this reservation block generated by Google + // Compute Engine. The name must be 1-63 characters long, and comply with + // RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? optional string name = 3373707; // [Output Only] The physical topology of the reservation block. @@ -33128,10 +64336,13 @@ message ReservationBlock { // [Output Only] Maintenance information for this reservation block. optional GroupMaintenanceInfo reservation_maintenance = 340607776; - // [Output Only] The number of reservation subBlocks associated with this reservation block. + // [Output Only] The number of reservation subBlocks associated with this + // reservation block. optional int32 reservation_sub_block_count = 330782955; - // [Output Only] The number of in-use reservation subBlocks associated with this reservation block. If at least one VM is running on a subBlock, it is considered in-use. + // [Output Only] The number of in-use reservation subBlocks associated with + // this reservation block. If at least one VM is running on a subBlock, it is + // considered in-use. optional int32 reservation_sub_block_in_use_count = 186007137; // [Output Only] Server-defined fully-qualified URL for this resource. @@ -33229,10 +64440,14 @@ message ReservationBlocksListResponse { // A list of reservation block resources. repeated ReservationBlock items = 100526016; - // Type of the resource. Always compute#reservationBlock for a list of reservation blocks. + // Type of the resource. Alwayscompute#reservationBlock for a list of reservation blocks. optional string kind = 3292052; - // This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // Server-defined URL for this resource. @@ -33245,16 +64460,22 @@ message ReservationBlocksListResponse { // message ReservationList { - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional string id = 3355; // [Output Only] A list of Allocation resources. repeated Reservation items = 100526016; - // [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + // [Output Only] Type of resource.Always compute#reservationsList + // for listsof reservations optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -33285,28 +64506,37 @@ message ReservationSubBlock { } - // [Output Only] The number of hosts that are allocated in this reservation subBlock. + // [Output Only] Slice info for the reservation subBlock. + optional AcceleratorTopologiesInfo accelerator_topologies_info = 84833420; + + // [Output Only] The number of hosts that are allocated in this + // reservation subBlock. optional int32 count = 94851343; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 text format. optional string creation_timestamp = 30525366; // [Output Only] Health information for the reservation subBlock. optional ReservationSubBlockHealthInfo health_info = 235287729; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] The number of instances that are currently in use on this reservation subBlock. + // [Output Only] The number of instances that are currently in use on this + // reservation subBlock. optional int32 in_use_count = 493458877; - // Number of hosts currently in use. If there is one or more Instances running on the host, it is considered in use. + // Number of hosts currently in use. If there is one or more Instances running + // on the host, it is considered in use. optional int32 in_use_host_count = 364069834; - // [Output Only] Type of the resource. Always compute#reservationSubBlock for reservation subBlocks. + // [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation subBlocks. optional string kind = 3292052; - // [Output Only] The name of this reservation subBlock generated by Google Compute Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? + // [Output Only] The name of this reservation subBlock generated by Google + // Compute Engine. The name must be 1-63 characters long, and comply with + // RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? optional string name = 3373707; // [Output Only] The physical topology of the reservation subBlock. @@ -33351,7 +64581,8 @@ message ReservationSubBlockHealthInfo { // The number of degraded hosts in the reservation subBlock. optional int32 degraded_host_count = 535025001; - // The number of degraded infrastructure (e.g NV link domain) in the reservation subblock. + // The number of degraded infrastructure (e.g NV link domain) in the + // reservation subblock. optional int32 degraded_infra_count = 138638927; // The health status of the reservation subBlock. @@ -33361,7 +64592,8 @@ message ReservationSubBlockHealthInfo { // The number of healthy hosts in the reservation subBlock. optional int32 healthy_host_count = 40739738; - // The number of healthy infrastructure (e.g NV link domain) in the reservation subblock. + // The number of healthy infrastructure (e.g NV link domain) in the + // reservation subblock. optional int32 healthy_infra_count = 385052222; } @@ -33393,10 +64625,15 @@ message ReservationSubBlocksListResponse { // A list of reservation subBlock resources. repeated ReservationSubBlock items = 100526016; - // Type of the resource. Always compute#reservationSubBlock for a list of reservation subBlocks. + // Type of the resource. Alwayscompute#reservationSubBlock for a list of reservation + // subBlocks. optional string kind = 3292052; - // This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // Server-defined URL for this resource. @@ -33464,6 +64701,9 @@ message ReservationSubBlocksReportFaultyRequestFaultReason { // The subBlock experienced performance issues. PERFORMANCE = 135701520; + // The subBlock experienced silent data corruption. + SILENT_DATA_CORRUPTION = 111360678; + // The subBlock experienced a switch failure. SWITCH_FAILURE = 254909279; @@ -33485,16 +64725,19 @@ message ReservationsBlocksPerformMaintenanceRequest { // A value indicating that the enum field is not set. UNDEFINED_MAINTENANCE_SCOPE = 0; - // Trigger maintenance for all hosts belonging to this reservation irrespective of whether VMs are running on them or not. + // Trigger maintenance for all hosts belonging to this reservation + // irrespective of whether VMs are running on them or not. ALL = 64897; // Internal only MAINTENANCE_SCOPE_UNSPECIFIED = 78827328; - // Trigger maintenance only on the hosts belonging to this reservation which have VMs running on them. + // Trigger maintenance only on the hosts belonging to this reservation which + // have VMs running on them. RUNNING_VMS = 535770588; - // Trigger maintenance only on the hosts belonging to this reservation which do not have any VMs running on them. This is not allowed for Standard ExR + // Trigger maintenance only on the hosts belonging to this reservation which + // do not have any VMs running on them. This is not allowed for Standard ExR UNUSED_CAPACITY = 212724995; } @@ -33512,16 +64755,19 @@ message ReservationsPerformMaintenanceRequest { // A value indicating that the enum field is not set. UNDEFINED_MAINTENANCE_SCOPE = 0; - // Trigger maintenance for all hosts belonging to this reservation irrespective of whether VMs are running on them or not. + // Trigger maintenance for all hosts belonging to this reservation + // irrespective of whether VMs are running on them or not. ALL = 64897; // Internal only MAINTENANCE_SCOPE_UNSPECIFIED = 78827328; - // Trigger maintenance only on the hosts belonging to this reservation which have VMs running on them. + // Trigger maintenance only on the hosts belonging to this reservation which + // have VMs running on them. RUNNING_VMS = 535770588; - // Trigger maintenance only on the hosts belonging to this reservation which do not have any VMs running on them. This is not allowed for Standard ExR + // Trigger maintenance only on the hosts belonging to this reservation which + // do not have any VMs running on them. This is not allowed for Standard ExR UNUSED_CAPACITY = 212724995; } @@ -33534,7 +64780,8 @@ message ReservationsPerformMaintenanceRequest { // message ReservationsResizeRequest { - // Number of allocated resources can be resized with minimum = 1 and maximum = 1000. + // Number of allocated resources can be resized with minimum = 1 and + // maximum = 1000. optional int64 specific_sku_count = 13890720; } @@ -33544,7 +64791,8 @@ message ReservationsScopedList { // A list of reservations contained in this scope. repeated Reservation reservations = 399717927; - // Informational warning which replaces the list of reservations when the list is empty. + // Informational warning which replaces the list of reservations when + // the list is empty. optional Warning warning = 50704284; } @@ -33560,7 +64808,19 @@ message ResetInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -33585,10 +64845,23 @@ message ResizeAdvancedInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -33598,7 +64871,8 @@ message ResizeAdvancedInstanceGroupManagerRequest { // A request message for RegionInstanceGroupManagers.ResizeAdvanced. See the method description for details. message ResizeAdvancedRegionInstanceGroupManagerRequest { - // The name of the managed instance group. It must be a string that meets the requirements in RFC1035. + // The name of the managed instance group. + // It must be a string that meets the requirements in RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -33607,7 +64881,8 @@ message ResizeAdvancedRegionInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + // Name of the region scoping this request. + // It must be a string that meets the requirements in RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -33616,7 +64891,19 @@ message ResizeAdvancedRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersResizeAdvancedRequest region_instance_group_managers_resize_advanced_request_resource = 331077290 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -33635,7 +64922,19 @@ message ResizeDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -33657,13 +64956,28 @@ message ResizeInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter. + // The number of running instances that the managed instance group should + // maintain at any given time. The group automatically adds or removes + // instances to maintain the number of instances specified by this parameter. int32 size = 3530753 [(google.api.field_behavior) = REQUIRED]; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -33691,7 +65005,19 @@ message ResizeRegionDiskRequest { // The body resource for this request RegionDisksResizeRequest region_disks_resize_request_resource = 446633237 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -33713,10 +65039,23 @@ message ResizeRegionInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Number of instances that should exist in this instance group manager. + // Number of instances that should exist in this instance group + // manager. int32 size = 3530753 [(google.api.field_behavior) = REQUIRED]; } @@ -33729,7 +65068,19 @@ message ResizeReservationRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the reservation to update. @@ -33746,9 +65097,21 @@ message ResizeReservationRequest { } -// Commitment for a particular hardware resource (a commitment is composed of one or more of these). +// Commitment for a particular hardware resource (a commitment is composed of +// one or more of these). message ResourceCommitment { - // The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. + // The type of hardware resource that you want to specify. + // You can specify any of the following values: + // + // - VCPU + // - MEMORY + // - LOCAL_SSD + // - ACCELERATOR + // + // + // + // Specify as a separate entry in the list for each + // individual resource type. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -33765,13 +65128,34 @@ message ResourceCommitment { } - // Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR. + // Name of the accelerator type or GPU resource. Specify this field only when + // the type of hardware resource is ACCELERATOR. optional string accelerator_type = 138031246; - // The quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit). - For vCPUs, you must specify an integer value. - For memory, you specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer value. - For Local SSD disks, you must specify the amount in GB. The size of a single Local SSD disk is 375 GB. + // The quantity of the hardware resource that you want to commit to purchasing + // (in a type-dependent unit). + // + // - For vCPUs, you must specify an integer value. + // - For memory, you specify the amount of MB that you want. The value you + // specify must be a multiple of 256 MB, with up to 6.5 GB of + // memory per every vCPU. + // - For GPUs, you must specify an integer value. + // - For Local SSD disks, you must specify the amount in GB. The size of a + // single Local SSD disk is 375 GB. optional int64 amount = 196759640; - // The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. + // The type of hardware resource that you want to specify. + // You can specify any of the following values: + // + // - VCPU + // - MEMORY + // - LOCAL_SSD + // - ACCELERATOR + // + // + // + // Specify as a separate entry in the list for each + // individual resource type. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -33779,7 +65163,8 @@ message ResourceCommitment { // message ResourceGroupReference { - // A URI referencing one of the instance groups or network endpoint groups listed in the backend service. + // A URI referencing one of the instance groups or network endpoint groups + // listed in the backend service. optional string group = 98629247; } @@ -33789,12 +65174,16 @@ message ResourcePoliciesScopedList { // A list of resourcePolicies contained in this scope. repeated ResourcePolicy resource_policies = 22220385; - // Informational warning which replaces the list of resourcePolicies when the list is empty. + // Informational warning which replaces the list of resourcePolicies when + // the list is empty. optional Warning warning = 50704284; } -// Represents a Resource Policy resource. You can use resource policies to schedule actions for some Compute Engine resources. For example, you can use them to schedule persistent disk snapshots. +// Represents a Resource Policy resource. You can use resource policies to +// schedule actions for some Compute Engine resources. For example, you can +// use them toschedule persistent disk +// snapshots. message ResourcePolicy { // [Output Only] The status of resource policy creation. enum Status { @@ -33817,7 +65206,8 @@ message ResourcePolicy { } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; optional string description = 422937596; @@ -33828,16 +65218,24 @@ message ResourcePolicy { // Resource policy for instances for placement configuration. optional ResourcePolicyGroupPlacementPolicy group_placement_policy = 10931596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; // Resource policy for scheduling instance operations. optional ResourcePolicyInstanceSchedulePolicy instance_schedule_policy = 344877104; - // [Output Only] Type of the resource. Always compute#resource_policies for resource policies. + // [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. optional string kind = 3292052; - // The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // The name of the resource, provided by the client when initially creating + // the resource. The resource name must be 1-63 characters long, and comply + // withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; optional string region = 138946292; @@ -33873,7 +65271,11 @@ message ResourcePolicyAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -33889,13 +65291,17 @@ message ResourcePolicyAggregatedList { // Time window specified for daily operations. message ResourcePolicyDailyCycle { - // Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. + // Defines a schedule with units measured in days. The value determines + // how many days pass between the start of each cycle. optional int32 days_in_cycle = 369790004; - // [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. + // [Output only] A predetermined duration for the window, automatically + // chosen to be the smallest possible in the given scenario. optional string duration = 155471252; - // Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. + // Start time of the window. This must be in UTC format that resolves to one + // of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For + // example, both 13:00-5 and 08:00 are valid. optional string start_time = 37467274; } @@ -33904,8 +65310,24 @@ message ResourcePolicyDailyCycle { message ResourcePolicyDiskConsistencyGroupPolicy { } -// A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation +// A GroupPlacementPolicy specifies resource placement configuration. +// It specifies the failure bucket separation message ResourcePolicyGroupPlacementPolicy { + // Specifies the connection mode for the accelerator topology. If not + // specified, the default is AUTO_CONNECT. + enum AcceleratorTopologyMode { + // A value indicating that the enum field is not set. + UNDEFINED_ACCELERATOR_TOPOLOGY_MODE = 0; + + // The interconnected chips are pre-configured at the time of VM creation. + AUTO_CONNECT = 491872826; + + // The interconnected chips are connected on demand. At the time of VM + // creation, the chips are not connected. + PROVISION_ONLY = 399134966; + + } + // Specifies network collocation enum Collocation { // A value indicating that the enum field is not set. @@ -33917,14 +65339,22 @@ message ResourcePolicyGroupPlacementPolicy { } - // The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network. + // Specifies the connection mode for the accelerator topology. If not + // specified, the default is AUTO_CONNECT. + // Check the AcceleratorTopologyMode enum for the list of possible values. + optional string accelerator_topology_mode = 284293791; + + // The number of availability domains to spread instances across. If two + // instances are in different availability domain, they are not in the same + // low latency network. optional int32 availability_domain_count = 12453432; // Specifies network collocation // Check the Collocation enum for the list of possible values. optional string collocation = 511156533; - // Specifies the shape of the GPU slice, in slice based GPU families eg. A4X. + // Specifies the shape of the GPU slice, in slice based GPU families eg. + // A4X. optional string gpu_topology = 247948450; // Specifies the number of max logical switches. @@ -33936,25 +65366,31 @@ message ResourcePolicyGroupPlacementPolicy { // Specifies the shape of the TPU slice optional string tpu_topology = 315411061; - // Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs. + // Number of VMs in this placement group. Google does not recommend that you + // use this field unless you use a compact policy and you want your policy + // to work only if it contains this exact number of VMs. optional int32 vm_count = 261463431; } // Time window specified for hourly operations. message ResourcePolicyHourlyCycle { - // [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario. + // [Output only] Duration of the time window, automatically chosen to be + // smallest possible in the given scenario. optional string duration = 155471252; - // Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle. + // Defines a schedule with units measured in hours. The value determines + // how many hours pass between the start of each cycle. optional int32 hours_in_cycle = 526763132; - // Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. + // Time within the window to start the operations. + // It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. optional string start_time = 37467274; } -// An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance. +// An InstanceSchedulePolicy specifies when and how frequent certain +// operations are performed on the instance. message ResourcePolicyInstanceSchedulePolicy { // The expiration time of the schedule. The timestamp is an RFC3339 string. optional string expiration_time = 230299229; @@ -33962,7 +65398,9 @@ message ResourcePolicyInstanceSchedulePolicy { // The start time of the schedule. The timestamp is an RFC3339 string. optional string start_time = 37467274; - // Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database. + // Specifies the time zone to be used in interpreting Schedule.schedule. + // The value of this field must be a time zone name from the tz database: + // https://wikipedia.org/wiki/Tz_database. optional string time_zone = 36848094; // Specifies the schedule for starting instances. @@ -33984,16 +65422,21 @@ message ResourcePolicyInstanceSchedulePolicySchedule { message ResourcePolicyList { optional string etag = 3123477; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional string id = 3355; // [Output Only] A list of ResourcePolicy resources. repeated ResourcePolicy items = 100526016; - // [Output Only] Type of resource.Always compute#resourcePoliciesList for listsof resourcePolicies + // [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -34004,39 +65447,53 @@ message ResourcePolicyList { } -// Contains output only fields. Use this sub-message for all output fields set on ResourcePolicy. The internal structure of this "status" field should mimic the structure of ResourcePolicy proto specification. +// Contains output only fields. +// Use this sub-message for all output fields set on ResourcePolicy. +// The internal structure of this "status" field should mimic the structure +// of ResourcePolicy proto specification. message ResourcePolicyResourceStatus { - // [Output Only] Specifies a set of output values reffering to the instance_schedule_policy system status. This field should have the same name as corresponding policy field. + // [Output Only] Specifies a set of output values reffering to + // the instance_schedule_policy system status. + // This field should have the same name as corresponding policy field. optional ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instance_schedule_policy = 344877104; } // message ResourcePolicyResourceStatusInstanceSchedulePolicyStatus { - // [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + // [Output Only] The last time the schedule successfully ran. + // The timestamp is an RFC3339 string. optional string last_run_start_time = 303069063; - // [Output Only] The next time the schedule is planned to run. The actual time might be slightly different. The timestamp is an RFC3339 string. + // [Output Only] The next time the schedule is planned to run. + // The actual time might be slightly different. + // The timestamp is an RFC3339 string. optional string next_run_start_time = 318642570; } -// A snapshot schedule policy specifies when and how frequently snapshots are to be created for the target disk. Also specifies how many and how long these scheduled snapshots should be retained. +// A snapshot schedule policy specifies when and how frequently snapshots are +// to be created for the target disk. Also specifies how many and how long +// these scheduled snapshots should be retained. message ResourcePolicySnapshotSchedulePolicy { // Retention policy applied to snapshots created by this resource policy. optional ResourcePolicySnapshotSchedulePolicyRetentionPolicy retention_policy = 68625779; - // A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to perform on this VM and when. Schedule that is applied to disks covered by this policy. + // A Vm Maintenance Policy specifies what kind of infrastructure + // maintenance we are allowed to perform on this VM and when. Schedule + // that is applied to disks covered by this policy. optional ResourcePolicySnapshotSchedulePolicySchedule schedule = 375820951; - // Properties with which snapshots are created such as labels, encryption keys. + // Properties with which snapshots are created such as labels, encryption + // keys. optional ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshot_properties = 185371278; } // Policy for retention of scheduled snapshots. message ResourcePolicySnapshotSchedulePolicyRetentionPolicy { - // Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. + // Specifies the behavior to apply to scheduled snapshots when + // the source disk is deleted. enum OnSourceDiskDelete { // A value indicating that the enum field is not set. UNDEFINED_ON_SOURCE_DISK_DELETE = 0; @@ -34052,7 +65509,8 @@ message ResourcePolicySnapshotSchedulePolicyRetentionPolicy { // Maximum age of the snapshot that is allowed to be kept. optional int32 max_retention_days = 324296979; - // Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. + // Specifies the behavior to apply to scheduled snapshots when + // the source disk is deleted. // Check the OnSourceDiskDelete enum for the list of possible values. optional string on_source_disk_delete = 321955529; @@ -34068,7 +65526,8 @@ message ResourcePolicySnapshotSchedulePolicySchedule { } -// Specified snapshot properties for scheduled snapshots created by this policy. +// Specified snapshot properties for scheduled snapshots created by this +// policy. message ResourcePolicySnapshotSchedulePolicySnapshotProperties { // Chain name that the snapshot is created in. optional string chain_name = 68644169; @@ -34076,13 +65535,15 @@ message ResourcePolicySnapshotSchedulePolicySnapshotProperties { // Indication to perform a 'guest aware' snapshot. optional bool guest_flush = 385550813; - // Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty. + // Labels to apply to scheduled snapshots. These can be later modified + // by the setLabels method. Label values may be empty. map labels = 500195327; // Region where the snapshot is scoped to. optional string region = 138946292; - // Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). + // Cloud Storage bucket storage location of the auto snapshot (regional or + // multi-regional). repeated string storage_locations = 328005274; } @@ -34096,7 +65557,9 @@ message ResourcePolicyWeeklyCycle { // message ResourcePolicyWeeklyCycleDayOfWeek { - // Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. + // Defines a schedule that runs on specific days of the week. Specify + // one or more days. The following options are available: + // MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. enum Day { // A value indicating that the enum field is not set. UNDEFINED_DAY = 0; @@ -34119,20 +65582,39 @@ message ResourcePolicyWeeklyCycleDayOfWeek { } - // Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. + // Defines a schedule that runs on specific days of the week. Specify + // one or more days. The following options are available: + // MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. // Check the Day enum for the list of possible values. optional string day = 99228; - // [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario. + // [Output only] Duration of the time window, automatically chosen to be + // smallest possible in the given scenario. optional string duration = 155471252; - // Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. + // Time within the window to start the operations. + // It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. optional string start_time = 37467274; } // Represents the workload policy. message ResourcePolicyWorkloadPolicy { + // Specifies the connection mode for the accelerator topology. If not + // specified, the default is AUTO_CONNECT. + enum AcceleratorTopologyMode { + // A value indicating that the enum field is not set. + UNDEFINED_ACCELERATOR_TOPOLOGY_MODE = 0; + + // The interconnected chips are pre-configured at the time of VM creation. + AUTO_CONNECT = 491872826; + + // The interconnected chips are connected on demand. At the time of VM + // creation, the chips are not connected. + PROVISION_ONLY = 399134966; + + } + // Specifies the maximum distance between instances. enum MaxTopologyDistance { // A value indicating that the enum field is not set. @@ -34157,14 +65639,21 @@ message ResourcePolicyWorkloadPolicy { // MIG spreads out the instances as much as possible for high availability. HIGH_AVAILABILITY = 409487576; - // MIG provisions instances as close to each other as possible for high throughput. + // MIG provisions instances as close to each other as possible for high + // throughput. HIGH_THROUGHPUT = 146499815; } - // Specifies the topology required to create a partition for VMs that have interconnected GPUs. + // Specifies the topology required to create a partition for VMs that have + // interconnected GPUs. optional string accelerator_topology = 389323203; + // Specifies the connection mode for the accelerator topology. If not + // specified, the default is AUTO_CONNECT. + // Check the AcceleratorTopologyMode enum for the list of possible values. + optional string accelerator_topology_mode = 284293791; + // Specifies the maximum distance between instances. // Check the MaxTopologyDistance enum for the list of possible values. optional string max_topology_distance = 7521706; @@ -34175,17 +65664,28 @@ message ResourcePolicyWorkloadPolicy { } -// Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls. +// Contains output only fields. +// Use this sub-message for actual values set on Instance attributes as compared +// to the value requested by the user (intent) in their instance CRUD calls. message ResourceStatus { - // [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level. + // [Output Only] Effective metadata is a field that consolidates project, + // zonal instance settings, and instance-level predefined metadata keys to + // provide the overridden value for those metadata keys at the instance level. optional ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; - // [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId. + // [Output Only] The precise location of your instance within the zone's data + // center, including the block, sub-block, and host. The field is formatted as + // follows: blockId/subBlockId/hostId. optional string physical_host = 464370704; - // [Output Only] A series of fields containing the global name of the Compute Engine cluster, as well as the ID of the block, sub-block, and host on which the running instance is located. + // [Output Only] A series of fields containing the global name of the Compute + // Engine cluster, as well as the ID of the block, sub-block, and host on + // which the running instance is located. optional ResourceStatusPhysicalHostTopology physical_host_topology = 390842814; + // [Output Only] Reservation information that the instance is consuming from. + optional ResourceStatusReservationConsumptionInfo reservation_consumption_info = 201056997; + optional ResourceStatusScheduling scheduling = 386688404; // [Output Only] Details about the instance stopping state. @@ -34223,65 +65723,90 @@ message ResourceStatusEffectiveInstanceMetadata { } -// Represents the physical host topology of the host on which the VM is running. +// Represents the physical host topology of the host on which the VM is +// running. message ResourceStatusPhysicalHostTopology { - // [Output Only] The ID of the block in which the running instance is located. Instances within the same block experience low network latency. + // [Output Only] The ID of the block in which the running instance is + // located. Instances within the same block experience low network latency. optional string block = 93832333; - // [Output Only] The global name of the Compute Engine cluster where the running instance is located. + // [Output Only] The global name of the Compute Engine cluster where the + // running instance is located. optional string cluster = 335221242; - // [Output Only] The ID of the host on which the running instance is located. Instances on the same host experience the lowest possible network latency. + // [Output Only] The ID of the host on which the running instance is located. + // Instances on the same host experience the lowest possible network + // latency. optional string host = 3208616; - // [Output Only] The ID of the sub-block in which the running instance is located. Instances in the same sub-block experience lower network latency than instances in the same block. + // [Output Only] The ID of the sub-block in which the running instance is + // located. Instances in the same sub-block experience lower network latency + // than instances in the same block. optional string subblock = 70446669; } +// Reservation consumption information that the instance is consuming from. +message ResourceStatusReservationConsumptionInfo { + // [Output Only] The full resource name of the reservation that this + // instance is consuming from. + optional string consumed_reservation = 318474741; + +} + // message ResourceStatusScheduling { - // Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. + // Specifies the availability domain to place the instance in. The value + // must be a number between 1 and the number of availability domains + // specified in the spread placement policy attached to the instance. optional int32 availability_domain = 252514344; - // Time in future when the instance will be terminated in RFC3339 text format. + // Time in future when the instance will be terminated inRFC3339 text format. optional string termination_timestamp = 364180891; } -// +// Specifies if the instance is in `PENDING_STOP` state or there is a +// programmed stop scheduled. message ResourceStatusShutdownDetails { - // + // Current stopping state of the instance. enum StopState { // A value indicating that the enum field is not set. UNDEFINED_STOP_STATE = 0; + // The instance is gracefully shutting down. PENDING_STOP = 362509770; + // The instance is stopping. STOPPING = 350791796; } - // + // Target instance state. enum TargetState { // A value indicating that the enum field is not set. UNDEFINED_TARGET_STATE = 0; + // The instance will be deleted. DELETED = 120962041; + // The instance will be stopped. STOPPED = 444276141; } + // The duration for graceful shutdown. Only applicable when + // `stop_state=PENDING_STOP`. optional Duration max_duration = 39954959; + // Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. optional string request_timestamp = 521301862; - // + // Current stopping state of the instance. // Check the StopState enum for the list of possible values. optional string stop_state = 67347988; - // + // Target instance state. // Check the TargetState enum for the list of possible values. optional string target_state = 338978915; @@ -34301,7 +65826,19 @@ message ResumeInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -34326,10 +65863,23 @@ message ResumeInstancesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -34357,24 +65907,49 @@ message ResumeInstancesRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A rollout policy configuration. message RolloutPolicy { - // An optional RFC3339 timestamp on or after which the update is considered rolled out to any zone that is not explicitly stated. + // An optional RFC3339 timestamp on or after which the update is + // considered rolled out to any zone that is not explicitly stated. optional string default_rollout_time = 413529561; - // Location based rollout policies to apply to the resource. Currently only zone names are supported and must be represented as valid URLs, like: zones/us-central1-a. The value expects an RFC3339 timestamp on or after which the update is considered rolled out to the specified location. + // Location based rollout policies to apply to the resource. + // + // Currently only zone names are supported and must be represented + // as valid URLs, like: zones/us-central1-a. + // + // The value expects an RFC3339 timestamp on or after which the update is + // considered rolled out to the specified location. map location_rollout_policies = 133299048; } -// Represents a Route resource. A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. +// Represents a Route resource. +// +// A route defines a path from VM instances in the VPC network to a specific +// destination. This destination can be inside or outside the VPC network. +// For more information, read theRoutes overview. message Route { - // [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + // [Output Only] Indicates the origin of the route. Can be IGP + // (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), + // or INCOMPLETE. enum NextHopOrigin { // A value indicating that the enum field is not set. UNDEFINED_NEXT_HOP_ORIGIN = 0; @@ -34387,7 +65962,9 @@ message Route { } - // [Output only] The status of the route. + // [Output only] The status of the route. This status only applies to + // dynamic routes learned by Cloud Routers. This status is not applicable + // to static routes. enum RouteStatus { // A value indicating that the enum field is not set. UNDEFINED_ROUTE_STATUS = 0; @@ -34395,18 +65972,28 @@ message Route { // This route is processed and active. ACTIVE = 314733318; - // The route is dropped due to the VPC exceeding the dynamic route limit. For dynamic route limit, please refer to the Learned route example + // The route is dropped due to the VPC exceeding the dynamic route limit. + // For dynamic route limit, please refer to the + // Learned route example DROPPED = 496235424; - // This route is processed but inactive due to failure from the backend. The backend may have rejected the route + // This route is processed but inactive due to failure from the backend. The + // backend may have rejected the route INACTIVE = 270421099; - // This route is being processed internally. The status will change once processed. + // This route is being processed internally. The status will change once + // processed. PENDING = 35394935; } - // [Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned from a BGP peer of this router - 'STATIC' for a static route + // [Output Only] The type of this route, which can be one of the following + // values: + // - 'TRANSIT' for a transit route that this router learned from + // another Cloud Router and will readvertise to one of its BGP peers + // - 'SUBNET' for a route from a subnet of the VPC + // - 'BGP' for a route learned from a BGP peer of this router + // - 'STATIC' for a static route enum RouteType { // A value indicating that the enum field is not set. UNDEFINED_ROUTE_TYPE = 0; @@ -34424,75 +66011,144 @@ message Route { // [Output Only] AS path. repeated RouteAsPath as_paths = 137568929; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this field when you create the resource. + // An optional description of this resource. Provide this field when you + // create the resource. optional string description = 422937596; - // The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format. + // The destination range of outgoing packets that this route applies to. Both + // IPv4 and IPv6 are supported. + // Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 + // format (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 + // compressed format. optional string dest_range = 381327712; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of this resource. Always compute#routes for Route resources. + // [Output Only] Type of this resource. Always compute#routes for + // Route resources. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a + // lowercase letter, and all following characters (except for the last + // character) must be a dash, lowercase letter, or digit. The last character + // must be a lowercase letter or digit. optional string name = 3373707; // Fully-qualified URL of the network that this route applies to. optional string network = 232872494; - // The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/ project/global/gateways/default-internet-gateway + // The URL to a gateway that should handle matching packets. + // You can only specify the internet gateway using a full or + // partial valid URL: projects/project/global/gateways/default-internet-gateway optional string next_hop_gateway = 377175298; - // [Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets. + // [Output Only] The full resource name of the Network Connectivity Center hub + // that will handle matching packets. optional string next_hop_hub = 198679219; - // The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule If an IP address is provided, must specify an IPv4 address in dot-decimal notation or an IPv6 address in RFC 4291 format. For example, the following are all valid IP addresses: - 10.128.0.56 - 2001:db8::2d9:51:0:0 - 2001:db8:0:0:2d9:51:0:0 IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. + // The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching + // packets or the IP address of the forwarding Rule. + // For example, the following are all valid URLs: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule + // - regions/region/forwardingRules/forwardingRule + // + // + // If an IP address is provided, must specify an IPv4 address in dot-decimal + // notation or an IPv6 address in RFC 4291 format. For example, the following + // are all valid IP addresses: + // + // + // - 10.128.0.56 + // - 2001:db8::2d9:51:0:0 + // - 2001:db8:0:0:2d9:51:0:0 + // + // + // IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. + // 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. optional string next_hop_ilb = 198679901; - // The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ + // The URL to an instance that should handle matching packets. You can specify + // this as a full or partial URL. + // For example: + // https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ optional string next_hop_instance = 393508247; - // [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions. + // [Output only] Internal fixed region-to-region cost that Google Cloud + // calculates based on factors such as network performance, distance, and + // available bandwidth between regions. optional uint32 next_hop_inter_region_cost = 24442003; - // [Output Only] The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for dynamic routes generated by Cloud Router with a linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. + // [Output Only] The URL to an InterconnectAttachment which is the next hop + // for the route. + // This field will only be populated for dynamic routes generated by + // Cloud Router with a linked interconnectAttachment or the static route + // generated by each L2 Interconnect Attachment. optional string next_hop_interconnect_attachment = 226852914; - // The network IP address of an instance that should handle matching packets. Both IPv6 address and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. + // The network IP address of an instance that should handle matching packets. + // Both IPv6 address and IPv4 addresses are supported. + // Must specify an IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or + // an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or + // 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 + // compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an + // IPv4-mapped IPv6 address. optional string next_hop_ip = 110319529; - // [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network. + // [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates + // the desirability of a particular route in a network. optional uint32 next_hop_med = 198683530; // The URL of the local network if it should handle matching packets. optional string next_hop_network = 262295788; - // [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + // [Output Only] Indicates the origin of the route. Can be IGP + // (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), + // or INCOMPLETE. // Check the NextHopOrigin enum for the list of possible values. optional string next_hop_origin = 48752808; - // [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. + // [Output Only] The network peering name that should handle matching packets, + // which should conform to RFC1035. optional string next_hop_peering = 412682750; // The URL to a VpnTunnel that should handle matching packets. optional string next_hop_vpn_tunnel = 519844501; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional RouteParams params = 78313862; - // The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive. + // The priority of this route. Priority is used to break ties in cases + // where there is more than one matching route of equal prefix length. In + // cases where multiple routes have equal prefix length, the one with the + // lowest-numbered priority value wins. The default value is `1000`. The + // priority value must be from `0` to `65535`, inclusive. optional uint32 priority = 445151652; - // [Output only] The status of the route. + // [Output only] The status of the route. This status only applies to + // dynamic routes learned by Cloud Routers. This status is not applicable + // to static routes. // Check the RouteStatus enum for the list of possible values. optional string route_status = 418162344; - // [Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned from a BGP peer of this router - 'STATIC' for a static route + // [Output Only] The type of this route, which can be one of the following + // values: + // - 'TRANSIT' for a transit route that this router learned from + // another Cloud Router and will readvertise to one of its BGP peers + // - 'SUBNET' for a route from a subnet of the VPC + // - 'BGP' for a route learned from a BGP peer of this router + // - 'STATIC' for a static route // Check the RouteType enum for the list of possible values. optional string route_type = 375888752; @@ -34502,14 +66158,26 @@ message Route { // A list of instance tags to which this route applies. repeated string tags = 3552281; - // [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. + // [Output Only] If potential misconfigurations are detected for this + // route, this field will be populated with warning messages. repeated Warnings warnings = 498091095; } // message RouteAsPath { - // [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed + // [Output Only] The type of the AS Path, which can be one of the following + // values: + // - 'AS_SET': unordered set of autonomous systems that the route + // in has traversed + // - 'AS_SEQUENCE': ordered set of autonomous + // systems that the route has traversed + // - 'AS_CONFED_SEQUENCE': + // ordered set of Member Autonomous Systems in the local confederation that + // the route has traversed + // - 'AS_CONFED_SET': unordered set of + // Member Autonomous Systems in the local confederation that the route has + // traversed enum PathSegmentType { // A value indicating that the enum field is not set. UNDEFINED_PATH_SEGMENT_TYPE = 0; @@ -34527,7 +66195,18 @@ message RouteAsPath { // [Output Only] The AS numbers of the AS Path. repeated uint32 as_lists = 134112584; - // [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed + // [Output Only] The type of the AS Path, which can be one of the following + // values: + // - 'AS_SET': unordered set of autonomous systems that the route + // in has traversed + // - 'AS_SEQUENCE': ordered set of autonomous + // systems that the route has traversed + // - 'AS_CONFED_SEQUENCE': + // ordered set of Member Autonomous Systems in the local confederation that + // the route has traversed + // - 'AS_CONFED_SET': unordered set of + // Member Autonomous Systems in the local confederation that the route has + // traversed // Check the PathSegmentType enum for the list of possible values. optional string path_segment_type = 513464992; @@ -34544,7 +66223,11 @@ message RouteList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -34557,7 +66240,18 @@ message RouteList { // Additional route parameters. message RouteParams { - // Tag keys/values directly bound to this resource. Tag keys and values have the same definition as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {"123/environment" : "tagValues/444"} is invalid. + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. map resource_manager_tags = 377671164; } @@ -34580,13 +66274,24 @@ message RoutePolicy { // An optional description of route policy. optional string description = 422937596; - // A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. + // A fingerprint for the Route Policy being applied to this Router, which is + // essentially a hash of the Route Policy used for optimistic locking. + // The fingerprint is initially generated by Compute Engine and changes + // after every request to modify or update Route Policy. You must always + // provide an up-to-date fingerprint hash in order to update or change + // labels. + // + // To see the latest fingerprint, make a getRoutePolicy() request + // to retrieve a Route Policy. optional string fingerprint = 234678500; - // Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035. + // Route Policy name, which must be a resource ID segment and unique + // within all the router's Route Policies. Name should conform to RFC1035. optional string name = 3373707; - // List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later. + // List of terms (the order in the list is not important, they are evaluated + // in order of priority). Order of policies is not retained and might change + // when getting policy later. repeated RoutePolicyPolicyTerm terms = 110250375; // @@ -34600,44 +66305,73 @@ message RoutePolicyPolicyTerm { // CEL expressions to evaluate to modify a route when this term matches. repeated Expr actions = 448809213; - // CEL expression evaluated against a route to determine if this term applies. When not set, the term applies to all routes. + // CEL expression evaluated against a route to determine if this term + // applies. When not set, the term applies to all + // routes. optional Expr match = 103668165; - // The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 (exclusive), and unique within the list. + // The evaluation priority for this term, which must be between 0 + // (inclusive) and 2^31 (exclusive), and unique within the list. optional int32 priority = 445151652; } -// Represents a Cloud Router resource. For more information about Cloud Router, read the Cloud Router overview. +// Represents a Cloud Router resource. +// +// For more information about Cloud Router, read theCloud +// Router overview. message Router { // BGP information specific to this router. optional RouterBgp bgp = 97483; - // BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer to RFC4273. + // BGP information that must be configured into the routing stack to + // establish BGP peering. This information must specify the peer ASN and + // either the interface name, IP address, or peer IP address. Please refer toRFC4273. repeated RouterBgpPeer bgp_peers = 452695773; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments). + // Indicates if a router is dedicated for use with encrypted VLAN + // attachments (interconnectAttachments). optional bool encrypted_interconnect_router = 297996575; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified: - linkedVpnTunnel - linkedInterconnectAttachment - subnetwork You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface. + // Router interfaces. + // To create a BGP peer that uses a router interface, + // the interface must have one of the following fields specified: + // + // - linkedVpnTunnel + // - linkedInterconnectAttachment + // - subnetwork + // + // + // You can create a router interface without any of these fields specified. + // However, you cannot create a BGP peer that uses that interface. repeated RouterInterface interfaces = 12073562; - // [Output Only] Type of resource. Always compute#router for routers. + // [Output Only] Type of resource. Always compute#router for + // routers. optional string kind = 3292052; // Keys used for MD5 authentication. repeated RouterMd5AuthenticationKey md5_authentication_keys = 71063322; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; // A list of NAT services created in this router. @@ -34649,10 +66383,13 @@ message Router { // URI of the network to which this router belongs. optional string network = 232872494; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional RouterParams params = 78313862; - // [Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URI of the region where the router resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. @@ -34681,7 +66418,11 @@ message RouterAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -34697,7 +66438,8 @@ message RouterAggregatedList { // message RouterBgp { - // User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. + // User-specified flag to indicate which mode to use for advertisement. + // The options are DEFAULT or CUSTOM. enum AdvertiseMode { // A value indicating that the enum field is not set. UNDEFINED_ADVERTISE_MODE = 0; @@ -34718,24 +66460,57 @@ message RouterBgp { } - // User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. + // User-specified flag to indicate which mode to use for advertisement. + // The options are DEFAULT or CUSTOM. // Check the AdvertiseMode enum for the list of possible values. optional string advertise_mode = 312134331; - // User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. + // User-specified list of prefix groups to advertise in custom mode. + // This field can only be populated if advertise_mode is CUSTOM and + // is advertised to all peers of the router. + // These groups will be advertised in addition to any specified prefixes. + // Leave this field blank to advertise no custom groups. // Check the AdvertisedGroups enum for the list of possible values. repeated string advertised_groups = 21065526; - // User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. + // User-specified list of individual IP ranges to advertise in custom mode. + // This field can only be populated if advertise_mode is CUSTOM and + // is advertised to all peers of the router. + // These IP ranges will be advertised in addition to any specified groups. + // Leave this field blank to advertise no custom IP ranges. repeated RouterAdvertisedIpRange advertised_ip_ranges = 35449932; - // Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. + // Local BGP Autonomous System Number (ASN). + // Must be anRFC6996 private ASN, either 16-bit or 32-bit. The + // value will be fixed for this router resource. All VPN tunnels that link + // to this router will have the same local ASN. optional uint32 asn = 96892; - // Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are over IPv6. It must not overlap with any IPv4 BGP session ranges. Other vendors commonly call this "router ID". + // Explicitly specifies a range of valid BGP Identifiers for this Router. It + // is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at + // least /30, even if the BGP sessions are over IPv6. It must not overlap + // with any IPv4 BGP session ranges. + // + // + // Other vendors commonly call this "router ID". optional string identifier_range = 501573159; - // The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 20 and 60. The default is 20. + // The interval in seconds between BGP keepalive messages that are + // sent to the peer. + // + // + // Hold time is three times the interval at which keepalive messages are + // sent, and the hold time is the maximum number of seconds allowed to + // elapse between successive keepalive messages that BGP receives from a + // peer. + // + // + // BGP will use the smaller of either the local hold time value or the + // peer's hold time value as the hold time for the BGP connection between + // the two peers. + // + // + // If set, this value must be between 20 and 60. The default is 20. optional uint32 keepalive_interval = 276771516; } @@ -34763,7 +66538,13 @@ message RouterBgpPeer { } - // The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. + // The status of the BGP peer connection. + // + // + // If set to FALSE, any active session with the peer is terminated and + // all associated routing information is removed. If set to TRUE, the + // peer connection can be established with routing information. The default + // is TRUE. enum Enable { // A value indicating that the enum field is not set. UNDEFINED_ENABLE = 0; @@ -34774,12 +66555,26 @@ message RouterBgpPeer { } - // [Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. + // [Output Only] The resource that configures and manages this BGP peer. + // + // - MANAGED_BY_USER is the default value and can be managed by you + // or other users + // - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed + // by Cloud Interconnect, specifically by an InterconnectAttachment of type + // PARTNER. Google automatically creates, updates, and deletes this type of + // BGP peer when the PARTNER InterconnectAttachment is created, updated, + // or deleted. enum ManagementType { // A value indicating that the enum field is not set. UNDEFINED_MANAGEMENT_TYPE = 0; - // The BGP peer is automatically created for PARTNER type InterconnectAttachment; Google will automatically create/delete this BGP peer when the PARTNER InterconnectAttachment is created/deleted, and Google will update the ipAddress and peerIpAddress when the PARTNER InterconnectAttachment is provisioned. This type of BGP peer cannot be created or deleted, but can be modified for all fields except for name, ipAddress and peerIpAddress. + // The BGP peer is automatically created for PARTNER type + // InterconnectAttachment; Google will automatically create/delete + // this BGP peer when the PARTNER InterconnectAttachment is + // created/deleted, and Google will update the ipAddress and + // peerIpAddress when the PARTNER InterconnectAttachment is provisioned. + // This type of BGP peer cannot be created or deleted, but can be + // modified for all fields except for name, ipAddress and peerIpAddress. MANAGED_BY_ATTACHMENT = 458926411; // Default value, the BGP peer is manually created and managed by user. @@ -34791,39 +66586,72 @@ message RouterBgpPeer { // Check the AdvertiseMode enum for the list of possible values. optional string advertise_mode = 312134331; - // User-specified list of prefix groups to advertise in custom mode, which currently supports the following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This excludes any routes learned for subnets that use VPC Network Peering. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. + // User-specified list of prefix groups to advertise in custom mode, + // which currently supports the following option: + // + // - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This + // excludes any routes learned for subnets that use + // VPC Network Peering. + // + // + // Note that this field can only be populated if advertise_mode is CUSTOM + // and overrides the list defined for the router (in the "bgp" message). + // These groups are advertised in addition to any specified prefixes. + // Leave this field blank to advertise no custom groups. // Check the AdvertisedGroups enum for the list of possible values. repeated string advertised_groups = 21065526; - // User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. + // User-specified list of individual IP ranges to advertise in custom mode. + // This field can only be populated if advertise_mode is CUSTOM and + // overrides the list defined for the router (in the "bgp" message). + // These IP ranges are advertised in addition to any specified groups. + // Leave this field blank to advertise no custom IP ranges. repeated RouterAdvertisedIpRange advertised_ip_ranges = 35449932; - // The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. + // The priority of routes advertised to this BGP peer. Where there is more + // than one matching route of maximum length, the routes with the lowest + // priority value win. optional uint32 advertised_route_priority = 186486332; // BFD configuration for the BGP peering. optional RouterBgpPeerBfd bfd = 97440; - // A list of user-defined custom learned route IP address ranges for a BGP session. + // A list of user-defined custom learned route IP address ranges for a BGP + // session. repeated RouterBgpPeerCustomLearnedIpRange custom_learned_ip_ranges = 481363012; - // The user-defined custom learned route priority for a BGP session. This value is applied to all custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you don't provide a value, Google Cloud assigns a priority of `100` to the ranges. + // The user-defined custom learned route priority for a BGP session. This + // value is applied to all custom learned route ranges for the session. + // You can choose a value from `0` to `65335`. If you don't provide a + // value, Google Cloud assigns a priority of `100` to the ranges. optional int32 custom_learned_route_priority = 330412356; - // The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. + // The status of the BGP peer connection. + // + // + // If set to FALSE, any active session with the peer is terminated and + // all associated routing information is removed. If set to TRUE, the + // peer connection can be established with routing information. The default + // is TRUE. // Check the Enable enum for the list of possible values. optional string enable = 311764355; - // Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + // Enable IPv4 traffic over BGP Peer. It is enabled by default if + // the peerIpAddress is version 4. optional bool enable_ipv4 = 181467937; - // Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + // Enable IPv6 traffic over BGP Peer. It is enabled by default if the + // peerIpAddress is version 6. optional bool enable_ipv6 = 181467939; - // List of export policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type. + // List of export policies applied to this peer, in the order they must be + // evaluated. The name must correspond to an existing policy that has + // ROUTE_POLICY_TYPE_EXPORT type. repeated string export_policies = 134084987; - // List of import policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type. + // List of import policies applied to this peer, in the order they must be + // evaluated. The name must correspond to an existing policy that has + // ROUTE_POLICY_TYPE_IMPORT type. repeated string import_policies = 451147946; // Name of the interface the BGP peer is associated with. @@ -34838,17 +66666,33 @@ message RouterBgpPeer { // IPv6 address of the interface inside Google Cloud Platform. optional string ipv6_nexthop_address = 27968211; - // [Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. + // [Output Only] The resource that configures and manages this BGP peer. + // + // - MANAGED_BY_USER is the default value and can be managed by you + // or other users + // - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed + // by Cloud Interconnect, specifically by an InterconnectAttachment of type + // PARTNER. Google automatically creates, updates, and deletes this type of + // BGP peer when the PARTNER InterconnectAttachment is created, updated, + // or deleted. // Check the ManagementType enum for the list of possible values. optional string management_type = 173703606; - // Present if MD5 authentication is enabled for the peering. Must be the name of one of the entries in the Router.md5_authentication_keys. The field must comply with RFC1035. + // Present if MD5 authentication is enabled for the peering. Must be the + // name of one of the entries in the Router.md5_authentication_keys. The + // field must comply with RFC1035. optional string md5_authentication_key_name = 281075345; - // Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of this BGP peer. + // The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 + // characters long and match the regular expression + // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a + // lowercase letter, and all following characters must be a dash, lowercase + // letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; - // Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. + // Peer BGP Autonomous System Number (ASN). Each BGP interface may use + // a different value. optional uint32 peer_asn = 69573151; // IP address of the BGP interface outside Google Cloud Platform. @@ -34860,14 +66704,24 @@ message RouterBgpPeer { // IPv6 address of the BGP interface outside Google Cloud Platform. optional string peer_ipv6_nexthop_address = 491486608; - // URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP session. + // URI of the VM instance that is used as third-party router + // appliances such as Next Gen Firewalls, Virtual Routers, or Router + // Appliances. The VM instance must be located in zones contained in the + // same region as this Cloud Router. + // The VM instance is the peer side of the BGP session. optional string router_appliance_instance = 468312989; } // message RouterBgpPeerBfd { - // The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. + // The BFD session initialization mode for this BGP peer. + // + // + // If set to ACTIVE, the Cloud Router will initiate the BFD session for + // this BGP peer. If set to PASSIVE, the Cloud Router will wait for the + // peer router to initiate the BFD session for this BGP peer. If set to + // DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. enum SessionInitializationMode { // A value indicating that the enum field is not set. UNDEFINED_SESSION_INITIALIZATION_MODE = 0; @@ -34880,16 +66734,47 @@ message RouterBgpPeerBfd { } - // The minimum interval, in milliseconds, between BFD control packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000. + // The minimum interval, in milliseconds, between BFD control packets + // received from the peer router. The actual value is negotiated between + // the two routers and is equal to the greater of this value and the + // transmit interval of the other router. + // + // + // If set, this value must be between 1000 and 30000. + // + // + // The default is 1000. optional uint32 min_receive_interval = 186981614; - // The minimum interval, in milliseconds, between BFD control packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000. + // The minimum interval, in milliseconds, between BFD control packets + // transmitted to the peer router. The actual value is negotiated between + // the two routers and is equal to the greater of this value and the + // corresponding receive interval of the other router. + // + // + // If set, this value must be between 1000 and 30000. + // + // + // The default is 1000. optional uint32 min_transmit_interval = 523282631; - // The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 5 and 16. The default is 5. + // The number of consecutive BFD packets that must be missed + // before BFD declares that a peer is unavailable. + // + // + // If set, the value must be a value between 5 and 16. + // + // + // The default is 5. optional uint32 multiplier = 191331777; - // The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. + // The BFD session initialization mode for this BGP peer. + // + // + // If set to ACTIVE, the Cloud Router will initiate the BFD session for + // this BGP peer. If set to PASSIVE, the Cloud Router will wait for the + // peer router to initiate the BFD session for this BGP peer. If set to + // DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. // Check the SessionInitializationMode enum for the list of possible values. optional string session_initialization_mode = 105957049; @@ -34897,7 +66782,10 @@ message RouterBgpPeerBfd { // message RouterBgpPeerCustomLearnedIpRange { - // The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP address range, and, for IPv6, `/128`. + // The custom learned route IP address range. Must be a valid + // CIDR-formatted prefix. If an IP address is provided without a subnet + // mask, it is interpreted as, for IPv4, a `/32` singular IP address + // range, and, for IPv6, `/128`. optional string range = 108280125; } @@ -34915,12 +66803,24 @@ message RouterInterface { } - // [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. + // [Output Only] The resource that configures and manages this interface. + // + // - MANAGED_BY_USER is the default value and can be managed directly + // by users. + // - MANAGED_BY_ATTACHMENT is an interface that is configured and + // managed by Cloud Interconnect, specifically, by an InterconnectAttachment + // of type PARTNER. Google automatically creates, updates, and deletes + // this type of interface when the PARTNER InterconnectAttachment is + // created, updated, or deleted. enum ManagementType { // A value indicating that the enum field is not set. UNDEFINED_MANAGEMENT_TYPE = 0; - // The interface is automatically created for PARTNER type InterconnectAttachment, Google will automatically create/update/delete this interface when the PARTNER InterconnectAttachment is created/provisioned/deleted. This type of interface cannot be manually managed by user. + // The interface is automatically created for PARTNER type + // InterconnectAttachment, Google will automatically create/update/delete + // this interface when the PARTNER InterconnectAttachment is + // created/provisioned/deleted. + // This type of interface cannot be manually managed by user. MANAGED_BY_ATTACHMENT = 458926411; // Default value, the interface is manually created and managed by user. @@ -34928,33 +66828,77 @@ message RouterInterface { } - // IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or less. This value should be a CIDR-formatted string, for example, fdff:1::1/112. Within the router's VPC, this IPv6 prefix will be reserved exclusively for this connection and cannot be used for any other purpose. + // IP address and range of the interface. + // + // - For Internet Protocol version 4 (IPv4), the IP range must be in theRFC3927 link-local IP address space. The value must + // be a CIDR-formatted string, for example, 169.254.0.1/30. + // Note: Do not truncate the IP address, as it represents the IP address of + // the interface. + // - For Internet Protocol version 6 (IPv6), the value + // must be a unique local address (ULA) range from fdff:1::/64 + // with a mask length of 126 or less. This value should be a CIDR-formatted + // string, for example, fdff:1::1/112. Within the router's + // VPC, this IPv6 prefix will be reserved exclusively for this connection + // and cannot be used for any other purpose. optional string ip_range = 145092645; // IP version of this interface. // Check the IpVersion enum for the list of possible values. optional string ip_version = 294959552; - // URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork. + // URI of the linked Interconnect attachment. It must be in the same region + // as the router. Each interface can have one linked resource, which can be + // a VPN tunnel, an Interconnect attachment, or a subnetwork. optional string linked_interconnect_attachment = 501085518; - // URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork. + // URI of the linked VPN tunnel, which must be in the same region as the + // router. Each interface can have one linked resource, which can be + // a VPN tunnel, an Interconnect attachment, or a subnetwork. optional string linked_vpn_tunnel = 352296953; - // [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. + // [Output Only] The resource that configures and manages this interface. + // + // - MANAGED_BY_USER is the default value and can be managed directly + // by users. + // - MANAGED_BY_ATTACHMENT is an interface that is configured and + // managed by Cloud Interconnect, specifically, by an InterconnectAttachment + // of type PARTNER. Google automatically creates, updates, and deletes + // this type of interface when the PARTNER InterconnectAttachment is + // created, updated, or deleted. // Check the ManagementType enum for the list of possible values. optional string management_type = 173703606; - // Name of this interface entry. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of this interface entry. + // The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 + // characters long and match the regular expression + // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a + // lowercase letter, and all following characters must be a dash, lowercase + // letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; - // The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM. + // The regional private internal IP address that is used to establish + // BGP sessions to a VM instance acting as a third-party + // Router Appliance, such as a Next Gen Firewall, a Virtual Router, or + // an SD-WAN VM. optional string private_ip_address = 100854040; - // Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the interface that will be redundant with the current interface + // you are creating. The redundantInterface must belong to the same Cloud + // Router as the interface here. To establish the BGP session to a Router + // Appliance VM, you must create two BGP peers. The two BGP peers must be + // attached to two separate interfaces that are redundant with each other. + // The redundant_interface must be 1-63 characters long, and comply withRFC1035. Specifically, the redundant_interface must + // be 1-63 characters long and match the regular expression + // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a + // lowercase letter, and all following characters must be a dash, lowercase + // letter, or digit, except the last character, which cannot be a dash. optional string redundant_interface = 523187303; - // The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. + // The URI of the subnetwork resource that this interface belongs to, which + // must be in the same region as the Cloud Router. + // When you establish a BGP session to a VM instance using this interface, + // the VM instance must belong to the same subnetwork as the subnetwork + // specified here. optional string subnetwork = 307827694; } @@ -34967,10 +66911,15 @@ message RouterList { // A list of Router resources. repeated Router items = 100526016; - // [Output Only] Type of resource. Always compute#router for routers. + // [Output Only] Type of resource. Always compute#router for + // routers. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -34983,17 +66932,32 @@ message RouterList { // message RouterMd5AuthenticationKey { - // [Input only] Value of the key. For patch and update calls, it can be skipped to copy the value from the previous configuration. This is allowed if the key with the same name existed before the operation. Maximum length is 80 characters. Can only contain printable ASCII characters. + // [Input only] Value of the key. + // + // For patch and update calls, it can be skipped to + // copy the value from the previous configuration. This is allowed if the + // key with the same name existed before the operation. Maximum length is 80 + // characters. Can only contain printable ASCII characters. optional string key = 106079; - // Name used to identify the key. Must be unique within a router. Must be referenced by exactly one bgpPeer. Must comply with RFC1035. + // Name used to identify the key. + // + // Must be unique within a router. Must be referenced by exactly + // one bgpPeer. Must comply withRFC1035. optional string name = 3373707; } -// Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. +// Represents a Nat resource. It enables the VMs within the specified +// subnetworks to access Internet without external IP addresses. It specifies +// a list of subnetworks (and the ranges within) that want to use NAT. +// Customers can also provide the external IPs that would be used for NAT. GCP +// would auto-allocate ephemeral IPs if no external IPs are provided. message RouterNat { - // The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is used. + // The network tier to use when automatically reserving NAT IP addresses. + // Must be one of: PREMIUM, STANDARD. + // If not specified, then the current + // project-level default tier is used. enum AutoNetworkTier { // A value indicating that the enum field is not set. UNDEFINED_AUTO_NETWORK_TIER = 0; @@ -35001,13 +66965,16 @@ message RouterNat { // Public internet quality with fixed bandwidth. FIXED_STANDARD = 310464328; - // High quality, Google-grade network tier, support for all networking products. + // High quality, Google-grade network tier, support for all networking + // products. PREMIUM = 399530551; - // Public internet quality, only limited support for other networking products. + // Public internet quality, only limited support for other networking + // products. STANDARD = 484642493; - // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured. + // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier + // is expired or not configured. STANDARD_OVERRIDES_FIXED_STANDARD = 465847234; } @@ -35017,7 +66984,9 @@ message RouterNat { // A value indicating that the enum field is not set. UNDEFINED_ENDPOINT_TYPES = 0; - // This is used for regional Application Load Balancers (internal and external) and regional proxy Network Load Balancers (internal and external) endpoints. + // This is used for regional Application Load Balancers (internal and + // external) and regional proxy Network Load Balancers (internal and + // external) endpoints. ENDPOINT_TYPE_MANAGED_PROXY_LB = 439196930; // This is used for Secure Web Gateway endpoints. @@ -35028,7 +66997,15 @@ message RouterNat { } - // Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. + // Specify the NatIpAllocateOption, which can take one of the following + // values: + // + // - MANUAL_ONLY: Uses only Nat IP addresses provided by + // customers. When there are not enough specified Nat IPs, the Nat service + // fails for new VMs. + // - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers + // can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should + // be empty. enum NatIpAllocateOption { // A value indicating that the enum field is not set. UNDEFINED_NAT_IP_ALLOCATE_OPTION = 0; @@ -35036,12 +67013,26 @@ message RouterNat { // Nat IPs are allocated by GCP; customers can not specify any Nat IPs. AUTO_ONLY = 182333500; - // Only use Nat IPs provided by customers. When specified Nat IPs are not enough then the Nat service fails for new VMs. + // Only use Nat IPs provided by customers. When specified Nat IPs are not + // enough then the Nat service fails for new VMs. MANUAL_ONLY = 261251205; } - // Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any Router for this network in this region. + // Specify the Nat option, which can take one of the following values: + // + // - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every + // Subnetwork are allowed to Nat. + // - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges + // in every Subnetwork are allowed to Nat. + // - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat + // (specified in the field subnetwork below) + // + // + // The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. + // Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there + // should not be any other Router.Nat section in any Router for this network + // in this region. enum SourceSubnetworkIpRangesToNat { // A value indicating that the enum field is not set. UNDEFINED_SOURCE_SUBNETWORK_IP_RANGES_TO_NAT = 0; @@ -35052,25 +67043,43 @@ message RouterNat { // All the primary IP ranges in every Subnetwork are allowed to Nat. ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES = 185573819; - // A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) + // A list of Subnetworks are allowed to Nat (specified in the field + // subnetwork below) LIST_OF_SUBNETWORKS = 517542270; } - // Specify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field nat64_subnetwork below) The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 only. + // Specify the Nat option for NAT64, which can take one of the following + // values: + // + // - ALL_IPV6_SUBNETWORKS: All of the IP ranges in + // every Subnetwork are allowed to Nat. + // - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat + // (specified in the field nat64_subnetwork below) + // + // + // The default is NAT64_OPTION_UNSPECIFIED. + // Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other + // Router.Nat section in this region can also enable NAT64 for any + // Subnetworks in this network. Other Router.Nat sections can still be + // present to enable NAT44 only. enum SourceSubnetworkIpRangesToNat64 { // A value indicating that the enum field is not set. UNDEFINED_SOURCE_SUBNETWORK_IP_RANGES_TO_NAT64 = 0; - // NAT64 is enabled for all the IPv6 subnet ranges. In dual stack subnets, NAT64 will only be enabled for IPv6-only VMs. + // NAT64 is enabled for all the IPv6 subnet ranges. + // In dual stack subnets, NAT64 will only be enabled for IPv6-only VMs. ALL_IPV6_SUBNETWORKS = 341632747; - // NAT64 is enabled for a list of IPv6 subnet ranges. In dual stack subnets, NAT64 will only be enabled for IPv6-only VMs. If this option is used, the nat64_subnetworks field must be specified. + // NAT64 is enabled for a list of IPv6 subnet ranges. + // In dual stack subnets, NAT64 will only be enabled for IPv6-only VMs. + // If this option is used, the nat64_subnetworks field must be specified. LIST_OF_IPV6_SUBNETWORKS = 521079860; } - // Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC. + // Indicates whether this NAT is used for public or private IP + // translation. If unspecified, it defaults to PUBLIC. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -35078,24 +67087,45 @@ message RouterNat { // NAT used for private IP translation. PRIVATE = 403485027; - // NAT used for public IP translation. This is the default. + // NAT used for public IP translation. + // This is the default. PUBLIC = 223389289; } - // The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is used. + // The network tier to use when automatically reserving NAT IP addresses. + // Must be one of: PREMIUM, STANDARD. + // If not specified, then the current + // project-level default tier is used. // Check the AutoNetworkTier enum for the list of possible values. optional string auto_network_tier = 269770211; - // A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. + // A list of URLs of the IP resources to be drained. These IPs + // must be valid static external IPs that have been assigned to the NAT. + // These IPs should be used for updating/patching a NAT only. repeated string drain_nat_ips = 504078535; - // Enable Dynamic Port Allocation. If not specified, it is disabled by default. If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a minimum of 32 ports will be allocated to a VM from this NAT config. + // Enable Dynamic Port Allocation. + // + // + // If not specified, it is disabled by default. + // + // + // If set to true, + // + // - Dynamic Port Allocation will be enabled on this NAT + // config. + // - enableEndpointIndependentMapping cannot be set to true. + // - If minPorts is set, minPortsPerVm must be set to a + // power of two greater than or equal to 32. If minPortsPerVm is not set, a + // minimum of 32 ports will be allocated to a VM from this NAT + // config. optional bool enable_dynamic_port_allocation = 532106402; optional bool enable_endpoint_independent_mapping = 259441819; - // List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM + // List of NAT-ted endpoint types supported by the Nat Gateway. If the list + // is empty, then it will be equivalent to include ENDPOINT_TYPE_VM // Check the EndpointTypes enum for the list of possible values. repeated string endpoint_types = 502633807; @@ -35105,49 +67135,111 @@ message RouterNat { // Configure logging on this NAT. optional RouterNatLogConfig log_config = 351299741; - // Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled. If Dynamic Port Allocation is not enabled, this field has no effect. If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two greater than minPortsPerVm, or 64 if minPortsPerVm is not set. If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will be allocated to a VM from this NAT config. + // Maximum number of ports allocated to a VM from this NAT config when + // Dynamic Port Allocation is enabled. + // + // + // If Dynamic Port Allocation is not enabled, this field has no effect. + // + // + // If Dynamic Port Allocation is enabled, and this field is set, it must be + // set to a power of two greater than minPortsPerVm, or 64 if minPortsPerVm + // is not set. + // + // + // If Dynamic Port Allocation is enabled and this field is not set, + // a maximum of 65536 ports will be allocated to a VM from this NAT + // config. optional int32 max_ports_per_vm = 250062049; - // Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. + // Minimum number of ports allocated to a VM from this NAT config. If not + // set, a default number of ports is allocated to a VM. This is rounded + // up to the nearest power of 2. For example, if the value of this field is + // 50, at least 64 ports are allocated to a VM. optional int32 min_ports_per_vm = 186193587; - // Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035. + // Unique name of this Nat service. + // The name must be 1-63 characters long and comply withRFC1035. optional string name = 3373707; - // List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above. + // List of Subnetwork resources whose traffic should be translated by NAT64 + // Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is + // selected for the SubnetworkIpRangeToNat64Option above. repeated RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; - // Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. + // Specify the NatIpAllocateOption, which can take one of the following + // values: + // + // - MANUAL_ONLY: Uses only Nat IP addresses provided by + // customers. When there are not enough specified Nat IPs, the Nat service + // fails for new VMs. + // - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers + // can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should + // be empty. // Check the NatIpAllocateOption enum for the list of possible values. optional string nat_ip_allocate_option = 429726845; - // A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. + // A list of URLs of the IP resources used for this Nat service. These IP + // addresses must be valid static external IP addresses assigned to the + // project. repeated string nat_ips = 117635086; // A list of rules associated with this NAT. repeated RouterNatRule rules = 108873975; - // Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any Router for this network in this region. + // Specify the Nat option, which can take one of the following values: + // + // - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every + // Subnetwork are allowed to Nat. + // - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges + // in every Subnetwork are allowed to Nat. + // - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat + // (specified in the field subnetwork below) + // + // + // The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. + // Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there + // should not be any other Router.Nat section in any Router for this network + // in this region. // Check the SourceSubnetworkIpRangesToNat enum for the list of possible values. optional string source_subnetwork_ip_ranges_to_nat = 252213211; - // Specify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field nat64_subnetwork below) The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 only. + // Specify the Nat option for NAT64, which can take one of the following + // values: + // + // - ALL_IPV6_SUBNETWORKS: All of the IP ranges in + // every Subnetwork are allowed to Nat. + // - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat + // (specified in the field nat64_subnetwork below) + // + // + // The default is NAT64_OPTION_UNSPECIFIED. + // Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other + // Router.Nat section in this region can also enable NAT64 for any + // Subnetworks in this network. Other Router.Nat sections can still be + // present to enable NAT44 only. // Check the SourceSubnetworkIpRangesToNat64 enum for the list of possible values. optional string source_subnetwork_ip_ranges_to_nat64 = 248116185; - // A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. + // A list of Subnetwork resources whose traffic should be translated by NAT + // Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the + // SubnetworkIpRangeToNatOption above. repeated RouterNatSubnetworkToNat subnetworks = 415853125; - // Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. + // Timeout (in seconds) for TCP established connections. Defaults to 1200s + // if not set. optional int32 tcp_established_idle_timeout_sec = 223098349; - // Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not set. + // Timeout (in seconds) for TCP connections that are in TIME_WAIT state. + // Defaults to 120s if not set. optional int32 tcp_time_wait_timeout_sec = 513596925; - // Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. + // Timeout (in seconds) for TCP transitory connections. Defaults to 30s if + // not set. optional int32 tcp_transitory_idle_timeout_sec = 205028774; - // Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC. + // Indicates whether this NAT is used for public or private IP + // translation. If unspecified, it defaults to PUBLIC. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -35158,7 +67250,15 @@ message RouterNat { // Configuration of logging on a NAT. message RouterNatLogConfig { - // Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. + // Specify the desired filtering of logs on this NAT. If unspecified, + // logs are exported for all connections handled by this NAT. + // This option can take one of the following values: + // + // - ERRORS_ONLY: Export logs only for connection failures. + // - TRANSLATIONS_ONLY: Export logs only for successful + // connections. + // - ALL: Export logs for all connections, successful and + // unsuccessful. enum Filter { // A value indicating that the enum field is not set. UNDEFINED_FILTER = 0; @@ -35177,7 +67277,15 @@ message RouterNatLogConfig { // Indicates whether or not to export logs. This is false by default. optional bool enable = 311764355; - // Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. + // Specify the desired filtering of logs on this NAT. If unspecified, + // logs are exported for all connections handled by this NAT. + // This option can take one of the following values: + // + // - ERRORS_ONLY: Export logs only for connection failures. + // - TRANSLATIONS_ONLY: Export logs only for successful + // connections. + // - ALL: Export logs for all connections, successful and + // unsuccessful. // Check the Filter enum for the list of possible values. optional string filter = 336120696; @@ -35191,26 +67299,54 @@ message RouterNatRule { // An optional description of this rule. optional string description = 422937596; - // CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` The following example is a valid match expression for private NAT: `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1'` + // CEL expression that specifies the match condition that egress traffic + // from a VM is evaluated against. If it evaluates to true, the + // corresponding `action` is enforced. + // + // The following examples are valid match expressions for public NAT: + // + // `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, + // '2.2.0.0/16')` + // + // `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` + // + // The following example is a valid match expression for private NAT: + // + // `nexthop.hub == + // '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1'` optional string match = 103668165; - // An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT. + // An integer uniquely identifying a rule in the list. The rule number + // must be a positive value between 0 and 65000, and + // must be unique among rules within a NAT. optional uint32 rule_number = 535211500; } // message RouterNatRuleAction { - // A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT. + // A list of URLs of the IP resources used for this NAT rule. These IP + // addresses must be valid static external IP addresses assigned to the + // project. + // This field is used for public NAT. repeated string source_nat_active_ips = 210378229; - // A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT. + // A list of URLs of the subnetworks used as source ranges for this + // NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. + // This field is used for private NAT. repeated string source_nat_active_ranges = 190556269; - // A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT. + // A list of URLs of the IP resources to be drained. These IPs + // must be valid static external IPs that have been assigned to the NAT. + // These IPs should be used for updating/patching a NAT rule only. + // This field is used for public NAT. repeated string source_nat_drain_ips = 340812451; - // A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT. + // A list of URLs of subnetworks representing source ranges to be + // drained. This is only supported on patch/update, and these + // subnetworks must have previously been used as active ranges in this + // NAT Rule. + // This field is used for private NAT. repeated string source_nat_drain_ranges = 84802815; } @@ -35236,10 +67372,17 @@ message RouterNatSubnetworkToNat { // URL for the subnetwork resource that will use NAT. optional string name = 3373707; - // A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. + // A list of the secondary ranges of the Subnetwork that are allowed to + // use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" + // is one of the values in source_ip_ranges_to_nat. repeated string secondary_ip_range_names = 264315097; - // Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] + // Specify the options for NAT ranges in the Subnetwork. All + // options of a single value are valid except + // NAT_IP_RANGE_OPTION_UNSPECIFIED. + // The only valid option with multiple values is: ["PRIMARY_IP_RANGE", + // "LIST_OF_SECONDARY_IP_RANGES"] + // Default: [ALL_IP_RANGES] // Check the SourceIpRangesToNat enum for the list of possible values. repeated string source_ip_ranges_to_nat = 388310386; @@ -35254,17 +67397,41 @@ message RouterNatSubnetworkToNat64 { // Additional router parameters. message RouterParams { - // Tag keys/values directly bound to this resource. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {"123/environment" : "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + // Tag keys/values directly bound to this resource. + // The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. map resource_manager_tags = 377671164; } // message RouterStatus { - // A list of the best dynamic routes for this Cloud Router's Virtual Private Cloud (VPC) network in the same region as this Cloud Router. Lists all of the best routes per prefix that are programmed into this region's VPC data plane. When global dynamic routing mode is turned on in the VPC network, this list can include cross-region dynamic routes from Cloud Routers in other regions. + // A list of the best dynamic routes for this Cloud Router's Virtual Private + // Cloud (VPC) network in the same region as this Cloud Router. + // + // Lists all of the best routes per prefix that are programmed into this + // region's VPC data plane. + // + // When global dynamic routing mode is turned on in the VPC network, this list + // can include cross-region dynamic routes from Cloud Routers in other + // regions. repeated Route best_routes = 395826693; - // A list of the best BGP routes learned by this Cloud Router. It is possible that routes listed might not be programmed into the data plane, if the Google Cloud control plane finds a more optimal route for a prefix than a route learned by this Cloud Router. + // A list of the best BGP routes learned by this Cloud Router. + // + // It is possible that routes listed might not be programmed into the data + // plane, if the Google Cloud control plane finds a more optimal route for a + // prefix than a route learned by this Cloud Router. repeated Route best_routes_for_router = 119389689; repeated RouterStatusBgpPeerStatus bgp_peer_status = 218459131; @@ -35299,13 +67466,17 @@ message RouterStatusBgpPeerStatus { // A value indicating that the enum field is not set. UNDEFINED_STATUS_REASON = 0; - // BGP peer disabled because it requires IPv4 but the underlying connection is IPv6-only. + // BGP peer disabled because it requires IPv4 but the underlying + // connection is IPv6-only. IPV4_PEER_ON_IPV6_ONLY_CONNECTION = 435936662; - // BGP peer disabled because it requires IPv6 but the underlying connection is IPv4-only. + // BGP peer disabled because it requires IPv6 but the underlying + // connection is IPv4-only. IPV6_PEER_ON_IPV4_ONLY_CONNECTION = 436304082; - // Indicates internal problems with configuration of MD5 authentication. This particular reason can only be returned when md5AuthEnabled is true and status is DOWN. + // Indicates internal problems with configuration of MD5 authentication. + // This particular reason can only be returned when md5AuthEnabled is true + // and status is DOWN. MD5_AUTH_INTERNAL_PROBLEM = 140462259; STATUS_REASON_UNSPECIFIED = 394331913; @@ -35317,10 +67488,12 @@ message RouterStatusBgpPeerStatus { optional BfdStatus bfd_status = 395631729; - // Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + // Enable IPv4 traffic over BGP Peer. + // It is enabled by default if the peerIpAddress is version 4. optional bool enable_ipv4 = 181467937; - // Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + // Enable IPv6 traffic over BGP Peer. + // It is enabled by default if the peerIpAddress is version 6. optional bool enable_ipv6 = 181467939; // IP address of the local BGP interface. @@ -35353,10 +67526,14 @@ message RouterStatusBgpPeerStatus { // IPv6 address of the remote BGP interface. optional string peer_ipv6_nexthop_address = 491486608; - // [Output only] URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer side of the BGP session. + // [Output only] URI of the VM instance that is used as third-party router + // appliances such as Next Gen Firewalls, Virtual Routers, or Router + // Appliances. + // The VM instance is the peer side of the BGP session. optional string router_appliance_instance = 468312989; - // The state of the BGP session. For a list of possible values for this field, see BGP session states. + // The state of the BGP session. For a list of possible values for this + // field, seeBGP session states. optional string state = 109757585; // Status of the BGP peer: {UP, DOWN} @@ -35367,10 +67544,14 @@ message RouterStatusBgpPeerStatus { // Check the StatusReason enum for the list of possible values. optional string status_reason = 342706993; - // Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds + // Time this session has been up. + // Format: + // 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds optional string uptime = 235379688; - // Time this session has been up, in seconds. Format: 145 + // Time this session has been up, in seconds. + // Format: + // 145 optional string uptime_seconds = 104736040; } @@ -35380,13 +67561,18 @@ message RouterStatusNatStatus { // A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] repeated string auto_allocated_nat_ips = 510794246; - // A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + // A list of IPs auto-allocated for NAT that are in drain mode. + // Example: ["1.1.1.1", "179.12.26.133"]. repeated string drain_auto_allocated_nat_ips = 309184557; - // A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + // A list of IPs user-allocated for NAT that are in drain mode. + // Example: ["1.1.1.1", "179.12.26.133"]. repeated string drain_user_allocated_nat_ips = 305268553; - // The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto-allocation of NAT IPs is *not* used. + // The number of extra IPs to allocate. This will be greater than 0 only if + // user-specified IPs are NOT enough to allow all configured VMs to use NAT. + // This value is meaningful only when auto-allocation of NAT IPs is *not* + // used. optional int32 min_extra_nat_ips_needed = 365786338; // Unique name of this NAT. @@ -35401,23 +67587,29 @@ message RouterStatusNatStatus { // A list of fully qualified URLs of reserved IP address resources. repeated string user_allocated_nat_ip_resources = 212776151; - // A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". + // A list of IPs user-allocated for NAT. + // They will be raw IP strings like "179.12.26.133". repeated string user_allocated_nat_ips = 506878242; } // Status of a NAT Rule contained in this NAT. message RouterStatusNatStatusNatRuleStatus { - // A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + // A list of active IPs for NAT. + // Example: ["1.1.1.1", "179.12.26.133"]. repeated string active_nat_ips = 208517077; - // A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + // A list of IPs for NAT that are in drain mode. + // Example: ["1.1.1.1", "179.12.26.133"]. repeated string drain_nat_ips = 504078535; - // The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. + // The number of extra IPs to allocate. This will be greater than 0 only + // if the existing IPs in this NAT Rule are NOT enough to allow all + // configured VMs to use NAT. optional int32 min_extra_ips_needed = 353002756; - // Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. + // Number of VM endpoints (i.e., NICs) that have NAT Mappings from this + // NAT Rule. optional int32 num_vm_endpoints_with_nat_mappings = 512367468; // Rule number of the rule. @@ -35444,13 +67636,18 @@ message RoutersGetRoutePolicyResponse { message RoutersListBgpRoutes { optional string etag = 3123477; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional string id = 3355; - // [Output Only] Type of resource. Always compute#routersListBgpRoutes for lists of bgp routes. + // [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of bgp routes. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] A list of bgp routes. @@ -35471,13 +67668,18 @@ message RoutersListBgpRoutes { message RoutersListRoutePolicies { optional string etag = 3123477; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional string id = 3355; - // [Output Only] Type of resource. Always compute#routersListRoutePolicies for lists of route policies. + // [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route policies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] A list of route policies. @@ -35506,30 +67708,58 @@ message RoutersScopedList { // A list of routers contained in this scope. repeated Router routers = 311906890; - // Informational warning which replaces the list of routers when the list is empty. + // Informational warning which replaces the list of routers when + // the list is empty. optional Warning warning = 50704284; } // message SSLHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; - // The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends. + // The port number in the health check's port is used for health + // checking. Applies to network endpoint group and instance group backends. USE_FIXED_PORT = 190235748; // Not supported. USE_NAMED_PORT = 349300671; - // For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports. + // For network endpoint group backends, the health check uses the port number + // specified on each endpoint in the network endpoint group. For instance + // group backends, the health check uses the port number specified for the + // backend service's named port defined in the instance group's named ports. USE_SERVING_PORT = 362637516; } - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. enum ProxyHeader { // A value indicating that the enum field is not set. UNDEFINED_PROXY_HEADER = 0; @@ -35540,31 +67770,63 @@ message SSLHealthCheck { } - // The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535. + // The TCP port number to which the health check prober sends packets. The + // default value is 443. Valid values are 1 through65535. optional int32 port = 3446913; // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. // Check the ProxyHeader enum for the list of possible values. optional string proxy_header = 160374142; - // Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection and SSL handshake. + // Instructs the health check prober to send this exact ASCII string, up to + // 1024 bytes in length, after establishing the TCP connection and SSL + // handshake. optional string request = 21951119; - // Creates a content-based SSL health check. In addition to establishing a TCP connection and the TLS handshake, you can configure the health check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp + // Creates a content-based SSL health check. In addition to establishing a + // TCP connection and the TLS handshake, you can configure the health check to + // pass only when the backend sends this exact response ASCII string, up to + // 1024 bytes in length. For details, see: + // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp optional string response = 196547649; } -// DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource. +// DEPRECATED: Please use compute#savedDisk instead. +// An instance-attached disk resource. message SavedAttachedDisk { - // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. + // Specifies the disk interface to use for attaching this disk, which is + // either SCSI or NVME. enum Interface { // A value indicating that the enum field is not set. UNDEFINED_INTERFACE = 0; @@ -35575,20 +67837,26 @@ message SavedAttachedDisk { } - // The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. + // The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. enum Mode { // A value indicating that the enum field is not set. UNDEFINED_MODE = 0; - // Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time. + // Attaches this disk in read-only mode. Multiple virtual machines can use + // a disk in read-only mode at a time. READ_ONLY = 91950261; - // *[Default]* Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode. + // *[Default]* Attaches this disk in read-write mode. Only one + // virtual machine at a time can be attached to a disk in read-write mode. READ_WRITE = 173607894; } - // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + // [Output Only] An indicator whether storageBytes is in a + // stable state or it is being adjusted as a result of shared storage + // reallocation. This status can either be UPDATING, meaning + // the size of the snapshot is being updated, or UP_TO_DATE, + // meaning the size of the snapshot is up-to-date. enum StorageBytesStatus { // A value indicating that the enum field is not set. UNDEFINED_STORAGE_BYTES_STATUS = 0; @@ -35599,7 +67867,7 @@ message SavedAttachedDisk { } - // Specifies the type of the attached disk, either SCRATCH or PERSISTENT. + // Specifies the type of the attached disk, either SCRATCH orPERSISTENT. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -35610,10 +67878,12 @@ message SavedAttachedDisk { } - // Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). + // Specifies whether the disk will be auto-deleted when the instance is + // deleted (but not when the disk is detached from the instance). optional bool auto_delete = 464761403; - // Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. + // Indicates that this is a boot disk. The virtual machine will use the first + // partition of the disk for its root filesystem. optional bool boot = 3029746; // Specifies the name of the disk attached to the source instance. @@ -35625,40 +67895,51 @@ message SavedAttachedDisk { // The size of the disk in base-2 GB. optional int64 disk_size_gb = 316263735; - // [Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd + // [Output Only] URL of the disk type resource. For example:projects/project/zones/zone/diskTypes/pd-standard or + // pd-ssd optional string disk_type = 93009052; - // A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. + // A list of features to enable on the guest operating system. Applicable only + // for bootable images. Read + // Enabling guest operating system features to see a list of available + // options. repeated GuestOsFeature guest_os_features = 79294545; - // Specifies zero-based index of the disk that is attached to the source instance. + // Specifies zero-based index of the disk that is attached to the source + // instance. optional int32 index = 100346066; - // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. + // Specifies the disk interface to use for attaching this disk, which is + // either SCSI or NVME. // Check the Interface enum for the list of possible values. optional string interface = 502623545; - // [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. + // [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. optional string kind = 3292052; // [Output Only] Any valid publicly visible licenses. repeated string licenses = 337642578; - // The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. + // The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. // Check the Mode enum for the list of possible values. optional string mode = 3357091; // Specifies a URL of the disk attached to the source instance. optional string source = 177235995; - // [Output Only] A size of the storage used by the disk's snapshot by this machine image. + // [Output Only] A size of the storage used by the disk's snapshot by this + // machine image. optional int64 storage_bytes = 424631719; - // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + // [Output Only] An indicator whether storageBytes is in a + // stable state or it is being adjusted as a result of shared storage + // reallocation. This status can either be UPDATING, meaning + // the size of the snapshot is being updated, or UP_TO_DATE, + // meaning the size of the snapshot is up-to-date. // Check the StorageBytesStatus enum for the list of possible values. optional string storage_bytes_status = 490739082; - // Specifies the type of the attached disk, either SCRATCH or PERSISTENT. + // Specifies the type of the attached disk, either SCRATCH orPERSISTENT. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -35682,7 +67963,11 @@ message SavedDisk { } - // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + // [Output Only] An indicator whether storageBytes is in a + // stable state or it is being adjusted as a result of shared storage + // reallocation. This status can either be UPDATING, meaning + // the size of the snapshot is being updated, or UP_TO_DATE, + // meaning the size of the snapshot is up-to-date. enum StorageBytesStatus { // A value indicating that the enum field is not set. UNDEFINED_STORAGE_BYTES_STATUS = 0; @@ -35697,16 +67982,22 @@ message SavedDisk { // Check the Architecture enum for the list of possible values. optional string architecture = 302803283; - // [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + // [Output Only] Type of the resource. Always compute#savedDisk + // for attached disks. optional string kind = 3292052; // Specifies a URL of the disk attached to the source instance. optional string source_disk = 451753793; - // [Output Only] Size of the individual disk snapshot used by this machine image. + // [Output Only] Size of the individual disk snapshot used by this machine + // image. optional int64 storage_bytes = 424631719; - // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + // [Output Only] An indicator whether storageBytes is in a + // stable state or it is being adjusted as a result of shared storage + // reallocation. This status can either be UPDATING, meaning + // the size of the snapshot is being updated, or UP_TO_DATE, + // meaning the size of the snapshot is up-to-date. // Check the StorageBytesStatus enum for the list of possible values. optional string storage_bytes_status = 490739082; @@ -35719,7 +68010,8 @@ message ScalingScheduleStatus { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; - // The current autoscaling recommendation is influenced by this scaling schedule. + // The current autoscaling recommendation is influenced by this scaling + // schedule. ACTIVE = 314733318; // This scaling schedule has been disabled by the user. @@ -35728,15 +68020,24 @@ message ScalingScheduleStatus { // This scaling schedule will never become active again. OBSOLETE = 66532761; - // The current autoscaling recommendation is not influenced by this scaling schedule. + // The current autoscaling recommendation is not influenced by this scaling + // schedule. READY = 77848963; } - // [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format. + // [Output Only] The last time the scaling schedule became active. + // Note: this is a timestamp when a schedule actually became active, not when + // it was planned to do so. + // The timestamp is in RFC3339 + // text format. optional string last_start_time = 34545107; - // [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format. + // [Output Only] The next time the scaling schedule is to become active. + // Note: this is a timestamp when a schedule is planned to run, but the actual + // time might be slightly different. + // The timestamp is in RFC3339 + // text format. optional string next_start_time = 97270102; // [Output Only] The current state of a scaling schedule. @@ -35763,31 +68064,53 @@ message Scheduling { } - // Specifies the frequency of planned maintenance events. The accepted values are: `PERIODIC`. + // Specifies the frequency of planned maintenance events. The accepted values + // are: `PERIODIC`. enum MaintenanceInterval { // A value indicating that the enum field is not set. UNDEFINED_MAINTENANCE_INTERVAL = 0; - // VMs are eligible to receive infrastructure and hypervisor updates as they become available. This may result in more maintenance operations (live migrations or terminations) for the VM than the PERIODIC and RECURRENT options. + // VMs are eligible to receive infrastructure and hypervisor updates as they + // become available. This may result in more maintenance operations (live + // migrations or terminations) for the VM than the PERIODIC andRECURRENT options. AS_NEEDED = 500724834; - // VMs receive infrastructure and hypervisor updates on a periodic basis, minimizing the number of maintenance operations (live migrations or terminations) on an individual VM. This may mean a VM will take longer to receive an update than if it was configured for AS_NEEDED. Security updates will still be applied as soon as they are available. + // VMs receive infrastructure and hypervisor updates on a periodic basis, + // minimizing the number of maintenance operations (live migrations or + // terminations) on an individual VM. This may mean a VM will take longer + // to receive an update than if it was configured forAS_NEEDED. Security updates will still be applied as soon + // as they are available. PERIODIC = 142804635; - // VMs receive infrastructure and hypervisor updates on a periodic basis, minimizing the number of maintenance operations (live migrations or terminations) on an individual VM. This may mean a VM will take longer to receive an update than if it was configured for AS_NEEDED. Security updates will still be applied as soon as they are available. RECURRENT is used for GEN3 and Slice of Hardware VMs. + // VMs receive infrastructure and hypervisor updates on a periodic basis, + // minimizing the number of maintenance operations (live migrations or + // terminations) on an individual VM. This may mean a VM will take longer + // to receive an update than if it was configured forAS_NEEDED. Security updates will still be applied as soon + // as they are available. RECURRENT is used for GEN3 and Slice + // of Hardware VMs. RECURRENT = 194244550; } - // Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. + // Defines the maintenance behavior for this instance. For standard instances, + // the default behavior is MIGRATE. Forpreemptible instances, + // the default and only possible behavior is TERMINATE. For more + // information, see + // Set + // VM host maintenance policy. enum OnHostMaintenance { // A value indicating that the enum field is not set. UNDEFINED_ON_HOST_MAINTENANCE = 0; - // *[Default]* Allows Compute Engine to automatically migrate instances out of the way of maintenance events. + // *[Default]* Allows Compute Engine to automatically migrate instances + // out of the way of maintenance events. MIGRATE = 165699979; - // Tells Compute Engine to terminate and (optionally) restart the instance away from the maintenance activity. If you would like your instance to be restarted, set the automaticRestart flag to true. Your instance may be restarted more than once, and it may be restarted outside the window of maintenance events. + // Tells Compute Engine to terminate and (optionally) restart the instance + // away from the maintenance activity. If you would like your instance to be + // restarted, set the automaticRestart flag to true. Your + // instance may be restarted more than once, and it may be restarted outside + // the window of maintenance events. TERMINATE = 527617601; } @@ -35797,7 +68120,8 @@ message Scheduling { // A value indicating that the enum field is not set. UNDEFINED_PROVISIONING_MODEL = 0; - // Instance is provisioned using the Flex Start provisioning model and has a limited runtime. + // Instance is provisioned using the Flex Start provisioning model and + // has a limited runtime. FLEX_START = 101746812; // Bound to the lifecycle of the reservation in which it is provisioned. @@ -35811,60 +68135,93 @@ message Scheduling { } - // Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine. + // Specifies whether the instance should be automatically restarted if it is + // terminated by Compute Engine (not terminated by a user). You can only set + // the automatic restart option for standard instances.Preemptible instances + // cannot be automatically restarted. + // + // By default, this is set to true so an instance is + // automatically restarted if it is terminated by Compute Engine. optional bool automatic_restart = 350821371; - // Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. + // Specifies the availability domain to place the instance in. The value + // must be a number between 1 and the number of availability domains + // specified in the spread placement policy attached to the instance. optional int32 availability_domain = 252514344; optional SchedulingGracefulShutdown graceful_shutdown = 226325136; - // Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used. + // Specify the time in seconds for host error detection, the value must be + // within the range of [90, 330] with the increment of 30, if unset, the + // default behavior of host error recovery will be used. optional int32 host_error_timeout_seconds = 408317459; // Specifies the termination action for the instance. // Check the InstanceTerminationAction enum for the list of possible values. optional string instance_termination_action = 107380667; - // Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour. + // Specifies the maximum amount of time a Local Ssd Vm should wait while + // recovery of the Local Ssd state is attempted. Its value should be in + // between 0 and 168 hours with hour granularity and the default value being 1 + // hour. optional Duration local_ssd_recovery_timeout = 268015590; - // An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API. + // An opaque location hint used to place the instance close to other + // resources. + // This field is for use by internal tools that use the public API. optional string location_hint = 350519505; - // Specifies the number of hours after VM instance creation where the VM won't be scheduled for maintenance. + // Specifies the number of hours after VM instance creation where the VM won't + // be scheduled for maintenance. optional int32 maintenance_freeze_duration_hours = 371662624; - // Specifies the frequency of planned maintenance events. The accepted values are: `PERIODIC`. + // Specifies the frequency of planned maintenance events. The accepted values + // are: `PERIODIC`. // Check the MaintenanceInterval enum for the list of possible values. optional string maintenance_interval = 403368049; - // Specifies the max run duration for the given instance. If specified, the instance termination action will be performed at the end of the run duration. + // Specifies the max run duration for the given instance. If specified, + // the instance termination action will be performed at the end of the run + // duration. optional Duration max_run_duration = 430839747; - // The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. + // The minimum number of virtual CPUs this instance will consume when running + // on a sole-tenant node. optional int32 min_node_cpus = 317231675; - // A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity. + // A set of node affinity and anti-affinity configurations. Refer toConfiguring node + // affinity for more information. + // Overrides reservationAffinity. repeated SchedulingNodeAffinity node_affinities = 461799971; - // Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. + // Defines the maintenance behavior for this instance. For standard instances, + // the default behavior is MIGRATE. Forpreemptible instances, + // the default and only possible behavior is TERMINATE. For more + // information, see + // Set + // VM host maintenance policy. // Check the OnHostMaintenance enum for the list of possible values. optional string on_host_maintenance = 64616796; optional SchedulingOnInstanceStopAction on_instance_stop_action = 529876681; - // Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. + // Defines whether the instance is preemptible. This can only be set during + // instance creation or while the instance isstopped and + // therefore, in a `TERMINATED` state. SeeInstance Life + // Cycle for more information on the possible instance states. optional bool preemptible = 324203169; // Specifies the provisioning model of the instance. // Check the ProvisioningModel enum for the list of possible values. optional string provisioning_model = 494423; - // Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs. + // Default is false and there will be 120 seconds between GCE ACPI G2 Soft + // Off and ACPI G3 Mechanical + // Off for Standard VMs and 30 seconds for Spot VMs. optional bool skip_guest_os_shutdown = 201662378; - // Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time. + // Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If specified, the instance + // termination action will be performed at the termination time. optional string termination_time = 428082984; } @@ -35874,14 +68231,17 @@ message SchedulingGracefulShutdown { // Opts-in for graceful shutdown. optional bool enabled = 1018689; - // The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state. + // The time allotted for the instance to gracefully shut down. If the + // graceful shutdown isn't complete after this time, then the instance + // transitions to the STOPPING state. optional Duration max_duration = 39954959; } -// Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. +// Node Affinity: the configuration of desired nodes onto which this Instance +// could be scheduled. message SchedulingNodeAffinity { - // Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. + // Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. enum Operator { // A value indicating that the enum field is not set. UNDEFINED_OPERATOR = 0; @@ -35899,7 +68259,7 @@ message SchedulingNodeAffinity { // Corresponds to the label key of Node resource. optional string key = 106079; - // Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. + // Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. // Check the Operator enum for the list of possible values. optional string operator = 36317348; @@ -35908,9 +68268,11 @@ message SchedulingNodeAffinity { } -// Defines the behaviour for instances with the instance_termination_action STOP. +// Defines the behaviour for instances with the instance_termination_actionSTOP. message SchedulingOnInstanceStopAction { - // If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time. + // If true, the contents of any attached Local SSD disks will be discarded + // else, the Local SSD data will be preserved when the instance is stopped + // at the end of the run duration/termination time. optional bool discard_local_ssd = 319517903; } @@ -35920,7 +68282,8 @@ message Screenshot { // [Output Only] The Base64-encoded screenshot data. optional string contents = 506419994; - // [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + // [Output Only] Type of the resource. Always compute#screenshot + // for the screenshots. optional string kind = 3292052; } @@ -35935,10 +68298,15 @@ message SecurityPoliciesAggregatedList { // A list of SecurityPoliciesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#securityPolicyAggregatedList for lists of Security Policies. + // [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for lists of Security + // Policies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -35963,7 +68331,8 @@ message SecurityPoliciesScopedList { // A list of SecurityPolicies contained in this scope. repeated SecurityPolicy security_policies = 127783791; - // Informational warning which replaces the list of security policies when the list is empty. + // Informational warning which replaces the list of + // security policies when the list is empty. optional Warning warning = 50704284; } @@ -35974,9 +68343,34 @@ message SecurityPoliciesWafConfig { } -// Represents a Google Cloud Armor security policy resource. Only external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview. +// Represents a Google Cloud Armor security policy resource. +// +// Only external backend services that use load balancers can +// reference a security policy. For more information, see +// Google Cloud Armor security policy overview. message SecurityPolicy { - // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time. + // The type indicates the intended use of the security policy. + // + // - CLOUD_ARMOR: Cloud Armor backend security policies can + // be configured to filter incoming HTTP requests targeting backend services. + // They filter requests before they hit the origin servers. + // - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can + // be configured to filter incoming HTTP requests targeting backend services + // (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). + // They filter requests before the request is served from Google's cache. + // - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor + // internal service policies can be configured to filter HTTP requests + // targeting services managed by Traffic Director in a service mesh. They + // filter requests before the request is served from the application. + // + // - CLOUD_ARMOR_NETWORK: Cloud Armor network policies + // can be configured to filter packets targeting network load balancing + // resources such as backend services, target pools, target instances, and + // instances with external IPs. They filter requests before the request is + // served from the application. + // + // + // This field can be set only at resource creation time. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -36000,33 +68394,66 @@ message SecurityPolicy { // A list of associations that belong to this policy. repeated SecurityPolicyAssociation associations = 508736530; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; optional SecurityPolicyDdosProtectionConfig ddos_protection_config = 50315853; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // User-provided name of the organization security policy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is FIREWALL. The name must be 1-63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // User-provided name of the organization security policy. The name should be + // unique in the organization in which the security policy is created. This + // should only be used when SecurityPolicyType is FIREWALL. + // The name must be 1-63 characters long, and comply with + // https://www.ietf.org/rfc/rfc1035.txt. Specifically, the name must be 1-63 + // characters long and match the regular expression + // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a + // lowercase letter, and all following characters must be a dash, lowercase + // letter, or digit, except the last character, which cannot be a dash. optional string display_name = 4473832; - // Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy. + // Specifies a fingerprint for this resource, which is essentially a hash of + // the metadata's contents and used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update metadata. You must always provide an + // up-to-date fingerprint hash in order to update or change metadata, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make get() request to the + // security policy. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output only] Type of the resource. Always compute#securityPolicyfor security policies + // [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies optional string kind = 3292052; - // A fingerprint for the labels being applied to this security policy, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the security policy. + // A fingerprint for the labels being applied to this security policy, which + // is essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels. + // + // To see the latest fingerprint, make get() request to the + // security policy. optional string label_fingerprint = 178124825; - // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. + // Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. + // Label values may be empty. map labels = 500195327; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; // [Output Only] The parent of the security policy. @@ -36034,13 +68461,21 @@ message SecurityPolicy { optional SecurityPolicyRecaptchaOptionsConfig recaptcha_options_config = 519006811; - // [Output Only] URL of the region where the regional security policy resides. This field is not applicable to global security policies. + // [Output Only] URL of the region where the regional security policy + // resides. This field is not applicable to global security policies. optional string region = 138946292; - // [Output Only] Total count of all security policy rule tuples. A security policy can not exceed a set number of tuples. + // [Output Only] Total count of all security policy rule tuples. A security + // policy can not exceed a set number of tuples. optional int32 rule_tuple_count = 388342037; - // A list of rules that belong to this policy. There must always be a default rule which is a rule with priority 2147483647 and match all condition (for the match condition this means match "*" for srcIpRanges and for the networkMatch condition every field must be either match "*" or not set). If no rules are provided when creating a security policy, a default rule with action "allow" will be added. + // A list of rules that belong to this policy. + // There must always be a default rule which is a rule with priority + // 2147483647 and match all condition (for the match condition this means + // match "*" for srcIpRanges and for the networkMatch condition every field + // must be either match "*" or not set). If no rules are provided when + // creating a security policy, a default rule with action "allow" will be + // added. repeated SecurityPolicyRule rules = 108873975; // [Output Only] Server-defined URL for the resource. @@ -36049,14 +68484,56 @@ message SecurityPolicy { // [Output Only] Server-defined URL for this resource with the resource id. optional string self_link_with_id = 44520962; - // User-provided name of the organization security policy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is CLOUD_ARMOR. The name must be 1-63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // User-provided name of the organization security policy. The name should be + // unique in the organization in which the security policy is created. This + // should only be used when SecurityPolicyType is CLOUD_ARMOR. + // The name must be 1-63 characters long, and comply with + // https://www.ietf.org/rfc/rfc1035.txt. Specifically, the name must be 1-63 + // characters long and match the regular expression + // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a + // lowercase letter, and all following characters must be a dash, lowercase + // letter, or digit, except the last character, which cannot be a dash. optional string short_name = 492051566; - // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time. + // The type indicates the intended use of the security policy. + // + // - CLOUD_ARMOR: Cloud Armor backend security policies can + // be configured to filter incoming HTTP requests targeting backend services. + // They filter requests before they hit the origin servers. + // - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can + // be configured to filter incoming HTTP requests targeting backend services + // (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). + // They filter requests before the request is served from Google's cache. + // - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor + // internal service policies can be configured to filter HTTP requests + // targeting services managed by Traffic Director in a service mesh. They + // filter requests before the request is served from the application. + // + // - CLOUD_ARMOR_NETWORK: Cloud Armor network policies + // can be configured to filter packets targeting network load balancing + // resources such as backend services, target pools, target instances, and + // instances with external IPs. They filter requests before the request is + // served from the application. + // + // + // This field can be set only at resource creation time. // Check the Type enum for the list of possible values. optional string type = 3575610; - // Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values for these fields. Example: userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff" + // Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A + // user-defined field consists of up to 4 bytes extracted from a fixed offset + // in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an + // optional mask to select certain bits. Rules may then specify matching + // values for these fields. + // + // Example: + // + // userDefinedFields: + // - name: "ipv4_fragment_offset" + // base: IPV4 + // offset: 6 + // size: 2 + // mask: "0x1fff" repeated SecurityPolicyUserDefinedField user_defined_fields = 28312739; } @@ -36082,9 +68559,15 @@ message SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig { } -// Configuration options for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR. +// Configuration options for L7 DDoS detection. +// This field is only supported in Global Security Policies of type +// CLOUD_ARMOR. message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig { - // Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR. + // Rule visibility can be one of the following: + // STANDARD - opaque rules. (default) + // PREMIUM - transparent rules. + // This field is only supported in Global Security Policies of type + // CLOUD_ARMOR. enum RuleVisibility { // A value indicating that the enum field is not set. UNDEFINED_RULE_VISIBILITY = 0; @@ -36095,14 +68578,21 @@ message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig { } - // If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR. + // If set to true, enables CAAP for L7 DDoS detection. + // This field is only supported in Global Security Policies of type + // CLOUD_ARMOR. optional bool enable = 311764355; - // Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR. + // Rule visibility can be one of the following: + // STANDARD - opaque rules. (default) + // PREMIUM - transparent rules. + // This field is only supported in Global Security Policies of type + // CLOUD_ARMOR. // Check the RuleVisibility enum for the list of possible values. optional string rule_visibility = 453258293; - // Configuration options for layer7 adaptive protection for various customizable thresholds. + // Configuration options for layer7 adaptive protection for various + // customizable thresholds. repeated SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig threshold_configs = 60347805; } @@ -36123,15 +68613,18 @@ message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdCo optional float detection_relative_to_baseline_qps = 291343749; - // The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy. + // The name must be 1-63 characters long, and comply withRFC1035. + // The name must be unique within the security policy. optional string name = 3373707; - // Configuration options for enabling Adaptive Protection to operate on specified granular traffic units. + // Configuration options for enabling Adaptive Protection to operate + // on specified granular traffic units. repeated SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; } -// Configurations to specifc granular traffic units processed by Adaptive Protection. +// Configurations to specifc granular traffic units processed by +// Adaptive Protection. message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig { // Type of this configuration. enum Type { @@ -36146,7 +68639,9 @@ message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdCo } - // If enabled, traffic matching each unique value for the specified type constitutes a separate traffic unit. It can only be set to true if `value` is empty. + // If enabled, traffic matching each unique value for the specified + // type constitutes a separate traffic unit. + // It can only be set to true if `value` is empty. optional bool enable_each_unique_value = 469206341; // Type of this configuration. @@ -36184,7 +68679,8 @@ message SecurityPolicyAdvancedOptionsConfig { } - // Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD. + // Custom configuration to apply the JSON parsing. Only applicable when + // json_parsing is set to STANDARD. optional SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105; // @@ -36195,17 +68691,28 @@ message SecurityPolicyAdvancedOptionsConfig { // Check the LogLevel enum for the list of possible values. optional string log_level = 140582601; - // The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. + // The maximum request size chosen by the customer with Waf enabled. + // Values supported are "8KB", "16KB, "32KB", "48KB" and "64KB". + // Values are case insensitive. optional string request_body_inspection_size = 191268607; - // An optional list of case-insensitive request header names to use for resolving the callers client IP address. + // An optional list of case-insensitive request header names to use for + // resolving the callers client IP address. repeated string user_ip_request_headers = 421050290; } // message SecurityPolicyAdvancedOptionsConfigJsonCustomConfig { - // A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded. + // A list of custom Content-Type header values to apply the JSON parsing. + // + // As per RFC 1341, a Content-Type header value has the following format: + // + // Content-Type := type "/" subtype *[";" parameter] + // + // When configuring a custom Content-Type header value, only the + // type/subtype needs to be specified, and the parameters should be + // excluded. repeated string content_types = 17428787; } @@ -36264,10 +68771,14 @@ message SecurityPolicyList { // A list of SecurityPolicy resources. repeated SecurityPolicy items = 100526016; - // [Output Only] Type of resource. Always compute#securityPolicyList for listsof securityPolicies + // [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Informational warning message. @@ -36277,7 +68788,13 @@ message SecurityPolicyList { // message SecurityPolicyRecaptchaOptionsConfig { - // An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR. + // An optional field to supply a reCAPTCHA site key to be used for all the + // rules using the redirect action with the type of GOOGLE_RECAPTCHA under + // the security policy. The specified site key needs to be created from the + // reCAPTCHA API. The user is responsible for the validity of the specified + // site key. If not specified, a Google-managed site key is used. + // This field is only supported in Global Security Policies of type + // CLOUD_ARMOR. optional string redirect_site_key = 447677034; } @@ -36288,9 +68805,11 @@ message SecurityPolicyReference { } -// Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny). +// Represents a rule that describes one or more match conditions along with +// the action to be taken when traffic matches this condition (allow or deny). message SecurityPolicyRule { - // The direction in which this rule applies. This field may only be specified when versioned_expr is set to FIREWALL. + // The direction in which this rule applies. This field may only be + // specified when versioned_expr is set to FIREWALL. enum Direction { // A value indicating that the enum field is not set. UNDEFINED_DIRECTION = 0; @@ -36301,63 +68820,151 @@ message SecurityPolicyRule { } - // The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. + // The Action to perform when the rule is matched. + // The following are the valid actions: + // + // - allow: allow access to target. + // - deny(STATUS): deny access to target, returns the + // HTTP response code specified. Valid values for `STATUS` + // are 403, 404, and 502. + // - rate_based_ban: limit client traffic to the configured + // threshold and ban the client if the traffic exceeds the threshold. + // Configure parameters for this action in RateLimitOptions. Requires + // rate_limit_options to be set. + // - redirect: redirect to a different target. This can + // either be an internal reCAPTCHA redirect, or an external URL-based + // redirect via a 302 response. Parameters for this action can be configured + // via redirectOptions. This action is only supported in Global Security + // Policies of type CLOUD_ARMOR. + // - throttle: limit + // client traffic to the configured threshold. Configure parameters for this + // action in rateLimitOptions. Requires rate_limit_options to be set for + // this. + // - fairshare (preview only): when traffic reaches the + // threshold limit, requests from the clients matching this rule begin to be + // rate-limited using the Fair Share algorithm. This action is only allowed + // in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. optional string action = 187661878; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // The direction in which this rule applies. This field may only be specified when versioned_expr is set to FIREWALL. + // The direction in which this rule applies. This field may only be + // specified when versioned_expr is set to FIREWALL. // Check the Direction enum for the list of possible values. optional string direction = 111150975; - // Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. This field may only be specified when the versioned_expr is set to FIREWALL. + // Denotes whether to enable logging for a particular rule. If logging is + // enabled, logs will be exported to the configured export destination in + // Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you + // cannot enable logging on "goto_next" rules. + // + // This field may only be specified when the versioned_expr is set to + // FIREWALL. optional bool enable_logging = 295396515; - // Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR. + // Optional, additional actions that are performed on headers. + // This field is only supported in Global Security Policies of type + // CLOUD_ARMOR. optional SecurityPolicyRuleHttpHeaderAction header_action = 328077352; - // [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules + // [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules optional string kind = 3292052; - // A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced. + // A match condition that incoming traffic is evaluated against. + // If it evaluates to true, the corresponding 'action' is enforced. optional SecurityPolicyRuleMatcher match = 103668165; - // A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive. + // A match condition that incoming packets are evaluated against for + // CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding + // 'action' is enforced. + // + // The match criteria for a rule consists of built-in match fields (like + // 'srcIpRanges') and potentially multiple user-defined match fields + // ('userDefinedFields'). + // + // Field values may be extracted directly from the packet or derived from it + // (e.g. 'srcRegionCodes'). Some fields may not be present in every packet + // (e.g. 'srcPorts'). A user-defined field is only present if the base + // header is found in the packet and the entire field is in bounds. + // + // Each match field may specify which values can match it, listing one or + // more ranges, prefixes, or exact values that are considered a match for + // the field. A field value must be present in order to match a specified + // match field. If no match values are specified for a match field, then any + // field value is considered to match it, and it's not required to be + // present. For strings specifying '*' is also equivalent to match all. + // + // For a packet to match a rule, all specified match fields must match the + // corresponding field values derived from the packet. + // + // Example: + // + // networkMatch: + // srcIpRanges: + // - "192.0.2.0/24" + // - "198.51.100.0/24" + // userDefinedFields: + // - name: "ipv4_fragment_offset" + // values: + // - "1-0x1fff" + // + // The above match condition matches packets with a source IP in + // 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named + // "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive. optional SecurityPolicyRuleNetworkMatcher network_match = 463387764; - // Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect. + // Preconfigured WAF configuration to be applied for the rule. If the rule + // does not evaluate preconfigured WAF rules, i.e., if + // evaluatePreconfiguredWaf() is not used, this field will have no effect. optional SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027; // If set to true, the specified action is not enforced. optional bool preview = 218686408; - // An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority. + // An integer indicating the priority of a rule in the list. The priority + // must be a positive value between 0 and 2147483647. + // Rules are evaluated from highest to lowest priority where 0 is the + // highest priority and 2147483647 is the lowest priority. optional int32 priority = 445151652; - // Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions. + // Must be specified if the action is "rate_based_ban" or "throttle" or + // "fairshare". Cannot be specified for any other actions. optional SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315; - // Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR. + // Parameters defining the redirect action. Cannot be specified for any + // other actions. + // This field is only supported in Global Security Policies of type + // CLOUD_ARMOR. optional SecurityPolicyRuleRedirectOptions redirect_options = 163285307; - // Identifier for the rule. This is only unique within the given security policy. This can only be set during rule creation, if rule number is not specified it will be generated by the server. + // Identifier for the rule. This is only unique within the given security + // policy. This can only be set during rule creation, if rule number is not + // specified it will be generated by the server. optional int64 rule_number = 535211500; - // [Output Only] Calculation of the complexity of a single firewall security policy rule. + // [Output Only] Calculation of the complexity of a single firewall security + // policy rule. optional int32 rule_tuple_count = 388342037; - // A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. This field may only be specified when versioned_expr is set to FIREWALL. + // A list of network resource URLs to which this rule applies. This field + // allows you to control which network's VMs get this rule. If this field + // is left blank, all VMs within the organization will receive the rule. + // + // This field may only be specified when versioned_expr is set to FIREWALL. repeated string target_resources = 528230647; - // A list of service accounts indicating the sets of instances that are applied with this rule. + // A list of service accounts indicating the sets of instances that are + // applied with this rule. repeated string target_service_accounts = 457639710; } // message SecurityPolicyRuleHttpHeaderAction { - // The list of request headers to add or overwrite if they're already present. + // The list of request headers to add or overwrite if they're already + // present. repeated SecurityPolicyRuleHttpHeaderActionHttpHeaderOption request_headers_to_adds = 87987661; } @@ -36372,30 +68979,51 @@ message SecurityPolicyRuleHttpHeaderActionHttpHeaderOption { } -// Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified. +// Represents a match condition that incoming traffic is evaluated against. +// Exactly one field must be specified. message SecurityPolicyRuleMatcher { - // Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config. + // Preconfigured versioned expression. + // If this field is specified, config must also be specified. + // Available preconfigured expressions along with their requirements are: + // SRC_IPS_V1 - must specify the corresponding src_ip_range field in + // config. enum VersionedExpr { // A value indicating that the enum field is not set. UNDEFINED_VERSIONED_EXPR = 0; FIREWALL = 219901184; - // Matches the source IP address of a request to the IP ranges supplied in config. + // Matches the source IP address of a request to the IP ranges supplied + // in config. SRC_IPS_V1 = 70925961; } - // The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified. + // The configuration options available when specifying versioned_expr. + // This field must be specified if versioned_expr is specified and cannot + // be specified if versioned_expr is not specified. optional SecurityPolicyRuleMatcherConfig config = 255820610; - // User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing `evaluateThreatIntelligence` require a Cloud Armor Enterprise subscription and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor Enterprise subscription and are only supported in Global Security Policies. + // User defined CEVAL expression. + // A CEVAL expression is used to specify match criteria such as origin.ip, + // source.region_code and contents in the request header. + // Expressions containing `evaluateThreatIntelligence` require a Cloud + // Armor Enterprise subscription and are not supported in Edge Policies + // nor in Regional Policies. Expressions containing + // `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor + // Enterprise subscription and are only supported in Global Security + // Policies. optional Expr expr = 3127797; - // The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr'). + // The configuration options available when specifying a user defined + // CEVAL expression (i.e., 'expr'). optional SecurityPolicyRuleMatcherExprOptions expr_options = 486220372; - // Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config. + // Preconfigured versioned expression. + // If this field is specified, config must also be specified. + // Available preconfigured expressions along with their requirements are: + // SRC_IPS_V1 - must specify the corresponding src_ip_range field in + // config. // Check the VersionedExpr enum for the list of possible values. optional string versioned_expr = 322286013; @@ -36403,53 +69031,84 @@ message SecurityPolicyRuleMatcher { // message SecurityPolicyRuleMatcherConfig { - // CIDR IP address range. This field may only be specified when versioned_expr is set to FIREWALL. + // CIDR IP address range. + // + // This field may only be specified when versioned_expr is set to + // FIREWALL. repeated string dest_ip_ranges = 337357713; - // Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL. + // Pairs of IP protocols and ports that the rule should match. + // + // This field may only be specified when versioned_expr is set to + // FIREWALL. repeated SecurityPolicyRuleMatcherConfigLayer4Config layer4_configs = 373534261; - // CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. + // CIDR IP address range. + // Maximum number of src_ip_ranges allowed is 10. repeated string src_ip_ranges = 432128083; } // message SecurityPolicyRuleMatcherConfigLayer4Config { - // The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number. + // The IP protocol to which this rule applies. The protocol type is + // required when creating a firewall rule. This value can either be + // one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP + // protocol number. optional string ip_protocol = 475958960; - // An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL. + // An optional list of ports to which this rule applies. This field is + // only applicable for UDP or TCP protocol. Each entry must be either + // an integer or a range. If not specified, this rule applies to + // connections through any port. + // + // Example inputs include: ["22"],["80","443"], and ["12345-12349"]. + // + // This field may only be specified when versioned_expr is set to + // FIREWALL. repeated string ports = 106854418; } // message SecurityPolicyRuleMatcherExprOptions { - // reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect. + // reCAPTCHA configuration options to be applied for the rule. If the + // rule does not evaluate reCAPTCHA tokens, this field has no effect. optional SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions recaptcha_options = 389151558; } // message SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions { - // A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created. + // A list of site keys to be used during the validation of reCAPTCHA + // action-tokens. The provided site keys need to be created from + // reCAPTCHA API under the same project where the security policy is + // created. repeated string action_token_site_keys = 59929885; - // A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created. + // A list of site keys to be used during the validation of reCAPTCHA + // session-tokens. The provided site keys need to be created from + // reCAPTCHA API under the same project where the security policy is + // created. repeated string session_token_site_keys = 333363581; } -// Represents a match condition that incoming network traffic is evaluated against. +// Represents a match condition that incoming network traffic is evaluated +// against. message SecurityPolicyRuleNetworkMatcher { - // Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. + // Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text + // format. repeated string dest_ip_ranges = 337357713; - // Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023"). + // Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit + // unsigned decimal number (e.g. "80") or range (e.g. "0-1023"). repeated string dest_ports = 379902005; - // IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp". + // IPv4 protocol / IPv6 next header (after extension headers). Each + // element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. + // "253-254"), or one of the following protocol names: "tcp", "udp", + // "icmp", "esp", "ah", "ipip", or "sctp". repeated string ip_protocols = 259213251; // BGP Autonomous System Number associated with the source IP address. @@ -36458,13 +69117,16 @@ message SecurityPolicyRuleNetworkMatcher { // Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format. repeated string src_ip_ranges = 432128083; - // Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023"). + // Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit + // unsigned decimal number (e.g. "80") or range (e.g. "0-1023"). repeated string src_ports = 445095415; - // Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address. + // Two-letter ISO 3166-1 alpha-2 country code associated with the source + // IP address. repeated string src_region_codes = 99086742; - // User-defined fields. Each element names a defined field and lists the matching values for that field. + // User-defined fields. Each element names a defined field and lists the + // matching values for that field. repeated SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch user_defined_fields = 28312739; } @@ -36474,7 +69136,9 @@ message SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch { // Name of the user-defined field, as given in the definition. optional string name = 3373707; - // Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff"). + // Matching values of the field. Each element can be a 32-bit unsigned + // decimal or hexadecimal (starting with "0x") number (e.g. "64") or + // range (e.g. "0x400-0x7ff"). repeated string values = 249928994; } @@ -36488,19 +69152,27 @@ message SecurityPolicyRulePreconfiguredWafConfig { // message SecurityPolicyRulePreconfiguredWafConfigExclusion { - // A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation. + // A list of request cookie names whose value will be excluded from + // inspection during preconfigured WAF evaluation. repeated SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878; - // A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation. + // A list of request header names whose value will be excluded from + // inspection during preconfigured WAF evaluation. repeated SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495; - // A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body. + // A list of request query parameter names whose value will be excluded + // from inspection during preconfigured WAF evaluation. Note that the + // parameter can be in the query string or in the POST body. repeated SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744; - // A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded. + // A list of request URIs from the request line to be excluded from + // inspection during preconfigured WAF evaluation. When specifying this + // field, the query or fragment part should be excluded. repeated SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846; - // A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set. + // A list of target rule IDs under the WAF rule set to apply the + // preconfigured WAF exclusion. If omitted, it refers to all the rule + // IDs under the WAF rule set. repeated string target_rule_ids = 498430435; // Target WAF rule set to apply the preconfigured WAF exclusion. @@ -36515,19 +69187,23 @@ message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams { // A value indicating that the enum field is not set. UNDEFINED_OP = 0; - // The operator matches if the field value contains the specified value. + // The operator matches if the field value contains the specified + // value. CONTAINS = 215180831; - // The operator matches if the field value ends with the specified value. + // The operator matches if the field value ends with the specified + // value. ENDS_WITH = 490402221; - // The operator matches if the field value equals the specified value. + // The operator matches if the field value equals the specified + // value. EQUALS = 442201023; // The operator matches if the field value is any value. EQUALS_ANY = 337226060; - // The operator matches if the field value starts with the specified value. + // The operator matches if the field value starts with the specified + // value. STARTS_WITH = 139505652; } @@ -36543,7 +69219,48 @@ message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams { // message SecurityPolicyRuleRateLimitOptions { - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule. + // Determines the key to enforce the rate_limit_threshold on. Possible + // values are: + // + // - ALL: A single rate limit threshold is applied to all + // the requests matching this rule. This is the default value if + // "enforceOnKey" is not configured. + // - IP: The source IP address of + // the request is the key. Each IP has this limit enforced + // separately. + // - HTTP_HEADER: The value of the HTTP + // header whose name is configured under "enforceOnKeyName". The key + // value is truncated to the first 128 bytes of the header value. If no + // such header is present in the request, the key type defaults toALL. + // - XFF_IP: The first IP address (i.e. the + // originating client IP address) specified in the list of IPs under + // X-Forwarded-For HTTP header. If no such header is present or the value + // is not a valid IP, the key defaults to the source IP address of + // the request i.e. key type IP. + // - HTTP_COOKIE: The value of the HTTP + // cookie whose name is configured under "enforceOnKeyName". The key + // value is truncated to the first 128 bytes of the cookie value. If no + // such cookie is present in the request, the key type defaults toALL. + // - HTTP_PATH: The URL path of the HTTP request. The key + // value is truncated to the first 128 bytes. + // - SNI: Server name indication in the TLS session of the + // HTTPS request. The key value is truncated to the first 128 bytes. The + // key type defaults to ALL on a HTTP session. + // - REGION_CODE: The country/region from which the request + // originates. + // - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the + // client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + // key type defaults to ALL. + // - USER_IP: The IP address of the originating client, + // which is resolved based on "userIpRequestHeaders" configured with the + // security policy. If there is no "userIpRequestHeaders" configuration or + // an IP address cannot be resolved from it, the key type defaults toIP. + // + // - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the + // client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + // key type defaults to ALL. + // For "fairshare" action, this value is limited to ALL i.e. a single rate + // limit threshold is enforced for all the requests matching the rule. enum EnforceOnKey { // A value indicating that the enum field is not set. UNDEFINED_ENFORCE_ON_KEY = 0; @@ -36574,29 +69291,96 @@ message SecurityPolicyRuleRateLimitOptions { } - // Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold. + // Can only be specified if the action for the rule is + // "rate_based_ban". If specified, determines the time (in seconds) + // the traffic will continue to be banned by the rate limit after the + // rate falls below the threshold. optional int32 ban_duration_sec = 42896726; - // Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'. + // Can only be specified if the action for the rule is + // "rate_based_ban". If specified, the key will be banned for the + // configured 'ban_duration_sec' when the number of requests that exceed + // the 'rate_limit_threshold' also exceed this 'ban_threshold'. optional SecurityPolicyRuleRateLimitOptionsThreshold ban_threshold = 501208123; - // Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only. + // Action to take for requests that are under the configured rate limit + // threshold. Valid option is "allow" only. optional string conform_action = 517612367; - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule. + // Determines the key to enforce the rate_limit_threshold on. Possible + // values are: + // + // - ALL: A single rate limit threshold is applied to all + // the requests matching this rule. This is the default value if + // "enforceOnKey" is not configured. + // - IP: The source IP address of + // the request is the key. Each IP has this limit enforced + // separately. + // - HTTP_HEADER: The value of the HTTP + // header whose name is configured under "enforceOnKeyName". The key + // value is truncated to the first 128 bytes of the header value. If no + // such header is present in the request, the key type defaults toALL. + // - XFF_IP: The first IP address (i.e. the + // originating client IP address) specified in the list of IPs under + // X-Forwarded-For HTTP header. If no such header is present or the value + // is not a valid IP, the key defaults to the source IP address of + // the request i.e. key type IP. + // - HTTP_COOKIE: The value of the HTTP + // cookie whose name is configured under "enforceOnKeyName". The key + // value is truncated to the first 128 bytes of the cookie value. If no + // such cookie is present in the request, the key type defaults toALL. + // - HTTP_PATH: The URL path of the HTTP request. The key + // value is truncated to the first 128 bytes. + // - SNI: Server name indication in the TLS session of the + // HTTPS request. The key value is truncated to the first 128 bytes. The + // key type defaults to ALL on a HTTP session. + // - REGION_CODE: The country/region from which the request + // originates. + // - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the + // client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + // key type defaults to ALL. + // - USER_IP: The IP address of the originating client, + // which is resolved based on "userIpRequestHeaders" configured with the + // security policy. If there is no "userIpRequestHeaders" configuration or + // an IP address cannot be resolved from it, the key type defaults toIP. + // + // - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the + // client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + // key type defaults to ALL. + // For "fairshare" action, this value is limited to ALL i.e. a single rate + // limit threshold is enforced for all the requests matching the rule. // Check the EnforceOnKey enum for the list of possible values. optional string enforce_on_key = 416648956; - // If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified. + // If specified, any combination of values of + // enforce_on_key_type/enforce_on_key_name is treated as the key on which + // ratelimit threshold/action is enforced. You can specify up to 3 + // enforce_on_key_configs. If enforce_on_key_configs is specified, + // enforce_on_key must not be specified. repeated SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478; - // Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value. + // Rate limit key name applicable only for the following key types: + // HTTP_HEADER -- Name of the HTTP header whose value is taken as the key + // value. + // HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key + // value. optional string enforce_on_key_name = 132555246; - // Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR. + // Action to take for requests that are above the configured rate limit + // threshold, to either deny with a specified HTTP response code, or + // redirect to a different endpoint. + // Valid options are `deny(STATUS)`, where valid values for + // `STATUS` are 403, 404, 429, and 502, and + // `redirect`, where the redirect parameters come from + // `exceedRedirectOptions` below. + // The `redirect` action is only supported in Global Security Policies of + // type CLOUD_ARMOR. optional string exceed_action = 167159073; - // Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR. + // Parameters defining the redirect action that is used as the exceed + // action. Cannot be specified if the exceed action is not redirect. + // This field is only supported in Global Security Policies of type + // CLOUD_ARMOR. optional SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694; // Threshold at which to begin ratelimiting. @@ -36606,7 +69390,46 @@ message SecurityPolicyRuleRateLimitOptions { // message SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig { - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. + // Determines the key to enforce the rate_limit_threshold on. Possible + // values are: + // + // - ALL: A single rate limit threshold is applied to all + // the requests matching this rule. This is the default value if + // "enforceOnKeyConfigs" is not configured. + // - IP: The source IP address of + // the request is the key. Each IP has this limit enforced + // separately. + // - HTTP_HEADER: The value of the HTTP + // header whose name is configured under "enforceOnKeyName". The key + // value is truncated to the first 128 bytes of the header value. If no + // such header is present in the request, the key type defaults toALL. + // - XFF_IP: The first IP address (i.e. the + // originating client IP address) specified in the list of IPs under + // X-Forwarded-For HTTP header. If no such header is present or the + // value is not a valid IP, the key defaults to the source IP address of + // the request i.e. key type IP. + // - HTTP_COOKIE: The value of the HTTP + // cookie whose name is configured under "enforceOnKeyName". The key + // value is truncated to the first 128 bytes of the cookie value. If no + // such cookie is present in the request, the key type defaults toALL. + // - HTTP_PATH: The URL path of the HTTP request. The key + // value is truncated to the first 128 bytes. + // - SNI: Server name indication in the TLS session of + // the HTTPS request. The key value is truncated to the first 128 bytes. + // The key type defaults to ALL on a HTTP session. + // - REGION_CODE: The country/region from which the + // request originates. + // - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the + // client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + // key type defaults to ALL. + // - USER_IP: The IP address of the originating client, + // which is resolved based on "userIpRequestHeaders" configured with the + // security policy. If there is no "userIpRequestHeaders" configuration + // or an IP address cannot be resolved from it, the key type defaults toIP. + // + // - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the + // client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + // key type defaults to ALL. enum EnforceOnKeyType { // A value indicating that the enum field is not set. UNDEFINED_ENFORCE_ON_KEY_TYPE = 0; @@ -36637,10 +69460,52 @@ message SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig { } - // Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value. + // Rate limit key name applicable only for the following key types: + // HTTP_HEADER -- Name of the HTTP header whose value is taken as the + // key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is + // taken as the key value. optional string enforce_on_key_name = 132555246; - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. + // Determines the key to enforce the rate_limit_threshold on. Possible + // values are: + // + // - ALL: A single rate limit threshold is applied to all + // the requests matching this rule. This is the default value if + // "enforceOnKeyConfigs" is not configured. + // - IP: The source IP address of + // the request is the key. Each IP has this limit enforced + // separately. + // - HTTP_HEADER: The value of the HTTP + // header whose name is configured under "enforceOnKeyName". The key + // value is truncated to the first 128 bytes of the header value. If no + // such header is present in the request, the key type defaults toALL. + // - XFF_IP: The first IP address (i.e. the + // originating client IP address) specified in the list of IPs under + // X-Forwarded-For HTTP header. If no such header is present or the + // value is not a valid IP, the key defaults to the source IP address of + // the request i.e. key type IP. + // - HTTP_COOKIE: The value of the HTTP + // cookie whose name is configured under "enforceOnKeyName". The key + // value is truncated to the first 128 bytes of the cookie value. If no + // such cookie is present in the request, the key type defaults toALL. + // - HTTP_PATH: The URL path of the HTTP request. The key + // value is truncated to the first 128 bytes. + // - SNI: Server name indication in the TLS session of + // the HTTPS request. The key value is truncated to the first 128 bytes. + // The key type defaults to ALL on a HTTP session. + // - REGION_CODE: The country/region from which the + // request originates. + // - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the + // client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + // key type defaults to ALL. + // - USER_IP: The IP address of the originating client, + // which is resolved based on "userIpRequestHeaders" configured with the + // security policy. If there is no "userIpRequestHeaders" configuration + // or an IP address cannot be resolved from it, the key type defaults toIP. + // + // - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the + // client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + // key type defaults to ALL. // Check the EnforceOnKeyType enum for the list of possible values. optional string enforce_on_key_type = 132757149; @@ -36658,7 +69523,12 @@ message SecurityPolicyRuleRateLimitOptionsThreshold { // message SecurityPolicyRuleRedirectOptions { - // Type of the redirect action. Possible values are: - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual challenge assessment. - EXTERNAL_302: redirect to a different URL via a 302 response. + // Type of the redirect action. Possible values are: + // + // - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual + // challenge assessment. + // - EXTERNAL_302: redirect to a different URL via a 302 + // response. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -36669,10 +69539,16 @@ message SecurityPolicyRuleRedirectOptions { } - // Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA. + // Target for the redirect action. This is required if the type is + // EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA. optional string target = 192835985; - // Type of the redirect action. Possible values are: - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual challenge assessment. - EXTERNAL_302: redirect to a different URL via a 302 response. + // Type of the redirect action. Possible values are: + // + // - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual + // challenge assessment. + // - EXTERNAL_302: redirect to a different URL via a 302 + // response. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -36680,7 +69556,19 @@ message SecurityPolicyRuleRedirectOptions { // message SecurityPolicyUserDefinedField { - // The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required + // The base relative to which 'offset' is measured. Possible values are: + // + // - IPV4: Points to the beginning of the IPv4 header. + // - IPV6: Points to the beginning of the IPv6 header. + // - TCP: Points to the beginning of the TCP header, skipping + // over any IPv4 options or IPv6 extension headers. Not present for + // non-first fragments. + // - UDP: Points to the beginning of the UDP header, skipping + // over any IPv4 options or IPv6 extension headers. Not present for + // non-first fragments. + // + // + // required enum Base { // A value indicating that the enum field is not set. UNDEFINED_BASE = 0; @@ -36695,17 +69583,33 @@ message SecurityPolicyUserDefinedField { } - // The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required + // The base relative to which 'offset' is measured. Possible values are: + // + // - IPV4: Points to the beginning of the IPv4 header. + // - IPV6: Points to the beginning of the IPv6 header. + // - TCP: Points to the beginning of the TCP header, skipping + // over any IPv4 options or IPv6 extension headers. Not present for + // non-first fragments. + // - UDP: Points to the beginning of the UDP header, skipping + // over any IPv4 options or IPv6 extension headers. Not present for + // non-first fragments. + // + // + // required // Check the Base enum for the list of possible values. optional string base = 3016401; - // If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask. + // If specified, apply this mask (bitwise AND) to the field to ignore bits + // before matching. Encoded as a hexadecimal number (starting with "0x"). + // The last byte of the field (in network byte order) corresponds to the + // least significant byte of the mask. optional string mask = 3344108; // The name of this field. Must be unique within the policy. optional string name = 3373707; - // Offset of the first byte of the field (in network byte order) relative to 'base'. + // Offset of the first byte of the field (in network byte order) relative to + // 'base'. optional int32 offset = 53961875; // Size of the field in bytes. Valid values: 1-4. @@ -36718,13 +69622,35 @@ message SecuritySettings { // [Deprecated] Use clientTlsPolicy instead. optional string authentication = 430432888; - // The configuration needed to generate a signature for access to private storage buckets that support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT and INTERNET_FQDN_PORT NEG backends. + // The configuration needed to generate a signature for access to private + // storage buckets that support AWS's Signature Version 4 for authentication. + // Allowed only for INTERNET_IP_PORT and INTERNET_FQDN_PORT NEG backends. optional AWSV4Signature aws_v4_authentication = 433993111; - // Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. + // Optional. A URL referring to a networksecurity.ClientTlsPolicy resource + // that describes how clients should authenticate with this service's + // backends. + // + // clientTlsPolicy only applies to a globalBackendService with the loadBalancingScheme set + // to INTERNAL_SELF_MANAGED. + // + // If left blank, communications are not encrypted. optional string client_tls_policy = 462325226; - // Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode). + // Optional. A list of Subject Alternative Names (SANs) that the client + // verifies during a mutual TLS handshake with an server/endpoint for thisBackendService. When the server presents its X.509 certificate + // to the client, the client inspects the certificate'ssubjectAltName field. If the field contains one of the + // specified values, the communication continues. Otherwise, it fails. This + // additional check enables the client to verify that the server is authorized + // to run the requested service. + // + // Note that the contents of the server + // certificate's subjectAltName field are configured by the + // Public Key Infrastructure which provisions server identities. + // + // Only applies to a global BackendService withloadBalancingScheme set to INTERNAL_SELF_MANAGED. + // Only applies when BackendService has an attachedclientTlsPolicy with clientCertificate (mTLS + // mode). repeated string subject_alt_names = 330029535; } @@ -36751,16 +69677,24 @@ message SerialPortOutput { // [Output Only] The contents of the console output. optional string contents = 506419994; - // [Output Only] Type of the resource. Always compute#serialPortOutput for serial port output. + // [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. optional string kind = 3292052; - // [Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the `contents` property. Use this value in the next request as the start parameter. + // [Output Only] The position of the next byte of content, regardless of + // whether the content exists, following the output returned in the `contents` + // property. Use this value in the next request as the start + // parameter. optional int64 next = 3377907; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // The starting byte position of the output that was returned. This should match the start parameter sent with the request. If the serial console output exceeds the size of the buffer (1 MB), older output is overwritten by newer content. The output start value will indicate the byte position of the output that was returned, which might be different than the `start` value that was specified in the request. + // The starting byte position of the output that was returned. + // This should match the start parameter sent with the request. + // If the serial console output exceeds the size of the buffer (1 MB), older + // output is overwritten by newer content. The output start value will + // indicate the byte position of the output that was returned, which might be + // different than the `start` value that was specified in the request. optional int64 start = 109757538; } @@ -36798,9 +69732,17 @@ message ServiceAccount { } -// Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service. +// Represents a ServiceAttachment resource. +// +// A service attachment represents a service that a producer has exposed. +// It encapsulates the load balancer which fronts the service runs and +// a list of NAT IP ranges that the producers uses to represent +// the consumers connecting to the service. message ServiceAttachment { - // The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. + // The connection preference of service attachment. The value can be set + // to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC + // service attachment is one that always accepts the connection from consumer + // forwarding rules. enum ConnectionPreference { // A value indicating that the enum field is not set. UNDEFINED_CONNECTION_PREFERENCE = 0; @@ -36813,71 +69755,145 @@ message ServiceAttachment { } - // [Output Only] An array of connections for all the consumers connected to this service attachment. + // [Output Only] An array of connections for all the consumers connected to + // this service attachment. repeated ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688; - // The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. + // The connection preference of service attachment. The value can be set + // to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC + // service attachment is one that always accepts the connection from consumer + // forwarding rules. // Check the ConnectionPreference enum for the list of possible values. optional string connection_preference = 285818076; - // Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks or only endpoints. + // Specifies which consumer projects or networks are allowed to connect to the + // service attachment. Each project or network has a connection limit. A given + // service attachment can manage connections at either the project or network + // level. Therefore, both the accept and reject lists for a given service + // attachment must contain either only projects or only networks or only + // endpoints. repeated ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703; - // Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks. + // Specifies a list of projects or networks that are not allowed to connect to + // this service attachment. The project can be specified using its project ID + // or project number and the network can be specified using its URL. A given + // service attachment can manage connections at either the project or network + // level. Therefore, both the reject and accept lists for a given service + // attachment must contain either only projects or only networks. repeated string consumer_reject_lists = 204033182; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1. + // If specified, the domain name will be used during the integration between + // the PSC connected endpoints and the Cloud DNS. For example, this is a valid + // domain name: "p.mycompany.com.". Current max number of domain names + // supported is 1. repeated string domain_names = 6450189; - // If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers. + // If true, enable the proxy protocol which is for supplying client TCP/IP + // address data in TCP connections that traverse proxies on their way to + // destination servers. optional bool enable_proxy_protocol = 363791237; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a ServiceAttachment. An up-to-date fingerprint must + // be provided in order to patch/update the ServiceAttachment; otherwise, the + // request will fail with error 412 conditionNotMet. To see the + // latest fingerprint, make a get() request to retrieve the + // ServiceAttachment. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource type. The server generates this identifier. + // [Output Only] The unique identifier for the resource type. The server + // generates this identifier. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#serviceAttachment for service attachments. + // [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. optional string kind = 3292052; // Metadata of the service attachment. map metadata = 86866735; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment. + // An array of URLs where each entry is the URL of a subnet provided + // by the service producer to use for NAT in this service attachment. repeated string nat_subnets = 374785944; - // The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment. + // The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is + // serving the endpoint identified by this service attachment. optional string producer_forwarding_rule = 247927889; - // The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer. If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint. If unspecified, the default propagated connection limit is 250. + // The number of consumer spokes that connected Private Service Connect + // endpoints can be propagated to through Network Connectivity Center. This + // limit lets the service producer limit how many propagated Private Service + // Connect connections can be established to this service attachment from a + // single consumer. + // + // If the connection preference of the service attachment is ACCEPT_MANUAL, + // the limit applies to each project or network that is listed in the consumer + // accept list. If the connection preference of the service attachment is + // ACCEPT_AUTOMATIC, the limit applies to each project that contains a + // connected endpoint. + // + // If unspecified, the default propagated connection limit is 250. optional uint32 propagated_connection_limit = 332719230; // [Output Only] An 128-bit global unique ID of the PSC service attachment. optional Uint128 psc_service_attachment_id = 527695214; - // This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false. + // This flag determines whether a consumer accept/reject list change can + // reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. + // + // + // - If false, connection policy update will only affect existing PENDING + // PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched + // regardless how the connection policy is modified . + // - If true, + // update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For + // example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project + // is added to the reject list. + // + // + // For newly created service attachment, this boolean defaults to false. optional bool reconcile_connections = 125493732; - // [Output Only] URL of the region where the service attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the service attachment resides. + // This field applies only to the region resource. You must specify this + // field as part of the HTTP request URL. It is not settable as a field in + // the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The URL of a service serving the endpoint identified by this service attachment. + // The URL of a service serving the endpoint identified by this service + // attachment. optional string target_service = 1293831; - // When a tunneling config is set on this service attachment it will encapsulate traffic between consumer and producer. When tunneling is enabled: - nat_subnets must be unset - enable_proxy_protocol must be false - producer_forwarding_rule must be a L4 ILB. - + // When a tunneling config is set on this service attachment it will + // encapsulate traffic between consumer and producer. + // + // When tunneling is enabled: + // + // + // - nat_subnets must be unset + // - enable_proxy_protocol must be false + // - producer_forwarding_rule must be a L4 ILB. + // - optional ServiceAttachmentTunnelingConfig tunneling_config = 240833703; } @@ -36893,7 +69909,11 @@ message ServiceAttachmentAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -36920,7 +69940,9 @@ message ServiceAttachmentConnectedEndpoint { // The connection has been closed by the producer. CLOSED = 380163436; - // The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic. + // The connection has been accepted by the producer, but the producer + // needs to take further action before the forwarding rule can serve + // traffic. NEEDS_ATTENTION = 344491452; // The connection is pending acceptance by the producer. @@ -36939,10 +69961,15 @@ message ServiceAttachmentConnectedEndpoint { // The url of a connected endpoint. optional string endpoint = 130489749; - // NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it. + // The url of a connected endpoint with resource id. + optional string endpoint_with_id = 444867210; + + // NAT IPs of the connected PSC endpoint and those of other endpoints + // propagated from it. repeated string nat_ips = 117635086; - // The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to. + // The number of consumer Network Connectivity Center spokes that the + // connected Private Service Connect endpoint has propagated to. optional uint32 propagated_connection_count = 324594130; // The PSC connection id of the connected endpoint. @@ -36956,9 +69983,13 @@ message ServiceAttachmentConnectedEndpoint { // message ServiceAttachmentConsumerProjectLimit { - // The value of the limit to set. For endpoint_url, the limit should be no more than 1. + // The value of the limit to set. For endpoint_url, the limit should be no + // more than 1. optional uint32 connection_limit = 131403546; + // The URL for the PSC endpoint to accept + optional string endpoint_url = 223428549; + // The network URL for the network to set the limit for. optional string network_url = 207194078; @@ -36975,10 +70006,14 @@ message ServiceAttachmentList { // A list of ServiceAttachment resources. repeated ServiceAttachment items = 100526016; - // [Output Only] Type of the resource. Always compute#serviceAttachment for service attachments. + // [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -36989,40 +70024,50 @@ message ServiceAttachmentList { } -// Use to configure this PSC connection in tunneling mode. In tunneling mode traffic from consumer to producer will be encapsulated as it crosses the VPC boundary and traffic from producer to consumer will be decapsulated in the same manner. +// Use to configure this PSC connection in tunneling mode. In tunneling mode +// traffic from consumer to producer will be encapsulated as it crosses the +// VPC boundary and traffic from producer to consumer will be decapsulated in +// the same manner. message ServiceAttachmentTunnelingConfig { - // Specify the encapsulation protocol and what metadata to include in incoming encapsulated packet headers. + // Specify the encapsulation protocol and what metadata to include in + // incoming encapsulated packet headers. enum EncapsulationProfile { // A value indicating that the enum field is not set. UNDEFINED_ENCAPSULATION_PROFILE = 0; - // Use GENEVE encapsulation protocol and include the SECURITY_V1 set of GENEVE headers. + // Use GENEVE encapsulation protocol and include the SECURITY_V1 set of + // GENEVE headers. GENEVE_SECURITY_V1 = 374039743; UNSPECIFIED_ENCAPSULATION_PROFILE = 368782710; } - // How this Service Attachment will treat traffic sent to the tunnel_ip, destined for the consumer network. + // How this Service Attachment will treat traffic sent to the tunnel_ip, + // destined for the consumer network. enum RoutingMode { // A value indicating that the enum field is not set. UNDEFINED_ROUTING_MODE = 0; - // Traffic sent to this service attachment will be reinjected into the consumer network. + // Traffic sent to this service attachment will be reinjected into the + // consumer network. PACKET_INJECTION = 321485248; - // Response traffic, after de-encapsulation, will be returned to the client. + // Response traffic, after de-encapsulation, will be returned to the + // client. STANDARD_ROUTING = 141399332; UNSPECIFIED_ROUTING_MODE = 126139844; } - // Specify the encapsulation protocol and what metadata to include in incoming encapsulated packet headers. + // Specify the encapsulation protocol and what metadata to include in + // incoming encapsulated packet headers. // Check the EncapsulationProfile enum for the list of possible values. optional string encapsulation_profile = 118326494; - // How this Service Attachment will treat traffic sent to the tunnel_ip, destined for the consumer network. + // How this Service Attachment will treat traffic sent to the tunnel_ip, + // destined for the consumer network. // Check the RoutingMode enum for the list of possible values. optional string routing_mode = 475143548; @@ -37033,7 +70078,8 @@ message ServiceAttachmentsScopedList { // A list of ServiceAttachments contained in this scope. repeated ServiceAttachment service_attachments = 307136806; - // Informational warning which replaces the list of service attachments when the list is empty. + // Informational warning which replaces the list of + // service attachments when the list is empty. optional Warning warning = 50704284; } @@ -37052,10 +70098,23 @@ message SetAutoHealingPoliciesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -37083,7 +70142,19 @@ message SetAutoHealingPoliciesRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersSetAutoHealingRequest region_instance_group_managers_set_auto_healing_request_resource = 143403228 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -37096,13 +70167,26 @@ message SetBackendServiceTargetSslProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request TargetSslProxiesSetBackendServiceRequest target_ssl_proxies_set_backend_service_request_resource = 139080868 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetSslProxy resource whose BackendService resource is to be set. + // Name of the TargetSslProxy resource whose BackendService resource + // is to be set. string target_ssl_proxy = 338795853 [(google.api.field_behavior) = REQUIRED]; } @@ -37115,13 +70199,26 @@ message SetBackendServiceTargetTcpProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request TargetTcpProxiesSetBackendServiceRequest target_tcp_proxies_set_backend_service_request_resource = 273721583 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetTcpProxy resource whose BackendService resource is to be set. + // Name of the TargetTcpProxy resource whose BackendService resource + // is to be set. string target_tcp_proxy = 503065442 [(google.api.field_behavior) = REQUIRED]; } @@ -37143,7 +70240,19 @@ message SetBackupTargetPoolRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetPool resource to set a backup pool for. @@ -37162,13 +70271,26 @@ message SetCertificateMapTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request TargetHttpsProxiesSetCertificateMapRequest target_https_proxies_set_certificate_map_request_resource = 467639099 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the TargetHttpsProxy resource whose CertificateMap is + // to be set. The name must be 1-63 characters long, and comply with RFC1035. string target_https_proxy = 52336748 [(google.api.field_behavior) = REQUIRED]; } @@ -37181,13 +70303,26 @@ message SetCertificateMapTargetSslProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request TargetSslProxiesSetCertificateMapRequest target_ssl_proxies_set_certificate_map_request_resource = 343984954 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the TargetSslProxy resource whose CertificateMap is + // to be set. The name must be 1-63 characters long, and comply with RFC1035. string target_ssl_proxy = 338795853 [(google.api.field_behavior) = REQUIRED]; } @@ -37203,7 +70338,19 @@ message SetCloudArmorTierProjectRequest { // The body resource for this request ProjectsSetCloudArmorTierRequest projects_set_cloud_armor_tier_request_resource = 77053391 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -37213,14 +70360,16 @@ message SetCommonInstanceMetadataOperationMetadata { // [Output Only] The client operation id. optional string client_operation_id = 297240295; - // [Output Only] Status information per location (location name is key). Example key: zones/us-central1-a + // [Output Only] Status information per location (location name is key). + // Example key: zones/us-central1-a map per_location_operations = 408987796; } // message SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo { - // [Output Only] Status of the action, which can be one of the following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. + // [Output Only] Status of the action, which can be one of the following: + // `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -37244,10 +70393,12 @@ message SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo { } - // [Output Only] If state is `ABANDONED` or `FAILED`, this field is populated. + // [Output Only] If state is `ABANDONED` or `FAILED`, this field is + // populated. optional Status error = 96784904; - // [Output Only] Status of the action, which can be one of the following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. + // [Output Only] Status of the action, which can be one of the following: + // `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. // Check the State enum for the list of possible values. optional string state = 109757585; @@ -37264,7 +70415,19 @@ message SetCommonInstanceMetadataProjectRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -37280,7 +70443,19 @@ message SetDefaultNetworkTierProjectRequest { // The body resource for this request ProjectsSetDefaultNetworkTierRequest projects_set_default_network_tier_request_resource = 126410762 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -37296,7 +70471,19 @@ message SetDeletionProtectionInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -37315,7 +70502,8 @@ message SetDiskAutoDeleteInstanceRequest { // Whether to auto-delete the disk when the instance is deleted. bool auto_delete = 464761403 [(google.api.field_behavior) = REQUIRED]; - // The device name of the disk to modify. Make a get() request on the instance to view currently attached disks and device names. + // The device name of the disk to modify. Make a get() request + // on the instance to view currently attached disks and device names. string device_name = 67541716 [(google.api.field_behavior) = REQUIRED]; // The instance name for this request. @@ -37327,7 +70515,19 @@ message SetDiskAutoDeleteInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -37340,7 +70540,8 @@ message SetDiskAutoDeleteInstanceRequest { // A request message for BackendBuckets.SetEdgeSecurityPolicy. See the method description for details. message SetEdgeSecurityPolicyBackendBucketRequest { - // Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035. + // Name of the BackendBucket resource to which the security policy should be + // set. The name should conform to RFC1035. string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -37349,7 +70550,19 @@ message SetEdgeSecurityPolicyBackendBucketRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -37359,7 +70572,8 @@ message SetEdgeSecurityPolicyBackendBucketRequest { // A request message for BackendServices.SetEdgeSecurityPolicy. See the method description for details. message SetEdgeSecurityPolicyBackendServiceRequest { - // Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. + // Name of the BackendService resource to which the edge security policy + // should be set. The name should conform to RFC1035. string backend_service = 306946058 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -37368,7 +70582,19 @@ message SetEdgeSecurityPolicyBackendServiceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -37599,6 +70825,22 @@ message SetIamPolicyNodeTemplateRequest { } +// A request message for RegionBackendBuckets.SetIamPolicy. See the method description for details. +message SetIamPolicyRegionBackendBucketRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionBackendServices.SetIamPolicy. See the method description for details. message SetIamPolicyRegionBackendServiceRequest { // Project ID for this request. @@ -37679,6 +70921,25 @@ message SetIamPolicyRegionSnapshotRequest { } +// A request message for ReservationBlocks.SetIamPolicy. See the method description for details. +message SetIamPolicyReservationBlockRequest { + // Name or id of parent resource of the resource for this request. + string parent_resource = 18091011 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ZoneSetNestedPolicyRequest zone_set_nested_policy_request_resource = 266352851 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Reservations.SetIamPolicy. See the method description for details. message SetIamPolicyReservationRequest { // Project ID for this request. @@ -37695,6 +70956,25 @@ message SetIamPolicyReservationRequest { } +// A request message for ReservationSubBlocks.SetIamPolicy. See the method description for details. +message SetIamPolicyReservationSubBlockRequest { + // Name or id of parent resource of the resource for this request. + string parent_resource = 18091011 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ZoneSetNestedPolicyRequest zone_set_nested_policy_request_resource = 266352851 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for ResourcePolicies.SetIamPolicy. See the method description for details. message SetIamPolicyResourcePolicyRequest { // Project ID for this request. @@ -37786,10 +71066,23 @@ message SetInstanceTemplateInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -37817,7 +71110,19 @@ message SetInstanceTemplateRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersSetTemplateRequest region_instance_group_managers_set_template_request_resource = 187310412 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -37839,7 +71144,19 @@ message SetLabelsAddressRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -37855,7 +71172,19 @@ message SetLabelsDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -37905,7 +71234,19 @@ message SetLabelsForwardingRuleRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -37975,7 +71316,19 @@ message SetLabelsInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -37994,7 +71347,19 @@ message SetLabelsInstantSnapshotRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -38028,7 +71393,19 @@ message SetLabelsInterconnectAttachmentRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -38085,7 +71462,19 @@ message SetLabelsRegionDiskRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -38110,7 +71499,19 @@ message SetLabelsRegionInstantSnapshotRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -38135,7 +71536,19 @@ message SetLabelsRegionSecurityPolicyRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -38160,7 +71573,19 @@ message SetLabelsRegionSnapshotRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -38217,7 +71642,19 @@ message SetLabelsTargetVpnGatewayRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -38242,7 +71679,19 @@ message SetLabelsVpnGatewayRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -38267,7 +71716,19 @@ message SetLabelsVpnTunnelRequest { // The body resource for this request RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name or id of the resource for this request. @@ -38289,7 +71750,19 @@ message SetMachineResourcesInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -38314,7 +71787,19 @@ message SetMachineTypeInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -38336,7 +71821,19 @@ message SetManagedProtectionTierProjectRequest { // The body resource for this request ProjectsSetManagedProtectionTierRequest projects_set_managed_protection_tier_request_resource = 351145751 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -38355,7 +71852,19 @@ message SetMetadataInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -38380,7 +71889,19 @@ message SetMinCpuPlatformInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -38405,7 +71926,19 @@ message SetNameInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -38430,10 +71963,23 @@ message SetNamedPortsInstanceGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the instance group is located. + // The name of the zone + // where the instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -38461,7 +72007,19 @@ message SetNamedPortsRegionInstanceGroupRequest { // The body resource for this request RegionInstanceGroupsSetNamedPortsRequest region_instance_groups_set_named_ports_request_resource = 1574938 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -38480,7 +72038,19 @@ message SetNodeTemplateNodeGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -38505,7 +72075,19 @@ message SetPrivateIpGoogleAccessSubnetworkRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Subnetwork resource. @@ -38524,7 +72106,19 @@ message SetProxyHeaderTargetSslProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38543,7 +72137,19 @@ message SetProxyHeaderTargetTcpProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38562,13 +72168,26 @@ message SetQuicOverrideTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request TargetHttpsProxiesSetQuicOverrideRequest target_https_proxies_set_quic_override_request_resource = 72940258 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035. + // Name of the TargetHttpsProxy resource to set the QUIC override policy for. + // The name should conform to RFC1035. string target_https_proxy = 52336748 [(google.api.field_behavior) = REQUIRED]; } @@ -38584,7 +72203,19 @@ message SetSchedulingInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38600,7 +72231,8 @@ message SetSchedulingInstanceRequest { // A request message for BackendServices.SetSecurityPolicy. See the method description for details. message SetSecurityPolicyBackendServiceRequest { - // Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. + // Name of the BackendService resource to which the security policy should be + // set. The name should conform to RFC1035. string backend_service = 306946058 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -38609,7 +72241,19 @@ message SetSecurityPolicyBackendServiceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38619,7 +72263,8 @@ message SetSecurityPolicyBackendServiceRequest { // A request message for Instances.SetSecurityPolicy. See the method description for details. message SetSecurityPolicyInstanceRequest { - // Name of the Instance resource to which the security policy should be set. The name should conform to RFC1035. + // Name of the Instance resource to which the security policy should be + // set. The name should conform to RFC1035. string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -38631,7 +72276,19 @@ message SetSecurityPolicyInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the zone scoping this request. @@ -38644,7 +72301,8 @@ message SetSecurityPolicyInstanceRequest { // A request message for RegionBackendServices.SetSecurityPolicy. See the method description for details. message SetSecurityPolicyRegionBackendServiceRequest { - // Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. + // Name of the BackendService resource to which the security policy should be + // set. The name should conform to RFC1035. string backend_service = 306946058 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -38659,7 +72317,19 @@ message SetSecurityPolicyRegionBackendServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38675,13 +72345,26 @@ message SetSecurityPolicyTargetInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request SecurityPolicyReference security_policy_reference_resource = 204135024 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetInstance resource to which the security policy should be set. The name should conform to RFC1035. + // Name of the TargetInstance resource to which the security policy should be + // set. The name should conform to RFC1035. string target_instance = 289769347 [(google.api.field_behavior) = REQUIRED]; // Name of the zone scoping this request. @@ -38706,13 +72389,26 @@ message SetSecurityPolicyTargetPoolRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request SecurityPolicyReference security_policy_reference_resource = 204135024 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetPool resource to which the security policy should be set. The name should conform to RFC1035. + // Name of the TargetPool resource to which the security policy should be + // set. The name should conform to RFC1035. string target_pool = 62796298 [(google.api.field_behavior) = REQUIRED]; } @@ -38731,7 +72427,19 @@ message SetServiceAccountInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -38753,7 +72461,19 @@ message SetShieldedInstanceIntegrityPolicyInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38778,7 +72498,19 @@ message SetShieldedVmIntegrityPolicyInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38809,10 +72541,23 @@ message SetSslCertificatesRegionTargetHttpsProxyRequest { // The body resource for this request RegionTargetHttpsProxiesSetSslCertificatesRequest region_target_https_proxies_set_ssl_certificates_request_resource = 390693383 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + // Name of the TargetHttpsProxy resource to set an + // SslCertificates resource for. string target_https_proxy = 52336748 [(google.api.field_behavior) = REQUIRED]; } @@ -38825,13 +72570,26 @@ message SetSslCertificatesTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request TargetHttpsProxiesSetSslCertificatesRequest target_https_proxies_set_ssl_certificates_request_resource = 223122908 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + // Name of the TargetHttpsProxy resource to set an + // SslCertificates resource for. string target_https_proxy = 52336748 [(google.api.field_behavior) = REQUIRED]; } @@ -38844,13 +72602,26 @@ message SetSslCertificatesTargetSslProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request TargetSslProxiesSetSslCertificatesRequest target_ssl_proxies_set_ssl_certificates_request_resource = 147940797 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetSslProxy resource whose SslCertificate resource is to be set. + // Name of the TargetSslProxy resource whose SslCertificate resource + // is to be set. string target_ssl_proxy = 338795853 [(google.api.field_behavior) = REQUIRED]; } @@ -38863,13 +72634,26 @@ message SetSslPolicyTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request SslPolicyReference ssl_policy_reference_resource = 235403836 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the TargetHttpsProxy resource whose SSL policy is + // to be set. The name must be 1-63 characters long, and comply with RFC1035. string target_https_proxy = 52336748 [(google.api.field_behavior) = REQUIRED]; } @@ -38882,13 +72666,26 @@ message SetSslPolicyTargetSslProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request SslPolicyReference ssl_policy_reference_resource = 235403836 [(google.api.field_behavior) = REQUIRED]; - // Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. + // Name of the TargetSslProxy resource whose SSL policy is + // to be set. The name must be 1-63 characters long, and comply with RFC1035. string target_ssl_proxy = 338795853 [(google.api.field_behavior) = REQUIRED]; } @@ -38904,7 +72701,19 @@ message SetTagsInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38935,7 +72744,19 @@ message SetTargetForwardingRuleRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38954,7 +72775,19 @@ message SetTargetGlobalForwardingRuleRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -38976,10 +72809,23 @@ message SetTargetPoolsInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -39007,7 +72853,19 @@ message SetTargetPoolsRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersSetTargetPoolsRequest region_instance_group_managers_set_target_pools_request_resource = 78734717 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -39026,7 +72884,19 @@ message SetUrlMapRegionTargetHttpProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpProxy to set a URL map for. @@ -39051,7 +72921,19 @@ message SetUrlMapRegionTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpsProxy to set a URL map for. @@ -39070,7 +72952,19 @@ message SetUrlMapTargetHttpProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the TargetHttpProxy to set a URL map for. @@ -39089,10 +72983,23 @@ message SetUrlMapTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the TargetHttpsProxy resource whose URL map is to be set. + // Name of the TargetHttpsProxy resource whose URL map is + // to be set. string target_https_proxy = 52336748 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -39108,7 +73015,19 @@ message SetUsageExportBucketProjectRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -39137,10 +73056,13 @@ message ShareSettings { } - // A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. + // A map of project id and project config. This is only valid when + // share_type's value is SPECIFIC_PROJECTS. map project_map = 134212406; - // A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. + // A List of Project names to specify consumer projects for this + // shared-reservation. This is only valid when share_type's value is + // SPECIFIC_PROJECTS. repeated string projects = 75044986; // Type of sharing for this shared-reservation @@ -39151,33 +73073,48 @@ message ShareSettings { // Config for each project in the share settings. message ShareSettingsProjectConfig { - // The project ID, should be same as the key of this project config in the parent map. + // The project ID, should be same as the key of this project config in the + // parent map. optional string project_id = 177513473; } // A set of Shielded Instance options. message ShieldedInstanceConfig { - // Defines whether the instance has integrity monitoring enabled. Enabled by default. + // Defines whether the instance has integrity monitoring enabled.Enabled by + // default. optional bool enable_integrity_monitoring = 409071030; - // Defines whether the instance has Secure Boot enabled. Disabled by default. + // Defines whether the instance has Secure Boot enabled.Disabled by + // default. optional bool enable_secure_boot = 123568638; - // Defines whether the instance has the vTPM enabled. Enabled by default. + // Defines whether the instance has the vTPM enabled.Enabled by + // default. optional bool enable_vtpm = 181858935; } // A Shielded Instance Identity. message ShieldedInstanceIdentity { - // An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. + // An Endorsement Key (EK) made by the ECC P256 algorithm + // issued to the Shielded Instance's vTPM. + optional ShieldedInstanceIdentityEntry ecc_p256_encryption_key = 469607365; + + // An Attestation Key (AK) made by the ECC P256 algorithm + // issued to the Shielded Instance's vTPM. + optional ShieldedInstanceIdentityEntry ecc_p256_signing_key = 477678403; + + // An Endorsement Key (EK) made by the RSA 2048 algorithm + // issued to the Shielded Instance's vTPM. optional ShieldedInstanceIdentityEntry encryption_key = 488268707; - // [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry. + // [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded Instance + // identity entry. optional string kind = 3292052; - // An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. + // An Attestation Key (AK) made by the RSA 2048 algorithm + // issued to the Shielded Instance's vTPM. optional ShieldedInstanceIdentityEntry signing_key = 320948261; } @@ -39192,9 +73129,11 @@ message ShieldedInstanceIdentityEntry { } -// The policy describes the baseline against which Instance boot integrity is measured. +// The policy describes the baseline against which +// Instance boot integrity is measured. message ShieldedInstanceIntegrityPolicy { - // Updates the integrity policy baseline using the measurements from the VM instance's most recent boot. + // Updates the integrity policy baseline using the + // measurements from the VM instance's most recent boot. optional bool update_auto_learn_policy = 245490215; } @@ -39217,7 +73156,7 @@ message ShieldedVmIdentity { // An Endorsement Key (EK) issued to the Shielded VM's vTPM. optional ShieldedVmIdentityEntry encryption_key = 488268707; - // [Output Only] Type of the resource. Always compute#shieldedVmIdentity for shielded VM identity entry. + // [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity entry. optional string kind = 3292052; // An Attestation Key (AK) issued to the Shielded VM's vTPM. @@ -39235,19 +73174,27 @@ message ShieldedVmIdentityEntry { } -// The policy describes the baseline against which VM instance boot integrity is measured. +// The policy describes the baseline against which +// VM instance boot integrity is measured. message ShieldedVmIntegrityPolicy { - // Updates the integrity policy baseline using the measurements from the VM instance's most recent boot. + // Updates the integrity policy baseline using the + // measurements from the VM instance's most recent boot. optional bool update_auto_learn_policy = 245490215; } // Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs message SignedUrlKey { - // Name of the key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the key. The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string key_name = 500938859; - // 128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string. + // 128-bit key value used for signing the URL. The key value must be a validRFC + // 4648 Section 5 base64url encoded string. optional string key_value = 504106897; } @@ -39263,10 +73210,23 @@ message SimulateMaintenanceEventInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Determines whether the customers receive notifications before migration. Only applicable to SF vms. + // Determines whether the customers receive notifications before migration. + // Only applicable to SF vms. optional bool with_extended_notifications = 405957627; // The name of the zone for this request. @@ -39279,7 +73239,8 @@ message SimulateMaintenanceEventInstanceRequest { // A request message for NodeGroups.SimulateMaintenanceEvent. See the method description for details. message SimulateMaintenanceEventNodeGroupRequest { - // Name of the NodeGroup resource whose nodes will go under maintenance simulation. + // Name of the NodeGroup resource whose nodes will go under maintenance + // simulation. string node_group = 469958146 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -39291,7 +73252,19 @@ message SimulateMaintenanceEventNodeGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -39302,9 +73275,14 @@ message SimulateMaintenanceEventNodeGroupRequest { } -// Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots. +// Represents a Persistent Disk Snapshot resource. +// +// You can use snapshots to back up data on a regular interval. For more +// information, read Creating +// persistent disk snapshots. message Snapshot { - // [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + // [Output Only] The architecture of the snapshot. Valid values are + // ARM64 or X86_64. enum Architecture { // A value indicating that the enum field is not set. UNDEFINED_ARCHITECTURE = 0; @@ -39331,7 +73309,7 @@ message Snapshot { } - // [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. + // [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or UPLOADING. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -39353,7 +73331,11 @@ message Snapshot { } - // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + // [Output Only] An indicator whether storageBytes is in a + // stable state or it is being adjusted as a result of shared storage + // reallocation. This status can either be UPDATING, meaning + // the size of the snapshot is being updated, or UP_TO_DATE, + // meaning the size of the snapshot is up-to-date. enum StorageBytesStatus { // A value indicating that the enum field is not set. UNDEFINED_STORAGE_BYTES_STATUS = 0; @@ -39364,23 +73346,32 @@ message Snapshot { } - // [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + // [Output Only] The architecture of the snapshot. Valid values are + // ARM64 or X86_64. // Check the Architecture enum for the list of possible values. optional string architecture = 302803283; - // [Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk. + // [Output Only] Set to true if snapshots are automatically created by + // applying resource policy on the target disk. optional bool auto_created = 463922264; - // Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value. + // Creates the new snapshot in the snapshot chain labeled with the + // specified name. The chain name must be 1-63 characters long and comply + // with RFC1035. This is an uncommon option only for advanced service + // owners who needs to create separate snapshot chains, for example, + // for chargeback tracking. When you describe your snapshot resource, this + // field is visible only if it has a non-empty value. optional string chain_name = 68644169; // [Output Only] Size in bytes of the snapshot at creation time. optional int64 creation_size_bytes = 125400077; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; // [Output Only] Size of the source disk, specified in GB. @@ -39389,43 +73380,73 @@ message Snapshot { // [Output Only] Number of bytes downloaded to restore a snapshot to a disk. optional int64 download_bytes = 435054068; - // Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This field is not set by user, but from source disk. + // Whether this snapshot is created from a confidential compute mode disk. + // [Output Only]: This field is not set by user, but from source disk. optional bool enable_confidential_compute = 102135228; - // [Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare for the snapshot process. + // [Input Only] Whether to attempt an application consistent snapshot by + // informing the OS to prepare for the snapshot process. optional bool guest_flush = 385550813; - // [Output Only] A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. + // [Output Only] A list of features to enable on the guest operating system. + // Applicable only for bootable images. Read + // Enabling guest operating system features to see a list of available + // options. repeated GuestOsFeature guest_os_features = 79294545; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + // [Output Only] Type of the resource. Always compute#snapshot + // for Snapshot resources. optional string kind = 3292052; - // A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot. + // A fingerprint for the labels being applied to this snapshot, which is + // essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a snapshot. optional string label_fingerprint = 178124825; - // Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty. + // Labels to apply to this snapshot. These can be later modified by + // the setLabels method. + // Label values may be empty. map labels = 500195327; - // [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + // [Output Only] Integer license codes indicating which licenses are attached + // to this snapshot. repeated int64 license_codes = 45482664; - // [Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image). + // [Output Only] A list of public visible licenses that apply to this + // snapshot. This can be because the original image had licenses attached + // (such as a Windows image). repeated string licenses = 337642578; - // An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API. + // An opaque location hint used to place the snapshot close to other + // resources. + // This field is for use by internal tools that use the public API. optional string location_hint = 350519505; - // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. optional string name = 3373707; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional SnapshotParams params = 78313862; - // [Output Only] URL of the region where the snapshot resides. Only applicable for regional snapshots. + // [Output Only] URL of the region where the snapshot resides. Only applicable + // for regional snapshots. optional string region = 138946292; // Output only. Reserved for future use. @@ -39437,7 +73458,20 @@ message Snapshot { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later. + // Encrypts the snapshot using acustomer-supplied + // encryption key. + // + // After you encrypt a snapshot using a customer-supplied key, you must + // provide the same key if you use the snapshot later. For example, you must + // provide the encryption key when you create a disk from the encrypted + // snapshot in a future request. + // + // Customer-supplied encryption keys do not protect access to metadata + // of the snapshot. + // + // If you do not provide an encryption key when creating the snapshot, then + // the snapshot will be encrypted using an automatically generated key and you + // do not need to provide a key to use the snapshot later. optional CustomerEncryptionKey snapshot_encryption_key = 43334526; // Indicates the type of the snapshot. @@ -39447,45 +73481,73 @@ message Snapshot { // The source disk used to create this snapshot. optional string source_disk = 451753793; - // The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. + // The customer-supplied + // encryption key of the source disk. Required if the source disk is + // protected by a customer-supplied encryption key. optional CustomerEncryptionKey source_disk_encryption_key = 531501153; - // The source disk whose recovery checkpoint will be used to create this snapshot. + // The source disk whose recovery checkpoint will be used to create this + // snapshot. optional string source_disk_for_recovery_checkpoint = 359837950; - // [Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name. + // [Output Only] The ID value of the disk used to create this snapshot. This + // value may be used to determine whether the snapshot was taken from the + // current or a previous instance of a given disk name. optional string source_disk_id = 454190809; - // The source instant snapshot used to create this snapshot. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instantSnapshots/instantSnapshot - projects/project/zones/zone/instantSnapshots/instantSnapshot - zones/zone/instantSnapshots/instantSnapshot + // The source instant snapshot used to create this snapshot. You can provide + // this as a partial or full URL to the resource. For example, the following + // are valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot + // - projects/project/zones/zone/instantSnapshots/instantSnapshot + // - zones/zone/instantSnapshots/instantSnapshot optional string source_instant_snapshot = 219202054; - // Customer provided encryption key when creating Snapshot from Instant Snapshot. + // Customer provided encryption key when creating Snapshot from Instant + // Snapshot. optional CustomerEncryptionKey source_instant_snapshot_encryption_key = 436536060; - // [Output Only] The unique ID of the instant snapshot used to create this snapshot. This value identifies the exact instant snapshot that was used to create this snapshot. For example, if you created the snapshot from an instant snapshot that was later deleted and recreated under the same name, the source instant snapshot ID would identify the exact instant snapshot that was used. + // [Output Only] The unique ID of the instant snapshot used to create this + // snapshot. This value identifies the exact instant snapshot that was used to + // create this snapshot. For example, if you created the snapshot from an + // instant snapshot that was later deleted and recreated under the same name, + // the source instant snapshot ID would identify the exact instant snapshot + // that was used. optional string source_instant_snapshot_id = 287582708; - // [Output Only] URL of the resource policy which created this scheduled snapshot. + // [Output Only] URL of the resource policy which created this + // scheduled snapshot. optional string source_snapshot_schedule_policy = 235756291; - // [Output Only] ID of the resource policy which created this scheduled snapshot. + // [Output Only] ID of the resource policy which created this + // scheduled snapshot. optional string source_snapshot_schedule_policy_id = 70489047; - // [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. + // [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or UPLOADING. // Check the Status enum for the list of possible values. optional string status = 181260274; - // [Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion. + // [Output Only] A size of the storage used by the snapshot. As snapshots + // share storage, this number is expected to change with snapshot + // creation/deletion. optional int64 storage_bytes = 424631719; - // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + // [Output Only] An indicator whether storageBytes is in a + // stable state or it is being adjusted as a result of shared storage + // reallocation. This status can either be UPDATING, meaning + // the size of the snapshot is being updated, or UP_TO_DATE, + // meaning the size of the snapshot is up-to-date. // Check the StorageBytesStatus enum for the list of possible values. optional string storage_bytes_status = 490739082; - // Cloud Storage bucket storage location of the snapshot (regional or multi-regional). + // Cloud Storage bucket storage location of the snapshot (regional or + // multi-regional). repeated string storage_locations = 328005274; - // [Output Only] A list of user provided licenses represented by a list of URLs to the license resource. + // [Output Only] A list of user provided licenses represented by a list of + // URLs to the license resource. repeated string user_licenses = 388193862; } @@ -39500,10 +73562,15 @@ message SnapshotAggregatedList { // A list of SnapshotsScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#snapshotAggregatedList for aggregated lists of snapshots. + // [Output Only] Type of resource. Alwayscompute#snapshotAggregatedList for aggregated lists of + // snapshots. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -39528,7 +73595,11 @@ message SnapshotList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -39541,17 +73612,23 @@ message SnapshotList { // Additional snapshot params. message SnapshotParams { - // Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + // Resource manager tags to be bound to the snapshot. Tag keys and values have + // the same definition as resource + // manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and + // values are in the format `tagValues/456`. The field is ignored (both PUT & + // PATCH) when empty. map resource_manager_tags = 377671164; } // message SnapshotSettings { - // (Regional snapshots use only)Policy of which location is allowed to access snapshot. + // (Regional snapshots use only)Policy of which location is allowed to access + // snapshot. optional SnapshotSettingsAccessLocation access_location = 18410544; - // Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out. + // Policy of which storage location is going to be resolved, and additional + // data that particularizes how the policy is going to be carried out. optional SnapshotSettingsStorageLocationSettings storage_location = 460859641; } @@ -39568,12 +73645,14 @@ message SnapshotSettingsAccessLocation { POLICY_UNSPECIFIED = 197974922; - // Only allowlisted regions will be able to restore region scoped snapshots + // Only allowlisted regions will be able to restore region scoped + // snapshots SPECIFIC_REGIONS = 454128082; } - // List of regions that can restore a regional snapshot from the current region + // List of regions that can restore a regional + // snapshot from the current region map locations = 413423454; // Policy of which location is allowed to access snapshot. @@ -39596,20 +73675,26 @@ message SnapshotSettingsStorageLocationSettings { // A value indicating that the enum field is not set. UNDEFINED_POLICY = 0; - // Store snapshot in the same region as with the originating disk. No additional parameters are needed. + // Store snapshot in the same region as with the originating disk. + // No additional parameters are needed. LOCAL_REGION = 403535464; - // Store snapshot in the nearest multi region Cloud Storage bucket, relative to the originating disk. No additional parameters are needed. + // Store snapshot in the nearest multi region Cloud Storage bucket, + // relative to the originating disk. No additional parameters are needed. NEAREST_MULTI_REGION = 212467515; - // Store snapshot in the specific locations, as specified by the user. The list of regions to store must be defined under the `locations` field. + // Store snapshot in the specific locations, as specified by the user. + // The list of regions to store must be defined under the `locations` + // field. SPECIFIC_LOCATIONS = 280093809; STORAGE_LOCATION_POLICY_UNSPECIFIED = 250644592; } - // When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified. + // When the policy is SPECIFIC_LOCATIONS, snapshots will be stored + // in the locations listed in this field. Keys are Cloud Storage bucket + // locations. Only one location can be specified. map locations = 413423454; // The chosen location policy. @@ -39620,7 +73705,8 @@ message SnapshotSettingsStorageLocationSettings { // A structure for specifying storage locations. message SnapshotSettingsStorageLocationSettingsStorageLocationPreference { - // Name of the location. It should be one of the Cloud Storage buckets. Only one location can be specified. + // Name of the location. It should be one of the Cloud Storage buckets. + // Only one location can be specified. optional string name = 3373707; } @@ -39630,31 +73716,46 @@ message SnapshotsScopedList { // [Output Only] A list of snapshots contained in this scope. repeated Snapshot snapshots = 241165103; - // [Output Only] Informational warning which replaces the list of snapshots when the list is empty. + // [Output Only] Informational warning which replaces the list of snapshots + // when the list is empty. optional Warning warning = 50704284; } // message SourceDiskEncryptionKey { - // The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. + // Thecustomer-supplied + // encryption key of the source disk. Required if the source disk is + // protected by a customer-supplied encryption key. optional CustomerEncryptionKey disk_encryption_key = 271660677; - // URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk + // URL of the disk attached to the source instance. This can be a full or + // valid partial URL. For example, the following are valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + // - projects/project/zones/zone/disks/disk + // - zones/zone/disks/disk optional string source_disk = 451753793; } -// A specification of the parameters to use when creating the instance template from a source instance. +// A specification of the parameters to use when creating the instance template +// from a source instance. message SourceInstanceParams { - // Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes. + // Attached disks configuration. If not provided, defaults are applied: + // For boot disk and any other R/W disks, the source images for each disk + // will be used. For read-only disks, they will be attached in read-only + // mode. Local SSD disks will be created as blank volumes. repeated DiskInstantiationConfig disk_configs = 235580623; } -// DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to this field. +// DEPRECATED: Please use compute#instanceProperties instead. +// New properties will not be added to this field. message SourceInstanceProperties { - // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + // KeyRevocationActionType of the instance. Supported options are "STOP" and + // "NONE". The default value is "NONE" if it is not specified. enum KeyRevocationActionType { // A value indicating that the enum field is not set. UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; @@ -39686,35 +73787,54 @@ message SourceInstanceProperties { } - // Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information. + // Enables instances created based on this machine image to send packets with + // source IP addresses other than their own and receive packets with + // destination IP addresses other than their own. If these instances will be + // used as an IP gateway or it will be set as the next-hop in a Route + // resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding + // documentation for more information. optional bool can_ip_forward = 467731324; - // Whether the instance created from this machine image should be protected against deletion. + // Whether the instance created from this machine image should be protected + // against deletion. optional bool deletion_protection = 458014698; - // An optional text description for the instances that are created from this machine image. + // An optional text description for the instances that are created from this + // machine image. optional string description = 422937596; - // An array of disks that are associated with the instances that are created from this machine image. + // An array of disks that are associated with the instances that are created + // from this machine image. repeated SavedAttachedDisk disks = 95594102; - // A list of guest accelerator cards' type and count to use for instances created from this machine image. + // A list of guest accelerator cards' type and count to use for instances + // created from this machine image. repeated AcceleratorConfig guest_accelerators = 463595119; - // KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + // KeyRevocationActionType of the instance. Supported options are "STOP" and + // "NONE". The default value is "NONE" if it is not specified. // Check the KeyRevocationActionType enum for the list of possible values. optional string key_revocation_action_type = 235941474; // Labels to apply to instances that are created from this machine image. map labels = 500195327; - // The machine type to use for instances that are created from this machine image. + // The machine type to use for instances that are created from this machine + // image. optional string machine_type = 227711026; - // The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information. + // The metadata key/value pairs to assign to instances that are created from + // this machine image. These pairs can consist of custom metadata or + // predefined keys. SeeProject and + // instance metadata for more information. optional Metadata metadata = 86866735; - // Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform. + // Minimum cpu/platform to be used by instances created from this machine + // image. The instance may be scheduled on the specified or newer + // cpu/platform. Applicable values are the friendly names of CPU platforms, + // such as minCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more + // information, read Specifying a + // Minimum CPU Platform. optional string min_cpu_platform = 242912759; // An array of network access configurations for this interface. @@ -39724,20 +73844,60 @@ message SourceInstanceProperties { // Check the PostKeyRevocationActionType enum for the list of possible values. optional string post_key_revocation_action_type = 292972897; - // Specifies the scheduling options for the instances that are created from this machine image. + // Specifies the scheduling options for the instances that are created from + // this machine image. optional Scheduling scheduling = 386688404; - // A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances. + // A list of service accounts with specified scopes. Access tokens for these + // service accounts are available to the instances that are created from this + // machine image. Use metadata queries to obtain the access tokens for these + // instances. repeated ServiceAccount service_accounts = 277537328; - // A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035. + // A list of tags to apply to the instances that are created from this machine + // image. The tags identify valid sources or targets for network firewalls. + // The setTags method can modify this list of tags. Each tag within the list + // must comply withRFC1035. optional Tags tags = 3552281; } -// Represents an SSL certificate resource. Google Compute Engine has two SSL certificate resources: * [Global](/compute/docs/reference/rest/beta/sslCertificates) * [Regional](/compute/docs/reference/rest/beta/regionSslCertificates) The global SSL certificates (sslCertificates) are used by: - Global external Application Load Balancers - Classic Application Load Balancers - Proxy Network Load Balancers (with target SSL proxies) The regional SSL certificates (regionSslCertificates) are used by: - Regional external Application Load Balancers - Regional internal Application Load Balancers Optionally, certificate file contents that you upload can contain a set of up to five PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this data. You can use SSL keys and certificates to secure connections to a load balancer. For more information, read Creating and using SSL certificates, SSL certificates quotas and limits, and Troubleshooting SSL certificates. +// Represents an SSL certificate resource. +// +// Google Compute Engine has two SSL certificate resources: +// +// * [Global](/compute/docs/reference/rest/beta/sslCertificates) +// * [Regional](/compute/docs/reference/rest/beta/regionSslCertificates) +// +// +// The global SSL certificates (sslCertificates) are used by: +// +// - Global external Application Load Balancers +// - Classic Application Load Balancers +// - Proxy Network Load Balancers (with target SSL proxies) +// +// +// +// The regional SSL certificates (regionSslCertificates) are used +// by: +// +// - Regional external Application Load Balancers +// - Regional internal Application Load Balancers +// +// +// +// Optionally, certificate file contents that you upload can contain a set of up +// to five PEM-encoded certificates. +// The API call creates an object (sslCertificate) that holds this data. +// You can use SSL keys and certificates to secure connections to a load +// balancer. +// For more information, read +// Creating and using SSL certificates,SSL certificates +// quotas and limits, and +// Troubleshooting SSL certificates. message SslCertificate { - // (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used. + // (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or + // "MANAGED". If not specified, the certificate is self-managed and the fieldscertificate and private_key are used. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -39752,34 +73912,48 @@ message SslCertificate { } - // A value read into memory from a certificate file. The certificate file must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. + // A value read into memory from a certificate file. The certificate file must + // be in PEM format. The certificate chain must be no greater than 5 certs + // long. The chain must include at least one intermediate cert. optional string certificate = 341787031; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; // [Output Only] Expire time of the certificate. RFC3339 optional string expire_time = 440691181; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#sslCertificate for SSL certificates. + // [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. optional string kind = 3292052; // Configuration and status of a managed SSL certificate. optional SslCertificateManagedSslCertificate managed = 298389407; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // A value read into memory from a write-only private key file. The private key file must be in PEM format. For security, only insert requests include this field. + // A value read into memory from a write-only private key file. The private + // key file must be in PEM format. For security, only insert + // requests include this field. optional string private_key = 361331107; - // [Output Only] URL of the region where the regional SSL Certificate resides. This field is not applicable to global SSL Certificate. + // [Output Only] URL of the region where the regional SSL Certificate + // resides. This field is not applicable to global SSL Certificate. optional string region = 138946292; // [Output only] Server-defined URL for the resource. @@ -39788,10 +73962,12 @@ message SslCertificate { // Configuration and status of a self-managed SSL certificate. optional SslCertificateSelfManagedSslCertificate self_managed = 329284012; - // [Output Only] Domains associated with the certificate via Subject Alternative Name. + // [Output Only] Domains associated with the certificate via Subject + // Alternative Name. repeated string subject_alternative_names = 528807907; - // (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used. + // (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or + // "MANAGED". If not specified, the certificate is self-managed and the fieldscertificate and private_key are used. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -39805,10 +73981,15 @@ message SslCertificateAggregatedList { // A list of SslCertificatesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#sslCertificateAggregatedList for lists of SSL Certificates. + // [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for lists of SSL + // Certificates. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -39833,7 +74014,11 @@ message SslCertificateList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -39851,29 +74036,44 @@ message SslCertificateManagedSslCertificate { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; - // The certificate management is working, and a certificate has been provisioned. + // The certificate management is working, and a certificate has been + // provisioned. ACTIVE = 314733318; MANAGED_CERTIFICATE_STATUS_UNSPECIFIED = 474800850; - // The certificate management is working. GCP will attempt to provision the first certificate. + // The certificate management is working. GCP will attempt to provision + // the first certificate. PROVISIONING = 290896621; - // Certificate provisioning failed due to an issue with the DNS or load balancing configuration. For details of which domain failed, consult domain_status field. + // Certificate provisioning failed due to an issue with the DNS + // or load balancing configuration. + // For details of which domain failed, consult domain_status field. PROVISIONING_FAILED = 76813775; - // Certificate provisioning failed due to an issue with the DNS or load balancing configuration. It won't be retried. To try again delete and create a new managed SslCertificate resource. For details of which domain failed, consult domain_status field. + // Certificate provisioning failed due to an issue with the DNS + // or load balancing configuration. It won't be retried. To try again + // delete and create a new managed SslCertificate resource. + // For details of which domain failed, consult domain_status field. PROVISIONING_FAILED_PERMANENTLY = 275036203; - // Renewal of the certificate has failed due to an issue with the DNS or load balancing configuration. The existing cert is still serving; however, it will expire shortly. To provision a renewed certificate, delete and create a new managed SslCertificate resource. For details on which domain failed, consult domain_status field. + // Renewal of the certificate has failed due to an issue with the DNS + // or load balancing configuration. The existing cert is still serving; + // however, it will expire shortly. To provision a renewed certificate, + // delete and create a new managed SslCertificate resource. + // For details on which domain failed, consult domain_status field. RENEWAL_FAILED = 434659076; } - // [Output only] Detailed statuses of the domains specified for managed certificate resource. + // [Output only] Detailed statuses of the domains specified for managed + // certificate resource. map domain_status = 360305613; - // The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](/load-balancing/docs/quotas#ssl_certificates). + // The domains for which a managed SSL certificate will be generated. Each + // Google-managed SSL certificate supports up to the [maximum number of + // domains per Google-managed SSL + // certificate](/load-balancing/docs/quotas#ssl_certificates). repeated string domains = 226935855; // [Output only] Status of the managed certificate resource. @@ -39884,10 +74084,13 @@ message SslCertificateManagedSslCertificate { // Configuration and status of a self-managed SSL certificate. message SslCertificateSelfManagedSslCertificate { - // A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. + // A local certificate file. The certificate must be in + // PEM format. The certificate chain must be no greater than 5 certs + // long. The chain must include at least one intermediate cert. optional string certificate = 341787031; - // A write-only private key in PEM format. Only insert requests will include this field. + // A write-only private key in PEM format. Only insert + // requests will include this field. optional string private_key = 361331107; } @@ -39897,7 +74100,8 @@ message SslCertificatesScopedList { // List of SslCertificates contained in this scope. repeated SslCertificate ssl_certificates = 366006543; - // Informational warning which replaces the list of backend services when the list is empty. + // Informational warning which replaces the list of + // backend services when the list is empty. optional Warning warning = 50704284; } @@ -39912,10 +74116,14 @@ message SslPoliciesAggregatedList { // A list of SslPoliciesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#sslPolicyAggregatedList for lists of SSL Policies. + // [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of SSL Policies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -39937,10 +74145,14 @@ message SslPoliciesList { // A list of SslPolicy resources. repeated SslPolicy items = 100526016; - // [Output Only] Type of the resource. Always compute#sslPoliciesList for lists of sslPolicies. + // [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -39962,14 +74174,22 @@ message SslPoliciesScopedList { // A list of SslPolicies contained in this scope. repeated SslPolicy ssl_policies = 209941027; - // Informational warning which replaces the list of SSL policies when the list is empty. + // Informational warning which replaces the list of + // SSL policies when the list is empty. optional Warning warning = 50704284; } -// Represents an SSL Policy resource. Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application Load Balancers and proxy Network Load Balancers. For more information, read SSL policies overview. +// Represents an SSL Policy resource. +// +// Use SSL policies to control SSL features, such as versions and cipher +// suites, that are offered by Application Load Balancers and proxy Network Load +// Balancers. For more information, read +// SSL policies overview. message SslPolicy { - // The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. + // The minimum version of SSL protocol that can be used by the clients to + // establish a connection with the load balancer. This can be one ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to TLS_1_3, the profile field + // must be set to RESTRICTED. enum MinTlsVersion { // A value indicating that the enum field is not set. UNDEFINED_MIN_TLS_VERSION = 0; @@ -39983,73 +74203,112 @@ message SslPolicy { // TLS 1.2 TLS_1_2 = 33116736; + // TLS 1.3 + TLS_1_3 = 33116737; + } - // Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + // Profile specifies the set of SSL features that can be used by the load + // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, the set of SSL features + // to enable must be specified in the customFeatures field. enum Profile { // A value indicating that the enum field is not set. UNDEFINED_PROFILE = 0; - // Compatible profile. Allows the broadset set of clients, even those which support only out-of-date SSL features to negotiate with the load balancer. + // Compatible profile. Allows the broadset set of clients, even those which + // support only out-of-date SSL features to negotiate with the load + // balancer. COMPATIBLE = 179357396; - // Custom profile. Allow only the set of allowed SSL features specified in the customFeatures field. + // Custom profile. Allow only the set of allowed SSL features specified in + // the customFeatures field. CUSTOM = 388595569; - // Modern profile. Supports a wide set of SSL features, allowing modern clients to negotiate SSL with the load balancer. + // FIPS compatible profile. Supports a reduced set of SSL features, + // intended to meet FIPS 140-3 compliance requirements. + FIPS_202205 = 475828188; + + // Modern profile. Supports a wide set of SSL features, allowing modern + // clients to negotiate SSL with the load balancer. MODERN = 132013855; - // Restricted profile. Supports a reduced set of SSL features, intended to meet stricter compliance requirements. + // Restricted profile. Supports a reduced set of SSL features, intended to + // meet stricter compliance requirements. RESTRICTED = 261551195; } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. + // A list of features enabled when the selected profile is CUSTOM. The + // method returns the set of features that can be + // specified in this list. This field must be empty if the profile is notCUSTOM. repeated string custom_features = 34789707; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; // [Output Only] The list of features enabled in the SSL policy. repeated string enabled_features = 469017467; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a SslPolicy. An up-to-date fingerprint must be + // provided in order to update the SslPolicy, otherwise the + // request will fail with error 412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve an SslPolicy. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. + // [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. optional string kind = 3292052; - // The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. + // The minimum version of SSL protocol that can be used by the clients to + // establish a connection with the load balancer. This can be one ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to TLS_1_3, the profile field + // must be set to RESTRICTED. // Check the MinTlsVersion enum for the list of possible values. optional string min_tls_version = 8155943; - // Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. The name must be 1-63 characters long, and comply + // with RFC1035. Specifically, the name must be 1-63 characters + // long and match the regular expression + // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + // must be a lowercase letter, and all following characters must be a dash, + // lowercase letter, or digit, except the last character, which cannot be a + // dash. optional string name = 3373707; - // Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + // Profile specifies the set of SSL features that can be used by the load + // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, the set of SSL features + // to enable must be specified in the customFeatures field. // Check the Profile enum for the list of possible values. optional string profile = 227445161; - // [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. + // [Output Only] URL of the region where the regional SSL policy + // resides. This field is not applicable to global SSL policies. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. + // [Output Only] If potential misconfigurations are detected for this + // SSL policy, this field will be populated with warning messages. repeated Warnings warnings = 498091095; } // message SslPolicyReference { - // URL of the SSL policy resource. Set this to empty string to clear any existing SSL policy associated with the target proxy resource. + // URL of the SSL policy resource. Set this to empty string to clear any + // existing SSL policy associated with the target proxy resource. optional string ssl_policy = 295190213; } @@ -40068,7 +74327,19 @@ message StartAsyncReplicationDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -40099,7 +74370,19 @@ message StartAsyncReplicationRegionDiskRequest { // The body resource for this request RegionDisksStartAsyncReplicationRequest region_disks_start_async_replication_request_resource = 474326021 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -40115,7 +74398,19 @@ message StartInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -40140,10 +74435,23 @@ message StartInstancesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -40171,7 +74479,19 @@ message StartInstancesRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -40190,7 +74510,19 @@ message StartWithEncryptionKeyInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -40209,20 +74541,30 @@ message StatefulPolicy { // Configuration of preserved resources. message StatefulPolicyPreservedState { - // Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks. + // Disks created on the instances that will be preserved on instance + // delete, update, etc. This map is keyed with the device names of + // the disks. map disks = 95594102; - // External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. + // External network IPs assigned to the instances that will be preserved on + // instance delete, update, etc. This map is keyed with the network + // interface name. map external_i_ps = 532687245; - // Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name. + // Internal network IPs assigned to the instances that will be preserved on + // instance delete, update, etc. This map is keyed with the network + // interface name. map internal_i_ps = 215731675; } // message StatefulPolicyPreservedStateDiskDevice { - // These stateful disks will never be deleted during autohealing, update or VM instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. + // These stateful disks will never be deleted during autohealing, + // update or VM instance recreate operations. + // This flag is used to configure if the disk should be deleted after it + // is no longer used by the group, e.g. when the given instance or + // the whole group is deleted. Note: disks attached inREAD_ONLY mode cannot be auto-deleted. enum AutoDelete { // A value indicating that the enum field is not set. UNDEFINED_AUTO_DELETE = 0; @@ -40233,7 +74575,11 @@ message StatefulPolicyPreservedStateDiskDevice { } - // These stateful disks will never be deleted during autohealing, update or VM instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. + // These stateful disks will never be deleted during autohealing, + // update or VM instance recreate operations. + // This flag is used to configure if the disk should be deleted after it + // is no longer used by the group, e.g. when the given instance or + // the whole group is deleted. Note: disks attached inREAD_ONLY mode cannot be auto-deleted. // Check the AutoDelete enum for the list of possible values. optional string auto_delete = 464761403; @@ -40241,7 +74587,11 @@ message StatefulPolicyPreservedStateDiskDevice { // message StatefulPolicyPreservedStateNetworkIp { - // These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. + // These stateful IPs will never be released during autohealing, + // update or VM instance recreate operations. + // This flag is used to configure if the IP reservation should be deleted + // after it is no longer used by the group, e.g. when the given instance + // or the whole group is deleted. enum AutoDelete { // A value indicating that the enum field is not set. UNDEFINED_AUTO_DELETE = 0; @@ -40252,21 +74602,34 @@ message StatefulPolicyPreservedStateNetworkIp { } - // These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. + // These stateful IPs will never be released during autohealing, + // update or VM instance recreate operations. + // This flag is used to configure if the IP reservation should be deleted + // after it is no longer used by the group, e.g. when the given instance + // or the whole group is deleted. // Check the AutoDelete enum for the list of possible values. optional string auto_delete = 464761403; } -// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). +// The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by [gRPC](https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. +// +// You can find out more about this error model and how to work with it in the +// [API Design Guide](https://cloud.google.com/apis/design/errors). message Status { // The status code, which should be an enum value of google.rpc.Code. optional int32 code = 3059181; - // A list of messages that carry the error details. There is a common set of message types for APIs to use. + // A list of messages that carry the error details. There is a common set of + // message types for APIs to use. repeated google.protobuf.Any details = 483979842; - // A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + // A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. optional string message = 418054151; } @@ -40282,7 +74645,19 @@ message StopAsyncReplicationDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -40310,7 +74685,19 @@ message StopAsyncReplicationRegionDiskRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -40326,10 +74713,23 @@ message StopGroupAsyncReplicationDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone for this request. This must be the zone of the primary or secondary disks in the consistency group. + // The name of the zone for this request. This must be the zone of the primary + // or secondary disks in the consistency group. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -40348,20 +74748,35 @@ message StopGroupAsyncReplicationRegionDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region for this request. This must be the region of the primary or secondary disks in the consistency group. + // The name of the region for this request. This must be the region of the + // primary or secondary disks in the consistency group. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for Instances.Stop. See the method description for details. message StopInstanceRequest { - // This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. + // This property is required if the instance has any attached Local SSD disks. + // If false, Local SSD data will be preserved when the instance is suspended. + // If true, the contents of any attached Local SSD disks will be discarded. optional bool discard_local_ssd = 319517903; // Name of the instance resource to stop. @@ -40376,7 +74791,19 @@ message StopInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -40401,10 +74828,23 @@ message StopInstancesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -40432,7 +74872,19 @@ message StopInstancesRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -40450,7 +74902,8 @@ message StoragePool { } - // Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS. + // Provisioning type of the performance-related parameters of the pool, + // such as throughput and IOPS. // Additional supported values which may be not listed in the enum directly due to technical reasons: // ADVANCED // STANDARD @@ -40461,7 +74914,14 @@ message StoragePool { } - // [Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. + // [Output Only] The status of storage pool creation. + // + // + // - CREATING: Storage pool is provisioning. + // storagePool. + // - FAILED: Storage pool creation failed. + // - READY: Storage pool is ready for use. + // - DELETING: Storage pool is deleting. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -40484,38 +74944,61 @@ message StoragePool { // Check the CapacityProvisioningType enum for the list of possible values. optional string capacity_provisioning_type = 251610375; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#storagePool for storage pools. + // [Output Only] Type of the resource. Always compute#storagePool + // for storage pools. optional string kind = 3292052; - // A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a storage pool. + // A fingerprint for the labels being applied to this storage pool, which is + // essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a storage pool. optional string label_fingerprint = 178124825; - // Labels to apply to this storage pool. These can be later modified by the setLabels method. + // Labels to apply to this storage pool. These can be later modified by + // the setLabels method. map labels = 500195327; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` + // which means the first character must be a lowercase letter, and all + // following characters must be a dash, lowercase letter, or digit, except + // the last character, which cannot be a dash. optional string name = 3373707; - // Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS. + // Provisioning type of the performance-related parameters of the pool, + // such as throughput and IOPS. // Check the PerformanceProvisioningType enum for the list of possible values. optional string performance_provisioning_type = 468553469; - // Size of the storage pool in GiB. For more information about the size limits, see https://cloud.google.com/compute/docs/disks/storage-pools. + // Size of the storage pool in GiB. For more information about the size + // limits, see https://cloud.google.com/compute/docs/disks/storage-pools. optional int64 pool_provisioned_capacity_gb = 478537682; - // Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced. + // Provisioned IOPS of the storage pool. Only relevant if the storage pool + // type is hyperdisk-balanced. optional int64 pool_provisioned_iops = 112092311; - // Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is hyperdisk-balanced or hyperdisk-throughput. + // Provisioned throughput of the storage pool in MiB/s. Only relevant if the + // storage pool type is hyperdisk-balanced or hyperdisk-throughput. optional int64 pool_provisioned_throughput = 169215640; // [Output Only] Status information for the storage pool resource. @@ -40527,7 +75010,14 @@ message StoragePool { // [Output Only] Server-defined URL for this resource's resource id. optional string self_link_with_id = 44520962; - // [Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. + // [Output Only] The status of storage pool creation. + // + // + // - CREATING: Storage pool is provisioning. + // storagePool. + // - FAILED: Storage pool creation failed. + // - READY: Storage pool is ready for use. + // - DELETING: Storage pool is deleting. // Check the State enum for the list of possible values. optional string state = 109757585; @@ -40537,7 +75027,9 @@ message StoragePool { // Type of the storage pool. optional string storage_pool_type = 285999289; - // [Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the zone where the storage pool resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string zone = 3744684; } @@ -40552,10 +75044,15 @@ message StoragePoolAggregatedList { // A list of StoragePoolsScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#storagePoolAggregatedList for aggregated lists of storage pools. + // [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for aggregated lists of + // storage pools. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -40591,7 +75088,8 @@ message StoragePoolDisk { // Source data is being copied into the disk. RESTORING = 404263851; - // Disk is currently unavailable and cannot be accessed, attached or detached. + // Disk is currently unavailable and cannot be accessed, attached or + // detached. UNAVAILABLE = 413756464; } @@ -40599,7 +75097,8 @@ message StoragePoolDisk { // [Output Only] Instances this disk is attached to. repeated string attached_instances = 65255843; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // [Output Only] The URL of the disk. @@ -40614,7 +75113,8 @@ message StoragePoolDisk { // [Output Only] The throughput provisioned for the disk. optional int64 provisioned_throughput = 526524181; - // [Output Only] Resource policies applied to disk for automatic snapshot creations. + // [Output Only] Resource policies applied to disk for automatic snapshot + // creations. repeated string resource_policies = 22220385; // [Output Only] The disk size, in GB. @@ -40642,16 +75142,22 @@ message StoragePoolList { // A list of StoragePool resources. repeated StoragePool items = 100526016; - // [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + // [Output Only] Type of resource. Always compute#storagePoolList + // for lists of storagePools. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -40669,16 +75175,22 @@ message StoragePoolListDisks { // A list of StoragePoolDisk resources. repeated StoragePoolDisk items = 100526016; - // [Output Only] Type of resource. Always compute#storagePoolListDisks for lists of disks in a storagePool. + // [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a + // storagePool. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -40691,50 +75203,63 @@ message StoragePoolResourceStatus { // [Output Only] Number of disks used. optional int64 disk_count = 182933485; - // [Output Only] Timestamp of the last successful resize in RFC3339 text format. + // [Output Only] Timestamp of the last successful resize inRFC3339 text format. optional string last_resize_timestamp = 500825556; // [Output Only] Maximum allowed aggregate disk size in GiB. optional int64 max_total_provisioned_disk_capacity_gb = 165818207; - // [Output Only] Space used by data stored in disks within the storage pool (in bytes). This will reflect the total number of bytes written to the disks in the pool, in contrast to the capacity of those disks. + // [Output Only] Space used by data stored in disks within the storage pool + // (in bytes). This will reflect the total number of bytes written to the + // disks in the pool, in contrast to the capacity of those disks. optional int64 pool_used_capacity_bytes = 510407877; - // [Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per disk that is not counted towards pool's IOPS capacity. For more information, see https://cloud.google.com/compute/docs/disks/storage-pools. + // [Output Only] Sum of all the disks' provisioned IOPS, minus some amount + // that is allowed per disk that is not counted towards pool's IOPS + // capacity. For more information, see + // https://cloud.google.com/compute/docs/disks/storage-pools. optional int64 pool_used_iops = 99558536; // [Output Only] Sum of all the disks' provisioned throughput in MiB/s. optional int64 pool_used_throughput = 206130633; - // [Output Only] Amount of data written into the pool, before it is compacted. + // [Output Only] Amount of data written into the pool, before it is + // compacted. optional int64 pool_user_written_bytes = 228964050; - // [Output Only] Sum of all the disks' provisioned capacity (in GiB) in this storage pool. A disk's provisioned capacity is the same as its total capacity. + // [Output Only] Sum of all the disks' provisioned capacity (in GiB) in + // this storage pool. A disk's provisioned capacity is the same as its total + // capacity. optional int64 total_provisioned_disk_capacity_gb = 520930980; // [Output Only] Sum of all the disks' provisioned IOPS. optional int64 total_provisioned_disk_iops = 32812549; - // [Output Only] Sum of all the disks' provisioned throughput in MiB/s, minus some amount that is allowed per disk that is not counted towards pool's throughput capacity. + // [Output Only] Sum of all the disks' provisioned throughput in MiB/s, + // minus some amount that is allowed per disk that is not counted towards + // pool's throughput capacity. optional int64 total_provisioned_disk_throughput = 447677830; } // message StoragePoolType { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // [Output Only] The deprecation status associated with this storage pool type. + // [Output Only] The deprecation status associated with this storage pool + // type. optional DeprecationStatus deprecated = 515138995; // [Output Only] An optional description of this resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#storagePoolType for storage pool types. + // [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. optional string kind = 3292052; // [Output Only] Maximum storage pool size in GB. @@ -40755,7 +75280,8 @@ message StoragePoolType { // [Output Only] Minimum provisioned throughput. optional int64 min_pool_provisioned_throughput = 367761963; - // [Deprecated] This field is deprecated. Use minPoolProvisionedCapacityGb instead. + // [Deprecated] This field is deprecated. Use minPoolProvisionedCapacityGb + // instead. optional int64 min_size_gb = 385278188; // [Output Only] Name of the resource. @@ -40770,7 +75296,9 @@ message StoragePoolType { // [Output Only] The list of disk types supported in this storage pool type. repeated string supported_disk_types = 150587272; - // [Output Only] URL of the zone where the storage pool type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the zone where the storage pool type resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string zone = 3744684; } @@ -40783,10 +75311,14 @@ message StoragePoolTypeAggregatedList { // A list of StoragePoolTypesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#storagePoolTypeAggregatedList . + // [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -40805,10 +75337,14 @@ message StoragePoolTypeList { // A list of StoragePoolType resources. repeated StoragePoolType items = 100526016; - // [Output Only] Type of resource. Always compute#storagePoolTypeList for storage pool types. + // [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -40824,7 +75360,8 @@ message StoragePoolTypesScopedList { // [Output Only] A list of storage pool types contained in this scope. repeated StoragePoolType storage_pool_types = 276043482; - // [Output Only] Informational warning which replaces the list of storage pool types when the list is empty. + // [Output Only] Informational warning which replaces the list of storage pool + // types when the list is empty. optional Warning warning = 50704284; } @@ -40834,36 +75371,56 @@ message StoragePoolsScopedList { // [Output Only] A list of storage pool contained in this scope. repeated StoragePool storage_pools = 437258515; - // [Output Only] Informational warning which replaces the list of storage pool when the list is empty. + // [Output Only] Informational warning which replaces the list of storage pool + // when the list is empty. optional Warning warning = 50704284; } // message StructuredEntries { - // Map of a partner metadata that belong to the same subdomain. It accepts any value including google.protobuf.Struct. + // Map of a partner metadata that belong to the same subdomain. + // It accepts any value including google.protobuf.Struct. map entries = 19039376; } -// Represents a Subnetwork resource. A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network. +// Represents a Subnetwork resource. +// +// A subnetwork (also known as a subnet) is a logical partition of a Virtual +// Private Cloud network with one primary IP range and zero or more secondary +// IP ranges. For more information, read +// Virtual Private Cloud (VPC) Network. message Subnetwork { - // The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + // The access type of IPv6 address this subnet holds. It's immutable and can + // only be specified during creation or the first time the subnet is updated + // into IPV4_IPV6 dual stack. enum Ipv6AccessType { // A value indicating that the enum field is not set. UNDEFINED_IPV6_ACCESS_TYPE = 0; - // VMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network. + // VMs on this subnet will be assigned IPv6 addresses that are accessible + // via the Internet, as well as the VPC network. EXTERNAL = 35607499; - // VMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network. + // VMs on this subnet will be assigned IPv6 addresses that are only + // accessible over the VPC network. INTERNAL = 279295677; UNSPECIFIED_IPV6_ACCESS_TYPE = 313080613; } - // [Output Only] Possible endpoints of this subnetwork. It can be one of the following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from Google IP Pool directly. + // [Output Only] Possible endpoints of this subnetwork. It can be one of the + // following: + // + // - VM_ONLY: The subnetwork can be used for creating instances and + // IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6 + // ranges from a public delegated prefix and cannot be used to create NetLb. + // - VM_AND_FR: The subnetwork can be used for creating both VM + // instances and Forwarding Rules. It can also be used to reserve IPv6 + // addresses with both VM and FR endpoint types. Such a subnetwork gets its + // IPv6 range from Google IP Pool directly. enum Ipv6GceEndpoint { // A value indicating that the enum field is not set. UNDEFINED_IPV6_GCE_ENDPOINT = 0; @@ -40874,7 +75431,9 @@ message Subnetwork { } - // This field is for internal use. This field can be both set at resource creation time and updated using patch. + // This field is for internal use. + // + // This field can be both set at resource creation time and updated usingpatch. enum PrivateIpv6GoogleAccess { // A value indicating that the enum field is not set. UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS = 0; @@ -40898,10 +75457,13 @@ message Subnetwork { // Subnet reserved for Global Envoy-based Load Balancing. GLOBAL_MANAGED_PROXY = 236463602; - // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY instead. + // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy + // purpose, please use REGIONAL_MANAGED_PROXY instead. INTERNAL_HTTPS_LOAD_BALANCER = 248748889; - // Subnetwork will be used for Migration from one peered VPC to another. (a transient state of subnetwork while migrating resources from one project to another). + // Subnetwork will be used for Migration from one peered VPC to another. + // (a transient state of subnetwork + // while migrating resources from one project to another). PEER_MIGRATION = 491902225; // Regular user created or automatically created subnet. @@ -40934,7 +75496,12 @@ message Subnetwork { } - // The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. + // The role of subnetwork. Currently, this field is only used when + // purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE + // subnetwork is one that is currently being used for Envoy-based load + // balancers in a region. A BACKUP subnetwork is one that is + // ready to be promoted to ACTIVE or is currently draining. + // This field can be updated with a patch request. enum Role { // A value indicating that the enum field is not set. UNDEFINED_ROLE = 0; @@ -40947,7 +75514,11 @@ message Subnetwork { } - // The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. + // The stack type for the subnet. If set to IPV4_ONLY, new VMs + // in the subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and + // IPv6 addresses. If not specified, IPV4_ONLY is used. + // + // This field can be both set at resource creation time and updated usingpatch. enum StackType { // A value indicating that the enum field is not set. UNDEFINED_STACK_TYPE = 0; @@ -40958,14 +75529,18 @@ message Subnetwork { // New VMs in this subnet will only be assigned IPv4 addresses. IPV4_ONLY = 22373798; - // New VMs in this subnet will only be assigned IPv6 addresses. + // New VMs in this subnet will only be assigned IPv6 addresses. IPV6_ONLY = 79632100; UNSPECIFIED_STACK_TYPE = 298084569; } - // [Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY + // [Output Only] The state of the subnetwork, which can be one of the + // following values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the + // purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that + // connections to the load balancer are being drained. A subnetwork that is + // draining cannot be used or modified until it reaches a status ofREADY enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -40978,69 +75553,151 @@ message Subnetwork { } - // Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true allows this subnetwork's primary and secondary ranges to overlap with (and contain) static routes that have already been configured on the corresponding network. For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true. Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature. The default value is false and applies to all existing subnetworks and automatically created subnetworks. This field cannot be set to true at resource creation time. + // Whether this subnetwork's ranges can conflict with existing static routes. + // Setting this to true allows this subnetwork's primary and secondary ranges + // to overlap with (and contain) static routes that have already been + // configured on the corresponding network. + // + // For example if a static route has range 10.1.0.0/16, a subnet + // range 10.0.0.0/8 could only be created if allow_conflicting_routes=true. + // + // Overlapping is only allowed on subnetwork operations; routes + // whose ranges conflict with this subnetwork's ranges won't be allowed unless + // route.allow_conflicting_subnetworks is set to true. + // + // Typically packets destined to IPs within the subnetwork (which may contain + // private/sensitive data) are prevented from leaving the virtual network. + // Setting this field to true will disable this feature. + // + // The default value is false and applies to all existing subnetworks and + // automatically created subnetworks. + // + // This field cannot be set to true at resource creation time. optional bool allow_subnet_cidr_routes_overlap = 67856209; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time. + // An optional description of this resource. Provide this property when you + // create the resource. This field can be set only at resource creation time. optional string description = 422937596; - // Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. + // Whether to enable flow logging for this subnetwork. If this field is not + // explicitly set, it will not appear in get listings. If not set + // the default behavior is determined by the org policy, if there is no org + // policy specified, then it will default to disabled. This field isn't + // supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. optional bool enable_flow_logs = 151544420; - // The external IPv6 address range that is owned by this subnetwork. + // The external IPv6 address range that is owned by this + // subnetwork. optional string external_ipv6_prefix = 139299190; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a Subnetwork. An up-to-date fingerprint must be + // provided in order to update the Subnetwork, otherwise the + // request will fail with error 412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a Subnetwork. optional string fingerprint = 234678500; - // [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork. + // [Output Only] The gateway address for default routes to reach destination + // addresses outside this subnetwork. optional string gateway_address = 459867385; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // The internal IPv6 address range that is owned by this subnetwork. + // The internal IPv6 address range that is owned by this + // subnetwork. optional string internal_ipv6_prefix = 506270056; - // The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange. + // The range of internal addresses that are owned by this subnetwork. + // Provide this property when you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must + // be unique and non-overlapping within a network. Only IPv4 is supported. + // This field is set at resource creation time. The range can be any range + // listed in theValid + // ranges list. The range can be expanded after creation usingexpandIpCidrRange. optional string ip_cidr_range = 98117322; - // Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION mode. Use one of the following formats to specify a sub-PDP when creating a dual stack subnetwork with external access using BYOIP: - Full resource URL, as in https://www.googleapis.com/compute/v1/projects/projectId/regions/region /publicDelegatedPrefixes/sub-pdp-name - Partial URL, as in - projects/projectId/regions/region/publicDelegatedPrefixes/ sub-pdp-name - regions/region/publicDelegatedPrefixes/sub-pdp-name + // Reference to the source of IP, like a PublicDelegatedPrefix + // (PDP) for BYOIP. The PDP must be a sub-PDP in + // EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION + // mode. + // + // Use one of the following formats to specify a sub-PDP when creating a dual + // stack or IPv6-only subnetwork with external access using BYOIP: + // + // - + // Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name + // - + // Partial URL, as in + // + // + // - projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name + // - regions/region/publicDelegatedPrefixes/sub-pdp-name optional string ip_collection = 176818358; - // The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + // The access type of IPv6 address this subnet holds. It's immutable and can + // only be specified during creation or the first time the subnet is updated + // into IPV4_IPV6 dual stack. // Check the Ipv6AccessType enum for the list of possible values. optional string ipv6_access_type = 504658653; // [Output Only] This field is for internal use. optional string ipv6_cidr_range = 273141258; - // [Output Only] Possible endpoints of this subnetwork. It can be one of the following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from Google IP Pool directly. + // [Output Only] Possible endpoints of this subnetwork. It can be one of the + // following: + // + // - VM_ONLY: The subnetwork can be used for creating instances and + // IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6 + // ranges from a public delegated prefix and cannot be used to create NetLb. + // - VM_AND_FR: The subnetwork can be used for creating both VM + // instances and Forwarding Rules. It can also be used to reserve IPv6 + // addresses with both VM and FR endpoint types. Such a subnetwork gets its + // IPv6 range from Google IP Pool directly. // Check the Ipv6GceEndpoint enum for the list of possible values. optional string ipv6_gce_endpoint = 320382307; - // [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + // [Output Only] Type of the resource. Always compute#subnetwork + // for Subnetwork resources. optional string kind = 3292052; - // This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging. + // This field denotes the VPC flow logging options for this subnetwork. + // If logging is enabled, logs are exported to Cloud Logging. optional SubnetworkLogConfig log_config = 351299741; - // The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // The name of the resource, provided by the client when initially creating + // the resource. The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time. + // The URL of the network to which this subnetwork belongs, provided by the + // client when initially creating the subnetwork. This field can be set only + // at resource creation time. optional string network = 232872494; - // Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. optional SubnetworkParams params = 78313862; - // Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess. + // Whether the VMs in this subnet can access Google services without assigned + // external IP addresses. This field can be both set at resource creation + // time and updated using setPrivateIpGoogleAccess. optional bool private_ip_google_access = 421491790; - // This field is for internal use. This field can be both set at resource creation time and updated using patch. + // This field is for internal use. + // + // This field can be both set at resource creation time and updated usingpatch. // Check the PrivateIpv6GoogleAccess enum for the list of possible values. optional string private_ipv6_google_access = 48277006; @@ -41048,7 +75705,8 @@ message Subnetwork { // Check the Purpose enum for the list of possible values. optional string purpose = 316407070; - // URL of the region where the Subnetwork resides. This field can be set only at resource creation time. + // URL of the region where the Subnetwork resides. This + // field can be set only at resource creation time. optional string region = 138946292; // The URL of the reserved internal range. @@ -41058,31 +75716,50 @@ message Subnetwork { // Check the ResolveSubnetMask enum for the list of possible values. optional string resolve_subnet_mask = 517696699; - // The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. + // The role of subnetwork. Currently, this field is only used when + // purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE + // subnetwork is one that is currently being used for Envoy-based load + // balancers in a region. A BACKUP subnetwork is one that is + // ready to be promoted to ACTIVE or is currently draining. + // This field can be updated with a patch request. // Check the Role enum for the list of possible values. optional string role = 3506294; - // An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request. + // An array of configurations for secondary IP ranges for VM instances + // contained in this subnetwork. The primary IP of such VM must belong to the + // primary ipCidrRange of the subnetwork. The alias IPs may belong to either + // primary or secondary ranges. This field can be updated with apatch request. repeated SubnetworkSecondaryRange secondary_ip_ranges = 136658915; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. + // The stack type for the subnet. If set to IPV4_ONLY, new VMs + // in the subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and + // IPv6 addresses. If not specified, IPV4_ONLY is used. + // + // This field can be both set at resource creation time and updated usingpatch. // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; - // [Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY + // [Output Only] The state of the subnetwork, which can be one of the + // following values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the + // purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that + // connections to the load balancer are being drained. A subnetwork that is + // draining cannot be used or modified until it reaches a status ofREADY // Check the State enum for the list of possible values. optional string state = 109757585; - // Output only. [Output Only] The array of external IPv6 network ranges reserved from the subnetwork's external IPv6 range for system use. + // Output only. [Output Only] The array of external IPv6 network ranges reserved from + // the subnetwork's external IPv6 range for system use. repeated string system_reserved_external_ipv6_ranges = 65324129; - // Output only. [Output Only] The array of internal IPv6 network ranges reserved from the subnetwork's internal IPv6 range for system use. + // Output only. [Output Only] The array of internal IPv6 network ranges reserved from + // the subnetwork's internal IPv6 range for system use. repeated string system_reserved_internal_ipv6_ranges = 432294995; - // Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the total number of allocated and free IPs in each range. + // Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains + // the total number of allocated and free IPs in each range. optional SubnetworkUtilizationDetails utilization_details = 125404453; } @@ -41095,10 +75772,15 @@ message SubnetworkAggregatedList { // A list of SubnetworksScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#subnetworkAggregatedList for aggregated lists of subnetworks. + // [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for aggregated lists of + // subnetworks. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -41120,10 +75802,15 @@ message SubnetworkList { // A list of Subnetwork resources. repeated Subnetwork items = 100526016; - // [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + // [Output Only] Type of resource. Always compute#subnetworkList + // for lists of subnetworks. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -41136,7 +75823,10 @@ message SubnetworkList { // The available logging options for this subnetwork. message SubnetworkLogConfig { - // Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection. + // Can only be specified if VPC flow logging for this subnetwork is enabled. + // Toggles the aggregation interval for collecting flow logs. Increasing the + // interval time will reduce the amount of generated flow logs for long + // lasting connections. Default is an interval of 5 seconds per connection. enum AggregationInterval { // A value indicating that the enum field is not set. UNDEFINED_AGGREGATION_INTERVAL = 0; @@ -41155,7 +75845,9 @@ message SubnetworkLogConfig { } - // Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA. + // Can only be specified if VPC flow logs for this subnetwork is enabled. + // Configures whether all, none or a subset of metadata fields should be + // added to the reported VPC flow logs. Default isEXCLUDE_ALL_METADATA. enum Metadata { // A value indicating that the enum field is not set. UNDEFINED_METADATA = 0; @@ -41168,41 +75860,78 @@ message SubnetworkLogConfig { } - // Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection. + // Can only be specified if VPC flow logging for this subnetwork is enabled. + // Toggles the aggregation interval for collecting flow logs. Increasing the + // interval time will reduce the amount of generated flow logs for long + // lasting connections. Default is an interval of 5 seconds per connection. // Check the AggregationInterval enum for the list of possible values. optional string aggregation_interval = 174919042; - // Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. + // Whether to enable flow logging for this subnetwork. If this field is not + // explicitly set, it will not appear in get listings. If not + // set the default behavior is determined by the org policy, if there is no + // org policy specified, then it will default to disabled. + // Flow logging isn't supported if the subnet purpose field is + // set to REGIONAL_MANAGED_PROXY. optional bool enable = 311764355; - // Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging. + // Can only be specified if VPC flow logs for this subnetwork is enabled. + // The filter expression is used to define which VPC flow logs should be + // exported to Cloud Logging. optional string filter_expr = 183374428; - // Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported. + // Can only be specified if VPC flow logging for this subnetwork is enabled. + // The value of the field must be in [0, 1]. Set the sampling rate of VPC + // flow logs within the subnetwork where 1.0 means all collected logs are + // reported and 0.0 means no logs are reported. Default is 0.5 unless + // otherwise specified by the org policy, which means half of all collected + // logs are reported. optional float flow_sampling = 530150360; - // Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA. + // Can only be specified if VPC flow logs for this subnetwork is enabled. + // Configures whether all, none or a subset of metadata fields should be + // added to the reported VPC flow logs. Default isEXCLUDE_ALL_METADATA. // Check the Metadata enum for the list of possible values. optional string metadata = 86866735; - // Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA. + // Can only be specified if VPC flow logs for this subnetwork is enabled and + // "metadata" was set to CUSTOM_METADATA. repeated string metadata_fields = 378461641; } // Additional subnetwork parameters. message SubnetworkParams { - // Tag keys/values directly bound to this resource. Tag keys and values have the same definition as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {"123/environment" : "tagValues/444"} is invalid. + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. map resource_manager_tags = 377671164; } // Represents a secondary IP range of a subnetwork. message SubnetworkSecondaryRange { - // The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list. + // The range of IP addresses belonging to this subnetwork secondary range. + // Provide this property when you create the subnetwork. Ranges must be + // unique and non-overlapping with all primary and secondary IP ranges + // within a network. Only IPv4 is supported. The range can be any range + // listed in theValid + // ranges list. optional string ip_cidr_range = 98117322; - // The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork. + // The name associated with this subnetwork secondary range, used when adding + // an alias IP range to a VM instance. + // The name must be 1-63 characters long, and comply withRFC1035. + // The name must be unique within the subnetwork. optional string range_name = 332216397; // The URL of the reserved internal range. @@ -41210,7 +75939,8 @@ message SubnetworkSecondaryRange { } -// The current IP utilization of all subnetwork ranges. Contains the total number of allocated and free IPs in each range. +// The current IP utilization of all subnetwork ranges. Contains the total +// number of allocated and free IPs in each range. message SubnetworkUtilizationDetails { // Utilizations of external IPV6 IP range. optional SubnetworkUtilizationDetailsIPV6Utilization external_ipv6_instance_utilization = 419750236; @@ -41221,7 +75951,8 @@ message SubnetworkUtilizationDetails { // Utilizations of internal IPV6 IP range. optional SubnetworkUtilizationDetailsIPV6Utilization internal_ipv6_utilization = 69707020; - // Utilizations of all IPV4 IP ranges. For primary ranges, the range name will be empty. + // Utilizations of all IPV4 IP ranges. For primary ranges, the range name + // will be empty. repeated SubnetworkUtilizationDetailsIPV4Utilization ipv4_utilizations = 206180011; } @@ -41247,7 +75978,10 @@ message SubnetworkUtilizationDetailsIPV6Utilization { // message SubnetworksExpandIpCidrRangeRequest { - // The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. This range should be disjoint from other subnetworks within this network. This range can only be larger than (i.e. a superset of) the range previously defined before the update. + // The IP (in CIDR format or netmask) of internal addresses that are legal on + // this Subnetwork. This range should be disjoint from other subnetworks + // within this network. This range can only be larger than (i.e. a superset + // of) the range previously defined before the update. optional string ip_cidr_range = 98117322; } @@ -41257,7 +75991,8 @@ message SubnetworksScopedList { // A list of subnetworks contained in this scope. repeated Subnetwork subnetworks = 415853125; - // An informational warning that appears when the list of addresses is empty. + // An informational warning that appears when the list of addresses + // is empty. optional Warning warning = 50704284; } @@ -41278,17 +76013,34 @@ message SubnetworksSetPrivateIpGoogleAccessRequest { } -// Subsetting configuration for this BackendService. Currently this is applicable only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director. +// Subsetting configuration for this BackendService. +// Currently this is applicable only for Internal TCP/UDP load balancing, +// Internal HTTP(S) load balancing and Traffic Director. message Subsetting { // enum Policy { // A value indicating that the enum field is not set. UNDEFINED_POLICY = 0; - // Subsetting based on consistent hashing. For Traffic Director, the number of backends per backend group (the subset size) is based on the `subset_size` parameter. For Internal HTTP(S) load balancing, the number of backends per backend group (the subset size) is dynamically adjusted in two cases: - As the number of proxy instances participating in Internal HTTP(S) load balancing increases, the subset size decreases. - When the total number of backends in a network exceeds the capacity of a single proxy instance, subset sizes are reduced automatically for each service that has backend subsetting enabled. + // Subsetting based on consistent hashing. + // + // For Traffic Director, the number of backends per backend group + // (the subset size) is based on the `subset_size` parameter. + // + // For Internal HTTP(S) load balancing, the number of backends per backend + // group (the subset size) is dynamically adjusted in two cases: + // - As the number of proxy instances participating in Internal HTTP(S) load + // balancing increases, the subset size decreases. + // - When the total number of backends in a network exceeds the capacity of + // a single proxy instance, subset sizes are reduced automatically for + // each service that has backend subsetting enabled. CONSISTENT_HASH_SUBSETTING = 108989492; - // No Subsetting. Clients may open connections and send traffic to all backends of this backend service. This can lead to performance issues if there is substantial imbalance in the count of clients and backends. + // No Subsetting. + // + // Clients may open connections and send traffic to all backends of this + // backend service. This can lead to performance issues if there is + // substantial imbalance in the count of clients and backends. NONE = 2402104; } @@ -41297,14 +76049,32 @@ message Subsetting { // Check the Policy enum for the list of possible values. optional string policy = 91071794; - // The number of backends per backend group assigned to each proxy instance or each service mesh client. An input parameter to the `CONSISTENT_HASH_SUBSETTING` algorithm. Can only be set if `policy` is set to `CONSISTENT_HASH_SUBSETTING`. Can only be set if load balancing scheme is `INTERNAL_MANAGED` or `INTERNAL_SELF_MANAGED`. `subset_size` is optional for Internal HTTP(S) load balancing and required for Traffic Director. If you do not provide this value, Cloud Load Balancing will calculate it dynamically to optimize the number of proxies/clients visible to each backend and vice versa. Must be greater than 0. If `subset_size` is larger than the number of backends/endpoints, then subsetting is disabled. + // The number of backends per backend group assigned to each proxy instance or + // each service mesh client. + // + // An input parameter to the `CONSISTENT_HASH_SUBSETTING` algorithm. + // Can only be set if `policy` is set to `CONSISTENT_HASH_SUBSETTING`. + // Can only be set if load balancing scheme is `INTERNAL_MANAGED` or + // `INTERNAL_SELF_MANAGED`. + // + // `subset_size` is optional for Internal HTTP(S) load balancing + // and required for Traffic Director. + // + // If you do not provide this value, Cloud Load Balancing will calculate it + // dynamically to optimize the number of proxies/clients visible to each + // backend and vice versa. + // + // Must be greater than 0. If `subset_size` is larger than the number of + // backends/endpoints, then subsetting is disabled. optional int32 subset_size = 517916670; } // A request message for Instances.Suspend. See the method description for details. message SuspendInstanceRequest { - // This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. + // This property is required if the instance has any attached Local SSD disks. + // If false, Local SSD data will be preserved when the instance is suspended. + // If true, the contents of any attached Local SSD disks will be discarded. optional bool discard_local_ssd = 319517903; // Name of the instance resource to suspend. @@ -41316,7 +76086,19 @@ message SuspendInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -41341,10 +76123,23 @@ message SuspendInstancesInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. + // The name of thezone where the managed + // instance group is located. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -41372,7 +76167,19 @@ message SuspendInstancesRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -41388,30 +76195,69 @@ message SwitchToCustomModeNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // message TCPHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; - // The port number in the health check's port is used for health checking. Applies to network endpoint group and instance group backends. + // The port number in the health check's port is used for health + // checking. Applies to network endpoint group and instance group backends. USE_FIXED_PORT = 190235748; // Not supported. USE_NAMED_PORT = 349300671; - // For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service's named port defined in the instance group's named ports. + // For network endpoint group backends, the health check uses the port number + // specified on each endpoint in the network endpoint group. For instance + // group backends, the health check uses the port number specified for the + // backend service's named port defined in the instance group's named ports. USE_SERVING_PORT = 362637516; } - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. enum ProxyHeader { // A value indicating that the enum field is not set. UNDEFINED_PROXY_HEADER = 0; @@ -41422,56 +76268,114 @@ message TCPHealthCheck { } - // The TCP port number to which the health check prober sends packets. The default value is 80. Valid values are 1 through 65535. + // The TCP port number to which the health check prober sends packets. The + // default value is 80. Valid values are 1 through65535. optional int32 port = 3446913; // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the + // following values: + // USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. Supported by backend services + // for passthrough load balancers and backend services for proxy load + // balancers. Not supported by target pools. The health check supports all + // backends supported by the backend service provided the backend can be + // health checked. For example, GCE_VM_IP network endpoint + // groups, GCE_VM_IP_PORT network endpoint groups, and instance + // group backends. + // USE_NAMED_PORT: Not supported. + // USE_SERVING_PORT: Provides an indirect method of specifying + // the health check port by referring to the backend service. Only supported + // by backend services for proxy load balancers. Not supported by target + // pools. Not supported by backend services for passthrough load balancers. + // Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + // backends. + // + // For GCE_VM_IP_PORT network endpoint group backends, the health + // check uses the port number specified for each endpoint in the network + // endpoint group. For instance group backends, the health check uses the + // port number determined by looking up the backend service's named port in + // the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. // Check the ProxyHeader enum for the list of possible values. optional string proxy_header = 160374142; - // Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection. + // Instructs the health check prober to send this exact ASCII string, up to + // 1024 bytes in length, after establishing the TCP connection. optional string request = 21951119; - // Creates a content-based TCP health check. In addition to establishing a TCP connection, you can configure the health check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp + // Creates a content-based TCP health check. In addition to establishing a + // TCP connection, you can configure the health check to pass only when the + // backend sends this exact response ASCII string, up to 1024 bytes in length. + // For details, see: + // https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp optional string response = 196547649; } // A set of instance tags. message Tags { - // Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance. + // Specifies a fingerprint for this request, which is essentially a hash of + // the tags' contents and used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update tags. You must always provide an + // up-to-date fingerprint hash in order to update or change tags. + // + // To see the latest fingerprint, make get() request to the + // instance. optional string fingerprint = 234678500; - // An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. + // An array of tags. Each tag must be 1-63 characters long, and comply + // with RFC1035. repeated string items = 100526016; } -// Represents a Target gRPC Proxy resource. A target gRPC proxy is a component of load balancers intended for load balancing gRPC traffic. Only global forwarding rules with load balancing scheme INTERNAL_SELF_MANAGED can reference a target gRPC proxy. The target gRPC Proxy references a URL map that specifies how traffic is routed to gRPC backend services. +// Represents a Target gRPC Proxy resource. +// +// A target gRPC proxy is a component of load balancers intended for +// load balancing gRPC traffic. Only global forwarding rules with load balancing +// scheme INTERNAL_SELF_MANAGED can reference a target gRPC proxy. The target +// gRPC Proxy references a URL map that specifies how traffic is routed to +// gRPC backend services. message TargetGrpcProxy { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a TargetGrpcProxy. An up-to-date fingerprint must + // be provided in order to patch/update the TargetGrpcProxy; otherwise, the + // request will fail with error 412 conditionNotMet. To see the + // latest fingerprint, make a get() request to retrieve the + // TargetGrpcProxy. optional string fingerprint = 234678500; - // [Output Only] The unique identifier for the resource type. The server generates this identifier. + // [Output Only] The unique identifier for the resource type. The server + // generates this identifier. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. + // [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; // [Output Only] Server-defined URL for the resource. @@ -41480,10 +76384,21 @@ message TargetGrpcProxy { // [Output Only] Server-defined URL with id for the resource. optional string self_link_with_id = 44520962; - // URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. + // URL to the UrlMap resource that defines the mapping from URL to the + // BackendService. The protocol field in the BackendService must be set to + // GRPC. optional string url_map = 367020684; - // If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC applications without using a sidecar proxy. This will enable configuration checks on urlMap and its referenced BackendServices to not allow unsupported features. A gRPC application must use "xds:///" scheme in the target URI of the service it is connecting to. If false, indicates that the BackendServices referenced by the urlMap will be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC application must not use "xds:///" scheme in the target URI of the service it is connecting to + // If true, indicates that the BackendServices referenced by the urlMap may be + // accessed by gRPC applications without using a sidecar proxy. This will + // enable configuration checks on urlMap and its referenced BackendServices to + // not allow unsupported features. A gRPC application must use + // "xds:///" scheme in the target URI of the service it is + // connecting to. + // If false, indicates that the BackendServices referenced by the urlMap will + // be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC + // application must not use "xds:///" scheme in the target URI of + // the service it is connecting to optional bool validate_for_proxyless = 101822888; } @@ -41496,10 +76411,14 @@ message TargetGrpcProxyList { // A list of TargetGrpcProxy resources. repeated TargetGrpcProxy items = 100526016; - // [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. + // [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -41515,47 +76434,112 @@ message TargetHttpProxiesScopedList { // A list of TargetHttpProxies contained in this scope. repeated TargetHttpProxy target_http_proxies = 162147011; - // Informational warning which replaces the list of backend services when the list is empty. + // Informational warning which replaces the list of + // backend services when the list is empty. optional Warning warning = 50704284; } -// Represents a Target HTTP Proxy resource. Google Compute Engine has two Target HTTP Proxy resources: * [Global](/compute/docs/reference/rest/beta/targetHttpProxies) * [Regional](/compute/docs/reference/rest/beta/regionTargetHttpProxies) A target HTTP proxy is a component of Google Cloud HTTP load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTP proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts. +// Represents a Target HTTP Proxy resource. +// +// Google Compute Engine has two Target HTTP Proxy resources: +// +// * [Global](/compute/docs/reference/rest/beta/targetHttpProxies) +// * [Regional](/compute/docs/reference/rest/beta/regionTargetHttpProxies) +// +// A target HTTP proxy is a component of Google Cloud HTTP load balancers. +// +// * targetHttpProxies are used by global external Application Load Balancers, +// classic Application Load Balancers, cross-region internal Application Load +// Balancers, and Traffic Director. +// * regionTargetHttpProxies are used by regional internal Application Load +// Balancers and regional external Application Load Balancers. +// +// Forwarding rules reference a target HTTP proxy, and the target proxy +// then references a URL map. For more information, readUsing Target Proxies +// and +// Forwarding rule concepts. message TargetHttpProxy { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a TargetHttpProxy. An up-to-date fingerprint must + // be provided in order to patch/update the TargetHttpProxy; otherwise, the + // request will fail with error 412 conditionNotMet. To see the + // latest fingerprint, make a get() request to retrieve the + // TargetHttpProxy. optional string fingerprint = 234678500; - // URLs to networkservices.HttpFilter resources enabled for xDS clients using this configuration. For example, https://networkservices.googleapis.com/v1alpha1/projects/project/locations/ locationhttpFilters/httpFilter Only filters that handle outbound connection and stream events may be specified. These filters work in conjunction with a default set of HTTP filters that may already be configured by Traffic Director. Traffic Director will determine the final location of these filters within xDS configuration based on the name of the HTTP filter. If Traffic Director positions multiple filters at the same location, those filters will be in the same order as specified in this list. httpFilters only applies for loadbalancers with loadBalancingScheme set to INTERNAL_SELF_MANAGED. See ForwardingRule for more details. + // URLs to networkservices.HttpFilter resources + // enabled for xDS clients using this configuration. For example,https://networkservices.googleapis.com/v1alpha1/projects/project/locations/locationhttpFilters/httpFilter + // Only filters that handle outbound connection and + // stream events may be specified. These filters work in conjunction with + // a default set of HTTP filters that may already be configured by Traffic + // Director. Traffic Director will determine the final location of these + // filters within xDS configuration based on the name of the HTTP filter. If + // Traffic Director positions multiple filters at the same location, those + // filters will be in the same order as specified in this list. + // + // httpFilters only applies for loadbalancers withloadBalancingScheme set to INTERNAL_SELF_MANAGED. + // See ForwardingRule for more details. repeated string http_filters = 10767172; - // Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 seconds) will be used. For global external Application Load Balancers, the minimum allowed value is 5 seconds and the maximum allowed value is 1200 seconds. For classic Application Load Balancers, this option is not supported. + // Specifies how long to keep a connection open, after completing a response, + // while there is no matching traffic (in seconds). If an HTTP keep-alive is + // not specified, a default value (610 seconds) will be used. + // + // For global external Application Load Balancers, the minimum allowed value + // is 5 seconds and the maximum allowed value is 1200 seconds. + // + // For classic Application Load Balancers, this option is not supported. optional int32 http_keep_alive_timeout_sec = 447326046; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + // [Output Only] Type of resource. Always compute#targetHttpProxy + // for target HTTP proxies. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false. + // This field only applies when the forwarding rule that references this + // target proxy has a loadBalancingScheme set toINTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound + // traffic interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director to + // configure Envoy as a gateway or middle proxy (in other words, not a + // sidecar proxy). The Envoy proxy listens for inbound requests and handles + // requests when it receives them. + // + // The default is false. optional bool proxy_bind = 286025582; - // [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. + // [Output Only] URL of the region where the regional Target HTTP Proxy + // resides. This field is not applicable to global Target HTTP Proxies. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // URL to the UrlMap resource that defines the mapping from URL to the BackendService. + // URL to the UrlMap resource that defines the mapping from URL to + // the BackendService. optional string url_map = 367020684; } @@ -41568,10 +76552,15 @@ message TargetHttpProxyAggregatedList { // A list of TargetHttpProxiesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#targetHttpProxyAggregatedList for lists of Target HTTP Proxies. + // [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for lists of Target HTTP + // Proxies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -41593,10 +76582,15 @@ message TargetHttpProxyList { // A list of TargetHttpProxy resources. repeated TargetHttpProxy items = 100526016; - // Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + // Type of resource. Always compute#targetHttpProxyList for lists + // of target HTTP proxies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -41612,14 +76606,17 @@ message TargetHttpsProxiesScopedList { // A list of TargetHttpsProxies contained in this scope. repeated TargetHttpsProxy target_https_proxies = 366607882; - // Informational warning which replaces the list of backend services when the list is empty. + // Informational warning which replaces the list of + // backend services when the list is empty. optional Warning warning = 50704284; } // message TargetHttpsProxiesSetCertificateMapRequest { - // URL of the Certificate Map to associate with this TargetHttpsProxy. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}. + // URL of the Certificate Map to associate with this TargetHttpsProxy. + // + // Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificateMaps/{resourceName}. optional string certificate_map = 156463796; } @@ -41637,7 +76634,8 @@ message TargetHttpsProxiesSetQuicOverrideRequest { // The load balancer will attempt to negotiate QUIC with clients. ENABLE = 438835587; - // No overrides to the default QUIC policy. This option is implicit if no QUIC override has been specified in the request. + // No overrides to the default QUIC policy. This option is implicit if + // no QUIC override has been specified in the request. NONE = 2402104; } @@ -41650,14 +76648,46 @@ message TargetHttpsProxiesSetQuicOverrideRequest { // message TargetHttpsProxiesSetSslCertificatesRequest { - // New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. + // New set of SslCertificate resources to associate + // with this TargetHttpsProxy resource. At least one SSL + // certificate must be specified. Currently, you may specify up to 15 SSL + // certificates. repeated string ssl_certificates = 366006543; } -// Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/beta/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/beta/regionTargetHttpsProxies) A target HTTPS proxy is a component of Google Cloud HTTPS load balancers. * targetHttpsProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpsProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts. +// Represents a Target HTTPS Proxy resource. +// +// Google Compute Engine has two Target HTTPS Proxy resources: +// +// * [Global](/compute/docs/reference/rest/beta/targetHttpsProxies) +// * [Regional](/compute/docs/reference/rest/beta/regionTargetHttpsProxies) +// +// A target HTTPS proxy is a component of Google Cloud HTTPS load balancers. +// +// * targetHttpsProxies are used by global external Application Load Balancers, +// classic Application Load Balancers, cross-region internal Application Load +// Balancers, and Traffic Director. +// * regionTargetHttpsProxies are used by regional internal Application Load +// Balancers and regional external Application Load Balancers. +// +// Forwarding rules reference a target HTTPS proxy, and the target proxy +// then references a URL map. For more information, readUsing Target Proxies +// and +// Forwarding rule concepts. message TargetHttpsProxy { - // Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, ENABLE, or DISABLE. - When quic-override is set to NONE, Google manages whether QUIC is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. - If the quic-override flag is not specified, NONE is implied. + // Specifies the QUIC override policy for this TargetHttpsProxy resource. This + // setting determines whether the load balancer attempts to negotiate QUIC + // with clients. + // You can specify NONE, ENABLE, orDISABLE. + // + // - When quic-override is set to NONE, + // Google manages whether QUIC is used. + // - When quic-override is set to ENABLE, the + // load balancer uses QUIC when possible. + // - When quic-override is set to DISABLE, the + // load balancer doesn't use QUIC. + // - If the quic-override flag is not specified,NONE is implied. enum QuicOverride { // A value indicating that the enum field is not set. UNDEFINED_QUIC_OVERRIDE = 0; @@ -41668,26 +76698,64 @@ message TargetHttpsProxy { // The load balancer will attempt to negotiate QUIC with clients. ENABLE = 438835587; - // No overrides to the default QUIC policy. This option is implicit if no QUIC override has been specified in the request. + // No overrides to the default QUIC policy. This option is implicit if + // no QUIC override has been specified in the request. NONE = 2402104; } - // Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early Data allows a TLS resumption handshake to include the initial application payload (a HTTP request) alongside the handshake, reducing the effective round trips to "zero". This applies to TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). This can improve application performance, especially on networks where interruptions may be common, such as on mobile. Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a value of "1", to allow the backend to determine whether Early Data was included. Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend before the handshake has fully completed. Applications that allow idempotent HTTP methods to make non-idempotent changes, such as a GET request updating a database, should not accept Early Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a HTTP 425 (Too Early) status code, in order to remain RFC compliant. The default value is DISABLED. + // Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted + // for this service. Early Data allows a TLS resumption handshake to include + // the initial application payload (a HTTP request) alongside the handshake, + // reducing the effective round trips to "zero". This applies to TLS 1.3 + // connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). + // + // + // This can improve application performance, especially on networks where + // interruptions may be common, such as on mobile. + // + // + // Requests with Early Data will have the "Early-Data" HTTP header set on + // the request, with a value of "1", to allow the backend to determine whether + // Early Data was included. + // + // + // Note: TLS Early Data may allow requests to be replayed, as the data is + // sent to the backend before the handshake has fully completed. Applications + // that allow idempotent HTTP methods to make non-idempotent changes, such as + // a GET request updating a database, should not accept Early Data on those + // requests, and reject requests with the "Early-Data: 1" HTTP header by + // returning a HTTP 425 (Too Early) status code, in order to remain RFC + // compliant. + // + // + // The default value is DISABLED. enum TlsEarlyData { // A value indicating that the enum field is not set. UNDEFINED_TLS_EARLY_DATA = 0; - // TLS 1.3 Early Data is not advertised, and any (invalid) attempts to send Early Data will be rejected by closing the connection. + // TLS 1.3 Early Data is not advertised, and any (invalid) attempts to send + // Early Data will be rejected by closing the connection. DISABLED = 516696700; - // This enables TLS 1.3 0-RTT, and only allows Early Data to be included on requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE). This mode does not enforce any other limitations for requests with Early Data. The application owner should validate that Early Data is acceptable for a given request path. + // This enables TLS 1.3 0-RTT, and only allows Early Data to be included on + // requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE). This mode + // does not enforce any other limitations for requests with Early Data. The + // application owner should validate that Early Data is acceptable for a + // given request path. PERMISSIVE = 504345247; - // This enables TLS 1.3 0-RTT, and only allows Early Data to be included on requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE) without query parameters. Requests that send Early Data with non-idempotent HTTP methods or with query parameters will be rejected with a HTTP 425. + // This enables TLS 1.3 0-RTT, and only allows Early Data to be included on + // requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE) without query + // parameters. Requests that send Early Data with non-idempotent HTTP + // methods or with query parameters will be rejected with a HTTP 425. STRICT = 308826825; - // This enables TLS 1.3 Early Data for requests with any HTTP method including non-idempotent methods list POST. This mode does not enforce any other limitations. This may be valuable for gRPC use cases. However, we do not recommend this method unless you have evaluated your security stance and mitigated the risk of replay attacks using other mechanisms. + // This enables TLS 1.3 Early Data for requests with any HTTP method + // including non-idempotent methods list POST. This mode does not enforce + // any other limitations. This may be valuable for gRPC use cases. However, + // we do not recommend this method unless you have evaluated your security + // stance and mitigated the risk of replay attacks using other mechanisms. UNRESTRICTED = 457266100; } @@ -41698,63 +76766,196 @@ message TargetHttpsProxy { // [Deprecated] Use authorizationPolicy instead. optional string authorization = 225042553; - // Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how the proxy should authorize inbound traffic. If left blank, access will not be restricted by an authorization policy. Refer to the AuthorizationPolicy resource for additional details. authorizationPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. Note: This field currently has no impact. + // Optional. A URL referring to a networksecurity.AuthorizationPolicy resource + // that describes how the proxy should authorize inbound traffic. If left + // blank, access will not be restricted by an authorization policy. + // + // Refer to the AuthorizationPolicy resource for additional + // details. + // + // authorizationPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules with theloadBalancingScheme set to INTERNAL_SELF_MANAGED. + // + // Note: This field currently has no impact. optional string authorization_policy = 33945528; - // URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for Global external Application Load Balancer or Classic Application Load Balancer. For other products use Certificate Manager Certificates instead. If set, sslCertificates will be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}. + // URL of a certificate map that identifies a certificate map associated with + // the given target proxy. + // This field can only be set for Global external Application Load Balancer or + // Classic Application Load Balancer. For other products use Certificate + // Manager Certificates instead. + // + // If set, sslCertificates will be ignored. + // + // Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificateMaps/{resourceName}. optional string certificate_map = 156463796; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to-date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpsProxy. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a TargetHttpsProxy. An up-to-date fingerprint must + // be provided in order to patch the TargetHttpsProxy; otherwise, the request + // will fail with error 412 conditionNotMet. To see the latest + // fingerprint, make a get() request to retrieve the + // TargetHttpsProxy. optional string fingerprint = 234678500; - // URLs to networkservices.HttpFilter resources enabled for xDS clients using this configuration. For example, https://networkservices.googleapis.com/beta/projects/project/locations/ location/httpFilters/httpFilter Only filters that handle outbound connection and stream events may be specified. These filters work in conjunction with a default set of HTTP filters that may already be configured by Traffic Director. Traffic Director will determine the final location of these filters within xDS configuration based on the name of the HTTP filter. If Traffic Director positions multiple filters at the same location, those filters will be in the same order as specified in this list. httpFilters only applies for loadbalancers with loadBalancingScheme set to INTERNAL_SELF_MANAGED. See ForwardingRule for more details. + // URLs to networkservices.HttpFilter resources + // enabled for xDS clients using this configuration. For example,https://networkservices.googleapis.com/beta/projects/project/locations/location/httpFilters/httpFilter + // Only filters that handle outbound connection and + // stream events may be specified. These filters work in conjunction with + // a default set of HTTP filters that may already be configured by Traffic + // Director. Traffic Director will determine the final location of these + // filters within xDS configuration based on the name of the HTTP filter. If + // Traffic Director positions multiple filters at the same location, those + // filters will be in the same order as specified in this list. + // + // httpFilters only applies for loadbalancers withloadBalancingScheme set to INTERNAL_SELF_MANAGED. + // See ForwardingRule for more details. repeated string http_filters = 10767172; - // Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 seconds) will be used. For global external Application Load Balancers, the minimum allowed value is 5 seconds and the maximum allowed value is 1200 seconds. For classic Application Load Balancers, this option is not supported. + // Specifies how long to keep a connection open, after completing a response, + // while there is no matching traffic (in seconds). If an HTTP keep-alive is + // not specified, a default value (610 seconds) will be used. + // + // For global external Application Load Balancers, the minimum allowed value + // is 5 seconds and the maximum allowed value is 1200 seconds. + // + // For classic Application Load Balancers, this option is not supported. optional int32 http_keep_alive_timeout_sec = 447326046; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of resource. Always compute#targetHttpsProxy for target HTTPS proxies. + // [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false. + // This field only applies when the forwarding rule that references this + // target proxy has a loadBalancingScheme set toINTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound + // traffic interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director to + // configure Envoy as a gateway or middle proxy (in other words, not a + // sidecar proxy). The Envoy proxy listens for inbound requests and handles + // requests when it receives them. + // + // The default is false. optional bool proxy_bind = 286025582; - // Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, ENABLE, or DISABLE. - When quic-override is set to NONE, Google manages whether QUIC is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. - If the quic-override flag is not specified, NONE is implied. + // Specifies the QUIC override policy for this TargetHttpsProxy resource. This + // setting determines whether the load balancer attempts to negotiate QUIC + // with clients. + // You can specify NONE, ENABLE, orDISABLE. + // + // - When quic-override is set to NONE, + // Google manages whether QUIC is used. + // - When quic-override is set to ENABLE, the + // load balancer uses QUIC when possible. + // - When quic-override is set to DISABLE, the + // load balancer doesn't use QUIC. + // - If the quic-override flag is not specified,NONE is implied. // Check the QuicOverride enum for the list of possible values. optional string quic_override = 456577197; - // [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not applicable to global TargetHttpsProxies. + // [Output Only] URL of the region where the regional TargetHttpsProxy + // resides. This field is not applicable to global TargetHttpsProxies. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or EXTERNAL_MANAGED or INTERNAL_MANAGED. It also applies to a regional TargetHttpsProxy attached to regional forwardingRules with the loadBalancingScheme set to EXTERNAL_MANAGED or INTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, INTERNAL_MANAGED, EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy documentation. If left blank, communications are not encrypted. + // Optional. A URL referring to a networksecurity.ServerTlsPolicy resource + // that describes how the proxy should authenticate inbound traffic. + // + // serverTlsPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules with theloadBalancingScheme set to INTERNAL_SELF_MANAGED + // or EXTERNAL orEXTERNAL_MANAGED or INTERNAL_MANAGED. + // It also applies to a regional TargetHttpsProxy attached to + // regional forwardingRules with theloadBalancingScheme set to EXTERNAL_MANAGED orINTERNAL_MANAGED. For details whichServerTlsPolicy resources are accepted withINTERNAL_SELF_MANAGED and which with EXTERNAL,INTERNAL_MANAGED, EXTERNAL_MANAGEDloadBalancingScheme consult ServerTlsPolicy + // documentation. + // + // If left blank, communications are not encrypted. optional string server_tls_policy = 295825266; - // URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}. + // URLs to SslCertificate resources that are used to authenticate + // connections between users and the load balancer. At least one SSL + // certificate must be specified. SslCertificates do not apply when the load + // balancing scheme is set to INTERNAL_SELF_MANAGED. + // + // The URLs should refer to a SSL Certificate resource or Certificate Manager + // Certificate resource. Mixing Classic Certificates and Certificate Manager + // Certificates is not allowed. Certificate Manager Certificates must include + // the certificatemanager API namespace. Using Certificate Manager + // Certificates in this field is not supported by Global external Application + // Load Balancer or Classic Application Load Balancer, use certificate_map + // instead. + // + // Currently, you may specify up to 15 Classic SSL Certificates or up to 100 + // Certificate Manager Certificates. + // + // Certificate Manager Certificates accepted formats are: + // + // - //certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificates/{resourceName}. + // - https://certificatemanager.googleapis.com/v1alpha1/projects/{project}/locations/{location}/certificates/{resourceName}. repeated string ssl_certificates = 366006543; - // URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource has no SSL policy configured. + // URL of SslPolicy resource that will be associated with the TargetHttpsProxy + // resource. If not set, the TargetHttpsProxy resource has no + // SSL policy configured. optional string ssl_policy = 295190213; - // Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early Data allows a TLS resumption handshake to include the initial application payload (a HTTP request) alongside the handshake, reducing the effective round trips to "zero". This applies to TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). This can improve application performance, especially on networks where interruptions may be common, such as on mobile. Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a value of "1", to allow the backend to determine whether Early Data was included. Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend before the handshake has fully completed. Applications that allow idempotent HTTP methods to make non-idempotent changes, such as a GET request updating a database, should not accept Early Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a HTTP 425 (Too Early) status code, in order to remain RFC compliant. The default value is DISABLED. + // Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted + // for this service. Early Data allows a TLS resumption handshake to include + // the initial application payload (a HTTP request) alongside the handshake, + // reducing the effective round trips to "zero". This applies to TLS 1.3 + // connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). + // + // + // This can improve application performance, especially on networks where + // interruptions may be common, such as on mobile. + // + // + // Requests with Early Data will have the "Early-Data" HTTP header set on + // the request, with a value of "1", to allow the backend to determine whether + // Early Data was included. + // + // + // Note: TLS Early Data may allow requests to be replayed, as the data is + // sent to the backend before the handshake has fully completed. Applications + // that allow idempotent HTTP methods to make non-idempotent changes, such as + // a GET request updating a database, should not accept Early Data on those + // requests, and reject requests with the "Early-Data: 1" HTTP header by + // returning a HTTP 425 (Too Early) status code, in order to remain RFC + // compliant. + // + // + // The default value is DISABLED. // Check the TlsEarlyData enum for the list of possible values. optional string tls_early_data = 61108426; - // A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL to the BackendService. For example, the following are all valid URLs for specifying a URL map: - https://www.googleapis.compute/v1/projects/project/global/urlMaps/ url-map - projects/project/global/urlMaps/url-map - global/urlMaps/url-map + // A fully-qualified or valid partial URL to the UrlMap resource that defines + // the mapping from URL to the BackendService. For example, the following are + // all valid URLs for specifying a URL map: + // + // - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map + // - projects/project/global/urlMaps/url-map + // - global/urlMaps/url-map optional string url_map = 367020684; } @@ -41767,10 +76968,15 @@ message TargetHttpsProxyAggregatedList { // A list of TargetHttpsProxiesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#targetHttpsProxyAggregatedList for lists of Target HTTP Proxies. + // [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for lists of Target + // HTTP Proxies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -41792,10 +76998,15 @@ message TargetHttpsProxyList { // A list of TargetHttpsProxy resources. repeated TargetHttpsProxy items = 100526016; - // Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + // Type of resource. Always compute#targetHttpsProxyList for + // lists of target HTTPS proxies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -41806,9 +77017,17 @@ message TargetHttpsProxyList { } -// Represents a Target Instance resource. You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances. +// Represents a Target Instance resource. +// +// You can use a target instance to handle traffic for one or more forwarding +// rules, which is ideal for forwarding protocol traffic that is managed by a +// single source. For example, ESP, AH, TCP, or UDP. +// For more information, readTarget +// instances. message TargetInstance { - // Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. + // Must have a value of NO_NAT. + // Protocol forwarding delivers packets while preserving the destination IP + // address of the forwarding rule referencing the target instance. enum NatPolicy { // A value indicating that the enum field is not set. UNDEFINED_NAT_POLICY = 0; @@ -41818,38 +77037,61 @@ message TargetInstance { } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance + // A URL to the virtual machine instance that handles traffic for this target + // instance. When creating a target instance, you can provide the + // fully-qualified URL or a valid partial URL to the desired virtual machine. + // For example, the following are all valid URLs: + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance + // - projects/project/zones/zone/instances/instance + // - zones/zone/instances/instance optional string instance = 18257045; - // [Output Only] The type of the resource. Always compute#targetInstance for target instances. + // [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. + // Must have a value of NO_NAT. + // Protocol forwarding delivers packets while preserving the destination IP + // address of the forwarding rule referencing the target instance. // Check the NatPolicy enum for the list of possible values. optional string nat_policy = 509780496; - // The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. + // The URL of the network this target instance uses to forward traffic. + // If not specified, the traffic will be forwarded to the network that + // the default network interface belongs to. optional string network = 232872494; - // [Output Only] The resource URL for the security policy associated with this target instance. + // [Output Only] The resource URL for the security policy associated with this + // target instance. optional string security_policy = 171082513; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the zone where the target instance resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string zone = 3744684; } @@ -41865,7 +77107,11 @@ message TargetInstanceAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -41890,7 +77136,11 @@ message TargetInstanceList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -41906,31 +77156,59 @@ message TargetInstancesScopedList { // A list of target instances contained in this scope. repeated TargetInstance target_instances = 392915280; - // Informational warning which replaces the list of addresses when the list is empty. + // Informational warning which replaces the list of addresses when + // the list is empty. optional Warning warning = 50704284; } -// Represents a Target Pool resource. Target pools are used with external passthrough Network Load Balancers. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools. +// Represents a Target Pool resource. +// +// Target pools are used with external passthrough Network Load Balancers. +// A target pool references member instances, an associated legacy +// HttpHealthCheck resource, and, optionally, a backup target pool. +// For more information, readUsing target pools. message TargetPool { - // Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. + // Session affinity option, must be one of the following values: + // NONE: Connections from the same client IP may go to any + // instance in the pool. + // CLIENT_IP: Connections from the same client IP will go + // to the same instance in + // the pool while that instance remains healthy. + // CLIENT_IP_PROTO: Connections from the same client IP + // with the same IP protocol will go to the same instance in the + // pool while that instance remains healthy. enum SessionAffinity { // A value indicating that the enum field is not set. UNDEFINED_SESSION_AFFINITY = 0; - // 2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. + // 2-tuple hash on packet's source and destination IP addresses. Connections + // from the same source IP address to the same destination IP address will be + // served by the same backend VM while that VM remains healthy. CLIENT_IP = 345665051; - // 1-tuple hash only on packet's source IP address. Connections from the same source IP address will be served by the same backend VM while that VM remains healthy. This option can only be used for Internal TCP/UDP Load Balancing. + // 1-tuple hash only on packet's source IP address. Connections from the + // same source IP address will be served by the same backend VM while that VM + // remains healthy. This option can only be used for Internal TCP/UDP + // Load Balancing. CLIENT_IP_NO_DESTINATION = 106122516; - // 5-tuple hash on packet's source and destination IP addresses, IP protocol, and source and destination ports. Connections for the same IP protocol from the same source IP address and port to the same destination IP address and port will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing. + // 5-tuple hash on packet's source and destination IP addresses, IP protocol, + // and source and destination ports. Connections for the same IP protocol + // from the same source IP address and port to the same destination IP address + // and port will be served by the same backend VM while that VM remains + // healthy. This option cannot be used for HTTP(S) load balancing. CLIENT_IP_PORT_PROTO = 221722926; - // 3-tuple hash on packet's source and destination IP addresses, and IP protocol. Connections for the same IP protocol from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing. + // 3-tuple hash on packet's source and destination IP addresses, and IP + // protocol. Connections for the same IP protocol from the same source IP + // address to the same destination IP address will be served by the same + // backend VM while that VM remains healthy. This option cannot be used for + // HTTP(S) load balancing. CLIENT_IP_PROTO = 25322148; - // Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing. + // Hash based on a cookie generated by the L7 loadbalancer. + // Only valid for HTTP(S) load balancing. GENERATED_COOKIE = 370321204; // The hash is based on a user specified header field. @@ -41939,51 +77217,103 @@ message TargetPool { // The hash is based on a user provided cookie. HTTP_COOKIE = 494981627; - // No session affinity. Connections from the same client IP may go to any instance in the pool. + // No session affinity. Connections from the same client IP may go + // to any instance in the pool. NONE = 2402104; - // Strong cookie-based affinity. Connections bearing the same cookie will be served by the same backend VM while that VM remains healthy, as long as the cookie has not expired. + // Strong cookie-based affinity. Connections bearing the same cookie will be + // served by the same backend VM while that VM remains healthy, as long as the + // cookie has not expired. STRONG_COOKIE_AFFINITY = 438628091; } - // The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. + // The server-defined URL for the resource. This field is applicable only when + // the containing target pool is serving a forwarding rule as the primary + // pool, and its failoverRatio field is properly set to a value + // between [0, 1].backupPool and failoverRatio together define + // the fallback behavior of the primary target pool: if the ratio of the + // healthy instances in the primary pool is at or belowfailoverRatio, traffic arriving at the load-balanced + // IP will be directed to the backup pool. + // + // In case where failoverRatio and backupPool + // are not set, or all the instances in the backup pool are unhealthy, + // the traffic will be directed back to the primary pool in the "force" + // mode, where traffic will be spread to the healthy instances with the + // best effort, or to all instances when no instance is healthy. optional string backup_pool = 45884537; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. + // This field is applicable only when the containing target pool is serving a + // forwarding rule as the primary pool (i.e., not as a backup pool to some + // other target pool). The value of the field must be in [0, 1]. + // + // If set, backupPool must also be set. They together define + // the fallback behavior of the primary target pool: if the ratio of the + // healthy instances in the primary pool is at or below this number, + // traffic arriving at the load-balanced IP will be directed to the + // backup pool. + // + // In case where failoverRatio is not set or all the + // instances in the backup pool are unhealthy, the traffic will be + // directed back to the primary pool in the "force" mode, where traffic + // will be spread to the healthy instances with the + // best effort, or to all instances when no instance is healthy. optional float failover_ratio = 212667006; - // The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified. + // The URL of the HttpHealthCheck resource. A member instance in this + // pool is considered healthy if and only if the health checks pass. + // Only legacy HttpHealthChecks are supported. Only one health check may be + // specified. repeated string health_checks = 448370606; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool. + // A list of resource URLs to the virtual machine instances serving this pool. + // They must live in zones contained in the same region as this pool. repeated string instances = 29097598; - // [Output Only] Type of the resource. Always compute#targetPool for target pools. + // [Output Only] Type of the resource. Always compute#targetPool + // for target pools. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; // [Output Only] URL of the region where the target pool resides. optional string region = 138946292; - // [Output Only] The resource URL for the security policy associated with this target pool. + // [Output Only] The resource URL for the security policy associated with this + // target pool. optional string security_policy = 171082513; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. + // Session affinity option, must be one of the following values: + // NONE: Connections from the same client IP may go to any + // instance in the pool. + // CLIENT_IP: Connections from the same client IP will go + // to the same instance in + // the pool while that instance remains healthy. + // CLIENT_IP_PROTO: Connections from the same client IP + // with the same IP protocol will go to the same instance in the + // pool while that instance remains healthy. // Check the SessionAffinity enum for the list of possible values. optional string session_affinity = 463888561; @@ -41997,10 +77327,15 @@ message TargetPoolAggregatedList { // A list of TargetPool resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#targetPoolAggregatedList for aggregated lists of target pools. + // [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for aggregated lists of + // target pools. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -42018,7 +77353,8 @@ message TargetPoolAggregatedList { message TargetPoolInstanceHealth { repeated HealthStatus health_status = 380545845; - // [Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance. + // [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health of + // an instance. optional string kind = 3292052; } @@ -42031,10 +77367,15 @@ message TargetPoolList { // A list of TargetPool resources. repeated TargetPool items = 100526016; - // [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + // [Output Only] Type of resource. Always compute#targetPoolList + // for lists of target pools. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -42054,14 +77395,24 @@ message TargetPoolsAddHealthCheckRequest { // message TargetPoolsAddInstanceRequest { - // A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name + // A full or partial URL to an instance to add to this target pool. This can + // be a full or partial URL. For example, the following are valid URLs: + // + // - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name + // - projects/project-id/zones/zone/instances/instance-name + // - zones/zone/instances/instance-name repeated InstanceReference instances = 29097598; } // message TargetPoolsRemoveHealthCheckRequest { - // Health check URL to be removed. This can be a full or valid partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/beta/projects/project /global/httpHealthChecks/health-check - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health-check + // Health check URL to be removed. This can be a full or valid partial URL. + // For example, the following are valid URLs: + // + // - https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check + // - projects/project/global/httpHealthChecks/health-check + // - global/httpHealthChecks/health-check repeated HealthCheckReference health_checks = 448370606; } @@ -42078,7 +77429,8 @@ message TargetPoolsScopedList { // A list of target pools contained in this scope. repeated TargetPool target_pools = 336072617; - // Informational warning which replaces the list of addresses when the list is empty. + // Informational warning which replaces the list of addresses when + // the list is empty. optional Warning warning = 50704284; } @@ -42098,14 +77450,17 @@ message TargetSslProxiesSetBackendServiceRequest { // message TargetSslProxiesSetCertificateMapRequest { - // URL of the Certificate Map to associate with this TargetSslProxy. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}. + // URL of the Certificate Map to associate with this TargetSslProxy. + // + // Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificateMaps/{resourceName}. optional string certificate_map = 156463796; } // message TargetSslProxiesSetProxyHeaderRequest { - // The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. + // The new type of proxy header to append before sending data to the + // backend. NONE or PROXY_V1 are allowed. enum ProxyHeader { // A value indicating that the enum field is not set. UNDEFINED_PROXY_HEADER = 0; @@ -42116,7 +77471,8 @@ message TargetSslProxiesSetProxyHeaderRequest { } - // The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. + // The new type of proxy header to append before sending data to the + // backend. NONE or PROXY_V1 are allowed. // Check the ProxyHeader enum for the list of possible values. optional string proxy_header = 160374142; @@ -42124,14 +77480,23 @@ message TargetSslProxiesSetProxyHeaderRequest { // message TargetSslProxiesSetSslCertificatesRequest { - // New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. + // New set of URLs to SslCertificate resources to associate with this + // TargetSslProxy. At least one SSL certificate must be specified. + // Currently, you may specify up to 15 SSL certificates. repeated string ssl_certificates = 366006543; } -// Represents a Target SSL Proxy resource. A target SSL proxy is a component of a Proxy Network Load Balancer. The forwarding rule references the target SSL proxy, and the target proxy then references a backend service. For more information, read Proxy Network Load Balancer overview. +// Represents a Target SSL Proxy resource. +// +// A target SSL proxy is a component of a Proxy Network Load Balancer. +// The forwarding rule references the target SSL proxy, and the target proxy +// then references a backend service. For more information, readProxy Network +// Load Balancer overview. message TargetSslProxy { - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. enum ProxyHeader { // A value indicating that the enum field is not set. UNDEFINED_PROXY_HEADER = 0; @@ -42142,25 +77507,41 @@ message TargetSslProxy { } - // URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}. + // URL of a certificate map that identifies a certificate map associated with + // the given target proxy. + // This field can only be set for global target proxies. + // If set, sslCertificates will be ignored. + // + // Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificateMaps/{resourceName}. optional string certificate_map = 156463796; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#targetSslProxy for target SSL proxies. + // [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. // Check the ProxyHeader enum for the list of possible values. optional string proxy_header = 160374142; @@ -42170,10 +77551,16 @@ message TargetSslProxy { // URL to the BackendService resource. optional string service = 373540533; - // URLs to SslCertificate resources that are used to authenticate connections to Backends. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. + // URLs to SslCertificate resources that are used to + // authenticate connections to Backends. At least one SSL certificate + // must be specified. Currently, you may specify up to 15 SSL certificates. + // sslCertificates do not apply when the load balancing scheme is set to + // INTERNAL_SELF_MANAGED. repeated string ssl_certificates = 366006543; - // URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, the TargetSslProxy resource will not have any SSL policy configured. + // URL of SslPolicy resource that will be associated with the TargetSslProxy + // resource. If not set, the TargetSslProxy resource will not have any + // SSL policy configured. optional string ssl_policy = 295190213; } @@ -42189,7 +77576,11 @@ message TargetSslProxyList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -42205,7 +77596,8 @@ message TargetTcpProxiesScopedList { // A list of TargetTcpProxies contained in this scope. repeated TargetTcpProxy target_tcp_proxies = 262056832; - // Informational warning which replaces the list of backend services when the list is empty. + // Informational warning which replaces the list of + // backend services when the list is empty. optional Warning warning = 50704284; } @@ -42219,7 +77611,8 @@ message TargetTcpProxiesSetBackendServiceRequest { // message TargetTcpProxiesSetProxyHeaderRequest { - // The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. + // The new type of proxy header to append before sending data to the + // backend. NONE or PROXY_V1 are allowed. enum ProxyHeader { // A value indicating that the enum field is not set. UNDEFINED_PROXY_HEADER = 0; @@ -42230,15 +77623,23 @@ message TargetTcpProxiesSetProxyHeaderRequest { } - // The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. + // The new type of proxy header to append before sending data to the + // backend. NONE or PROXY_V1 are allowed. // Check the ProxyHeader enum for the list of possible values. optional string proxy_header = 160374142; } -// Represents a Target TCP Proxy resource. A target TCP proxy is a component of a Proxy Network Load Balancer. The forwarding rule references the target TCP proxy, and the target proxy then references a backend service. For more information, read Proxy Network Load Balancer overview. +// Represents a Target TCP Proxy resource. +// +// A target TCP proxy is a component of a Proxy Network Load Balancer. +// The forwarding rule references the target TCP proxy, and the target proxy +// then references a backend service. For more information, readProxy Network +// Load Balancer overview. message TargetTcpProxy { - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. enum ProxyHeader { // A value indicating that the enum field is not set. UNDEFINED_PROXY_HEADER = 0; @@ -42249,29 +77650,51 @@ message TargetTcpProxy { } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#targetTcpProxy for target TCP proxies. + // [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false. + // This field only applies when the forwarding rule that references this + // target proxy has a loadBalancingScheme set toINTERNAL_SELF_MANAGED. + // + // When this field is set to true, Envoy proxies set up inbound + // traffic interception and bind to the IP address and port specified in the + // forwarding rule. This is generally useful when using Traffic Director to + // configure Envoy as a gateway or middle proxy (in other words, not a + // sidecar proxy). The Envoy proxy listens for inbound requests and handles + // requests when it receives them. + // + // The default is false. optional bool proxy_bind = 286025582; - // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. + // Specifies the type of proxy header to append before sending data to the + // backend, either NONE or PROXY_V1. The default + // is NONE. // Check the ProxyHeader enum for the list of possible values. optional string proxy_header = 160374142; - // [Output Only] URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy. + // [Output Only] URL of the region where the regional TCP proxy resides. + // This field is not applicable to global TCP proxy. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. @@ -42290,10 +77713,15 @@ message TargetTcpProxyAggregatedList { // A list of TargetTcpProxiesScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#targetTcpProxyAggregatedList for lists of Target TCP Proxies. + // [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for lists of Target + // TCP Proxies. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -42318,7 +77746,11 @@ message TargetTcpProxyList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -42329,9 +77761,14 @@ message TargetTcpProxyList { } -// Represents a Target VPN Gateway resource. The target VPN gateway resource represents a Classic Cloud VPN gateway. For more information, read the the Cloud VPN Overview. +// Represents a Target VPN Gateway resource. +// +// The target VPN gateway resource represents a Classic Cloud VPN gateway. +// For more information, read thethe +// Cloud VPN Overview. message TargetVpnGateway { - // [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING. + // [Output Only] The status of the VPN gateway, + // which can be one of the following: CREATING, READY, FAILED, or DELETING. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -42346,44 +77783,70 @@ message TargetVpnGateway { } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created using compute.forwardingRules.insert and associated with a VPN gateway. + // [Output Only] A list of URLs to the ForwardingRule resources. + // ForwardingRules are created usingcompute.forwardingRules.insert and associated with a VPN + // gateway. repeated string forwarding_rules = 315821365; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways. + // [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. optional string kind = 3292052; - // A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. + // A fingerprint for the labels being applied to this TargetVpnGateway, which + // is essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a TargetVpnGateway. optional string label_fingerprint = 178124825; - // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. + // Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. + // Label values may be empty. map labels = 500195327; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created. + // URL of the network to which this VPN gateway is attached. Provided by the + // client when the VPN gateway is created. optional string network = 232872494; - // [Output Only] URL of the region where the target VPN gateway resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the target VPN gateway resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING. + // [Output Only] The status of the VPN gateway, + // which can be one of the following: CREATING, READY, FAILED, or DELETING. // Check the Status enum for the list of possible values. optional string status = 181260274; - // [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the compute.vpntunnels.insert method and associated with a VPN gateway. + // [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are + // created using the compute.vpntunnels.insert method and + // associated with a VPN gateway. repeated string tunnels = 104561931; } @@ -42396,10 +77859,14 @@ message TargetVpnGatewayAggregatedList { // A list of TargetVpnGateway resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways. + // [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -42421,10 +77888,14 @@ message TargetVpnGatewayList { // A list of TargetVpnGateway resources. repeated TargetVpnGateway items = 100526016; - // [Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways. + // [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -42440,29 +77911,36 @@ message TargetVpnGatewaysScopedList { // [Output Only] A list of target VPN gateways contained in this scope. repeated TargetVpnGateway target_vpn_gateways = 401770888; - // [Output Only] Informational warning which replaces the list of addresses when the list is empty. + // [Output Only] Informational warning which replaces the list of addresses + // when the list is empty. optional Warning warning = 50704284; } // message TestFailure { - // The actual output URL evaluated by a load balancer containing the scheme, host, path and query parameters. + // The actual output URL evaluated by a load balancer containing the scheme, + // host, path and query parameters. optional string actual_output_url = 287075458; - // Actual HTTP status code for rule with `urlRedirect` calculated by load balancer + // Actual HTTP status code for rule with `urlRedirect` + // calculated by load balancer optional int32 actual_redirect_response_code = 42926553; - // BackendService or BackendBucket returned by load balancer. + // BackendService or BackendBucket returned by load + // balancer. optional string actual_service = 440379652; - // The expected output URL evaluated by a load balancer containing the scheme, host, path and query parameters. + // The expected output URL evaluated by a load balancer containing the scheme, + // host, path and query parameters. optional string expected_output_url = 433967384; - // Expected HTTP status code for rule with `urlRedirect` calculated by load balancer + // Expected HTTP status code for rule with `urlRedirect` + // calculated by load balancer optional int32 expected_redirect_response_code = 18888047; - // Expected BackendService or BackendBucket resource the given URL should be mapped to. + // Expected BackendService or BackendBucket resource + // the given URL should be mapped to. optional string expected_service = 133987374; // HTTP headers of the request. @@ -42947,6 +78425,22 @@ message TestIamPermissionsRegionAutoscalerRequest { } +// A request message for RegionBackendBuckets.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionBackendBucketRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionBackendServices.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionBackendServiceRequest { // Project ID for this request. @@ -42979,6 +78473,22 @@ message TestIamPermissionsRegionCommitmentRequest { } +// A request message for RegionCompositeHealthChecks.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionCompositeHealthCheckRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionDisks.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionDiskRequest { // Project ID for this request. @@ -42995,6 +78505,22 @@ message TestIamPermissionsRegionDiskRequest { } +// A request message for RegionHealthAggregationPolicies.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionHealthAggregationPolicyRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionHealthChecks.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionHealthCheckRequest { // Project ID for this request. @@ -43235,6 +78761,25 @@ message TestIamPermissionsRegionUrlMapRequest { } +// A request message for ReservationBlocks.TestIamPermissions. See the method description for details. +message TestIamPermissionsReservationBlockRequest { + // Name or id of parent resource of the resource for this request. + string parent_resource = 18091011 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Reservations.TestIamPermissions. See the method description for details. message TestIamPermissionsReservationRequest { // Project ID for this request. @@ -43251,6 +78796,25 @@ message TestIamPermissionsReservationRequest { } +// A request message for ReservationSubBlocks.TestIamPermissions. See the method description for details. +message TestIamPermissionsReservationSubBlockRequest { + // Name or id of parent resource of the resource for this request. + string parent_resource = 18091011 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for ResourcePolicies.TestIamPermissions. See the method description for details. message TestIamPermissionsResourcePolicyRequest { // Project ID for this request. @@ -43556,14 +79120,16 @@ message TestIamPermissionsVpnTunnelRequest { // message TestPermissionsRequest { - // The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. + // The set of permissions to check for the 'resource'. Permissions with + // wildcards (such as '*' or 'storage.*') are not allowed. repeated string permissions = 59962500; } // message TestPermissionsResponse { - // A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + // A subset of `TestPermissionsRequest.permissions` that the caller is + // allowed. repeated string permissions = 59962500; } @@ -43589,10 +79155,12 @@ message UpcomingMaintenance { // Maintenance due to GPU errors. FAILURE_GPU = 467876919; - // Maintenance due to customer reported multiple faulty hosts via R&R Subblock API. + // Maintenance due to customer reported multiple faulty hosts via R&R + // Subblock API. FAILURE_GPU_MULTIPLE_FAULTY_HOSTS_CUSTOMER_REPORTED = 223284959; - // Maintenance due to customer reported NVLink switch failure via R&R Subblock API. + // Maintenance due to customer reported NVLink switch failure via R&R + // Subblock API. FAILURE_GPU_NVLINK_SWITCH_CUSTOMER_REPORTED = 88487838; // Maintenance due to high GPU temperature. @@ -43619,6 +79187,9 @@ message UpcomingMaintenance { // Maintenance due to redundant hardware fault. FAILURE_REDUNDANT_HARDWARE_FAULT = 31000530; + // Maintenance due to TPU errors. + FAILURE_TPU = 467889412; + // Maintenance due to infrastructure relocation. INFRASTRUCTURE_RELOCATION = 359845636; @@ -43654,16 +79225,19 @@ message UpcomingMaintenance { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; - // Multiple maintenance types in one window. This is only intended to be used for groups. + // Multiple maintenance types in one window. + // This is only intended to be used for groups. MULTIPLE = 362714640; - // Scheduled maintenance (e.g. maintenance after uptime guarantee is complete). + // Scheduled maintenance (e.g. maintenance after uptime guarantee is + // complete). SCHEDULED = 478400653; // No type specified. Do not use this value. UNKNOWN_TYPE = 490705455; - // Unscheduled maintenance (e.g. emergency maintenance during uptime guarantee). + // Unscheduled maintenance (e.g. emergency maintenance during + // uptime guarantee). UNSCHEDULED = 450077204; } @@ -43671,7 +79245,8 @@ message UpcomingMaintenance { // Indicates if the maintenance can be customer triggered. optional bool can_reschedule = 95981977; - // The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format. + // The latest time for the planned maintenance window to start. + // This timestamp value is in RFC3339 text format. optional string latest_window_start_time = 128032129; // Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. @@ -43689,10 +79264,12 @@ message UpcomingMaintenance { // Check the Type enum for the list of possible values. optional string type = 3575610; - // The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format. + // The time by which the maintenance disruption will be completed. + // This timestamp value is in RFC3339 text format. optional string window_end_time = 271816480; - // The current start time of the maintenance window. This timestamp value is in RFC3339 text format. + // The current start time of the maintenance window. + // This timestamp value is in RFC3339 text format. optional string window_start_time = 473061433; } @@ -43714,7 +79291,19 @@ message UpdateAccessConfigInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -43739,7 +79328,19 @@ message UpdateAutoscalerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the zone for this request. @@ -43764,7 +79365,19 @@ message UpdateBackendBucketRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -43783,7 +79396,19 @@ message UpdateBackendServiceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -43804,7 +79429,19 @@ message UpdateDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -43832,7 +79469,19 @@ message UpdateDisplayDeviceInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -43857,7 +79506,19 @@ message UpdateFirewallRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -43876,7 +79537,19 @@ message UpdateFutureReservationRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -43904,7 +79577,19 @@ message UpdateHealthCheckRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -43923,10 +79608,23 @@ message UpdateInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where you want to create the managed instance group. + // The name of the zone + // where you want to create the managed instance group. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -43936,7 +79634,10 @@ message UpdateInstanceGroupManagerRequest { // A request message for Instances.Update. See the method description for details. message UpdateInstanceRequest { - // Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require. + // Specifies the action to take when updating an instance even if the + // updated properties do not require it. If not specified, then + // Compute Engine acts based on the minimum action that the updated + // properties require. // Additional supported values which may be not listed in the enum directly due to technical reasons: // INVALID // NO_EFFECT @@ -43948,7 +79649,11 @@ message UpdateInstanceRequest { } - // Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART. + // Specifies the most disruptive action that can be taken on the instance + // as part of the update. Compute Engine returns an error if the + // instance properties require a more disruptive action as part of the + // instance update. Valid options from lowest to highest are + // NO_EFFECT, REFRESH, and RESTART. // Additional supported values which may be not listed in the enum directly due to technical reasons: // INVALID // NO_EFFECT @@ -43966,11 +79671,18 @@ message UpdateInstanceRequest { // The body resource for this request Instance instance_resource = 215988344 [(google.api.field_behavior) = REQUIRED]; - // Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require. + // Specifies the action to take when updating an instance even if the + // updated properties do not require it. If not specified, then + // Compute Engine acts based on the minimum action that the updated + // properties require. // Check the MinimalAction enum for the list of possible values. optional string minimal_action = 270567060; - // Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART. + // Specifies the most disruptive action that can be taken on the instance + // as part of the update. Compute Engine returns an error if the + // instance properties require a more disruptive action as part of the + // instance update. Valid options from lowest to highest are + // NO_EFFECT, REFRESH, and RESTART. // Check the MostDisruptiveAllowedAction enum for the list of possible values. optional string most_disruptive_allowed_action = 66103053; @@ -43980,7 +79692,19 @@ message UpdateInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -44005,7 +79729,19 @@ message UpdateLicenseRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -44030,7 +79766,19 @@ message UpdateNetworkInterfaceInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The name of the zone for this request. @@ -44055,14 +79803,27 @@ message UpdatePeeringNetworkRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } // A request message for InstanceGroupManagers.UpdatePerInstanceConfigs. See the method description for details. message UpdatePerInstanceConfigsInstanceGroupManagerRequest { - // The name of the managed instance group. It should conform to RFC1035. + // The name of the managed instance group. + // It should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request @@ -44074,10 +79835,24 @@ message UpdatePerInstanceConfigsInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The name of the zone where the managed instance group is located. It should conform to RFC1035. + // The name of thezone + // where the managed instance group is located. + // It should conform to RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -44087,7 +79862,8 @@ message UpdatePerInstanceConfigsInstanceGroupManagerRequest { // A request message for RegionInstanceGroupManagers.UpdatePerInstanceConfigs. See the method description for details. message UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest { - // The name of the managed instance group. It should conform to RFC1035. + // The name of the managed instance group. + // It should conform to RFC1035. string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -44105,7 +79881,19 @@ message UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest { // The body resource for this request RegionInstanceGroupManagerUpdateInstanceConfigReq region_instance_group_manager_update_instance_config_req_resource = 89036583 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -44124,7 +79912,19 @@ message UpdatePreviewFeatureRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -44149,7 +79949,19 @@ message UpdateRegionAutoscalerRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -44174,7 +79986,19 @@ message UpdateRegionBackendServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -44201,7 +80025,19 @@ message UpdateRegionCommitmentRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -44231,7 +80067,19 @@ message UpdateRegionDiskRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // update_mask indicates fields to be updated as part of this request. @@ -44259,7 +80107,19 @@ message UpdateRegionHealthCheckRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -44284,7 +80144,19 @@ message UpdateRegionInstanceGroupManagerRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -44303,7 +80175,8 @@ message UpdateRegionUrlMapRequest { (google.cloud.operation_request_field) = "region" ]; - // begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + // begin_interface: MixerMutationRequestBuilder + // Request ID to support idempotency. optional string request_id = 37109963; // Name of the UrlMap resource to update. @@ -44324,7 +80197,19 @@ message UpdateReservationRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the reservation to update. @@ -44364,7 +80249,19 @@ message UpdateReservationsRegionCommitmentRequest { // The body resource for this request RegionCommitmentsUpdateReservationsRequest region_commitments_update_reservations_request_resource = 453621612 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -44383,7 +80280,19 @@ message UpdateRoutePolicyRouterRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -44408,7 +80317,19 @@ message UpdateRouterRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the Router resource to update. @@ -44430,7 +80351,19 @@ message UpdateShieldedInstanceConfigInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -44455,7 +80388,19 @@ message UpdateShieldedVmConfigInstanceRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The body resource for this request @@ -44477,7 +80422,19 @@ message UpdateStoragePoolRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // The storagePool name for this request. @@ -44505,7 +80462,19 @@ message UpdateUrlMapRequest { (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; // Name of the UrlMap resource to update. @@ -44516,54 +80485,222 @@ message UpdateUrlMapRequest { } -// Represents a URL Map resource. Compute Engine has two URL Map resources: * [Global](/compute/docs/reference/rest/beta/urlMaps) * [Regional](/compute/docs/reference/rest/beta/regionUrlMaps) A URL map resource is a component of certain types of cloud load balancers and Traffic Director: * urlMaps are used by global external Application Load Balancers, classic Application Load Balancers, and cross-region internal Application Load Balancers. * regionUrlMaps are used by internal Application Load Balancers, regional external Application Load Balancers and regional internal Application Load Balancers. For a list of supported URL map features by the load balancer type, see the Load balancing features: Routing and traffic management table. For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table. This resource defines mappings from hostnames and URL paths to either a backend service or a backend bucket. To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either EXTERNAL, EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the backend service must have a loadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts. +// A request message for ZoneVmExtensionPolicies.Update. See the method description for details. +message UpdateZoneVmExtensionPolicyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name of the zone VM extension policy to update. + string vm_extension_policy = 331532730 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + VmExtensionPolicy vm_extension_policy_resource = 515669235 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// Represents a URL Map resource. +// +// Compute Engine has two URL Map resources: +// +// * [Global](/compute/docs/reference/rest/beta/urlMaps) +// * [Regional](/compute/docs/reference/rest/beta/regionUrlMaps) +// +// A URL map resource is a component of certain types of cloud load balancers +// and Traffic Director: +// +// * urlMaps are used by global external Application Load +// Balancers, classic Application Load Balancers, and cross-region internal +// Application Load Balancers. +// * regionUrlMaps are used by internal Application Load Balancers, +// regional external Application Load Balancers and regional internal +// Application Load Balancers. +// +// For a list of supported URL map features by the load balancer type, see the +// Load balancing features: Routing and traffic management table. +// +// For a list of supported URL map features for Traffic Director, see the +// Traffic Director features: Routing and traffic management table. +// +// This resource defines mappings from hostnames and URL paths to either a +// backend service or a backend bucket. +// +// To use the global urlMaps resource, the backend service must +// have a loadBalancingScheme of either EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use +// the regionUrlMaps resource, the backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more +// information, read URL +// Map Concepts. message UrlMap { - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the load balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers. + // defaultCustomErrorResponsePolicy specifies how the Load + // Balancer returns error responses when BackendServiceorBackendBucket responds with an error. + // + // This policy takes + // effect at the load balancer level and applies only when no policy has been + // defined for the error code at lower levels like PathMatcher, RouteRule and + // PathRule within this UrlMap. + // + // For example, consider a UrlMap with the + // following configuration: + // + // + // - defaultCustomErrorResponsePolicy containing policies for + // responding to 5xx and 4xx errors + // - A PathMatcher configured for *.example.com has + // defaultCustomErrorResponsePolicy for 4xx. + // + // If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced. + // When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When + // a request that does not match any host in *.example.com such + // as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy + // takes effect. + // + // When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only + // once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting + // a retry, if load balancer is successful in reaching the + // service, the defaultCustomErrorResponsePolicy is ignored and + // the response from the service is returned to the client. + // + // defaultCustomErrorResponsePolicy is supported only for + // global external Application Load Balancers. optional CustomErrorResponsePolicy default_custom_error_response_policy = 81266089; - // defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. + // defaultRouteAction takes effect when none of the + // hostRules match. The load balancer performs advanced routing + // actions, such as URL rewrites and header transformations, before forwarding + // the request to the selected backend. + // + // + // Only one of defaultUrlRedirect, defaultService + // or defaultRouteAction.weightedBackendService can be set. + // + // + // URL maps for classic Application Load Balancers only support + // the urlRewrite action within defaultRouteAction. + // + // + // defaultRouteAction has no effect when the URL map is bound + // to a target gRPC proxy that has the validateForProxyless field + // set to true. optional HttpRouteAction default_route_action = 378919466; - // The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. + // The full or partial URL of the defaultService resource to + // which traffic is directed if none of the hostRules match. + // If defaultRouteAction is also specified, advanced + // routing actions, such as URL rewrites, take effect before sending the + // request to the backend. + // + // + // Only one of defaultUrlRedirect, defaultService + // or defaultRouteAction.weightedBackendService can be set. + // + // + // defaultService has no effect when the URL map is bound + // to a target gRPC proxy that has the validateForProxyless field + // set to true. optional string default_service = 370242231; - // When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy. + // When none of the specified hostRules match, the request + // is redirected to a URL specified by defaultUrlRedirect. + // + // + // Only one of defaultUrlRedirect, defaultService + // or defaultRouteAction.weightedBackendService can be set. + // + // + // Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction default_url_redirect = 359503338; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap. + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field is ignored when + // inserting a UrlMap. An up-to-date fingerprint must be provided + // in order to update the UrlMap, otherwise the request will + // fail with error 412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a UrlMap. optional string fingerprint = 234678500; - // Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. + // Specifies changes to request and response headers that need to take effect + // for the selected backendService. + // + // The headerAction specified here take effect afterheaderAction specified under pathMatcher. + // + // headerAction is not supported for load balancers + // that have + // their loadBalancingScheme set to EXTERNAL. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has validateForProxyless field set to true. optional HttpHeaderAction header_action = 328077352; // The list of host rules to use against the URL. repeated HostRule host_rules = 311804832; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#urlMaps for url maps. + // [Output Only] Type of the resource. Always compute#urlMaps for + // url maps. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; // The list of named PathMatchers to use against the URL. repeated PathMatcher path_matchers = 271664219; - // [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the regional URL map resides. + // This field is not applicable to global URL maps. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. + // The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a + // maximum of 100 tests per UrlMap. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has validateForProxyless field set to true. repeated UrlMapTest tests = 110251553; } @@ -44579,7 +80716,11 @@ message UrlMapList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -44601,22 +80742,44 @@ message UrlMapTest { // Description of this test case. optional string description = 422937596; - // The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified. + // The expected output URL evaluated by the load balancer + // containing the scheme, host, path and query parameters. + // + // For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by + // the load balancer to backends. For rules with urlRewrite, + // the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored. + // + // For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer's + // redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS. + // If urlRedirect specifies strip_query, the test + // passes only if expectedOutputUrl does not contain any query + // parameters. + // + // expectedOutputUrl is optional whenservice is specified. optional string expected_output_url = 433967384; - // For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set. + // For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in + // load balancer's redirect response. + // + // expectedRedirectResponseCode cannot be set whenservice is set. optional int32 expected_redirect_response_code = 18888047; - // HTTP headers for this request. If headers contains a host header, then host must also match the header value. + // HTTP headers for this request. If headers contains + // a host header, then host must also match the header value. repeated UrlMapTestHeader headers = 258436998; - // Host portion of the URL. If headers contains a host header, then host must also match the header value. + // Host portion of the URL. If headers contains a host header, + // then host must also match the header value. optional string host = 3208616; // Path portion of the URL. optional string path = 3433509; - // Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set. + // Expected BackendService or BackendBucket resource + // the given URL should be mapped to. + // + // The service field cannot + // be set if expectedRedirectResponseCode is set. optional string service = 373540533; } @@ -44635,12 +80798,14 @@ message UrlMapTestHeader { message UrlMapValidationResult { repeated string load_errors = 310147300; - // Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons. + // Whether the given UrlMap can be successfully loaded. + // If false, 'loadErrors' indicates the reasons. optional bool load_succeeded = 128326216; repeated TestFailure test_failures = 505934134; - // If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure. + // If successfully loaded, this field indicates whether the test passed. + // If false, 'testFailures's indicate the reason of failure. optional bool test_passed = 192708797; } @@ -44656,7 +80821,11 @@ message UrlMapsAggregatedList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -44675,7 +80844,8 @@ message UrlMapsScopedList { // A list of UrlMaps contained in this scope. repeated UrlMap url_maps = 103352167; - // Informational warning which replaces the list of backend services when the list is empty. + // Informational warning which replaces the list of + // backend services when the list is empty. optional Warning warning = 50704284; } @@ -44690,15 +80860,32 @@ message UrlMapsValidateRequest { // Signifies that this will be used for classic Application Load Balancers. EXTERNAL = 35607499; - // Signifies that this will be used for Envoy-based global external Application Load Balancers. + // Signifies that this will be used for Envoy-based global external + // Application Load Balancers. EXTERNAL_MANAGED = 512006923; - // If unspecified, the validation will try to infer the scheme from the backend service resources this Url map references. If the inference is not possible, EXTERNAL will be used as the default type. + // If unspecified, the validation will try to infer the scheme from the + // backend service resources this Url map references. If the inference is not + // possible, EXTERNAL will be used as the default type. LOAD_BALANCING_SCHEME_UNSPECIFIED = 526507452; } - // Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for global external Application Load Balancers and regional external Application Load Balancers. Use EXTERNAL for classic Application Load Balancers. Use INTERNAL_MANAGED for internal Application Load Balancers. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references. + // Specifies the load balancer type(s) this validation request is for. UseEXTERNAL_MANAGED for global external Application Load + // Balancers and regional external Application Load Balancers. + // Use EXTERNAL for classic Application Load Balancers. + // + // Use INTERNAL_MANAGED for internal Application Load Balancers. For more + // information, refer to Choosing + // a load balancer. + // + // If unspecified, the load balancing scheme will be inferred from the backend + // service resources this URL map references. If that can not be inferred (for + // example, this URL map only references backend buckets, or this Url map is + // for rewrites and redirects only and doesn't reference any backends),EXTERNAL will be used as the default type. + // + // If specified, the scheme(s) must not conflict with the load balancing + // scheme of the backend service resources this Url map references. // Check the LoadBalancingSchemes enum for the list of possible values. repeated string load_balancing_schemes = 6308527; @@ -44713,30 +80900,65 @@ message UrlMapsValidateResponse { } -// The spec for modifying the path before sending the request to the matched backend service. +// The spec for modifying the path before sending the request to the matched +// backend service. message UrlRewrite { - // Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters. + // Before forwarding the request to the selected service, the request's + // host header is replaced with contents of hostRewrite. + // + // The value must be from 1 to 255 characters. optional string host_rewrite = 159819253; - // Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters. + // Before forwarding the request to the selected backend service, the + // matching portion of the request's path is replaced bypathPrefixRewrite. + // + // The value must be from 1 to 1024 characters. optional string path_prefix_rewrite = 41186361; - // If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax. A corresponding path_template_match must be specified. Any template variables must exist in the path_template_match field. - -At least one variable must be specified in the path_template_match field - You can omit variables from the rewritten URL - The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}. For example, a path_template_match of /static/{format=**} could be rewritten as /static/content/{format} to prefix /content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as /content/{format}/{country}/{suffix}. At least one non-empty routeRules[].matchRules[].path_template_match is required. Only one of path_prefix_rewrite or path_template_rewrite may be specified. + // If specified, the pattern rewrites the URL path (based on the :path + // header) using the HTTP template syntax. + // + // A corresponding + // path_template_match must be specified. Any template variables must exist in + // the path_template_match field. + // + // + // - -At least one variable must be specified in the path_template_match + // field + // - You can omit variables from the rewritten URL + // - The * and ** operators cannot be matched + // unless they have a corresponding variable name - e.g. + // {format=*} or {var=**}. + // + // For example, a path_template_match of /static/{format=**} + // could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a + // rewrite, so that /{country}/{format}/{suffix=**} can be + // rewritten as /content/{format}/{country}/{suffix}. + // + // At least + // one non-empty routeRules[].matchRules[].path_template_match is + // required. + // + // Only one of path_prefix_rewrite orpath_template_rewrite may be specified. optional string path_template_rewrite = 423409569; } // Subnetwork which the current user has compute.subnetworks.use permission on. message UsableSubnetwork { - // The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + // The access type of IPv6 address this subnet holds. It's immutable and can + // only be specified during creation or the first time the subnet is updated + // into IPV4_IPV6 dual stack. enum Ipv6AccessType { // A value indicating that the enum field is not set. UNDEFINED_IPV6_ACCESS_TYPE = 0; - // VMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network. + // VMs on this subnet will be assigned IPv6 addresses that are accessible + // via the Internet, as well as the VPC network. EXTERNAL = 35607499; - // VMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network. + // VMs on this subnet will be assigned IPv6 addresses that are only + // accessible over the VPC network. INTERNAL = 279295677; } @@ -44749,10 +80971,13 @@ message UsableSubnetwork { // Subnet reserved for Global Envoy-based Load Balancing. GLOBAL_MANAGED_PROXY = 236463602; - // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY instead. + // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy + // purpose, please use REGIONAL_MANAGED_PROXY instead. INTERNAL_HTTPS_LOAD_BALANCER = 248748889; - // Subnetwork will be used for Migration from one peered VPC to another. (a transient state of subnetwork while migrating resources from one project to another). + // Subnetwork will be used for Migration from one peered VPC to another. + // (a transient state of subnetwork + // while migrating resources from one project to another). PEER_MIGRATION = 491902225; // Regular user created or automatically created subnet. @@ -44772,7 +80997,12 @@ message UsableSubnetwork { } - // The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. + // The role of subnetwork. Currently, this field is only used when + // purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE + // subnetwork is one that is currently being used for Envoy-based load + // balancers in a region. A BACKUP subnetwork is one that is + // ready to be promoted to ACTIVE or is currently draining. + // This field can be updated with a patch request. enum Role { // A value indicating that the enum field is not set. UNDEFINED_ROLE = 0; @@ -44785,7 +81015,11 @@ message UsableSubnetwork { } - // The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. + // The stack type for the subnet. If set to IPV4_ONLY, new VMs + // in the subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and + // IPv6 addresses. If not specified, IPV4_ONLY is used. + // + // This field can be both set at resource creation time and updated usingpatch. enum StackType { // A value indicating that the enum field is not set. UNDEFINED_STACK_TYPE = 0; @@ -44801,16 +81035,20 @@ message UsableSubnetwork { } - // [Output Only] The external IPv6 address range that is assigned to this subnetwork. + // [Output Only] The external IPv6 address range that is assigned to this + // subnetwork. optional string external_ipv6_prefix = 139299190; - // [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + // [Output Only] The internal IPv6 address range that is assigned to this + // subnetwork. optional string internal_ipv6_prefix = 506270056; // The range of internal addresses that are owned by this subnetwork. optional string ip_cidr_range = 98117322; - // The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + // The access type of IPv6 address this subnet holds. It's immutable and can + // only be specified during creation or the first time the subnet is updated + // into IPV4_IPV6 dual stack. // Check the Ipv6AccessType enum for the list of possible values. optional string ipv6_access_type = 504658653; @@ -44821,14 +81059,23 @@ message UsableSubnetwork { // Check the Purpose enum for the list of possible values. optional string purpose = 316407070; - // The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. + // The role of subnetwork. Currently, this field is only used when + // purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE + // subnetwork is one that is currently being used for Envoy-based load + // balancers in a region. A BACKUP subnetwork is one that is + // ready to be promoted to ACTIVE or is currently draining. + // This field can be updated with a patch request. // Check the Role enum for the list of possible values. optional string role = 3506294; // Secondary IP ranges. repeated UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915; - // The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. + // The stack type for the subnet. If set to IPV4_ONLY, new VMs + // in the subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and + // IPv6 addresses. If not specified, IPV4_ONLY is used. + // + // This field can be both set at resource creation time and updated usingpatch. // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; @@ -44842,26 +81089,38 @@ message UsableSubnetworkSecondaryRange { // The range of IP addresses belonging to this subnetwork secondary range. optional string ip_cidr_range = 98117322; - // The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork. + // The name associated with this subnetwork secondary range, used when adding + // an alias IP range to a VM instance. + // The name must be 1-63 characters long, and comply withRFC1035. + // The name must be unique within the subnetwork. optional string range_name = 332216397; } // message UsableSubnetworksAggregatedList { - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional string id = 3355; // [Output] A list of usable subnetwork URLs. repeated UsableSubnetwork items = 100526016; - // [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks. + // [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated lists + // of usable subnetworks. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + // In special cases listUsable may return 0 subnetworks andnextPageToken which still should be used to get the + // next page of results. optional string next_page_token = 79797525; - // [Output Only] Informational warning messages for failures encountered from scopes. + // [Output Only] Informational warning messages for failures encountered from + // scopes. repeated SubnetworksScopedWarning scoped_warnings = 215878438; // [Output Only] Server-defined URL for this resource. @@ -44875,12 +81134,19 @@ message UsableSubnetworksAggregatedList { } -// The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix. +// The location in Cloud Storage and naming method of the daily usage +// report. Contains bucket_name and report_name prefix. message UsageExportLocation { - // The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket. + // The name of an existing bucket in Cloud Storage where the usage report + // object is stored. The Google Service Account is granted write access to + // this bucket. This can either be the bucket name by itself, such asexample-bucket, or the bucket name with gs:// + // or https://storage.googleapis.com/ in front of it, such + // as gs://example-bucket. optional string bucket_name = 283610048; - // An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions. + // An optional prefix for the name of the usage report object stored inbucketName. If not supplied, defaults tousage_gce. The report is stored as a CSV file namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to Pacific Time. + // If you supply a prefix, it should conform to Cloud Storageobject naming + // conventions. optional string report_name_prefix = 320198715; } @@ -44925,22 +81191,33 @@ message VmEndpointNatMappings { // Contain information of Nat mapping for an interface of this endpoint. message VmEndpointNatMappingsInterfaceNatMappings { - // List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + // List of all drain IP:port-range mappings assigned to this interface. + // These ranges are inclusive, that is, both the first and the last + // ports can be used for NAT. Example: ["2.2.2.2:12345-12355", + // "1.1.1.1:2234-2234"]. repeated string drain_nat_ip_port_ranges = 395440577; - // A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + // A list of all IP:port-range mappings assigned to this interface. + // These ranges are inclusive, that is, both the first and the last + // ports can be used for NAT. Example: ["2.2.2.2:12345-12355", + // "1.1.1.1:2234-2234"]. repeated string nat_ip_port_ranges = 531830810; - // Total number of drain ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field drain_nat_ip_port_ranges. + // Total number of drain ports across all NAT IPs allocated to this + // interface. It equals to the aggregated port number in the field + // drain_nat_ip_port_ranges. optional int32 num_total_drain_nat_ports = 335532793; - // Total number of ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field nat_ip_port_ranges. + // Total number of ports across all NAT IPs allocated to this interface. + // It equals to the aggregated port number in the field nat_ip_port_ranges. optional int32 num_total_nat_ports = 299904384; // Information about mappings provided by rules in this NAT. repeated VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968; - // Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24". + // Alias IP range for this interface endpoint. + // It will be a private (RFC 1918) IP range. + // Examples: "10.33.4.55/32", or "192.168.5.0/24". optional string source_alias_ip_range = 440340952; // Primary IP of the VM for this NIC. @@ -44950,16 +81227,29 @@ message VmEndpointNatMappingsInterfaceNatMappings { // Contains information of NAT Mappings provided by a NAT Rule. message VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings { - // List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + // List of all drain IP:port-range mappings assigned to this interface + // by this rule. + // These ranges are inclusive, that is, both the first and the last + // ports can be used for NAT. Example: ["2.2.2.2:12345-12355", + // "1.1.1.1:2234-2234"]. repeated string drain_nat_ip_port_ranges = 395440577; - // A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + // A list of all IP:port-range mappings assigned to this interface by this + // rule. + // These ranges are inclusive, that is, both the first and the last + // ports can be used for NAT. Example: ["2.2.2.2:12345-12355", + // "1.1.1.1:2234-2234"]. repeated string nat_ip_port_ranges = 531830810; - // Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. + // Total number of drain ports across all NAT IPs allocated to this + // interface by this rule. + // It equals the aggregated port number in the field + // drain_nat_ip_port_ranges. optional int32 num_total_drain_nat_ports = 335532793; - // Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges. + // Total number of ports across all NAT IPs allocated to this interface + // by this rule. + // It equals the aggregated port number in the field nat_ip_port_ranges. optional int32 num_total_nat_ports = 299904384; // Rule number of the NAT Rule. @@ -44969,13 +81259,19 @@ message VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings { // Contains a list of VmEndpointNatMappings. message VmEndpointNatMappingsList { - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional string id = 3355; - // [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints. + // [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat mappings of + // VM endpoints. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] A list of Nat mapping information of VM endpoints. @@ -44989,9 +81285,216 @@ message VmEndpointNatMappingsList { } -// Represents a HA VPN gateway. HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely connect your on-premises network to your Google Cloud Virtual Private Cloud network through an IPsec VPN connection in a single region. For more information about Cloud HA VPN solutions, see Cloud VPN topologies . +// +message VmExtensionPoliciesScopedList { + // List of VmExtensionPolicy resources contained in this scope. + repeated VmExtensionPolicy vm_extension_policies = 238490584; + + // Informational warning which replaces the list of + // backend services when the list is empty. + optional Warning warning = 50704284; + +} + +// Represents a VM extension policy. +message VmExtensionPolicy { + // Optional. [Output Only] Current state of the policy: ACTIVE or DELETING. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // The policy is active and applied to matching VMs. + // Newly created VMs that match the policy will also receive the + // extension policy. + ACTIVE = 314733318; + + // The policy is in the process of being deleted. After the extension is + // removed from all matching VMs, the policy will be deleted. + DELETING = 528602024; + + // Default value. Do not use. + STATE_UNSPECIFIED = 470755401; + + } + + // [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // An optional description of this resource. + optional string description = 422937596; + + // Required. A map of extension names (e.g., "cloudops") to their corresponding policy + // configurations. + map extension_policies = 227761488; + + // Optional. [Output Only] Link to the global policy that manages this zone policy, if + // applicable. + optional string global_resource_link = 516569583; + + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Optional. Selectors to target VMs for this policy. VMs are selected if they match + // *any* of the provided selectors (logical OR). If this list is empty, the + // policy applies to all VMs. + repeated VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + + // [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + optional string kind = 3292052; + + // Optional. [Output Only] Indicates if this policy is managed by a global policy. + optional bool managed_by_global = 88605675; + + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` + // which means the first character must be a lowercase letter, and all + // following characters must be a dash, lowercase letter, or digit, except + // the last character, which cannot be a dash. + optional string name = 3373707; + + // Optional. Priority of this policy. Used to resolve conflicts when multiple policies + // apply to the same extension. + // The policy priority is an integer from 0 to 65535, inclusive. Lower + // integers indicate higher priorities. If you do not specify a priority when + // creating a rule, it is assigned a priority of 1000. If priorities are + // equal, the policy with the more recent creation timestamp takes precedence. + optional int32 priority = 445151652; + + // [Output Only] Server-defined fully-qualified URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + // Optional. [Output Only] Current state of the policy: ACTIVE or DELETING. + // Check the State enum for the list of possible values. + optional string state = 109757585; + + // [Output Only] Update timestamp inRFC3339 + // text format. + optional string update_timestamp = 120894752; + +} + +// Response for the aggregated list of VM extension policies. +message VmExtensionPolicyAggregatedListResponse { + optional string etag = 3123477; + + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of VmExtensionPoliciesScopedList resources. + map items = 100526016; + + // [Output Only] Type of resource. Alwayscompute#VmExtensionPolicyAggregatedList for lists of + // VmExtensionPolicies. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// Configuration for a specific VM extension. +message VmExtensionPolicyExtensionPolicy { + // Optional. The specific version of the extension to install. If not set, the latest + // version is used. + optional string pinned_version = 446267249; + + // Optional. String-based configuration data for the extension. + optional string string_config = 318905136; + +} + +// Defines how to select VMs to apply a zone VM extension policy. +message VmExtensionPolicyInstanceSelector { + // Optional. LabelSelector selects VMs based on their labels. + optional VmExtensionPolicyLabelSelector label_selector = 349780170; + +} + +// A LabelSelector is applied to a VM only if it matches all the specified +// labels. +message VmExtensionPolicyLabelSelector { + // Optional. A map of key-value pairs representing VM labels. + // VMs must have all of the labels specified in this map to be selected + // (logical AND). + // + // e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", + // "value2")}, the VM labels must contain both ("key1", "value1") and + // ("key2", "value2") to be selected. If the VM labels are ("key1", + // "value1") and ("something", "else"), it will not be selected. + // + // If the map is empty, it's considered a match. + map inclusion_labels = 501312642; + +} + +// +message VmExtensionPolicyList { + // [Output Only] Fingerprint of this resource. A hash of the contents stored + // in this object. This field is used in optimistic locking. This field will + // be ignored when inserting a VmExtensionPolicy. An up-to-date + // fingerprint must be provided in order to update the VmExtensionPolicy. + // + // To see the latest value of the fingerprint, make a get() request to + // retrieve a VmExtensionPolicy. + optional string etag = 3123477; + + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // [Output Only] A list of VM extension policy resources. + repeated VmExtensionPolicy items = 100526016; + + // Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// Represents a HA VPN gateway. +// +// HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely +// connect your on-premises network to your Google Cloud Virtual Private Cloud +// network through an IPsec VPN connection in a single region. +// For more information about Cloud HA VPN solutions, see +// Cloud VPN topologies . message VpnGateway { - // The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used. + // The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not + // specified, IPV4 will be used. enum GatewayIpVersion { // A value indicating that the enum field is not set. UNDEFINED_GATEWAY_IP_VERSION = 0; @@ -45004,7 +81507,8 @@ message VpnGateway { } - // The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6, IPV6_ONLY. If not specified, IPV4_ONLY is used if the gateway IP version is IPV4, or IPV4_IPV6 if the gateway IP version is IPV6. + // The stack type for this VPN gateway to identify the IP protocols that are + // enabled. Possible values are: IPV4_ONLY,IPV4_IPV6, IPV6_ONLY. If not specified,IPV4_ONLY is used if the gateway IP version isIPV4, or IPV4_IPV6 if the gateway IP version isIPV6. enum StackType { // A value indicating that the enum field is not set. UNDEFINED_STACK_TYPE = 0; @@ -45020,32 +81524,53 @@ message VpnGateway { } - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; - // The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used. + // The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not + // specified, IPV4 will be used. // Check the GatewayIpVersion enum for the list of possible values. optional string gateway_ip_version = 65074843; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + // [Output Only] Type of resource. Always compute#vpnGateway for + // VPN gateways. optional string kind = 3292052; - // A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnGateway. + // A fingerprint for the labels being applied to this VpnGateway, which + // is essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a VpnGateway. optional string label_fingerprint = 178124825; - // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. + // Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. + // Label values may be empty. map labels = 500195327; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created. + // URL of the network to which this VPN gateway is attached. Provided by the + // client when the VPN gateway is created. optional string network = 232872494; // [Output Only] URL of the region where the VPN gateway resides. @@ -45054,7 +81579,8 @@ message VpnGateway { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6, IPV6_ONLY. If not specified, IPV4_ONLY is used if the gateway IP version is IPV4, or IPV4_IPV6 if the gateway IP version is IPV6. + // The stack type for this VPN gateway to identify the IP protocols that are + // enabled. Possible values are: IPV4_ONLY,IPV4_IPV6, IPV6_ONLY. If not specified,IPV4_ONLY is used if the gateway IP version isIPV4, or IPV4_IPV6 if the gateway IP version isIPV6. // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; @@ -45071,10 +81597,15 @@ message VpnGatewayAggregatedList { // A list of VpnGateway resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + // [Output Only] Type of resource. Always compute#vpnGateway for + // VPN gateways. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -45096,10 +81627,15 @@ message VpnGatewayList { // A list of VpnGateway resources. repeated VpnGateway items = 100526016; - // [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + // [Output Only] Type of resource. Always compute#vpnGateway for + // VPN gateways. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -45117,22 +81653,32 @@ message VpnGatewayStatus { } -// Describes the high availability requirement state for the VPN connection between this Cloud VPN gateway and a peer gateway. +// Describes the high availability requirement state for the VPN connection +// between this Cloud VPN gateway and a peer gateway. message VpnGatewayStatusHighAvailabilityRequirementState { - // Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. + // Indicates the high availability requirement state for the VPN connection. + // Valid values are CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; - // VPN tunnels are configured with adequate redundancy from Cloud VPN gateway to the peer VPN gateway. For both GCP-to-non-GCP and GCP-to-GCP connections, the adequate redundancy is a pre-requirement for users to get 99.99% availability on GCP side; please note that for any connection, end-to-end 99.99% availability is subject to proper configuration on the peer VPN gateway. + // VPN tunnels are configured with adequate redundancy from Cloud VPN + // gateway to the peer VPN gateway. For both GCP-to-non-GCP and GCP-to-GCP + // connections, the adequate redundancy is a pre-requirement for users to + // get 99.99% availability on GCP side; please note that for any + // connection, end-to-end 99.99% availability is subject to proper + // configuration on the peer VPN gateway. CONNECTION_REDUNDANCY_MET = 505242907; - // VPN tunnels are not configured with adequate redundancy from the Cloud VPN gateway to the peer gateway + // VPN tunnels are not configured with adequate redundancy from the Cloud + // VPN gateway to the peer gateway CONNECTION_REDUNDANCY_NOT_MET = 511863311; } - // Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. + // Indicates the reason why the VPN connection does not meet the high + // availability redundancy criteria/requirement. + // Valid values is INCOMPLETE_TUNNELS_COVERAGE. enum UnsatisfiedReason { // A value indicating that the enum field is not set. UNDEFINED_UNSATISFIED_REASON = 0; @@ -45141,11 +81687,14 @@ message VpnGatewayStatusHighAvailabilityRequirementState { } - // Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. + // Indicates the high availability requirement state for the VPN connection. + // Valid values are CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. // Check the State enum for the list of possible values. optional string state = 109757585; - // Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. + // Indicates the reason why the VPN connection does not meet the high + // availability redundancy criteria/requirement. + // Valid values is INCOMPLETE_TUNNELS_COVERAGE. // Check the UnsatisfiedReason enum for the list of possible values. optional string unsatisfied_reason = 55016330; @@ -45156,7 +81705,9 @@ message VpnGatewayStatusTunnel { // The VPN gateway interface this VPN tunnel is associated with. optional uint32 local_gateway_interface = 158764330; - // The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway. + // The peer gateway interface this VPN tunnel is connected to, the peer + // gateway could either be an external VPN gateway or a Google Cloud + // VPN gateway. optional uint32 peer_gateway_interface = 214380385; // URL reference to the VPN tunnel. @@ -45164,12 +81715,18 @@ message VpnGatewayStatusTunnel { } -// A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway. +// A VPN connection contains all VPN tunnels connected from this VpnGateway +// to the same peer gateway. The peer gateway could either be an external VPN +// gateway or a Google Cloud VPN gateway. message VpnGatewayStatusVpnConnection { - // URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. + // URL reference to the peer external VPN gateways to which the VPN tunnels + // in this VPN connection are connected. + // This field is mutually exclusive with peer_gcp_gateway. optional string peer_external_gateway = 384956173; - // URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. + // URL reference to the peer side VPN gateways to which the VPN tunnels in + // this VPN connection are connected. + // This field is mutually exclusive with peer_gcp_gateway. optional string peer_gcp_gateway = 281867452; // HighAvailabilityRequirementState for the VPN connection. @@ -45182,16 +81739,34 @@ message VpnGatewayStatusVpnConnection { // A VPN gateway interface. message VpnGatewayVpnGatewayInterface { - // [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + // [Output Only] Numeric identifier for this VPN interface associated with + // the VPN gateway. optional uint32 id = 3355; - // URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. + // URL of the VLAN attachment (interconnectAttachment) resource for this + // VPN gateway interface. When the value of this field is present, the VPN + // gateway is used for HA VPN over Cloud Interconnect; all egress + // or ingress traffic for this VPN gateway interface goes through the + // specified VLAN attachment resource. optional string interconnect_attachment = 308135284; - // [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address. + // [Output Only] IP address for this VPN interface associated with the VPN + // gateway. + // The IP address could be either a regional external IP address or + // a regional internal IP address. The two IP addresses for a VPN gateway + // must be all regional external or regional internal IP addresses. There + // cannot be a mix of regional external IP addresses and regional internal + // IP addresses. For HA VPN over Cloud Interconnect, the IP addresses + // for both interfaces could either be regional internal IP addresses or + // regional external IP addresses. For regular (non HA VPN over Cloud + // Interconnect) HA VPN tunnels, the IP address must be a regional external + // IP address. optional string ip_address = 406272220; - // [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). + // [Output Only] IPv6 address for this VPN interface associated with the VPN + // gateway. + // The IPv6 address must be a regional external IPv6 address. The format is + // RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). optional string ipv6_address = 341563804; } @@ -45207,19 +81782,55 @@ message VpnGatewaysScopedList { // [Output Only] A list of VPN gateways contained in this scope. repeated VpnGateway vpn_gateways = 259177882; - // [Output Only] Informational warning which replaces the list of addresses when the list is empty. + // [Output Only] Informational warning which replaces the list of addresses + // when the list is empty. optional Warning warning = 50704284; } -// Represents a Cloud VPN Tunnel resource. For more information about VPN, read the the Cloud VPN Overview. +// Represents a Cloud VPN Tunnel resource. +// +// For more information about VPN, read the +// the Cloud VPN Overview. message VpnTunnel { - // [Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. + // [Output Only] The status of the VPN tunnel, which can be one of the + // following: + // + // - PROVISIONING: Resource is being allocated for the VPN tunnel. + // - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs + // from + // the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route + // resources are needed to setup the VPN tunnel. + // - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. + // - ESTABLISHED: Secure session is successfully established with the peer + // VPN. + // - NETWORK_ERROR: Deprecated, replaced by + // NO_INCOMING_PACKETS + // - AUTHORIZATION_ERROR: Auth error (for example, + // bad shared secret). + // - NEGOTIATION_FAILURE: Handshake failed. + // - DEPROVISIONING: Resources are being deallocated for the VPN + // tunnel. + // - FAILED: Tunnel creation has failed and the tunnel is not + // ready to be used. + // - NO_INCOMING_PACKETS: No incoming packets from + // peer. + // - REJECTED: Tunnel configuration was rejected, can be result + // of being denied access. + // - ALLOCATING_RESOURCES: Cloud VPN is in the + // process of allocating all required resources. + // - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted + // for Classic VPN tunnels or the project is in frozen state. + // - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, + // probably behind NAT. + // - TS_NARROWING_NOT_ALLOWED: Traffic selector + // narrowing not allowed for an HA-VPN tunnel. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; - // Cloud VPN is in the process of allocating all required resources (specifically, a borg task). + // Cloud VPN is in the process of allocating all required resources + // (specifically, a borg task). ALLOCATING_RESOURCES = 320922816; // Auth error (e.g. bad shared secret). @@ -45255,60 +81866,106 @@ message VpnTunnel { // Tunnel is stopped due to its Forwarding Rules being deleted. STOPPED = 444276141; - // Waiting to receive all VPN-related configs from user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule and Route resources are needed to setup VPN tunnel. + // Waiting to receive all VPN-related configs from user. Network, + // TargetVpnGateway, VpnTunnel, ForwardingRule and Route resources are + // needed to setup VPN tunnel. WAITING_FOR_FULL_CONFIG = 41640522; } - // User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol. + // User specified list of ciphers to use for the phase 1 and phase 2 of the + // IKE protocol. optional VpnTunnelCipherSuite cipher_suite = 443788228; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; - // An optional description of this resource. Provide this property when you create the resource. + // An optional description of this resource. Provide this property when you + // create the resource. optional string description = 422937596; // [Output Only] Detailed status message for the VPN tunnel. optional string detailed_status = 333501025; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2. + // IKE protocol version to use when establishing the VPN tunnel with the peer + // VPN gateway. Acceptable IKE versions are 1 or 2. + // The default version is 2. optional int32 ike_version = 218376220; - // [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + // [Output Only] Type of resource. Always compute#vpnTunnel for + // VPN tunnels. optional string kind = 3292052; - // A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. + // A fingerprint for the labels being applied to this VpnTunnel, which is + // essentially a hash of the labels set used for optimistic locking. The + // fingerprint is initially generated by Compute Engine and changes after + // every request to modify or update labels. You must always provide an + // up-to-date fingerprint hash in order to update or change labels, + // otherwise the request will fail with error412 conditionNotMet. + // + // To see the latest fingerprint, make a get() request to + // retrieve a VpnTunnel. optional string label_fingerprint = 178124825; - // Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. + // Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. + // Label values may be empty. map labels = 500195327; - // Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels. + // Local traffic selector to use when establishing the VPN tunnel with the + // peer VPN gateway. The value should be a CIDR formatted string, for + // example: 192.168.0.0/16. The ranges must be disjoint. + // Only IPv4 is supported for Classic VPN tunnels. This field is output only + // for HA VPN tunnels. repeated string local_traffic_selector = 317314613; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; - // URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway. + // URL of the peer side external VPN gateway to which this VPN tunnel is + // connected. + // Provided by the client when the VPN tunnel is created. + // This field is exclusive with the field peerGcpGateway. optional string peer_external_gateway = 384956173; - // The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type. + // The interface ID of the external VPN gateway to which this VPN tunnel is + // connected. Provided by the client when the VPN tunnel is created. + // Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use + // depends on the external VPN gateway redundancy type. optional int32 peer_external_gateway_interface = 452768391; - // URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer Google Cloud VPN gateway. + // URL of the peer side HA VPN gateway to which this VPN tunnel + // is connected. Provided by the client when the VPN tunnel is created. + // This field can be used when creating highly available VPN from VPC network + // to VPC network, the field is exclusive with the field peerExternalGateway. + // If provided, the VPN tunnel will automatically use the same + // vpnGatewayInterface ID in the peer Google Cloud VPN gateway. optional string peer_gcp_gateway = 281867452; - // IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels. + // IP address of the peer VPN gateway. Only IPv4 is supported. This field can + // be set only for Classic VPN tunnels. optional string peer_ip = 383249700; - // [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + // [Output Only] URL of the region where the VPN tunnel resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. optional string region = 138946292; - // Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels. + // Remote traffic selectors to use when establishing the VPN tunnel with + // the peer VPN gateway. The value should be a CIDR formatted string, + // for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is + // supported for Classic VPN tunnels. This field is output only for HA VPN + // tunnels. repeated string remote_traffic_selector = 358887098; // URL of the router resource to be used for dynamic routing. @@ -45317,23 +81974,62 @@ message VpnTunnel { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. + // Shared secret used to set the secure session between the Cloud VPN gateway + // and the peer VPN gateway. optional string shared_secret = 381932490; // Hash of the shared secret. optional string shared_secret_hash = 398881891; - // [Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. + // [Output Only] The status of the VPN tunnel, which can be one of the + // following: + // + // - PROVISIONING: Resource is being allocated for the VPN tunnel. + // - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs + // from + // the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route + // resources are needed to setup the VPN tunnel. + // - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. + // - ESTABLISHED: Secure session is successfully established with the peer + // VPN. + // - NETWORK_ERROR: Deprecated, replaced by + // NO_INCOMING_PACKETS + // - AUTHORIZATION_ERROR: Auth error (for example, + // bad shared secret). + // - NEGOTIATION_FAILURE: Handshake failed. + // - DEPROVISIONING: Resources are being deallocated for the VPN + // tunnel. + // - FAILED: Tunnel creation has failed and the tunnel is not + // ready to be used. + // - NO_INCOMING_PACKETS: No incoming packets from + // peer. + // - REJECTED: Tunnel configuration was rejected, can be result + // of being denied access. + // - ALLOCATING_RESOURCES: Cloud VPN is in the + // process of allocating all required resources. + // - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted + // for Classic VPN tunnels or the project is in frozen state. + // - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, + // probably behind NAT. + // - TS_NARROWING_NOT_ALLOWED: Traffic selector + // narrowing not allowed for an HA-VPN tunnel. // Check the Status enum for the list of possible values. optional string status = 181260274; - // URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels. + // URL of the Target VPN gateway with which this VPN tunnel is associated. + // Provided by the client when the VPN tunnel is created. + // This field can be set only for Classic VPN tunnels. optional string target_vpn_gateway = 532512843; - // URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created. + // URL of the VPN gateway with which this VPN tunnel is associated. + // Provided by the client when the VPN tunnel is created. This must be + // used (instead of target_vpn_gateway) if a High Availability VPN gateway + // resource is created. optional string vpn_gateway = 406684153; - // The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`. + // The interface ID of the VPN gateway with which this VPN tunnel is + // associated. + // Possible values are: `0`, `1`. optional int32 vpn_gateway_interface = 95979123; } @@ -45346,10 +82042,15 @@ message VpnTunnelAggregatedList { // A list of VpnTunnelsScopedList resources. map items = 100526016; - // [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + // [Output Only] Type of resource. Always compute#vpnTunnel for + // VPN tunnels. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -45379,10 +82080,15 @@ message VpnTunnelList { // A list of VpnTunnel resources. repeated VpnTunnel items = 100526016; - // [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + // [Output Only] Type of resource. Always compute#vpnTunnel for + // VPN tunnels. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -45420,37 +82126,54 @@ message VpnTunnelsScopedList { // A list of VPN tunnels contained in this scope. repeated VpnTunnel vpn_tunnels = 163494080; - // Informational warning which replaces the list of addresses when the list is empty. + // Informational warning which replaces the list of addresses when + // the list is empty. optional Warning warning = 50704284; } // message WafExpressionSet { - // A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set. + // A list of alternate IDs. The format should be: + // - E.g. XSS-stable + // Generic suffix like "stable" is particularly useful if a policy + // likes to avail newer set of expressions without having to change + // the policy. + // A given alias name can't be used for more than one entity set. repeated string aliases = 159207166; // List of available expressions. repeated WafExpressionSetExpression expressions = 175554779; - // Google specified expression set ID. The format should be: - E.g. XSS-20170329 required + // Google specified expression set ID. The format should be: + // - E.g. XSS-20170329 + // required optional string id = 3355; } // message WafExpressionSetExpression { - // Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could be used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required + // Expression ID should uniquely identify the origin of the expression. + // E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set + // version 2.9.1 rule id 973337. + // The ID could be used to determine the individual attack definition + // that has been detected. It could also be used to exclude it from + // the policy in case of false positive. + // required optional string id = 3355; - // The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules. + // The sensitivity value associated with the WAF rule ID. This corresponds + // to the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for + // opt-in only rules. optional int32 sensitivity = 27532959; } // A request message for GlobalOperations.Wait. See the method description for details. message WaitGlobalOperationRequest { - // Name of the Operations resource to return, or its unique numeric identifier. + // Name of the Operations resource to return, or its unique numeric + // identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -45460,7 +82183,8 @@ message WaitGlobalOperationRequest { // A request message for RegionOperations.Wait. See the method description for details. message WaitRegionOperationRequest { - // Name of the Operations resource to return, or its unique numeric identifier. + // Name of the Operations resource to return, or its unique numeric + // identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -45473,7 +82197,8 @@ message WaitRegionOperationRequest { // A request message for ZoneOperations.Wait. See the method description for details. message WaitZoneOperationRequest { - // Name of the Operations resource to return, or its unique numeric identifier. + // Name of the Operations resource to return, or its unique numeric + // identifier. string operation = 52090215 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -45486,66 +82211,79 @@ message WaitZoneOperationRequest { // Informational warning message. message Warning { - // [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. enum Code { // A value indicating that the enum field is not set. UNDEFINED_CODE = 0; - // Warning about failed cleanup of transient changes made by a failed operation. + // Warning about failed cleanup of transient changes made by a failed + // operation. CLEANUP_FAILED = 150308440; // A link to a deprecated resource was created. DEPRECATED_RESOURCE_USED = 391835586; - // When deploying and at least one of the resources has a type marked as deprecated + // When deploying and at least one of the resources has a type marked as + // deprecated DEPRECATED_TYPE_USED = 346526230; // The user created a boot disk that is larger than image size. DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 369442967; - // When deploying and at least one of the resources has a type marked as experimental + // When deploying and at least one of the resources has a type marked as + // experimental EXPERIMENTAL_TYPE_USED = 451954443; // Warning that is present in an external api call EXTERNAL_API_WARNING = 175546307; - // Warning that value of a field has been overridden. Deprecated unused field. + // Warning that value of a field has been overridden. + // Deprecated unused field. FIELD_VALUE_OVERRIDEN = 329669423; // The operation involved use of an injected kernel, which is deprecated. INJECTED_KERNELS_DEPRECATED = 417377419; - // A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2. + // A WEIGHTED_MAGLEV backend service is associated with a health check that is + // not of type HTTP/HTTPS/HTTP2. INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; // When deploying a deployment with a exceedingly large number of resources LARGE_DEPLOYMENT_WARNING = 481440678; - // Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter. + // Resource can't be retrieved due to list overhead quota exceed + // which captures the amount of resources filtered out by + // user-defined list filter. LIST_OVERHEAD_QUOTA_EXCEED = 47618117; // A resource depends on a missing type MISSING_TYPE_DEPENDENCY = 344505463; - // The route's nextHopIp address is not assigned to an instance on the network. + // The route's nextHopIp address is not assigned to an instance on the + // network. NEXT_HOP_ADDRESS_NOT_ASSIGNED = 324964999; // The route's next hop instance cannot ip forward. NEXT_HOP_CANNOT_IP_FORWARD = 383382887; - // The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route. + // The route's nextHopInstance URL refers to an instance that does not have an + // ipv6 interface on the same network as the route. NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 146748434; // The route's nextHopInstance URL refers to an instance that does not exist. NEXT_HOP_INSTANCE_NOT_FOUND = 464250446; - // The route's nextHopInstance URL refers to an instance that is not on the same network as the route. + // The route's nextHopInstance URL refers to an instance that is not on the + // same network as the route. NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 243758146; // The route's next hop instance does not have a status of RUNNING. NEXT_HOP_NOT_RUNNING = 417081265; - // Error which is not critical. We decided to continue the process despite the mentioned error. + // Error which is not critical. We decided to continue the process despite + // the mentioned error. NOT_CRITICAL_ERROR = 105763924; // No results are present on a particular list page. @@ -45554,22 +82292,27 @@ message Warning { // Success is reported, but some results may be missing due to errors PARTIAL_SUCCESS = 39966469; - // Quota information is not available to client requests (e.g: regions.list). + // Quota information is not available to client requests (e.g: + // regions.list). QUOTA_INFO_UNAVAILABLE = 304294182; - // The user attempted to use a resource that requires a TOS they have not accepted. + // The user attempted to use a resource that requires a TOS they have not + // accepted. REQUIRED_TOS_AGREEMENT = 3745539; // Warning that a resource is in use. RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 496728641; - // One or more of the resources set to auto-delete could not be deleted because they were in use. + // One or more of the resources set to auto-delete could not be deleted + // because they were in use. RESOURCE_NOT_DELETED = 168598460; // When a resource schema validation is ignored. SCHEMA_VALIDATION_IGNORED = 275245642; - // Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group. + // Instance template used in instance group manager is valid as such, but + // its application does not make a lot of sense, because it allows only + // single instance in instance group. SINGLE_INSTANCE_PROPERTY_TEMPLATE = 268305617; // When undeclared properties in the schema are present @@ -45580,11 +82323,20 @@ message Warning { } - // [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. // Check the Code enum for the list of possible values. optional string code = 3059181; - // [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // [Output Only] Metadata about this warning in key: + // value format. For example: + // + // "data": [ + // { + // "key": "scope", + // "value": "zones/us-east1-d" + // } repeated Data data = 3076010; // [Output Only] A human-readable description of the warning code. @@ -45594,66 +82346,79 @@ message Warning { // message Warnings { - // [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. enum Code { // A value indicating that the enum field is not set. UNDEFINED_CODE = 0; - // Warning about failed cleanup of transient changes made by a failed operation. + // Warning about failed cleanup of transient changes made by a failed + // operation. CLEANUP_FAILED = 150308440; // A link to a deprecated resource was created. DEPRECATED_RESOURCE_USED = 391835586; - // When deploying and at least one of the resources has a type marked as deprecated + // When deploying and at least one of the resources has a type marked as + // deprecated DEPRECATED_TYPE_USED = 346526230; // The user created a boot disk that is larger than image size. DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 369442967; - // When deploying and at least one of the resources has a type marked as experimental + // When deploying and at least one of the resources has a type marked as + // experimental EXPERIMENTAL_TYPE_USED = 451954443; // Warning that is present in an external api call EXTERNAL_API_WARNING = 175546307; - // Warning that value of a field has been overridden. Deprecated unused field. + // Warning that value of a field has been overridden. + // Deprecated unused field. FIELD_VALUE_OVERRIDEN = 329669423; // The operation involved use of an injected kernel, which is deprecated. INJECTED_KERNELS_DEPRECATED = 417377419; - // A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2. + // A WEIGHTED_MAGLEV backend service is associated with a health check that is + // not of type HTTP/HTTPS/HTTP2. INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; // When deploying a deployment with a exceedingly large number of resources LARGE_DEPLOYMENT_WARNING = 481440678; - // Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter. + // Resource can't be retrieved due to list overhead quota exceed + // which captures the amount of resources filtered out by + // user-defined list filter. LIST_OVERHEAD_QUOTA_EXCEED = 47618117; // A resource depends on a missing type MISSING_TYPE_DEPENDENCY = 344505463; - // The route's nextHopIp address is not assigned to an instance on the network. + // The route's nextHopIp address is not assigned to an instance on the + // network. NEXT_HOP_ADDRESS_NOT_ASSIGNED = 324964999; // The route's next hop instance cannot ip forward. NEXT_HOP_CANNOT_IP_FORWARD = 383382887; - // The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route. + // The route's nextHopInstance URL refers to an instance that does not have an + // ipv6 interface on the same network as the route. NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 146748434; // The route's nextHopInstance URL refers to an instance that does not exist. NEXT_HOP_INSTANCE_NOT_FOUND = 464250446; - // The route's nextHopInstance URL refers to an instance that is not on the same network as the route. + // The route's nextHopInstance URL refers to an instance that is not on the + // same network as the route. NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 243758146; // The route's next hop instance does not have a status of RUNNING. NEXT_HOP_NOT_RUNNING = 417081265; - // Error which is not critical. We decided to continue the process despite the mentioned error. + // Error which is not critical. We decided to continue the process despite + // the mentioned error. NOT_CRITICAL_ERROR = 105763924; // No results are present on a particular list page. @@ -45662,22 +82427,27 @@ message Warnings { // Success is reported, but some results may be missing due to errors PARTIAL_SUCCESS = 39966469; - // Quota information is not available to client requests (e.g: regions.list). + // Quota information is not available to client requests (e.g: + // regions.list). QUOTA_INFO_UNAVAILABLE = 304294182; - // The user attempted to use a resource that requires a TOS they have not accepted. + // The user attempted to use a resource that requires a TOS they have not + // accepted. REQUIRED_TOS_AGREEMENT = 3745539; // Warning that a resource is in use. RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 496728641; - // One or more of the resources set to auto-delete could not be deleted because they were in use. + // One or more of the resources set to auto-delete could not be deleted + // because they were in use. RESOURCE_NOT_DELETED = 168598460; // When a resource schema validation is ignored. SCHEMA_VALIDATION_IGNORED = 275245642; - // Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group. + // Instance template used in instance group manager is valid as such, but + // its application does not make a lot of sense, because it allows only + // single instance in instance group. SINGLE_INSTANCE_PROPERTY_TEMPLATE = 268305617; // When undeclared properties in the schema are present @@ -45688,11 +82458,20 @@ message Warnings { } - // [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. // Check the Code enum for the list of possible values. optional string code = 3059181; - // [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + // [Output Only] Metadata about this warning in key: + // value format. For example: + // + // "data": [ + // { + // "key": "scope", + // "value": "zones/us-east1-d" + // } repeated Data data = 3076010; // [Output Only] A human-readable description of the warning code. @@ -45700,28 +82479,67 @@ message Warnings { } -// In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService +// In contrast to a single BackendService in +// HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across +// multiple backend services. The volume of traffic for each +// backend service is proportional to the weight specified +// in each WeightedBackendService message WeightedBackendService { - // The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight. + // The full or partial URL to the default BackendService + // resource. Before + // forwarding the request to backendService, the load balancer + // applies any relevant headerActions specified as part of thisbackendServiceWeight. optional string backend_service = 306946058; - // Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. + // Specifies changes to request and response headers that need to take + // effect for the selected backendService. + // + // headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap. + // + // headerAction is not supported for load balancers that have + // their loadBalancingScheme set to EXTERNAL. + // + // Not supported when the URL map is bound to a target gRPC proxy that + // has validateForProxyless field set to true. optional HttpHeaderAction header_action = 328077352; - // Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. Don't configure session affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting configuration takes precedence. The value must be from 0 to 1000. + // Specifies the fraction of traffic sent to a backend service, + // computed asweight / (sum of all weightedBackendService weights in routeAction). + // + // The selection of a backend service is determined only for new traffic. + // Once a user's request has been directed to a backend service, + // subsequent requests are sent to the same backend service as + // determined by the backend service's session affinity policy. + // Don't configure session affinity if you're using weighted traffic + // splitting. If you do, the weighted traffic splitting configuration takes + // precedence. + // + // The value must be from 0 to 1000. optional uint32 weight = 282149496; } // A pseudowire that connects two Interconnect connections. message Wire { - // [Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to true. + // [Output Only] Indicates whether the wire is enabled. + // When false, the wire is disabled. When true and when the wire group of + // the wire is also enabled, the wire is enabled. Defaults to true. optional bool admin_enabled = 445675089; // Wire endpoints are specific Interconnect connections. repeated WireEndpoint endpoints = 287085950; - // [Output Only] A label that identifies the wire. The format of this label combines the existing labels of the wire group endpoints and Interconnect connections used by this wire in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels that you entered as map keys when you specified the wire group Interconnect objects. + // [Output Only] A label that identifies the wire. The format of this label + // combines the existing labels of the wire group endpoints and Interconnect + // connections used by this wire in alphabetical order as follows: + // `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: + // + // - ENDPOINT_A and ENDPOINT_B: are the labels + // that you entered as map keys when you specified the wire group endpoint + // objects. + // - CONNECTION_A1 and CONNECTION_B1: are the + // labels that you entered as map keys when you specified the wire group + // Interconnect objects. optional string label = 102727412; // [Output Only] Properties of the wire. @@ -45739,25 +82557,40 @@ message WireEndpoint { // A resource that represents a group of redundant wires. message WireGroup { - // Indicates whether the wires in the wire group are enabled. When false, the wires in the wire group are disabled. When true and when there is simultaneously no wire-specific override of `adminEnabled` to false, a given wire is enabled. Defaults to true. + // Indicates whether the wires in the wire group are enabled. When false, the + // wires in the wire group are disabled. When true and when + // there is simultaneously no wire-specific override of `adminEnabled` to + // false, a given wire is enabled. Defaults to true. optional bool admin_enabled = 445675089; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // An optional description of the wire group. optional string description = 422937596; - // A map that contains the logical endpoints of the wire group. Specify key-value pairs for the map as follows: - Key: an RFC1035 user-specified label. - Value: an Endpoint object. + // A map that contains the logical endpoints of the wire group. Specify + // key-value pairs for the map as follows: + // + // - Key: an RFC1035 user-specified label. + // - Value: an Endpoint object. map endpoints = 287085950; - // [Output Only] The unique identifier for the resource type. The server generates this identifier. + // [Output Only] The unique identifier for the resource type. The server + // generates this identifier. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#wireGroups for wire groups. + // [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. optional string kind = 3292052; - // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. optional string name = 3373707; // [Output Only] Indicates whether there are wire changes yet to be processed. @@ -45780,19 +82613,52 @@ message WireGroup { } -// A logical endpoint for the wire group. An endpoint represents a metro that contains redundant Interconnect connections. A wire group is created between two endpoints. +// A logical endpoint for the wire group. An endpoint represents a metro that +// contains redundant Interconnect connections. A wire group is created +// between two endpoints. message WireGroupEndpoint { - // A map that contains the redundant Interconnect connections. Specify key-value pairs for the map as follows: - Key: an RFC1035 user-specified label. - Value: an Interconnect object. + // A map that contains the redundant Interconnect connections. Specify + // key-value pairs for the map as follows: + // + // - Key: an RFC1035 user-specified label. + // - Value: an Interconnect object. map interconnects = 520187301; } // The redundant Interconnect connections for this endpoint. message WireGroupEndpointInterconnect { - // An Interconnect connection. You can specify the connection as a partial or full URL. If the connection is in a different project from the cross-site network, use a format that specifies the project. See the following examples of partial and full URLs: global/interconnects/NAME projects/PROJECT_ID/global/interconnects/NAME - https://compute.googleapis.com/compute/projects/PROJECT_ID /global/interconnects/NAME + // Required. An Interconnect connection. You can specify the connection as + // a partial or full URL. If the connection is in a different project from + // the cross-site network, use a format that specifies the project. See + // the following examples of partial and full URLs: + // + // + // + // global/interconnects/NAME + // + // + // projects/PROJECT_ID/global/interconnects/NAME + // + // - + // https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME optional string interconnect = 224601230; - // To configure the wire group for VLAN mode, enter a VLAN tag, which is a number from `2` to `4093`. You can autoallocate a tag by entering `0`. To configure the wire group for port mode, enter `-1`. Review the following guidelines: - A VLAN tag must be unique for an Interconnect connection across all attachments and wire groups. - Both endpoints of a wire must use the same VLAN tag value. - Single wire and redundant type wire groups must have only one VLAN tag. - Port mode pseudowires must have a single VLAN tag with a value of `-1` for both endpoints. - Box and cross type wire groups must have two VLAN tags. The first is for the same-zone pseudowire, and the second is for the cross-zone pseudowire. + // Required. To configure the wire group for VLAN mode, enter a VLAN tag, + // which is a number from `2` to `4093`. You can autoallocate a tag by + // entering `0`. To configure the wire group for port mode, enter `-1`. + // Review the following guidelines: + // + // - A VLAN tag must be unique for an Interconnect connection across all + // attachments and wire groups. + // - Both endpoints of a wire must use the same VLAN tag value. + // - Single wire and redundant type wire groups must have only one + // VLAN tag. + // - Port mode pseudowires must have a single VLAN tag with a value of + // `-1` for both endpoints. + // - Box and cross type wire groups must have two VLAN tags. The first + // is for the same-zone pseudowire, and the second is for the cross-zone + // pseudowire. repeated int32 vlan_tags = 384601461; } @@ -45807,16 +82673,21 @@ message WireGroupList { // A list of wire group resources. repeated WireGroup items = 100526016; - // [Output Only] Type of the resource. Always compute#wireGroups for wire groups. + // [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. optional string self_link = 456214797; - // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + // [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder repeated string unreachables = 243372063; // [Output Only] Informational warning message. @@ -45824,17 +82695,43 @@ message WireGroupList { } -// The properties of a wire group. These properties determine how a group of redundant wires are created and managed. +// The properties of a wire group. These properties +// determine how a group of redundant wires are created and managed. message WireGroupProperties { - // The type of the wire group, one of the following: - WIRE: a single pseudowire over two Interconnect connections with no redundancy. - REDUNDANT: two pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Each pseudowire connects Interconnect connections in matching edge availability domains of the two metros. - BOX_AND_CROSS: four pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Two pseudowires connect Interconnect connections in matching edge availability domains of the two metros. Two additional pseudowires connect the non-matching edge availability domains of the two metros. + // The type of the wire group, one of the following: + // + // - WIRE: a single pseudowire over two Interconnect connections with no + // redundancy. + // - REDUNDANT: two pseudowires over four Interconnect connections, with + // two connections in one metro and two connections in another metro. + // Each redundant pair of Interconnect connections spans both edge + // availability domains of the metro. Each pseudowire connects Interconnect + // connections in matching edge availability domains of the two metros. + // - BOX_AND_CROSS: four pseudowires over four Interconnect connections, + // with two connections in one metro and two connections in another metro. + // Each redundant pair of Interconnect connections spans both edge + // availability domains of the metro. Two pseudowires connect Interconnect + // connections in matching edge availability domains of the two metros. + // Two additional pseudowires connect the non-matching edge availability + // domains of the two metros. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; - // Four pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Two pseudowires connect Interconnect connections in matching edge availability domains of the two metros. Two additional pseudowires connect the non-matching edge availability domains of the two metros. + // Four pseudowires over four Interconnect connections, + // with two connections in one metro and two connections in another metro. + // Each redundant pair of Interconnect connections spans both edge + // availability domains of the metro. Two pseudowires connect Interconnect + // connections in matching edge availability domains of the two metros. + // Two additional pseudowires connect the non-matching edge availability + // domains of the two metros. BOX_AND_CROSS = 311344644; - // Two pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Each pseudowire connects Interconnect connections in matching edge availability domains of the two metros. + // Two pseudowires over four Interconnect connections, with + // two connections in one metro and two connections in another metro. + // Each redundant pair of Interconnect connections spans both edge + // availability domains of the metro. Each pseudowire connects Interconnect + // connections in matching edge availability domains of the two metros. REDUNDANT = 3891405; // A single pseudowire over two Interconnect connections with no redundancy. @@ -45842,7 +82739,22 @@ message WireGroupProperties { } - // The type of the wire group, one of the following: - WIRE: a single pseudowire over two Interconnect connections with no redundancy. - REDUNDANT: two pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Each pseudowire connects Interconnect connections in matching edge availability domains of the two metros. - BOX_AND_CROSS: four pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Two pseudowires connect Interconnect connections in matching edge availability domains of the two metros. Two additional pseudowires connect the non-matching edge availability domains of the two metros. + // The type of the wire group, one of the following: + // + // - WIRE: a single pseudowire over two Interconnect connections with no + // redundancy. + // - REDUNDANT: two pseudowires over four Interconnect connections, with + // two connections in one metro and two connections in another metro. + // Each redundant pair of Interconnect connections spans both edge + // availability domains of the metro. Each pseudowire connects Interconnect + // connections in matching edge availability domains of the two metros. + // - BOX_AND_CROSS: four pseudowires over four Interconnect connections, + // with two connections in one metro and two connections in another metro. + // Each redundant pair of Interconnect connections spans both edge + // availability domains of the metro. Two pseudowires connect Interconnect + // connections in matching edge availability domains of the two metros. + // Two additional pseudowires connect the non-matching edge availability + // domains of the two metros. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -45857,7 +82769,8 @@ message WireGroupTopology { // Topology details for a single wire group endpoint. message WireGroupTopologyEndpoint { - // The InterconnectLocation.city (metropolitan area designator) that all interconnects are located in. + // The InterconnectLocation.city (metropolitan area designator) that all + // interconnects are located in. optional string city = 3053931; // Endpoint label from the wire group. @@ -45867,25 +82780,44 @@ message WireGroupTopologyEndpoint { // The properties of a wire. message WireProperties { - // The configuration of the bandwidth allocation, one of the following: - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group. - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures one unmetered bandwidth allocation for the wire group. The unmetered bandwidth is divided equally across each wire in the group, but dynamic throttling reallocates unused unmetered bandwidth from unused or underused wires to other wires in the group. + // The configuration of the bandwidth allocation, one of the following: + // + // - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation + // (and associated charges) for each wire in the group. + // - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures + // one unmetered bandwidth allocation for the wire group. The unmetered + // bandwidth is divided equally across each wire in the group, but dynamic + // throttling reallocates unused unmetered bandwidth from unused or underused + // wires to other wires in the group. enum BandwidthAllocation { // A value indicating that the enum field is not set. UNDEFINED_BANDWIDTH_ALLOCATION = 0; - // Configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group. + // Configures a separate unmetered bandwidth allocation (and associated + // charges) for each wire in the group. ALLOCATE_PER_WIRE = 358730057; - // This is the default behavior. Configures one unmetered bandwidth allocation for the wire group. The unmetered bandwidth is divided equally across each wire in the group, but dynamic throttling reallocates unused unmetered bandwidth from unused or underused wires to other wires in the group. + // This is the default behavior. Configures one unmetered bandwidth + // allocation for the wire group. The unmetered bandwidth is divided equally + // across each wire in the group, but dynamic throttling reallocates unused + // unmetered bandwidth from unused or underused wires to other wires in the + // group. SHARED_WITH_WIRE_GROUP = 286454628; } - // Response when a fault is detected in a pseudowire: - NONE: default. - DISABLE_PORT: set the port line protocol down when inline probes detect a fault. This setting is only permitted on port mode pseudowires. + // Response when a fault is detected in a pseudowire: + // + // - NONE: default. + // - DISABLE_PORT: set the port line protocol down when inline probes + // detect a fault. This setting is only permitted on port mode + // pseudowires. enum FaultResponse { // A value indicating that the enum field is not set. UNDEFINED_FAULT_RESPONSE = 0; - // Set the port line protocol down when inline probes detect a fault. This setting is only permitted on port mode pseudowires. + // Set the port line protocol down when inline probes detect a fault. This + // setting is only permitted on port mode pseudowires. DISABLE_PORT = 287086488; // Default. @@ -45893,14 +82825,28 @@ message WireProperties { } - // The configuration of the bandwidth allocation, one of the following: - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group. - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures one unmetered bandwidth allocation for the wire group. The unmetered bandwidth is divided equally across each wire in the group, but dynamic throttling reallocates unused unmetered bandwidth from unused or underused wires to other wires in the group. + // The configuration of the bandwidth allocation, one of the following: + // + // - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation + // (and associated charges) for each wire in the group. + // - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures + // one unmetered bandwidth allocation for the wire group. The unmetered + // bandwidth is divided equally across each wire in the group, but dynamic + // throttling reallocates unused unmetered bandwidth from unused or underused + // wires to other wires in the group. // Check the BandwidthAllocation enum for the list of possible values. optional string bandwidth_allocation = 90651950; - // The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is 100 Gbps. + // The unmetered bandwidth in Gigabits per second, using decimal units. `10` + // is 10 Gbps, `100` is 100 Gbps. The bandwidth must be greater than 0. optional int64 bandwidth_unmetered = 272650017; - // Response when a fault is detected in a pseudowire: - NONE: default. - DISABLE_PORT: set the port line protocol down when inline probes detect a fault. This setting is only permitted on port mode pseudowires. + // Response when a fault is detected in a pseudowire: + // + // - NONE: default. + // - DISABLE_PORT: set the port line protocol down when inline probes + // detect a fault. This setting is only permitted on port mode + // pseudowires. // Check the FaultResponse enum for the list of possible values. optional string fault_response = 353587646; @@ -45917,7 +82863,19 @@ message WithdrawPublicAdvertisedPrefixeRequest { // The name of the public advertised prefix. It should comply with RFC1035. string public_advertised_prefix = 101874590 [(google.api.field_behavior) = REQUIRED]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -45933,13 +82891,26 @@ message WithdrawPublicDelegatedPrefixeRequest { // The name of the public delegated prefix. It should comply with RFC1035. string public_delegated_prefix = 204238440 [(google.api.field_behavior) = REQUIRED]; - // The name of the region where the public delegated prefix is located. It should comply with RFC1035. + // The name of theregion where + // the public delegated prefix is located. It should comply with RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; } @@ -45952,10 +82923,15 @@ message XpnHostList { // [Output Only] A list of shared VPC host project URLs. repeated Project items = 100526016; - // [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + // [Output Only] Type of resource. Always compute#xpnHostList for + // lists of shared VPC hosts. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -45979,7 +82955,9 @@ message XpnResourceId { } - // The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678). + // The ID of the service resource. In the case of projects, this field + // supports project id (e.g., my-project-123) and project number + // (e.g. 12345678). optional string id = 3355; // The type of the service resource. @@ -45988,9 +82966,13 @@ message XpnResourceId { } -// Represents a Zone resource. A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-b is located in the us-east1 region. For more information, read Regions and Zones. +// Represents a Zone resource. +// +// A zone is a deployment area. These deployment areas are subsets of a region. +// For example the zone us-east1-b is located in theus-east1 region. For more information, readRegions and +// Zones. message Zone { - // [Output Only] Status of the zone, either UP or DOWN. + // [Output Only] Status of the zone, either UP orDOWN. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; @@ -46004,7 +82986,8 @@ message Zone { // [Output Only] Available cpu/platform selections for the zone. repeated string available_cpu_platforms = 175536531; - // [Output Only] Creation timestamp in RFC3339 text format. + // [Output Only] Creation timestamp inRFC3339 + // text format. optional string creation_timestamp = 30525366; // [Output Only] The deprecation status associated with this zone. @@ -46013,10 +82996,12 @@ message Zone { // [Output Only] Textual description of the resource. optional string description = 422937596; - // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + // [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. optional uint64 id = 3355; - // [Output Only] Type of the resource. Always compute#zone for zones. + // [Output Only] Type of the resource. Always compute#zone for + // zones. optional string kind = 3292052; // [Output Only] Name of the resource. @@ -46028,7 +83013,7 @@ message Zone { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] Status of the zone, either UP or DOWN. + // [Output Only] Status of the zone, either UP orDOWN. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -46048,7 +83033,11 @@ message ZoneList { // Type of resource. optional string kind = 3292052; - // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. optional string next_page_token = 79797525; // [Output Only] Server-defined URL for this resource. @@ -46061,7 +83050,12 @@ message ZoneList { // message ZoneSetLabelsRequest { - // The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint. + // The fingerprint of the previous set of labels for this resource, + // used to detect conflicts. The fingerprint is initially generated by Compute + // Engine and changes after every request to modify or update labels. You must + // always provide an up-to-date fingerprint hash in order to update or change + // labels. Make a get() request to the resource to get the latest + // fingerprint. optional string label_fingerprint = 178124825; // The labels to set for this resource. @@ -46069,15 +83063,36 @@ message ZoneSetLabelsRequest { } +// +message ZoneSetNestedPolicyRequest { + // Flatten Policy to create a backwacd compatible wire-format. + // Deprecated. Use 'policy' to specify bindings. + repeated Binding bindings = 403251854; + + // Flatten Policy to create a backward compatible wire-format. + // Deprecated. Use 'policy' to specify the etag. + optional string etag = 3123477; + + // REQUIRED: The complete policy to be applied to the 'resource'. The size of + // the policy is limited to a few 10s of KB. An empty policy is in general a + // valid policy but certain services (like Projects) might reject them. + optional Policy policy = 91071794; + +} + // message ZoneSetPolicyRequest { - // Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. + // Flatten Policy to create a backwacd compatible wire-format. + // Deprecated. Use 'policy' to specify bindings. repeated Binding bindings = 403251854; - // Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. + // Flatten Policy to create a backward compatible wire-format. + // Deprecated. Use 'policy' to specify the etag. optional string etag = 3123477; - // REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. + // REQUIRED: The complete policy to be applied to the 'resource'. The size of + // the policy is limited to a few 10s of KB. An empty policy is in general a + // valid policy but certain services (like Projects) might reject them. optional Policy policy = 91071794; } @@ -46095,7 +83110,10 @@ service AcceleratorTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of accelerator types. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListAcceleratorTypesRequest) returns (AcceleratorTypeAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/acceleratorTypes" @@ -46111,7 +83129,8 @@ service AcceleratorTypes { option (google.api.method_signature) = "project,zone,accelerator_type"; } - // Retrieves a list of accelerator types that are available to the specified project. + // Retrieves a list of accelerator types that are available to the specified + // project. rpc List(ListAcceleratorTypesRequest) returns (AcceleratorTypeList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes" @@ -46130,7 +83149,10 @@ service Addresses { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of addresses. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListAddressesRequest) returns (AddressAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/addresses" @@ -46155,7 +83177,8 @@ service Addresses { option (google.api.method_signature) = "project,region,address"; } - // Creates an address resource in the specified project by using the data included in the request. + // Creates an address resource in the specified project by using the data + // included in the request. rpc Insert(InsertAddressRequest) returns (Operation) { option (google.api.http) = { body: "address_resource" @@ -46165,7 +83188,8 @@ service Addresses { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of addresses contained within the specified region. + // Retrieves a list of addresses contained within + // the specified region. rpc List(ListAddressesRequest) returns (AddressList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/addresses" @@ -46183,7 +83207,8 @@ service Addresses { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on an Address. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsAddressRequest) returns (Operation) { option (google.api.http) = { body: "region_set_labels_request_resource" @@ -46213,7 +83238,10 @@ service Advice { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Advise how, where and when to create the requested amount of instances with specified accelerators, within the specified time and location limits. The method recommends creating future reservations for the requested resources. + // Advise how, where and when to create the requested amount of instances + // with specified accelerators, within the specified time and location limits. + // The method recommends creating future reservations for the requested + // resources. rpc CalendarMode(CalendarModeAdviceRpcRequest) returns (CalendarModeAdviceResponse) { option (google.api.http) = { body: "calendar_mode_advice_request_resource" @@ -46233,7 +83261,10 @@ service Autoscalers { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of autoscalers. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListAutoscalersRequest) returns (AutoscalerAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/autoscalers" @@ -46258,7 +83289,8 @@ service Autoscalers { option (google.api.method_signature) = "project,zone,autoscaler"; } - // Creates an autoscaler in the specified project using the data included in the request. + // Creates an autoscaler in the specified project using the data + // included in the request. rpc Insert(InsertAutoscalerRequest) returns (Operation) { option (google.api.http) = { body: "autoscaler_resource" @@ -46268,7 +83300,8 @@ service Autoscalers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves a list of autoscalers contained within the specified zone. + // Retrieves a list of autoscalers contained within + // the specified zone. rpc List(ListAutoscalersRequest) returns (AutoscalerList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/autoscalers" @@ -46276,7 +83309,10 @@ service Autoscalers { option (google.api.method_signature) = "project,zone"; } - // Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates an autoscaler in the specified project using the data + // included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchAutoscalerRequest) returns (Operation) { option (google.api.http) = { body: "autoscaler_resource" @@ -46295,7 +83331,8 @@ service Autoscalers { option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; } - // Updates an autoscaler in the specified project using the data included in the request. + // Updates an autoscaler in the specified project using the data + // included in the request. rpc Update(UpdateAutoscalerRequest) returns (Operation) { option (google.api.http) = { body: "autoscaler_resource" @@ -46316,7 +83353,8 @@ service BackendBuckets { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Adds a key for validating requests with signed URLs for this backend bucket. + // Adds a key for validating requests with signed URLs for this backend + // bucket. rpc AddSignedUrlKey(AddSignedUrlKeyBackendBucketRequest) returns (Operation) { option (google.api.http) = { body: "signed_url_key_resource" @@ -46326,6 +83364,18 @@ service BackendBuckets { option (google.cloud.operation_service) = "GlobalOperations"; } + // Retrieves the list of all BackendBucket resources, regional and global, + // available to the specified project. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListBackendBucketsRequest) returns (BackendBucketAggregatedList) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/aggregated/backendBuckets" + }; + option (google.api.method_signature) = "project"; + } + // Deletes the specified BackendBucket resource. rpc Delete(DeleteBackendBucketRequest) returns (Operation) { option (google.api.http) = { @@ -46335,7 +83385,8 @@ service BackendBuckets { option (google.cloud.operation_service) = "GlobalOperations"; } - // Deletes a key for validating requests with signed URLs for this backend bucket. + // Deletes a key for validating requests with signed URLs for this backend + // bucket. rpc DeleteSignedUrlKey(DeleteSignedUrlKeyBackendBucketRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/global/backendBuckets/{backend_bucket}/deleteSignedUrlKey" @@ -46352,7 +83403,8 @@ service BackendBuckets { option (google.api.method_signature) = "project,backend_bucket"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyBackendBucketRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/backendBuckets/{resource}/getIamPolicy" @@ -46360,7 +83412,8 @@ service BackendBuckets { option (google.api.method_signature) = "project,resource"; } - // Creates a BackendBucket resource in the specified project using the data included in the request. + // Creates a BackendBucket resource in the specified project using + // the data included in the request. rpc Insert(InsertBackendBucketRequest) returns (Operation) { option (google.api.http) = { body: "backend_bucket_resource" @@ -46370,7 +83423,8 @@ service BackendBuckets { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of BackendBucket resources available to the specified project. + // Retrieves the list of BackendBucket resources available to the specified + // project. rpc List(ListBackendBucketsRequest) returns (BackendBucketList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/backendBuckets" @@ -46386,7 +83440,10 @@ service BackendBuckets { option (google.api.method_signature) = "project"; } - // Updates the specified BackendBucket resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified BackendBucket resource with the data included in the + // request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchBackendBucketRequest) returns (Operation) { option (google.api.http) = { body: "backend_bucket_resource" @@ -46406,7 +83463,8 @@ service BackendBuckets { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyBackendBucketRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -46424,7 +83482,8 @@ service BackendBuckets { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } - // Updates the specified BackendBucket resource with the data included in the request. + // Updates the specified BackendBucket resource with the data included in the + // request. rpc Update(UpdateBackendBucketRequest) returns (Operation) { option (google.api.http) = { body: "backend_bucket_resource" @@ -46445,7 +83504,8 @@ service BackendServices { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Adds a key for validating requests with signed URLs for this backend service. + // Adds a key for validating requests with signed URLs for this backend + // service. rpc AddSignedUrlKey(AddSignedUrlKeyBackendServiceRequest) returns (Operation) { option (google.api.http) = { body: "signed_url_key_resource" @@ -46455,7 +83515,11 @@ service BackendServices { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all BackendService resources, regional and global, + // available to the specified project. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListBackendServicesRequest) returns (BackendServiceAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/backendServices" @@ -46472,7 +83536,8 @@ service BackendServices { option (google.cloud.operation_service) = "GlobalOperations"; } - // Deletes a key for validating requests with signed URLs for this backend service. + // Deletes a key for validating requests with signed URLs for this backend + // service. rpc DeleteSignedUrlKey(DeleteSignedUrlKeyBackendServiceRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/global/backendServices/{backend_service}/deleteSignedUrlKey" @@ -46497,7 +83562,14 @@ service BackendServices { option (google.api.method_signature) = "project,backend_service"; } - // Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" } + // Gets the most recent health check results for this + // BackendService. + // + // Example request body: + // + // { + // "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" + // } rpc GetHealth(GetHealthBackendServiceRequest) returns (BackendServiceGroupHealth) { option (google.api.http) = { body: "resource_group_reference_resource" @@ -46506,7 +83578,8 @@ service BackendServices { option (google.api.method_signature) = "project,backend_service,resource_group_reference_resource"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyBackendServiceRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/backendServices/{resource}/getIamPolicy" @@ -46514,7 +83587,9 @@ service BackendServices { option (google.api.method_signature) = "project,resource"; } - // Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview . + // Creates a BackendService resource in the specified project using + // the data included in the request. For more information, see + // Backend services overview. rpc Insert(InsertBackendServiceRequest) returns (Operation) { option (google.api.http) = { body: "backend_service_resource" @@ -46524,7 +83599,8 @@ service BackendServices { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of BackendService resources available to the specified project. + // Retrieves the list of BackendService resources available to the specified + // project. rpc List(ListBackendServicesRequest) returns (BackendServiceList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/backendServices" @@ -46540,7 +83616,11 @@ service BackendServices { option (google.api.method_signature) = "project"; } - // Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Patches the specified BackendService resource with the data included in the + // request. For more information, see + // Backend services overview. This method + // supports PATCH semantics and uses the JSON merge + // patch format and processing rules. rpc Patch(PatchBackendServiceRequest) returns (Operation) { option (google.api.http) = { body: "backend_service_resource" @@ -46560,7 +83640,8 @@ service BackendServices { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyBackendServiceRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -46569,7 +83650,9 @@ service BackendServices { option (google.api.method_signature) = "project,resource,global_set_policy_request_resource"; } - // Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview + // Sets the Google Cloud Armor security policy for the specified backend + // service. For more information, seeGoogle + // Cloud Armor Overview rpc SetSecurityPolicy(SetSecurityPolicyBackendServiceRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_reference_resource" @@ -46588,7 +83671,9 @@ service BackendServices { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } - // Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview. + // Updates the specified BackendService resource with the data included in the + // request. For more information, seeBackend + // services overview. rpc Update(UpdateBackendServiceRequest) returns (Operation) { option (google.api.http) = { body: "backend_service_resource" @@ -46626,7 +83711,8 @@ service CrossSiteNetworks { option (google.api.method_signature) = "project,cross_site_network"; } - // Creates a cross-site network in the specified project in the given scope using the parameters that are included in the request. + // Creates a cross-site network in the specified project in the given scope + // using the parameters that are included in the request. rpc Insert(InsertCrossSiteNetworkRequest) returns (Operation) { option (google.api.http) = { body: "cross_site_network_resource" @@ -46644,7 +83730,10 @@ service CrossSiteNetworks { option (google.api.method_signature) = "project"; } - // Updates the specified cross-site network with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified cross-site network with the data included in + // the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchCrossSiteNetworkRequest) returns (Operation) { option (google.api.http) = { body: "cross_site_network_resource" @@ -46695,7 +83784,10 @@ service DiskTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of disk types. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListDiskTypesRequest) returns (DiskTypeAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/diskTypes" @@ -46711,7 +83803,8 @@ service DiskTypes { option (google.api.method_signature) = "project,zone,disk_type"; } - // Retrieves a list of disk types available to the specified project. + // Retrieves a list of disk types available to the specified + // project. rpc List(ListDiskTypesRequest) returns (DiskTypeList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/diskTypes" @@ -46730,7 +83823,9 @@ service Disks { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation. + // Adds existing resource policies to a disk. You can only add one + // policy which will be applied to this disk for scheduling snapshot + // creation. rpc AddResourcePolicies(AddResourcePoliciesDiskRequest) returns (Operation) { option (google.api.http) = { body: "disks_add_resource_policies_request_resource" @@ -46740,7 +83835,10 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of persistent disks. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListDisksRequest) returns (DiskAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/disks" @@ -46758,7 +83856,8 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on many disks at once. To learn more about labels, read theLabeling + // Resources documentation. rpc BulkSetLabels(BulkSetLabelsDiskRequest) returns (Operation) { option (google.api.http) = { body: "bulk_zone_set_labels_request_resource" @@ -46768,7 +83867,10 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. + // Creates a snapshot of a specified persistent disk. For regular snapshot + // creation, consider using snapshots.insert + // instead, as that method supports more features, such as creating snapshots + // in a project different from the source disk project. rpc CreateSnapshot(CreateSnapshotDiskRequest) returns (Operation) { option (google.api.http) = { body: "snapshot_resource" @@ -46778,7 +83880,11 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots. + // Deletes the specified persistent disk. Deleting a disk removes its data + // permanently and is irreversible. However, deleting a disk does not + // delete any snapshots + // previously made from the disk. You must separatelydelete + // snapshots. rpc Delete(DeleteDiskRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/zones/{zone}/disks/{disk}" @@ -46795,7 +83901,8 @@ service Disks { option (google.api.method_signature) = "project,zone,disk"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyDiskRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy" @@ -46803,7 +83910,11 @@ service Disks { option (google.api.method_signature) = "project,zone,resource"; } - // Creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, or sourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property. + // Creates a persistent disk in the specified project using the data + // in the request. You can create a disk from a source + // (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data disk by + // omitting all properties. You can also create a disk that is larger than + // the default size by specifying the sizeGb property. rpc Insert(InsertDiskRequest) returns (Operation) { option (google.api.http) = { body: "disk_resource" @@ -46813,7 +83924,8 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves a list of persistent disks contained within the specified zone. + // Retrieves a list of persistent disks contained within + // the specified zone. rpc List(ListDisksRequest) returns (DiskList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/disks" @@ -46831,7 +83943,8 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Resizes the specified persistent disk. You can only increase the size of the disk. + // Resizes the specified persistent disk. + // You can only increase the size of the disk. rpc Resize(ResizeDiskRequest) returns (Operation) { option (google.api.http) = { body: "disks_resize_request_resource" @@ -46841,7 +83954,8 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyDiskRequest) returns (Policy) { option (google.api.http) = { body: "zone_set_policy_request_resource" @@ -46850,7 +83964,8 @@ service Disks { option (google.api.method_signature) = "project,zone,resource,zone_set_policy_request_resource"; } - // Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a disk. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsDiskRequest) returns (Operation) { option (google.api.http) = { body: "zone_set_labels_request_resource" @@ -46860,7 +83975,8 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Starts asynchronous replication. Must be invoked on the primary disk. + // Starts asynchronous replication. + // Must be invoked on the primary disk. rpc StartAsyncReplication(StartAsyncReplicationDiskRequest) returns (Operation) { option (google.api.http) = { body: "disks_start_async_replication_request_resource" @@ -46870,7 +83986,8 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + // Stops asynchronous replication. + // Can be invoked either on the primary or on the secondary disk. rpc StopAsyncReplication(StopAsyncReplicationDiskRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication" @@ -46879,7 +83996,8 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } - // Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope. + // Stops asynchronous replication for a consistency group of disks. + // Can be invoked either in the primary or secondary scope. rpc StopGroupAsyncReplication(StopGroupAsyncReplicationDiskRequest) returns (Operation) { option (google.api.http) = { body: "disks_stop_group_async_replication_resource_resource" @@ -46898,7 +84016,9 @@ service Disks { option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; } - // Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. + // Updates the specified disk with the data included in the request. + // The update is performed only on selected fields included as part + // of update-mask. Only the following fields can be modified: user_license. rpc Update(UpdateDiskRequest) returns (Operation) { option (google.api.http) = { body: "disk_resource" @@ -46928,7 +84048,8 @@ service ExternalVpnGateways { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request. + // Returns the specified externalVpnGateway. Get a list of available + // externalVpnGateways by making a list() request. rpc Get(GetExternalVpnGatewayRequest) returns (ExternalVpnGateway) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/externalVpnGateways/{external_vpn_gateway}" @@ -46936,7 +84057,8 @@ service ExternalVpnGateways { option (google.api.method_signature) = "project,external_vpn_gateway"; } - // Creates a ExternalVpnGateway in the specified project using the data included in the request. + // Creates a ExternalVpnGateway in the specified project using + // the data included in the request. rpc Insert(InsertExternalVpnGatewayRequest) returns (Operation) { option (google.api.http) = { body: "external_vpn_gateway_resource" @@ -46946,7 +84068,8 @@ service ExternalVpnGateways { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of ExternalVpnGateway available to the specified project. + // Retrieves the list of ExternalVpnGateway available to the specified + // project. rpc List(ListExternalVpnGatewaysRequest) returns (ExternalVpnGatewayList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/externalVpnGateways" @@ -46954,7 +84077,9 @@ service ExternalVpnGateways { option (google.api.method_signature) = "project"; } - // Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on an ExternalVpnGateway. To learn more about labels, + // read the Labeling + // Resources documentation. rpc SetLabels(SetLabelsExternalVpnGatewayRequest) returns (Operation) { option (google.api.http) = { body: "global_set_labels_request_resource" @@ -47048,7 +84173,8 @@ service FirewallPolicies { option (google.api.method_signature) = "firewall_policy"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyFirewallPolicyRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/locations/global/firewallPolicies/{resource}/getIamPolicy" @@ -47072,7 +84198,8 @@ service FirewallPolicies { option (google.api.method_signature) = "firewall_policy"; } - // Creates a new policy in the specified project using the data included in the request. + // Creates a new policy in the specified project using the data included in + // the request. rpc Insert(InsertFirewallPolicyRequest) returns (Operation) { option (google.api.http) = { body: "firewall_policy_resource" @@ -47082,7 +84209,8 @@ service FirewallPolicies { option (google.cloud.operation_service) = "GlobalOrganizationOperations"; } - // Lists all the policies that have been configured for the specified folder or organization. + // Lists all the policies that have been configured for the specified + // folder or organization. rpc List(ListFirewallPoliciesRequest) returns (FirewallPolicyList) { option (google.api.http) = { get: "/compute/beta/locations/global/firewallPolicies" @@ -47164,7 +84292,8 @@ service FirewallPolicies { option (google.cloud.operation_service) = "GlobalOrganizationOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyFirewallPolicyRequest) returns (Policy) { option (google.api.http) = { body: "global_organization_set_policy_request_resource" @@ -47210,7 +84339,8 @@ service Firewalls { option (google.api.method_signature) = "project,firewall"; } - // Creates a firewall rule in the specified project using the data included in the request. + // Creates a firewall rule in the specified project using the data + // included in the request. rpc Insert(InsertFirewallRequest) returns (Operation) { option (google.api.http) = { body: "firewall_resource" @@ -47220,7 +84350,8 @@ service Firewalls { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of firewall rules available to the specified project. + // Retrieves the list of firewall rules available to the specified + // project. rpc List(ListFirewallsRequest) returns (FirewallList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/firewalls" @@ -47228,7 +84359,10 @@ service Firewalls { option (google.api.method_signature) = "project"; } - // Updates the specified firewall rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified firewall rule with the data included in the + // request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchFirewallRequest) returns (Operation) { option (google.api.http) = { body: "firewall_resource" @@ -47247,7 +84381,10 @@ service Firewalls { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } - // Updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead. + // Updates the specified firewall rule with the data included in the + // request. + // Note that all fields will be updated if using PUT, even fields that are not + // specified. To update individual fields, please use PATCH instead. rpc Update(UpdateFirewallRequest) returns (Operation) { option (google.api.http) = { body: "firewall_resource" @@ -47268,7 +84405,10 @@ service ForwardingRules { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of forwarding rules. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListForwardingRulesRequest) returns (ForwardingRuleAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/forwardingRules" @@ -47293,7 +84433,8 @@ service ForwardingRules { option (google.api.method_signature) = "project,region,forwarding_rule"; } - // Creates a ForwardingRule resource in the specified project and region using the data included in the request. + // Creates a ForwardingRule resource in the specified project and region using + // the data included in the request. rpc Insert(InsertForwardingRuleRequest) returns (Operation) { option (google.api.http) = { body: "forwarding_rule_resource" @@ -47303,7 +84444,8 @@ service ForwardingRules { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of ForwardingRule resources available to the specified project and region. + // Retrieves a list of ForwardingRule resources available to the specified + // project and region. rpc List(ListForwardingRulesRequest) returns (ForwardingRuleList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/forwardingRules" @@ -47311,7 +84453,11 @@ service ForwardingRules { option (google.api.method_signature) = "project,region"; } - // Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. + // Updates the specified forwarding rule with the data included in the + // request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. Currently, you can only + // patch the network_tier field. rpc Patch(PatchForwardingRuleRequest) returns (Operation) { option (google.api.http) = { body: "forwarding_rule_resource" @@ -47321,7 +84467,9 @@ service ForwardingRules { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on the specified resource. To learn more about labels, + // read the + // Labeling Resources documentation. rpc SetLabels(SetLabelsForwardingRuleRequest) returns (Operation) { option (google.api.http) = { body: "region_set_labels_request_resource" @@ -47331,7 +84479,8 @@ service ForwardingRules { option (google.cloud.operation_service) = "RegionOperations"; } - // Changes target URL for forwarding rule. The new target should be of the same type as the old target. + // Changes target URL for forwarding rule. The new target should be of the + // same type as the old target. rpc SetTarget(SetTargetForwardingRuleRequest) returns (Operation) { option (google.api.http) = { body: "target_reference_resource" @@ -47361,7 +84510,10 @@ service FutureReservations { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of future reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of future reservations. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListFutureReservationsRequest) returns (FutureReservationsAggregatedListResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/futureReservations" @@ -47405,7 +84557,8 @@ service FutureReservations { option (google.cloud.operation_service) = "ZoneOperations"; } - // A list of all the future reservations that have been configured for the specified project in specified zone. + // A list of all the future reservations that have been configured for the + // specified project in specified zone. rpc List(ListFutureReservationsRequest) returns (FutureReservationsListResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/futureReservations" @@ -47451,7 +84604,8 @@ service GlobalAddresses { option (google.api.method_signature) = "project,address"; } - // Creates an address resource in the specified project by using the data included in the request. + // Creates an address resource in the specified project by using the data + // included in the request. rpc Insert(InsertGlobalAddressRequest) returns (Operation) { option (google.api.http) = { body: "address_resource" @@ -47479,7 +84633,8 @@ service GlobalAddresses { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsGlobalAddressRequest) returns (Operation) { option (google.api.http) = { body: "global_set_labels_request_resource" @@ -47518,7 +84673,8 @@ service GlobalForwardingRules { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request. + // Returns the specified GlobalForwardingRule resource. Gets a list of + // available forwarding rules by making a list() request. rpc Get(GetGlobalForwardingRuleRequest) returns (ForwardingRule) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/forwardingRules/{forwarding_rule}" @@ -47526,7 +84682,8 @@ service GlobalForwardingRules { option (google.api.method_signature) = "project,forwarding_rule"; } - // Creates a GlobalForwardingRule resource in the specified project using the data included in the request. + // Creates a GlobalForwardingRule resource in the specified project using + // the data included in the request. rpc Insert(InsertGlobalForwardingRuleRequest) returns (Operation) { option (google.api.http) = { body: "forwarding_rule_resource" @@ -47536,7 +84693,8 @@ service GlobalForwardingRules { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves a list of GlobalForwardingRule resources available to the specified project. + // Retrieves a list of GlobalForwardingRule resources available to the + // specified project. rpc List(ListGlobalForwardingRulesRequest) returns (ForwardingRuleList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/forwardingRules" @@ -47544,7 +84702,11 @@ service GlobalForwardingRules { option (google.api.method_signature) = "project"; } - // Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. + // Updates the specified forwarding rule with the data included in the + // request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. Currently, you can only + // patch the network_tier field. rpc Patch(PatchGlobalForwardingRuleRequest) returns (Operation) { option (google.api.http) = { body: "forwarding_rule_resource" @@ -47554,7 +84716,9 @@ service GlobalForwardingRules { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation. + // Sets the labels on the specified resource. To learn more about labels, + // read the + // Labeling resources documentation. rpc SetLabels(SetLabelsGlobalForwardingRuleRequest) returns (Operation) { option (google.api.http) = { body: "global_set_labels_request_resource" @@ -47564,7 +84728,8 @@ service GlobalForwardingRules { option (google.cloud.operation_service) = "GlobalOperations"; } - // Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target. + // Changes target URL for the GlobalForwardingRule resource. The new target + // should be of the same type as the old target. rpc SetTarget(SetTargetGlobalForwardingRuleRequest) returns (Operation) { option (google.api.http) = { body: "target_reference_resource" @@ -47604,7 +84769,8 @@ service GlobalNetworkEndpointGroups { option (google.cloud.operation_service) = "GlobalOperations"; } - // Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it. + // Deletes the specified network endpoint group.Note that the NEG cannot be + // deleted if there are backend services referencing it. rpc Delete(DeleteGlobalNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/global/networkEndpointGroups/{network_endpoint_group}" @@ -47631,7 +84797,8 @@ service GlobalNetworkEndpointGroups { option (google.api.method_signature) = "project,network_endpoint_group"; } - // Creates a network endpoint group in the specified project using the parameters that are included in the request. + // Creates a network endpoint group in the specified project using the + // parameters that are included in the request. rpc Insert(InsertGlobalNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_group_resource" @@ -47641,7 +84808,8 @@ service GlobalNetworkEndpointGroups { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of network endpoint groups that are located in the specified project. + // Retrieves the list of network endpoint groups that are located in the + // specified project. rpc List(ListGlobalNetworkEndpointGroupsRequest) returns (NetworkEndpointGroupList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/networkEndpointGroups" @@ -47668,7 +84836,10 @@ service GlobalOperations { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of all operations. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListGlobalOperationsRequest) returns (OperationAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/operations" @@ -47693,7 +84864,8 @@ service GlobalOperations { option (google.cloud.operation_polling_method) = true; } - // Retrieves a list of Operation resources contained within the specified project. + // Retrieves a list of Operation resources contained within the specified + // project. rpc List(ListGlobalOperationsRequest) returns (OperationList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/operations" @@ -47701,7 +84873,22 @@ service GlobalOperations { option (google.api.method_signature) = "project"; } - // Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. + // Waits for the specified Operation resource to return as `DONE` + // or for the request to approach the 2 minute deadline, and retrieves the + // specified Operation resource. This method differs from the + // `GET` method in that it waits for no more than the default + // deadline (2 minutes) and then returns the current state of the operation, + // which might be `DONE` or still in progress. + // + // This method is called on a best-effort basis. Specifically: + // + // + // - In uncommon cases, when the server is overloaded, the request might + // return before the default deadline is reached, or might return after zero + // seconds. + // - If the default deadline is reached, there is no guarantee that the + // operation is actually done when the method returns. Be prepared to retry + // if the operation is not `DONE`. rpc Wait(WaitGlobalOperationRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/global/operations/{operation}/wait" @@ -47728,7 +84915,8 @@ service GlobalOrganizationOperations { option (google.api.method_signature) = "operation"; } - // Retrieves the specified Operations resource. Gets a list of operations by making a `list()` request. + // Retrieves the specified Operations resource. Gets a list of operations + // by making a `list()` request. rpc Get(GetGlobalOrganizationOperationRequest) returns (Operation) { option (google.api.http) = { get: "/compute/beta/locations/global/operations/{operation}" @@ -47737,7 +84925,8 @@ service GlobalOrganizationOperations { option (google.cloud.operation_polling_method) = true; } - // Retrieves a list of Operation resources contained within the specified organization. + // Retrieves a list of Operation resources contained within the specified + // organization. rpc List(ListGlobalOrganizationOperationsRequest) returns (OperationList) { option (google.api.http) = { get: "/compute/beta/locations/global/operations" @@ -47773,7 +84962,8 @@ service GlobalPublicDelegatedPrefixes { option (google.api.method_signature) = "project,public_delegated_prefix"; } - // Creates a global PublicDelegatedPrefix in the specified project using the parameters that are included in the request. + // Creates a global PublicDelegatedPrefix in the specified project using the + // parameters that are included in the request. rpc Insert(InsertGlobalPublicDelegatedPrefixeRequest) returns (Operation) { option (google.api.http) = { body: "public_delegated_prefix_resource" @@ -47791,7 +84981,10 @@ service GlobalPublicDelegatedPrefixes { option (google.api.method_signature) = "project"; } - // Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified global PublicDelegatedPrefix resource with the data + // included in the request. This method supportsPATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchGlobalPublicDelegatedPrefixeRequest) returns (Operation) { option (google.api.http) = { body: "public_delegated_prefix_resource" @@ -47803,6 +84996,38 @@ service GlobalPublicDelegatedPrefixes { } +// The GlobalVmExtensionPolicies API. +service GlobalVmExtensionPolicies { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute.readonly," + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves the list of all VM Extension Policy resources + // available to the specified project. + // + // To prevent failure, it's recommended that you set the + // `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListGlobalVmExtensionPoliciesRequest) returns (VmExtensionPolicyAggregatedListResponse) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/aggregated/vmExtensionPolicies" + }; + option (google.api.method_signature) = "project"; + } + + // Gets details of a global VM extension policy. + rpc Get(GetGlobalVmExtensionPolicyRequest) returns (GlobalVmExtensionPolicy) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/global/vmExtensionPolicies/{global_vm_extension_policy}" + }; + option (google.api.method_signature) = "project,global_vm_extension_policy"; + } + +} + // The HealthChecks API. service HealthChecks { option (google.api.default_host) = @@ -47812,7 +85037,11 @@ service HealthChecks { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all HealthCheck resources, regional and global, + // available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListHealthChecksRequest) returns (HealthChecksAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/healthChecks" @@ -47837,7 +85066,8 @@ service HealthChecks { option (google.api.method_signature) = "project,health_check"; } - // Creates a HealthCheck resource in the specified project using the data included in the request. + // Creates a HealthCheck resource in the specified project using the data + // included in the request. rpc Insert(InsertHealthCheckRequest) returns (Operation) { option (google.api.http) = { body: "health_check_resource" @@ -47847,7 +85077,8 @@ service HealthChecks { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of HealthCheck resources available to the specified project. + // Retrieves the list of HealthCheck resources available to the specified + // project. rpc List(ListHealthChecksRequest) returns (HealthCheckList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/healthChecks" @@ -47855,7 +85086,10 @@ service HealthChecks { option (google.api.method_signature) = "project"; } - // Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates a HealthCheck resource in the specified project using the data + // included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchHealthCheckRequest) returns (Operation) { option (google.api.http) = { body: "health_check_resource" @@ -47874,7 +85108,8 @@ service HealthChecks { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } - // Updates a HealthCheck resource in the specified project using the data included in the request. + // Updates a HealthCheck resource in the specified project using the data + // included in the request. rpc Update(UpdateHealthCheckRequest) returns (Operation) { option (google.api.http) = { body: "health_check_resource" @@ -47896,7 +85131,8 @@ service ImageFamilyViews { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Returns the latest image that is part of an image family, is not deprecated and is rolled out in the specified zone. + // Returns the latest image that is part of an image family, is not + // deprecated and is rolled out in the specified zone. rpc Get(GetImageFamilyViewRequest) returns (ImageFamilyView) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/imageFamilyViews/{family}" @@ -47924,7 +85160,9 @@ service Images { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead. + // Sets the deprecation status of an image. + // + // If an empty request body is given, clears the deprecation status instead. rpc Deprecate(DeprecateImageRequest) returns (Operation) { option (google.api.http) = { body: "deprecation_status_resource" @@ -47942,7 +85180,9 @@ service Images { option (google.api.method_signature) = "project,image"; } - // Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation. + // Returns the latest image that is part of an image family and is not + // deprecated. For more information on image families, seePublic + // image families documentation. rpc GetFromFamily(GetFromFamilyImageRequest) returns (Image) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/images/family/{family}" @@ -47950,7 +85190,8 @@ service Images { option (google.api.method_signature) = "project,family"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyImageRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/images/{resource}/getIamPolicy" @@ -47958,7 +85199,8 @@ service Images { option (google.api.method_signature) = "project,resource"; } - // Creates an image in the specified project using the data included in the request. + // Creates an image in the specified project using the data included + // in the request. rpc Insert(InsertImageRequest) returns (Operation) { option (google.api.http) = { body: "image_resource" @@ -47968,7 +85210,13 @@ service Images { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of custom images available to the specified project. Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly-available images, like Debian 8. If you want to get a list of publicly-available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. + // Retrieves the list of custom images + // available to the specified project. Custom images are images you + // create that belong to your project. This method does not + // get any images that belong to other projects, including publicly-available + // images, like Debian 8. If you want to get a list of publicly-available + // images, use this method to make a request to the respective image project, + // such as debian-cloud or windows-cloud. rpc List(ListImagesRequest) returns (ImageList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/images" @@ -47976,7 +85224,9 @@ service Images { option (google.api.method_signature) = "project"; } - // Patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status. + // Patches the specified image with the data included in the request. + // Only the following fields can be modified: family, description, + // deprecation status. rpc Patch(PatchImageRequest) returns (Operation) { option (google.api.http) = { body: "image_resource" @@ -47986,7 +85236,8 @@ service Images { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyImageRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -47995,7 +85246,8 @@ service Images { option (google.api.method_signature) = "project,resource,global_set_policy_request_resource"; } - // Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on an image. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsImageRequest) returns (Operation) { option (google.api.http) = { body: "global_set_labels_request_resource" @@ -48025,7 +85277,10 @@ service InstanceGroupManagerResizeRequests { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Cancels the specified resize request and removes it from the queue. Cancelled resize request does no longer wait for the resources to be provisioned. Cancel is only possible for requests that are accepted in the queue. + // Cancels the specified resize request and removes it from the queue. + // Cancelled resize request does no longer wait for the resources to be + // provisioned. Cancel is only possible for requests that are accepted in the + // queue. rpc Cancel(CancelInstanceGroupManagerResizeRequestRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}/cancel" @@ -48034,7 +85289,9 @@ service InstanceGroupManagerResizeRequests { option (google.cloud.operation_service) = "ZoneOperations"; } - // Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously. + // Deletes the specified, inactive resize request. Requests that are still + // active cannot be deleted. Deleting request does not delete instances that + // were provisioned previously. rpc Delete(DeleteInstanceGroupManagerResizeRequestRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}" @@ -48051,7 +85308,8 @@ service InstanceGroupManagerResizeRequests { option (google.api.method_signature) = "project,zone,instance_group_manager,resize_request"; } - // Creates a new resize request that starts provisioning VMs immediately or queues VM creation. + // Creates a new resize request that starts provisioning VMs immediately + // or queues VM creation. rpc Insert(InsertInstanceGroupManagerResizeRequestRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_manager_resize_request_resource" @@ -48061,7 +85319,8 @@ service InstanceGroupManagerResizeRequests { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves a list of resize requests that are contained in the managed instance group. + // Retrieves a list of resize requests that are contained in the + // managed instance group. rpc List(ListInstanceGroupManagerResizeRequestsRequest) returns (InstanceGroupManagerResizeRequestsListResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/resizeRequests" @@ -48080,7 +85339,21 @@ service InstanceGroupManagers { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances to be removed from the + // managed instance group. Abandoning an instance does not delete the + // instance, but it does remove the instance from any target pools that are + // applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the + // number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have + // not yet been removed from the group. You must separately verify the + // status of the abandoning action with thelistmanagedinstances + // method. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. + // + // You can specify a maximum of 1000 instances with this method per request. rpc AbandonInstances(AbandonInstancesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_abandon_instances_request_resource" @@ -48090,7 +85363,10 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of managed instance groups and groups them by zone. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInstanceGroupManagersRequest) returns (InstanceGroupManagerAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/instanceGroupManagers" @@ -48098,7 +85374,8 @@ service InstanceGroupManagers { option (google.api.method_signature) = "project"; } - // Applies changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions. + // Applies changes to selected instances on the managed instance group. + // This method can be used to apply new overrides and/or new versions. rpc ApplyUpdatesToInstances(ApplyUpdatesToInstancesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_apply_updates_request_resource" @@ -48108,7 +85385,10 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method. + // Creates instances with per-instance configurations in this managed instance + // group. Instances are created using the current instance template. Thecreate instances operation is marked DONE if thecreateInstances request is successful. The underlying actions + // take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances + // method. rpc CreateInstances(CreateInstancesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_create_instances_request_resource" @@ -48118,7 +85398,10 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Deletes the specified managed instance group and all of the instances in that group. Note that the instance group must not belong to a backend service. Read Deleting an instance group for more information. + // Deletes the specified managed instance group and all of the instances + // in that group. Note that the instance group must not belong to a + // backend service. Read + // Deleting an instance group for more information. rpc Delete(DeleteInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}" @@ -48127,7 +85410,21 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group for immediate + // deletion. The instances are also removed from any target + // pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of + // instances that you delete. This operation is marked as DONE + // when the action is scheduled even if the instances are still being deleted. + // You must separately verify the status of the deleting action + // with thelistmanagedinstances + // method. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. + // + // You can specify a maximum of 1000 instances with this method per request. rpc DeleteInstances(DeleteInstancesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_delete_instances_request_resource" @@ -48137,7 +85434,8 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Deletes selected per-instance configurations for the managed instance group. + // Deletes selected per-instance configurations for the managed instance + // group. rpc DeletePerInstanceConfigs(DeletePerInstanceConfigsInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_delete_per_instance_configs_req_resource" @@ -48155,7 +85453,25 @@ service InstanceGroupManagers { option (google.api.method_signature) = "project,zone,instance_group_manager"; } - // Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit. + // Returns information about available accelerator topologies for a given MIG. + rpc GetAvailableAcceleratorTopologies(GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest) returns (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource_id}/getAvailableAcceleratorTopologies" + }; + option (google.api.method_signature) = "project,zone,resource_id"; + } + + // Creates a managed instance group using the information that you specify + // in the request. After the group is created, instances in the group are + // created using the specified instance template. + // This operation is marked as DONE when the group is created + // even if the instances in the group have not yet been created. You + // must separately verify the status of the individual instances with thelistmanagedinstances + // method. + // + // A managed instance group can have up to 1000 VM instances per group. Please + // contact Cloud Support if you need an increase in + // this limit. rpc Insert(InsertInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_manager_resource" @@ -48165,7 +85481,8 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves a list of managed instance groups that are contained within the specified project and zone. + // Retrieves a list of managed instance groups that are contained within the + // specified project and zone. rpc List(ListInstanceGroupManagersRequest) returns (InstanceGroupManagerList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers" @@ -48173,7 +85490,9 @@ service InstanceGroupManagers { option (google.api.method_signature) = "project,zone"; } - // Lists all errors thrown by actions on instances for a given managed instance group. The filter and orderBy query parameters are not supported. + // Lists all errors thrown by actions on instances for a given managed + // instance group. The filter and orderBy query + // parameters are not supported. rpc ListErrors(ListErrorsInstanceGroupManagersRequest) returns (InstanceGroupManagersListErrorsResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listErrors" @@ -48181,7 +85500,15 @@ service InstanceGroupManagers { option (google.api.method_signature) = "project,zone,instance_group_manager"; } - // Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. + // Lists all of the instances in the managed instance group. Each instance + // in the list has a currentAction, which indicates the action + // that the managed instance group is performing on the instance. For example, + // if the group is still creating an instance, the currentAction + // is CREATING. If a previous action failed, the + // list displays the errors for that failed action. The orderBy + // query parameter is not supported. The `pageToken` query parameter is + // supported only if the group's `listManagedInstancesResults` field is set + // to `PAGINATED`. rpc ListManagedInstances(ListManagedInstancesInstanceGroupManagersRequest) returns (InstanceGroupManagersListManagedInstancesResponse) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listManagedInstances" @@ -48189,7 +85516,8 @@ service InstanceGroupManagers { option (google.api.method_signature) = "project,zone,instance_group_manager"; } - // Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported. + // Lists all of the per-instance configurations defined for the managed + // instance group. The orderBy query parameter is not supported. rpc ListPerInstanceConfigs(ListPerInstanceConfigsInstanceGroupManagersRequest) returns (InstanceGroupManagersListPerInstanceConfigsResp) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listPerInstanceConfigs" @@ -48197,7 +85525,21 @@ service InstanceGroupManagers { option (google.api.method_signature) = "project,zone,instance_group_manager"; } - // Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listManagedInstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + // Updates a managed instance group using the information that you specify + // in the request. + // This operation is marked as DONE when the group is patched + // even if the instances in the group are still in the process of being + // patched. You must separately verify the status of the individual instances + // with thelistManagedInstances + // method. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. + // + // If you update your group to specify a new template or instance + // configuration, it's possible that your intended specification for each VM + // in the group is different from the current state of that VM. To learn how + // to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + // a MIG. rpc Patch(PatchInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_manager_resource" @@ -48207,7 +85549,9 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + // Inserts or patches per-instance configurations for the managed instance + // group. perInstanceConfig.name serves as a key used to + // distinguish whether to perform insert or patch. rpc PatchPerInstanceConfigs(PatchPerInstanceConfigsInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_patch_per_instance_configs_req_resource" @@ -48217,7 +85561,19 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified VM instances in the managed instance group to be + // immediately recreated. Each instance is recreated using the group's current + // configuration. This operation is marked as DONE when the flag + // is set even if the instances have not yet been recreated. You must + // separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking + // the status of managed instances. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. + // + // You can specify a maximum of 1000 instances with this method per request. rpc RecreateInstances(RecreateInstancesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_recreate_instances_request_resource" @@ -48227,7 +85583,29 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. + // Resizes the managed instance group. If you increase the size, the group + // creates new instances using the current instance template. If you decrease + // the size, the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group + // has not yet added or deleted any instances. You must separately + // verify the status of the creating or deleting + // actions with thelistmanagedinstances + // method. + // + // When resizing down, the instance group arbitrarily chooses the order in + // which VMs are deleted. The group takes into account some VM attributes when + // making the selection including: + // + // + The status of the VM instance. + // + The health of the VM instance. + // + The instance template version the VM is based on. + // + For regional managed instance groups, the location of the VM instance. + // + // This list is subject to change. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. rpc Resize(ResizeInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/resize" @@ -48236,7 +85614,22 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Resizes the managed instance group with advanced configuration options like disabling creation retries. This is an extended version of the resize method. If you increase the size of the instance group, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating, creatingWithoutRetries, or deleting actions with the get or listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. + // Resizes the managed instance group with advanced configuration options like + // disabling creation retries. This is an extended version of theresize method. + // + // If you increase the size of the instance group, the group creates new + // instances using the current instance template. If you decrease the size, + // the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group + // has not yet added or deleted any instances. You must separately + // verify the status of the creating,creatingWithoutRetries, or deleting actions with + // the get + // orlistmanagedinstances + // method. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. rpc ResizeAdvanced(ResizeAdvancedInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_resize_advanced_request_resource" @@ -48246,7 +85639,22 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group to be + // resumed. This method increases thetargetSize and decreases the targetSuspendedSize + // of the managed instance group by the number of instances that you resume. + // The resumeInstances operation is marked DONE if + // the resumeInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances + // method. + // + // In this request, you can only specify instances that are suspended. For + // example, if an instance was previously suspended using the suspendInstances + // method, it can be resumed using the resumeInstances method. + // + // If a health check is attached to the managed instance group, the specified + // instances will be verified as healthy after they are resumed. + // + // You can specify a maximum of 1000 instances with this method per request. rpc ResumeInstances(ResumeInstancesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_resume_instances_request_resource" @@ -48256,7 +85664,9 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. Use instanceGroupManagers.patch instead. + // Motifies the autohealing policy for the instances in this managed + // instance group. + // [Deprecated] This method is deprecated. UseinstanceGroupManagers.patch instead. rpc SetAutoHealingPolicies(SetAutoHealingPoliciesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_set_auto_healing_request_resource" @@ -48266,7 +85676,9 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. + // Specifies the instance template to use when creating new instances in this + // group. The templates for existing instances in the group do not change + // unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. rpc SetInstanceTemplate(SetInstanceTemplateInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_set_instance_template_request_resource" @@ -48276,7 +85688,12 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is marked DONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group. + // Modifies the target pools to which all instances in this managed instance + // group are assigned. The target pools automatically apply to all of the + // instances in the managed instance group. This operation is markedDONE when you make the request even if the instances have not + // yet been added to their target pools. The change might take some time to + // apply to all of the instances in the group depending on the size of the + // group. rpc SetTargetPools(SetTargetPoolsInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_set_target_pools_request_resource" @@ -48286,7 +85703,22 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group to be + // started. This method increases thetargetSize and decreases the targetStoppedSize + // of the managed instance group by the number of instances that you start. + // The startInstances operation is marked DONE if + // the startInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances + // method. + // + // In this request, you can only specify instances that are stopped. For + // example, if an instance was previously stopped using the stopInstances + // method, it can be started using the startInstances method. + // + // If a health check is attached to the managed instance group, the specified + // instances will be verified as healthy after they are started. + // + // You can specify a maximum of 1000 instances with this method per request. rpc StartInstances(StartInstancesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_start_instances_request_resource" @@ -48296,7 +85728,31 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group to be + // immediately stopped. You can only specify instances that are running in + // this request. This method reduces thetargetSize and increases the targetStoppedSize + // of the managed instance group by the number of instances that you stop. + // The stopInstances operation is marked DONE if + // the stopInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances + // method. + // + // If the standbyPolicy.initialDelaySec field is set, the group + // delays stopping the instances until initialDelaySec have + // passed from instance.creationTimestamp (that is, when the + // instance was created). This delay gives your application time to + // set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there + // will be zero delay. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is stopped. + // + // Stopped instances can be started using the startInstances + // method. + // + // You can specify a maximum of 1000 instances with this method per request. rpc StopInstances(StopInstancesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_stop_instances_request_resource" @@ -48306,7 +85762,31 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group to be + // immediately suspended. You can only specify instances that are running in + // this request. This method reduces thetargetSize and increases the targetSuspendedSize + // of the managed instance group by the number of instances that you suspend. + // The suspendInstances operation is marked DONE if + // the suspendInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances + // method. + // + // If the standbyPolicy.initialDelaySec field is set, the group + // delays suspension of the instances until initialDelaySec have + // passed from instance.creationTimestamp (that is, when the + // instance was created). This delay gives your application time to + // set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there + // will be zero delay. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is suspended. + // + // Suspended instances can be resumed using the resumeInstances + // method. + // + // You can specify a maximum of 1000 instances with this method per request. rpc SuspendInstances(SuspendInstancesInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_suspend_instances_request_resource" @@ -48325,7 +85805,18 @@ service InstanceGroupManagers { option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; } - // Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with the listManagedInstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + // Updates a managed instance group using the information that you specify + // in the request. + // This operation is marked as DONE when the group is updated + // even if the instances in the group have not yet been updated. You must + // separately verify the status of the individual instances with thelistManagedInstances + // method. + // + // If you update your group to specify a new template or instance + // configuration, it's possible that your intended specification for each VM + // in the group is different from the current state of that VM. To learn how + // to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + // a MIG. rpc Update(UpdateInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_manager_resource" @@ -48335,7 +85826,9 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } - // Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + // Inserts or updates per-instance configurations for the managed instance + // group. perInstanceConfig.name serves as a key used to + // distinguish whether to perform insert or patch. rpc UpdatePerInstanceConfigs(UpdatePerInstanceConfigsInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_managers_update_per_instance_configs_req_resource" @@ -48356,7 +85849,10 @@ service InstanceGroups { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information. + // Adds a list of instances to the specified instance group. All of the + // instances in the instance group must be in the same network/subnetwork. + // Read + // Adding instances for more information. rpc AddInstances(AddInstancesInstanceGroupRequest) returns (Operation) { option (google.api.http) = { body: "instance_groups_add_instances_request_resource" @@ -48366,7 +85862,10 @@ service InstanceGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of instance groups and sorts them by zone. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInstanceGroupsRequest) returns (InstanceGroupAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/instanceGroups" @@ -48374,7 +85873,10 @@ service InstanceGroups { option (google.api.method_signature) = "project"; } - // Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information. + // Deletes the specified instance group. The instances in the group are not + // deleted. Note that instance group must not belong to a backend service. + // Read + // Deleting an instance group for more information. rpc Delete(DeleteInstanceGroupRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instance_group}" @@ -48383,7 +85885,12 @@ service InstanceGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead. + // Returns the specified zonal instance group. Get a list of available zonal + // instance groups by making a list() request. + // + // For managed instance groups, use theinstanceGroupManagers + // or regionInstanceGroupManagers + // methods instead. rpc Get(GetInstanceGroupRequest) returns (InstanceGroup) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instance_group}" @@ -48391,7 +85898,8 @@ service InstanceGroups { option (google.api.method_signature) = "project,zone,instance_group"; } - // Creates an instance group in the specified project using the parameters that are included in the request. + // Creates an instance group in the specified project using the + // parameters that are included in the request. rpc Insert(InsertInstanceGroupRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_resource" @@ -48401,7 +85909,12 @@ service InstanceGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead. + // Retrieves the list of zonal instance group resources contained within the + // specified zone. + // + // For managed instance groups, use theinstanceGroupManagers + // or regionInstanceGroupManagers + // methods instead. rpc List(ListInstanceGroupsRequest) returns (InstanceGroupList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instanceGroups" @@ -48409,7 +85922,10 @@ service InstanceGroups { option (google.api.method_signature) = "project,zone"; } - // Lists the instances in the specified instance group. The orderBy query parameter is not supported. The filter query parameter is supported, but only for expressions that use `eq` (equal) or `ne` (not equal) operators. + // Lists the instances in the specified instance group. + // The orderBy query parameter is not supported. + // The filter query parameter is supported, but only for + // expressions that use `eq` (equal) or `ne` (not equal) operators. rpc ListInstances(ListInstancesInstanceGroupsRequest) returns (InstanceGroupsListInstances) { option (google.api.http) = { body: "instance_groups_list_instances_request_resource" @@ -48418,7 +85934,13 @@ service InstanceGroups { option (google.api.method_signature) = "project,zone,instance_group,instance_groups_list_instances_request_resource"; } - // Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted. + // Removes one or more instances from the specified instance group, but does + // not delete those instances. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration before the VM instance is removed or deleted. rpc RemoveInstances(RemoveInstancesInstanceGroupRequest) returns (Operation) { option (google.api.http) = { body: "instance_groups_remove_instances_request_resource" @@ -48487,7 +86009,11 @@ service InstanceTemplates { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all InstanceTemplates resources, regional and global, + // available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInstanceTemplatesRequest) returns (InstanceTemplateAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/instanceTemplates" @@ -48495,7 +86021,9 @@ service InstanceTemplates { option (google.api.method_signature) = "project"; } - // Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group. + // Deletes the specified instance template. Deleting an instance template is + // permanent and cannot be undone. It is not possible to delete templates + // that are already in use by a managed instance group. rpc Delete(DeleteInstanceTemplateRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/global/instanceTemplates/{instance_template}" @@ -48512,7 +86040,8 @@ service InstanceTemplates { option (google.api.method_signature) = "project,instance_template"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyInstanceTemplateRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy" @@ -48520,7 +86049,11 @@ service InstanceTemplates { option (google.api.method_signature) = "project,resource"; } - // Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template. + // Creates an instance template in the specified project using the + // data that is included in the request. If you are creating a new template to + // update an existing instance group, your new instance template must use the + // same network or, if applicable, the same subnetwork as the original + // template. rpc Insert(InsertInstanceTemplateRequest) returns (Operation) { option (google.api.http) = { body: "instance_template_resource" @@ -48530,7 +86063,8 @@ service InstanceTemplates { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves a list of instance templates that are contained within the specified project. + // Retrieves a list of instance templates that are contained within + // the specified project. rpc List(ListInstanceTemplatesRequest) returns (InstanceTemplateList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/instanceTemplates" @@ -48538,7 +86072,8 @@ service InstanceTemplates { option (google.api.method_signature) = "project"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyInstanceTemplateRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -48587,7 +86122,9 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations. + // Adds existing resource policies to an instance. You can only add one + // policy right now which will be applied to this instance for scheduling live + // migrations. rpc AddResourcePolicies(AddResourcePoliciesInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instances_add_resource_policies_request_resource" @@ -48597,7 +86134,14 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of all of the instances in your project + // across all regions and zones. + // + // The performance of this method degrades when a filter is specified on a + // project that has a very large number of instances. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInstancesRequest) returns (InstanceAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/instances" @@ -48605,7 +86149,10 @@ service Instances { option (google.api.method_signature) = "project"; } - // Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance. + // Attaches an existing Disk resource to an instance. You must first + // create the disk before you can attach it. It is not possible to create + // and attach a disk at the same time. For more information, readAdding a + // persistent disk to your instance. rpc AttachDisk(AttachDiskInstanceRequest) returns (Operation) { option (google.api.http) = { body: "attached_disk_resource" @@ -48615,7 +86162,9 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs. + // Creates multiple instances. Count specifies the number of instances to + // create. For more information, seeAbout bulk + // creation of VMs. rpc BulkInsert(BulkInsertInstanceRequest) returns (Operation) { option (google.api.http) = { body: "bulk_insert_instance_resource_resource" @@ -48625,7 +86174,8 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Deletes the specified Instance resource. For more information, see Deleting an instance. + // Deletes the specified Instance resource. For more information, seeDeleting + // an instance. rpc Delete(DeleteInstanceRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/zones/{zone}/instances/{instance}" @@ -48643,7 +86193,11 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Deletes one dynamic network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; - dynamic network interface to be deleted, using network_interface_name field; + // Deletes one dynamic network interface from an active instance. + // InstancesDeleteNetworkInterfaceRequest indicates: + // - instance from which to delete, using project+zone+resource_id fields; + // - dynamic network interface to be deleted, using network_interface_name + // field; rpc DeleteNetworkInterface(DeleteNetworkInterfaceInstanceRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface" @@ -48685,7 +86239,8 @@ service Instances { option (google.api.method_signature) = "project,zone,instance"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyInstanceRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy" @@ -48733,7 +86288,8 @@ service Instances { option (google.api.method_signature) = "project,zone,instance"; } - // Creates an instance resource in the specified project using the data included in the request. + // Creates an instance resource in the specified project using the data + // included in the request. rpc Insert(InsertInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instance_resource" @@ -48743,7 +86299,8 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves the list of instances contained within the specified zone. + // Retrieves the list of instances contained within + // the specified zone. rpc List(ListInstancesRequest) returns (InstanceList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instances" @@ -48751,7 +86308,11 @@ service Instances { option (google.api.method_signature) = "project,zone"; } - // Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances. + // Retrieves a list of resources that refer to the VM instance specified in + // the request. For example, if the VM instance is part of a managed or + // unmanaged instance group, the referrers list includes the instance group. + // For more information, readViewing + // referrers to VM instances. rpc ListReferrers(ListReferrersInstancesRequest) returns (InstanceListReferrers) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/referrers" @@ -48798,7 +86359,9 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance. + // Performs a reset on the instance. This is a hard reset. The VM + // does not do a graceful shutdown. For more information, seeResetting + // an instance. rpc Reset(ResetInstanceRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/reset" @@ -48807,7 +86370,8 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Resumes an instance that was suspended using the instances().suspend method. + // Resumes an instance that was suspended using theinstances().suspend + // method. rpc Resume(ResumeInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instances_resume_request_resource" @@ -48843,7 +86407,8 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyInstanceRequest) returns (Policy) { option (google.api.http) = { body: "zone_set_policy_request_resource" @@ -48852,7 +86417,8 @@ service Instances { option (google.api.method_signature) = "project,zone,resource,zone_set_policy_request_resource"; } - // Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation. + // Sets labels on an instance. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instances_set_labels_request_resource" @@ -48862,7 +86428,8 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Changes the number and/or type of accelerator for a stopped instance to the values specified in the request. + // Changes the number and/or type of accelerator for a stopped instance to the + // values specified in the request. rpc SetMachineResources(SetMachineResourcesInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instances_set_machine_resources_request_resource" @@ -48872,7 +86439,8 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Changes the machine type for a stopped instance to the machine type specified in the request. + // Changes the machine type for a stopped instance to the machine + // type specified in the request. rpc SetMachineType(SetMachineTypeInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instances_set_machine_type_request_resource" @@ -48882,7 +86450,8 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets metadata for the specified instance to the data included in the request. + // Sets metadata for the specified instance to the data included + // in the request. rpc SetMetadata(SetMetadataInstanceRequest) returns (Operation) { option (google.api.http) = { body: "metadata_resource" @@ -48892,7 +86461,10 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform. + // Changes the minimum CPU platform that this instance should use. + // This method can only + // be called on a stopped instance. For more information, readSpecifying a + // Minimum CPU Platform. rpc SetMinCpuPlatform(SetMinCpuPlatformInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instances_set_min_cpu_platform_request_resource" @@ -48912,7 +86484,11 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy. + // Sets an instance's scheduling options. You can only call this method on astopped instance, + // that is, a VM instance that is in a `TERMINATED` state. SeeInstance Life + // Cycle for more information on the possible instance states. + // For more information about setting scheduling options for a VM, seeSet + // VM host maintenance policy. rpc SetScheduling(SetSchedulingInstanceRequest) returns (Operation) { option (google.api.http) = { body: "scheduling_resource" @@ -48922,7 +86498,9 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview + // Sets the Google Cloud Armor security policy for the specified instance. + // For more information, seeGoogle + // Cloud Armor Overview rpc SetSecurityPolicy(SetSecurityPolicyInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instances_set_security_policy_request_resource" @@ -48932,7 +86510,9 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance. + // Sets the service account on the instance. For more information, + // readChanging + // the service account and access scopes for an instance. rpc SetServiceAccount(SetServiceAccountInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instances_set_service_account_request_resource" @@ -48942,7 +86522,10 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Sets the Shielded Instance integrity policy for an instance. You can + // only use this method on a running instance. This method + // supports PATCH semantics and uses the JSON merge + // patch format and processing rules. rpc SetShieldedInstanceIntegrityPolicy(SetShieldedInstanceIntegrityPolicyInstanceRequest) returns (Operation) { option (google.api.http) = { body: "shielded_instance_integrity_policy_resource" @@ -48952,7 +86535,10 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets the Shielded VM integrity policy for a VM instance. You can only use this method on a running VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Sets the Shielded VM integrity policy for a VM instance. You can + // only use this method on a running VM instance. This method + // supports PATCH semantics and uses the JSON merge + // patch format and processing rules. rpc SetShieldedVmIntegrityPolicy(SetShieldedVmIntegrityPolicyInstanceRequest) returns (Operation) { option (google.api.http) = { body: "shielded_vm_integrity_policy_resource" @@ -48962,7 +86548,8 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets network tags for the specified instance to the data included in the request. + // Sets network tags + // for the specified instance to the data included in the request. rpc SetTags(SetTagsInstanceRequest) returns (Operation) { option (google.api.http) = { body: "tags_resource" @@ -48972,7 +86559,8 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event. + // Simulates a host maintenance event on a VM. For more information, see + // Simulate a host maintenance event. rpc SimulateMaintenanceEvent(SimulateMaintenanceEventInstanceRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent" @@ -48981,7 +86569,9 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance. + // Starts an instance that was stopped using theinstances().stop + // method. For more information, seeRestart an + // instance. rpc Start(StartInstanceRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start" @@ -48990,7 +86580,9 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance. + // Starts an instance that was stopped using theinstances().stop + // method. For more information, seeRestart an + // instance. rpc StartWithEncryptionKey(StartWithEncryptionKeyInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instances_start_with_encryption_key_request_resource" @@ -49000,7 +86592,12 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance. + // Stops a running instance, shutting it down cleanly, and allows + // you to restart the instance at a later time. Stopped instances do not incur + // VM usage charges while they are stopped. However, resources that the VM is + // using, such as persistent disks and static IP addresses, will continue to + // be charged until they are deleted. For more information, seeStopping + // an instance. rpc Stop(StopInstanceRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop" @@ -49009,7 +86606,14 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance. + // This method suspends a running instance, saving its state to persistent + // storage, and allows you to resume the instance at a later time. Suspended + // instances have no compute costs (cores or RAM), and incur only storage + // charges for the saved VM memory and localSSD data. Any charged resources + // the virtual machine was using, such as persistent disks and static IP + // addresses, will continue to be charged while the instance is suspended. + // For more information, see + // Suspending and resuming an instance. rpc Suspend(SuspendInstanceRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/suspend" @@ -49027,7 +86631,10 @@ service Instances { option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; } - // Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties. + // Updates an instance only if the necessary resources are available. This + // method can update only a specific set of instance properties. See + // Updating a running instance for a list of updatable instance + // properties. rpc Update(UpdateInstanceRequest) returns (Operation) { option (google.api.http) = { body: "instance_resource" @@ -49037,7 +86644,10 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified access config from an instance's network interface + // with the data included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc UpdateAccessConfig(UpdateAccessConfigInstanceRequest) returns (Operation) { option (google.api.http) = { body: "access_config_resource" @@ -49047,7 +86657,10 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the Display config for a VM instance. You can + // only use this method on a stopped VM instance. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc UpdateDisplayDevice(UpdateDisplayDeviceInstanceRequest) returns (Operation) { option (google.api.http) = { body: "display_device_resource" @@ -49057,7 +86670,12 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics. + // Updates an instance's network interface. This method can only update an + // interface's alias IP range and attached network. See Modifying + // alias IP ranges for an existing instance for instructions on + // changing alias IP ranges. See Migrating + // a VM between networks for instructions on migrating an interface. + // This method follows PATCH semantics. rpc UpdateNetworkInterface(UpdateNetworkInterfaceInstanceRequest) returns (Operation) { option (google.api.http) = { body: "network_interface_resource" @@ -49067,7 +86685,10 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the Shielded Instance config for an instance. You can + // only use this method on a stopped instance. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc UpdateShieldedInstanceConfig(UpdateShieldedInstanceConfigInstanceRequest) returns (Operation) { option (google.api.http) = { body: "shielded_instance_config_resource" @@ -49077,7 +86698,10 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Updates the Shielded VM config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the Shielded VM config for a VM instance. You can + // only use this method on a stopped VM instance. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc UpdateShieldedVmConfig(UpdateShieldedVmConfigInstanceRequest) returns (Operation) { option (google.api.http) = { body: "shielded_vm_config_resource" @@ -49098,7 +86722,10 @@ service InstantSnapshots { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of instantSnapshots. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInstantSnapshotsRequest) returns (InstantSnapshotAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/instantSnapshots" @@ -49106,7 +86733,14 @@ service InstantSnapshots { option (google.api.method_signature) = "project"; } - // Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. + // Deletes the specified InstantSnapshot resource. Keep in mind that deleting + // a single instantSnapshot might not necessarily delete all the data on that + // instantSnapshot. If any data on the instantSnapshot that is marked for + // deletion is needed for subsequent instantSnapshots, the data will be moved + // to the next corresponding instantSnapshot. + // + // For more information, seeDeleting + // instantSnapshots. rpc Delete(DeleteInstantSnapshotRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshots/{instant_snapshot}" @@ -49123,7 +86757,8 @@ service InstantSnapshots { option (google.api.method_signature) = "project,zone,instant_snapshot"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyInstantSnapshotRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy" @@ -49141,7 +86776,8 @@ service InstantSnapshots { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves the list of InstantSnapshot resources contained within the specified zone. + // Retrieves the list of InstantSnapshot resources contained within + // the specified zone. rpc List(ListInstantSnapshotsRequest) returns (InstantSnapshotList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/instantSnapshots" @@ -49149,7 +86785,8 @@ service InstantSnapshots { option (google.api.method_signature) = "project,zone"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyInstantSnapshotRequest) returns (Policy) { option (google.api.http) = { body: "zone_set_policy_request_resource" @@ -49158,7 +86795,9 @@ service InstantSnapshots { option (google.api.method_signature) = "project,zone,resource,zone_set_policy_request_resource"; } - // Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a instantSnapshot in the given zone. To learn more about + // labels, read the Labeling + // Resources documentation. rpc SetLabels(SetLabelsInstantSnapshotRequest) returns (Operation) { option (google.api.http) = { body: "zone_set_labels_request_resource" @@ -49197,7 +86836,8 @@ service InterconnectAttachmentGroups { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified InterconnectAttachmentGroup resource in the given scope. + // Returns the specified InterconnectAttachmentGroup resource in the given + // scope. rpc Get(GetInterconnectAttachmentGroupRequest) returns (InterconnectAttachmentGroup) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnectAttachmentGroups/{interconnect_attachment_group}" @@ -49205,7 +86845,8 @@ service InterconnectAttachmentGroups { option (google.api.method_signature) = "project,interconnect_attachment_group"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyInterconnectAttachmentGroupRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy" @@ -49213,7 +86854,8 @@ service InterconnectAttachmentGroups { option (google.api.method_signature) = "project,resource"; } - // Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup resource. + // Returns the InterconnectAttachmentStatuses for the specified + // InterconnectAttachmentGroup resource. rpc GetOperationalStatus(GetOperationalStatusInterconnectAttachmentGroupRequest) returns (InterconnectAttachmentGroupsGetOperationalStatusResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnectAttachmentGroups/{interconnect_attachment_group}/getOperationalStatus" @@ -49221,7 +86863,8 @@ service InterconnectAttachmentGroups { option (google.api.method_signature) = "project,interconnect_attachment_group"; } - // Creates a InterconnectAttachmentGroup in the specified project in the given scope using the parameters that are included in the request. + // Creates a InterconnectAttachmentGroup in the specified project in the given + // scope using the parameters that are included in the request. rpc Insert(InsertInterconnectAttachmentGroupRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_attachment_group_resource" @@ -49239,7 +86882,10 @@ service InterconnectAttachmentGroups { option (google.api.method_signature) = "project"; } - // Patches the specified InterconnectAttachmentGroup resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified InterconnectAttachmentGroup resource with the data + // included in the request. This method supports PATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchInterconnectAttachmentGroupRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_attachment_group_resource" @@ -49249,7 +86895,8 @@ service InterconnectAttachmentGroups { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyInterconnectAttachmentGroupRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -49278,7 +86925,10 @@ service InterconnectAttachments { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of interconnect attachments. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListInterconnectAttachmentsRequest) returns (InterconnectAttachmentAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/interconnectAttachments" @@ -49303,7 +86953,8 @@ service InterconnectAttachments { option (google.api.method_signature) = "project,region,interconnect_attachment"; } - // Creates an InterconnectAttachment in the specified project using the data included in the request. + // Creates an InterconnectAttachment in the specified project using the data + // included in the request. rpc Insert(InsertInterconnectAttachmentRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_attachment_resource" @@ -49313,7 +86964,8 @@ service InterconnectAttachments { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of interconnect attachments contained within the specified region. + // Retrieves the list of interconnect attachments contained within + // the specified region. rpc List(ListInterconnectAttachmentsRequest) returns (InterconnectAttachmentList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/interconnectAttachments" @@ -49321,7 +86973,10 @@ service InterconnectAttachments { option (google.api.method_signature) = "project,region"; } - // Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified interconnect attachment with the data included in the + // request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchInterconnectAttachmentRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_attachment_resource" @@ -49331,7 +86986,9 @@ service InterconnectAttachments { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on an InterconnectAttachment. To learn more about labels, + // read the Labeling + // Resources documentation. rpc SetLabels(SetLabelsInterconnectAttachmentRequest) returns (Operation) { option (google.api.http) = { body: "region_set_labels_request_resource" @@ -49361,7 +87018,8 @@ service InterconnectGroups { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Create Interconnects with redundancy by creating them in a specified interconnect group. + // Create Interconnects with redundancy by creating them in a specified + // interconnect group. rpc CreateMembers(CreateMembersInterconnectGroupRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_groups_create_members_request_resource" @@ -49388,7 +87046,8 @@ service InterconnectGroups { option (google.api.method_signature) = "project,interconnect_group"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyInterconnectGroupRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnectGroups/{resource}/getIamPolicy" @@ -49396,7 +87055,8 @@ service InterconnectGroups { option (google.api.method_signature) = "project,resource"; } - // Returns the interconnectStatuses for the specified InterconnectGroup. + // Returns the interconnectStatuses for the specified + // InterconnectGroup. rpc GetOperationalStatus(GetOperationalStatusInterconnectGroupRequest) returns (InterconnectGroupsGetOperationalStatusResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnectGroups/{interconnect_group}/getOperationalStatus" @@ -49404,7 +87064,8 @@ service InterconnectGroups { option (google.api.method_signature) = "project,interconnect_group"; } - // Creates a InterconnectGroup in the specified project in the given scope using the parameters that are included in the request. + // Creates a InterconnectGroup in the specified project in the given scope + // using the parameters that are included in the request. rpc Insert(InsertInterconnectGroupRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_group_resource" @@ -49422,7 +87083,10 @@ service InterconnectGroups { option (google.api.method_signature) = "project"; } - // Patches the specified InterconnectGroup resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified InterconnectGroup resource with the data included in + // the request. This method supports PATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchInterconnectGroupRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_group_resource" @@ -49432,7 +87096,8 @@ service InterconnectGroups { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyInterconnectGroupRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -49462,7 +87127,8 @@ service InterconnectLocations { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request. + // Returns the details for the specified interconnect location. Gets a list of + // available interconnect locations by making a list() request. rpc Get(GetInterconnectLocationRequest) returns (InterconnectLocation) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnectLocations/{interconnect_location}" @@ -49470,7 +87136,8 @@ service InterconnectLocations { option (google.api.method_signature) = "project,interconnect_location"; } - // Retrieves the list of interconnect locations available to the specified project. + // Retrieves the list of interconnect locations available to the specified + // project. rpc List(ListInterconnectLocationsRequest) returns (InterconnectLocationList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnectLocations" @@ -49490,7 +87157,8 @@ service InterconnectRemoteLocations { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making a list() request. + // Returns the details for the specified interconnect remote location. Gets a + // list of available interconnect remote locations by making alist() request. rpc Get(GetInterconnectRemoteLocationRequest) returns (InterconnectRemoteLocation) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnectRemoteLocations/{interconnect_remote_location}" @@ -49498,7 +87166,8 @@ service InterconnectRemoteLocations { option (google.api.method_signature) = "project,interconnect_remote_location"; } - // Retrieves the list of interconnect remote locations available to the specified project. + // Retrieves the list of interconnect remote locations available to the + // specified project. rpc List(ListInterconnectRemoteLocationsRequest) returns (InterconnectRemoteLocationList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnectRemoteLocations" @@ -49526,7 +87195,8 @@ service Interconnects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified Interconnect. Get a list of available Interconnects by making a list() request. + // Returns the specified Interconnect. Get a list of available Interconnects + // by making a list() request. rpc Get(GetInterconnectRequest) returns (Interconnect) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnects/{interconnect}" @@ -49534,7 +87204,16 @@ service Interconnects { option (google.api.method_signature) = "project,interconnect"; } - // Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly. + // Returns the interconnectDiagnostics for the specified + // Interconnect. + // + // In the event of a + // global outage, do not use this API to make decisions about where to + // redirect your network traffic. + // + // Unlike a VLAN attachment, which is regional, a Cloud Interconnect + // connection is a global resource. A global outage can prevent this + // API from functioning properly. rpc GetDiagnostics(GetDiagnosticsInterconnectRequest) returns (InterconnectsGetDiagnosticsResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnects/{interconnect}/getDiagnostics" @@ -49542,7 +87221,8 @@ service Interconnects { option (google.api.method_signature) = "project,interconnect"; } - // Returns the interconnectMacsecConfig for the specified Interconnect. + // Returns the interconnectMacsecConfig for the specified + // Interconnect. rpc GetMacsecConfig(GetMacsecConfigInterconnectRequest) returns (InterconnectsGetMacsecConfigResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/interconnects/{interconnect}/getMacsecConfig" @@ -49550,7 +87230,8 @@ service Interconnects { option (google.api.method_signature) = "project,interconnect"; } - // Creates an Interconnect in the specified project using the data included in the request. + // Creates an Interconnect in the specified project using + // the data included in the request. rpc Insert(InsertInterconnectRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_resource" @@ -49568,7 +87249,10 @@ service Interconnects { option (google.api.method_signature) = "project"; } - // Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified Interconnect with the data included in the request. + // This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchInterconnectRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_resource" @@ -49578,7 +87262,9 @@ service Interconnects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on an Interconnect. To learn more about labels, + // read the Labeling + // Resources documentation. rpc SetLabels(SetLabelsInterconnectRequest) returns (Operation) { option (google.api.http) = { body: "global_set_labels_request_resource" @@ -49609,7 +87295,11 @@ service LicenseCodes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Return a specified license code. License codes are mirrored across + // all projects that have permissions to read the License Code. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc Get(GetLicenseCodeRequest) returns (LicenseCode) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/licenseCodes/{license_code}" @@ -49617,7 +87307,10 @@ service LicenseCodes { option (google.api.method_signature) = "project,license_code"; } - // Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Returns permissions that a caller has on the specified resource. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc TestIamPermissions(TestIamPermissionsLicenseCodeRequest) returns (TestPermissionsResponse) { option (google.api.http) = { body: "test_permissions_request_resource" @@ -49637,7 +87330,10 @@ service Licenses { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Deletes the specified license. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc Delete(DeleteLicenseRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/global/licenses/{license}" @@ -49646,7 +87342,10 @@ service Licenses { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Returns the specified License resource. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc Get(GetLicenseRequest) returns (License) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/licenses/{license}" @@ -49654,7 +87353,11 @@ service Licenses { option (google.api.method_signature) = "project,license"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc GetIamPolicy(GetIamPolicyLicenseRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/licenses/{resource}/getIamPolicy" @@ -49662,7 +87365,10 @@ service Licenses { option (google.api.method_signature) = "project,resource"; } - // Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Create a License resource in the specified project. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc Insert(InsertLicenseRequest) returns (Operation) { option (google.api.http) = { body: "license_resource" @@ -49672,7 +87378,15 @@ service Licenses { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Retrieves the list of licenses + // available in the specified project. This method does not + // get any licenses that belong to other projects, including licenses attached + // to publicly-available images, like Debian 9. If you want to get a list of + // publicly-available licenses, use this method to make a request to the + // respective image project, such as debian-cloud orwindows-cloud. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc List(ListLicensesRequest) returns (LicensesListResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/licenses" @@ -49680,7 +87394,11 @@ service Licenses { option (google.api.method_signature) = "project"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc SetIamPolicy(SetIamPolicyLicenseRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -49689,7 +87407,10 @@ service Licenses { option (google.api.method_signature) = "project,resource,global_set_policy_request_resource"; } - // Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Returns permissions that a caller has on the specified resource. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc TestIamPermissions(TestIamPermissionsLicenseRequest) returns (TestPermissionsResponse) { option (google.api.http) = { body: "test_permissions_request_resource" @@ -49698,7 +87419,10 @@ service Licenses { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } - // Updates a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + // Updates a License resource in the specified project. + // *Caution* This resource is intended + // for use only by third-party partners who are creatingCloud Marketplace + // images. rpc Update(UpdateLicenseRequest) returns (Operation) { option (google.api.http) = { body: "license_resource" @@ -49719,7 +87443,8 @@ service MachineImages { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + // Deletes the specified machine image. Deleting a machine image is permanent + // and cannot be undone. rpc Delete(DeleteMachineImageRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/global/machineImages/{machine_image}" @@ -49736,7 +87461,8 @@ service MachineImages { option (google.api.method_signature) = "project,machine_image"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyMachineImageRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/machineImages/{resource}/getIamPolicy" @@ -49744,7 +87470,11 @@ service MachineImages { option (google.api.method_signature) = "project,resource"; } - // Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance. + // Creates a machine image in the specified project using the + // data that is included in the request. If you are creating a new machine + // image to update an existing instance, your new machine image should use the + // same network or, if applicable, the same subnetwork as the original + // instance. rpc Insert(InsertMachineImageRequest) returns (Operation) { option (google.api.http) = { body: "machine_image_resource" @@ -49754,7 +87484,8 @@ service MachineImages { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves a list of machine images that are contained within the specified project. + // Retrieves a list of machine images that are contained within + // the specified project. rpc List(ListMachineImagesRequest) returns (MachineImageList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/machineImages" @@ -49762,7 +87493,8 @@ service MachineImages { option (google.api.method_signature) = "project"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyMachineImageRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -49771,7 +87503,8 @@ service MachineImages { option (google.api.method_signature) = "project,resource,global_set_policy_request_resource"; } - // Sets the labels on a machine image. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a machine image. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsMachineImageRequest) returns (Operation) { option (google.api.http) = { body: "global_set_labels_request_resource" @@ -49802,7 +87535,10 @@ service MachineTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of machine types. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListMachineTypesRequest) returns (MachineTypeAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/machineTypes" @@ -49818,7 +87554,8 @@ service MachineTypes { option (google.api.method_signature) = "project,zone,machine_type"; } - // Retrieves a list of machine types available to the specified project. + // Retrieves a list of machine types available to the specified + // project. rpc List(ListMachineTypesRequest) returns (MachineTypeList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/machineTypes" @@ -49837,7 +87574,11 @@ service NetworkAttachments { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all NetworkAttachment resources, + // regional and global, available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNetworkAttachmentsRequest) returns (NetworkAttachmentAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/networkAttachments" @@ -49862,7 +87603,8 @@ service NetworkAttachments { option (google.api.method_signature) = "project,region,network_attachment"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyNetworkAttachmentRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy" @@ -49870,7 +87612,8 @@ service NetworkAttachments { option (google.api.method_signature) = "project,region,resource"; } - // Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request. + // Creates a NetworkAttachment in the specified project in the given scope + // using the parameters that are included in the request. rpc Insert(InsertNetworkAttachmentRequest) returns (Operation) { option (google.api.http) = { body: "network_attachment_resource" @@ -49888,7 +87631,10 @@ service NetworkAttachments { option (google.api.method_signature) = "project,region"; } - // Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified NetworkAttachment resource with the data included in + // the request. This method supports PATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchNetworkAttachmentRequest) returns (Operation) { option (google.api.http) = { body: "network_attachment_resource" @@ -49898,7 +87644,8 @@ service NetworkAttachments { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyNetworkAttachmentRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -49927,7 +87674,11 @@ service NetworkEdgeSecurityServices { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all NetworkEdgeSecurityService resources available to + // the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNetworkEdgeSecurityServicesRequest) returns (NetworkEdgeSecurityServiceAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/networkEdgeSecurityServices" @@ -49952,7 +87703,8 @@ service NetworkEdgeSecurityServices { option (google.api.method_signature) = "project,region,network_edge_security_service"; } - // Creates a new service in the specified project using the data included in the request. + // Creates a new service in the specified project using the data included in + // the request. rpc Insert(InsertNetworkEdgeSecurityServiceRequest) returns (Operation) { option (google.api.http) = { body: "network_edge_security_service_resource" @@ -49983,7 +87735,10 @@ service NetworkEndpointGroups { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of network endpoint groups and sorts them by zone. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNetworkEndpointGroupsRequest) returns (NetworkEndpointGroupAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/networkEndpointGroups" @@ -50001,7 +87756,10 @@ service NetworkEndpointGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it. + // Deletes the specified network endpoint group. The network endpoints in the + // NEG and the VM instances they belong to are not terminated when the NEG is + // deleted. Note that the NEG cannot be deleted if there are backend services + // referencing it. rpc Delete(DeleteNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{network_endpoint_group}" @@ -50010,7 +87768,8 @@ service NetworkEndpointGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Detach a list of network endpoints from the specified network endpoint group. + // Detach a list of network endpoints from the specified network endpoint + // group. rpc DetachNetworkEndpoints(DetachNetworkEndpointsNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_groups_detach_endpoints_request_resource" @@ -50028,7 +87787,8 @@ service NetworkEndpointGroups { option (google.api.method_signature) = "project,zone,network_endpoint_group"; } - // Creates a network endpoint group in the specified project using the parameters that are included in the request. + // Creates a network endpoint group in the specified project using the + // parameters that are included in the request. rpc Insert(InsertNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_group_resource" @@ -50038,7 +87798,8 @@ service NetworkEndpointGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves the list of network endpoint groups that are located in the specified project and zone. + // Retrieves the list of network endpoint groups that are located in the + // specified project and zone. rpc List(ListNetworkEndpointGroupsRequest) returns (NetworkEndpointGroupList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups" @@ -50105,7 +87866,12 @@ service NetworkFirewallPolicies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of network firewall policies, listing network + // firewall policies from all applicable scopes (global and regional) and + // grouping the results per scope. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNetworkFirewallPoliciesRequest) returns (NetworkFirewallPolicyAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/firewallPolicies" @@ -50147,7 +87913,8 @@ service NetworkFirewallPolicies { option (google.api.method_signature) = "project,firewall_policy"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyNetworkFirewallPolicyRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy" @@ -50171,7 +87938,8 @@ service NetworkFirewallPolicies { option (google.api.method_signature) = "project,firewall_policy"; } - // Creates a new policy in the specified project using the data included in the request. + // Creates a new policy in the specified project using the data included in + // the request. rpc Insert(InsertNetworkFirewallPolicyRequest) returns (Operation) { option (google.api.http) = { body: "firewall_policy_resource" @@ -50246,7 +88014,8 @@ service NetworkFirewallPolicies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyNetworkFirewallPolicyRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -50284,7 +88053,8 @@ service NetworkProfiles { option (google.api.method_signature) = "project,network_profile"; } - // Retrieves a list of network profiles available to the specified project. + // Retrieves a list of network profiles available to the specified + // project. rpc List(ListNetworkProfilesRequest) returns (NetworkProfilesListResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/networkProfiles" @@ -50338,7 +88108,8 @@ service Networks { option (google.api.method_signature) = "project,network"; } - // Creates a network in the specified project using the data included in the request. + // Creates a network in the specified project using the data included + // in the request. rpc Insert(InsertNetworkRequest) returns (Operation) { option (google.api.http) = { body: "network_resource" @@ -50364,7 +88135,8 @@ service Networks { option (google.api.method_signature) = "project,network"; } - // Patches the specified network with the data included in the request. Only routingConfig can be modified. + // Patches the specified network with the data included in the request. + // Only routingConfig can be modified. rpc Patch(PatchNetworkRequest) returns (Operation) { option (google.api.http) = { body: "network_resource" @@ -50384,7 +88156,8 @@ service Networks { option (google.cloud.operation_service) = "GlobalOperations"; } - // Requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS. + // Requests to remove a peering from the specified network. Applicable only + // for PeeringConnection with update_strategy=CONSENSUS. rpc RequestRemovePeering(RequestRemovePeeringNetworkRequest) returns (Operation) { option (google.api.http) = { body: "networks_request_remove_peering_request_resource" @@ -50412,7 +88185,9 @@ service Networks { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } - // Updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. + // Updates the specified network peering with the data included in the + // request. You can only modify the NetworkPeering.export_custom_routes field + // and the NetworkPeering.import_custom_routes field. rpc UpdatePeering(UpdatePeeringNetworkRequest) returns (Operation) { option (google.api.http) = { body: "networks_update_peering_request_resource" @@ -50443,7 +88218,11 @@ service NodeGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of node groups. + // Note: use nodeGroups.listNodes for more details about each group. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNodeGroupsRequest) returns (NodeGroupAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/nodeGroups" @@ -50470,7 +88249,10 @@ service NodeGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. + // Returns the specified NodeGroup. Get a list of available NodeGroups + // by making a list() request. + // Note: the "nodes" field should not be used. Use nodeGroups.listNodes + // instead. rpc Get(GetNodeGroupRequest) returns (NodeGroup) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{node_group}" @@ -50478,7 +88260,8 @@ service NodeGroups { option (google.api.method_signature) = "project,zone,node_group"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyNodeGroupRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy" @@ -50486,7 +88269,8 @@ service NodeGroups { option (google.api.method_signature) = "project,zone,resource"; } - // Creates a NodeGroup resource in the specified project using the data included in the request. + // Creates a NodeGroup resource in the specified project using the data + // included in the request. rpc Insert(InsertNodeGroupRequest) returns (Operation) { option (google.api.http) = { body: "node_group_resource" @@ -50496,7 +88280,8 @@ service NodeGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group. + // Retrieves a list of node groups available to the specified project. + // Note: use nodeGroups.listNodes for more details about each group. rpc List(ListNodeGroupsRequest) returns (NodeGroupList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/nodeGroups" @@ -50532,7 +88317,8 @@ service NodeGroups { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyNodeGroupRequest) returns (Policy) { option (google.api.http) = { body: "zone_set_policy_request_resource" @@ -50581,7 +88367,10 @@ service NodeTemplates { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of node templates. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNodeTemplatesRequest) returns (NodeTemplateAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/nodeTemplates" @@ -50606,7 +88395,8 @@ service NodeTemplates { option (google.api.method_signature) = "project,region,node_template"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyNodeTemplateRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy" @@ -50614,7 +88404,8 @@ service NodeTemplates { option (google.api.method_signature) = "project,region,resource"; } - // Creates a NodeTemplate resource in the specified project using the data included in the request. + // Creates a NodeTemplate resource in the specified project using the data + // included in the request. rpc Insert(InsertNodeTemplateRequest) returns (Operation) { option (google.api.http) = { body: "node_template_resource" @@ -50624,7 +88415,8 @@ service NodeTemplates { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of node templates available to the specified project. + // Retrieves a list of node templates available to the specified + // project. rpc List(ListNodeTemplatesRequest) returns (NodeTemplateList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/nodeTemplates" @@ -50632,7 +88424,8 @@ service NodeTemplates { option (google.api.method_signature) = "project,region"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyNodeTemplateRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -50662,7 +88455,10 @@ service NodeTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of node types. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListNodeTypesRequest) returns (NodeTypeAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/nodeTypes" @@ -50678,7 +88474,8 @@ service NodeTypes { option (google.api.method_signature) = "project,zone,node_type"; } - // Retrieves a list of node types available to the specified project. + // Retrieves a list of node types available to the specified + // project. rpc List(ListNodeTypesRequest) returns (NodeTypeList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/nodeTypes" @@ -50697,7 +88494,14 @@ service OrganizationSecurityPolicies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Inserts an association for the specified security policy. This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.addAssociation instead if possible. + // Inserts an association for the specified security policy. + // + // This has billing implications. Projects in the hierarchy with effective + // hierarchical security policies will be automatically enrolled into Cloud + // Armor Enterprise if not already enrolled. + // + // Use of this API to modify firewall policies is deprecated. Use + // firewallPolicies.addAssociation instead if possible. rpc AddAssociation(AddAssociationOrganizationSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_association_resource" @@ -50717,7 +88521,10 @@ service OrganizationSecurityPolicies { option (google.cloud.operation_service) = "GlobalOrganizationOperations"; } - // Copies rules to the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.copyRules instead. + // Copies rules to the specified security policy. + // + // Use of this API to modify firewall policies is deprecated. Use + // firewallPolicies.copyRules instead. rpc CopyRules(CopyRulesOrganizationSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/locations/global/securityPolicies/{security_policy}/copyRules" @@ -50726,7 +88533,10 @@ service OrganizationSecurityPolicies { option (google.cloud.operation_service) = "GlobalOrganizationOperations"; } - // Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use firewallPolicies.delete instead. + // Deletes the specified policy. + // + // Use of this API to remove firewall policies is deprecated. Use + // firewallPolicies.delete instead. rpc Delete(DeleteOrganizationSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/locations/global/securityPolicies/{security_policy}" @@ -50735,7 +88545,10 @@ service OrganizationSecurityPolicies { option (google.cloud.operation_service) = "GlobalOrganizationOperations"; } - // List all of the ordered rules present in a single specified policy. Use of this API to read firewall policies is deprecated. Use firewallPolicies.get instead. + // List all of the ordered rules present in a single specified policy. + // + // Use of this API to read firewall policies is deprecated. Use + // firewallPolicies.get instead. rpc Get(GetOrganizationSecurityPolicyRequest) returns (SecurityPolicy) { option (google.api.http) = { get: "/compute/beta/locations/global/securityPolicies/{security_policy}" @@ -50743,7 +88556,10 @@ service OrganizationSecurityPolicies { option (google.api.method_signature) = "security_policy"; } - // Gets an association with the specified name. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getAssociation instead if possible. + // Gets an association with the specified name. + // + // Use of this API to read firewall policies is deprecated. Use + // firewallPolicies.getAssociation instead if possible. rpc GetAssociation(GetAssociationOrganizationSecurityPolicyRequest) returns (SecurityPolicyAssociation) { option (google.api.http) = { get: "/compute/beta/locations/global/securityPolicies/{security_policy}/getAssociation" @@ -50751,7 +88567,10 @@ service OrganizationSecurityPolicies { option (google.api.method_signature) = "security_policy"; } - // Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getRule instead. + // Gets a rule at the specified priority. + // + // Use of this API to read firewall policies is deprecated. Use + // firewallPolicies.getRule instead. rpc GetRule(GetRuleOrganizationSecurityPolicyRequest) returns (SecurityPolicyRule) { option (google.api.http) = { get: "/compute/beta/locations/global/securityPolicies/{security_policy}/getRule" @@ -50759,7 +88578,11 @@ service OrganizationSecurityPolicies { option (google.api.method_signature) = "security_policy"; } - // Creates a new policy in the specified project using the data included in the request. Use of this API to insert firewall policies is deprecated. Use firewallPolicies.insert instead. + // Creates a new policy in the specified organization using the data included + // in the request. + // + // Use of this API to insert firewall policies is deprecated. Use + // firewallPolicies.insert instead. rpc Insert(InsertOrganizationSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_resource" @@ -50769,7 +88592,11 @@ service OrganizationSecurityPolicies { option (google.cloud.operation_service) = "GlobalOrganizationOperations"; } - // List all the policies that have been configured for the specified project. Use of this API to read firewall policies is deprecated. Use firewallPolicies.list instead. + // List all the policies that have been configured for the specified + // organization. + // + // Use of this API to read firewall policies is deprecated. Use + // firewallPolicies.list instead. rpc List(ListOrganizationSecurityPoliciesRequest) returns (SecurityPolicyList) { option (google.api.http) = { get: "/compute/beta/locations/global/securityPolicies" @@ -50777,7 +88604,10 @@ service OrganizationSecurityPolicies { option (google.api.method_signature) = ""; } - // Lists associations of a specified target, i.e., organization or folder. Use of this API to read firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible. + // Lists associations of a specified target, i.e., organization or folder. + // + // Use of this API to read firewall policies is deprecated. Use + // firewallPolicies.listAssociations instead if possible. rpc ListAssociations(ListAssociationsOrganizationSecurityPolicyRequest) returns (OrganizationSecurityPoliciesListAssociationsResponse) { option (google.api.http) = { get: "/compute/beta/locations/global/securityPolicies/listAssociations" @@ -50785,7 +88615,8 @@ service OrganizationSecurityPolicies { option (google.api.method_signature) = ""; } - // Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + // Gets the current list of preconfigured Web Application Firewall (WAF) + // expressions. rpc ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest) returns (SecurityPoliciesListPreconfiguredExpressionSetsResponse) { option (google.api.http) = { get: "/compute/beta/locations/global/securityPolicies/listPreconfiguredExpressionSets" @@ -50793,7 +88624,10 @@ service OrganizationSecurityPolicies { option (google.api.method_signature) = ""; } - // Moves the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.move instead. + // Moves the specified security policy. + // + // Use of this API to modify firewall policies is deprecated. Use + // firewallPolicies.move instead. rpc Move(MoveOrganizationSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/locations/global/securityPolicies/{security_policy}/move" @@ -50802,7 +88636,10 @@ service OrganizationSecurityPolicies { option (google.cloud.operation_service) = "GlobalOrganizationOperations"; } - // Patches the specified policy with the data included in the request. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patch instead. + // Patches the specified policy with the data included in the request. + // + // Use of this API to modify firewall policies is deprecated. Use + // firewallPolicies.patch instead. rpc Patch(PatchOrganizationSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_resource" @@ -50812,7 +88649,10 @@ service OrganizationSecurityPolicies { option (google.cloud.operation_service) = "GlobalOrganizationOperations"; } - // Patches a rule at the specified priority. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patchRule instead. + // Patches a rule at the specified priority. + // + // Use of this API to modify firewall policies is deprecated. Use + // firewallPolicies.patchRule instead. rpc PatchRule(PatchRuleOrganizationSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_rule_resource" @@ -50822,7 +88662,10 @@ service OrganizationSecurityPolicies { option (google.cloud.operation_service) = "GlobalOrganizationOperations"; } - // Removes an association for the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.removeAssociation instead if possible. + // Removes an association for the specified security policy. + // + // Use of this API to modify firewall policies is deprecated. Use + // firewallPolicies.removeAssociation instead if possible. rpc RemoveAssociation(RemoveAssociationOrganizationSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/locations/global/securityPolicies/{security_policy}/removeAssociation" @@ -50851,7 +88694,10 @@ service PacketMirrorings { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of packetMirrorings. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListPacketMirroringsRequest) returns (PacketMirroringAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/packetMirrorings" @@ -50876,7 +88722,8 @@ service PacketMirrorings { option (google.api.method_signature) = "project,region,packet_mirroring"; } - // Creates a PacketMirroring resource in the specified project and region using the data included in the request. + // Creates a PacketMirroring resource in the specified project and region + // using the data included in the request. rpc Insert(InsertPacketMirroringRequest) returns (Operation) { option (google.api.http) = { body: "packet_mirroring_resource" @@ -50886,7 +88733,8 @@ service PacketMirrorings { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of PacketMirroring resources available to the specified project and region. + // Retrieves a list of PacketMirroring resources available to the specified + // project and region. rpc List(ListPacketMirroringsRequest) returns (PacketMirroringList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/packetMirrorings" @@ -50894,7 +88742,10 @@ service PacketMirrorings { option (google.api.method_signature) = "project,region"; } - // Patches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified PacketMirroring resource with the data included in + // the request. This method supportsPATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchPacketMirroringRequest) returns (Operation) { option (google.api.http) = { body: "packet_mirroring_resource" @@ -50940,7 +88791,8 @@ service PreviewFeatures { option (google.api.method_signature) = "project"; } - // Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. + // Patches the given PreviewFeature. This method is used to enable or disable + // a PreviewFeature. rpc Update(UpdatePreviewFeatureRequest) returns (Operation) { option (google.api.http) = { body: "preview_feature_resource" @@ -50970,7 +88822,8 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Disable a service resource (also known as service project) associated with this host project. + // Disable a service resource (also known as service project) associated with + // this host project. rpc DisableXpnResource(DisableXpnResourceProjectRequest) returns (Operation) { option (google.api.http) = { body: "projects_disable_xpn_resource_request_resource" @@ -50989,7 +88842,9 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project. + // Enable service resource (a.k.a service project) for a host project, so that + // subnets in the host project can be used by instances in the service + // project. rpc EnableXpnResource(EnableXpnResourceProjectRequest) returns (Operation) { option (google.api.http) = { body: "projects_enable_xpn_resource_request_resource" @@ -50999,7 +88854,15 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + // Returns the specified Project resource. + // + // To decrease latency for this method, you can optionally omit any unneeded + // information from the response by using a field mask. This practice is + // especially recommended for unused quota information (the `quotas` field). + // To exclude one or more fields, set your request's `fields` query parameter + // to only include the fields you need. For example, to only include the `id` + // and `selfLink` fields, add the query parameter `?fields=id,selfLink` to + // your request. rpc Get(GetProjectRequest) returns (Project) { option (google.api.http) = { get: "/compute/beta/projects/{project}" @@ -51007,7 +88870,8 @@ service Projects { option (google.api.method_signature) = "project"; } - // Gets the shared VPC host project that this project links to. May be empty if no link exists. + // Gets the shared VPC host project that this project links to. May be empty + // if no link exists. rpc GetXpnHost(GetXpnHostProjectRequest) returns (Project) { option (google.api.http) = { get: "/compute/beta/projects/{project}/getXpnHost" @@ -51015,7 +88879,8 @@ service Projects { option (google.api.method_signature) = "project"; } - // Gets service resources (a.k.a service project) associated with this host project. + // Gets service resources (a.k.a service project) associated with this host + // project. rpc GetXpnResources(GetXpnResourcesProjectsRequest) returns (ProjectsGetXpnResources) { option (google.api.http) = { get: "/compute/beta/projects/{project}/getXpnResources" @@ -51032,7 +88897,20 @@ service Projects { option (google.api.method_signature) = "project,projects_list_xpn_hosts_request_resource"; } - // Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a different region or zone, follow the steps in [Change the location of a disk](https://{$universe.dns_names.final_documentation_domain}/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). Projects that already use the moveDisk API can continue usage until September 29, 2026. Starting November 1, 2025, API responses will include a warning message in the response body about the upcoming deprecation. You can skip the message to continue using the service without interruption. + // Moves a persistent disk from one zone to another. + // *Note*: The moveDisk API will be deprecated on September 29, 2026. + // + // Starting September 29, 2025, you can't use the moveDisk API on new + // projects. To move a disk to a different region or zone, follow the steps in + // [Change the location of a + // disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). + // + // Projects that already use the moveDisk API can continue usage until + // September 29, 2026. + // + // Starting November 1, 2025, API responses will include a warning message in + // the response body about the upcoming deprecation. You can skip the message + // to continue using the service without interruption. rpc MoveDisk(MoveDiskProjectRequest) returns (Operation) { option (google.api.http) = { body: "disk_move_request_resource" @@ -51042,7 +88920,13 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead. + // Moves an instance and its attached persistent disks from one zone to + // another. + // *Note*: Moving VMs or disks by using this method might + // cause unexpected behavior. For more information, see the [known + // issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). + // [Deprecated] This method is deprecated. See [moving instance across + // zones](/compute/docs/instances/moving-instance-across-zones) instead. rpc MoveInstance(MoveInstanceProjectRequest) returns (Operation) { option (google.api.http) = { body: "instance_move_request_resource" @@ -51052,7 +88936,10 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information. + // Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the + // billing account of the project must be subscribed to Cloud Armor + // Enterprise. See Subscribing + // to Cloud Armor Enterprise for more information. rpc SetCloudArmorTier(SetCloudArmorTierProjectRequest) returns (Operation) { option (google.api.http) = { body: "projects_set_cloud_armor_tier_request_resource" @@ -51062,7 +88949,8 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets metadata common to all instances within the specified project using the data included in the request. + // Sets metadata common to all instances within the specified project using + // the data included in the request. rpc SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest) returns (Operation) { option (google.api.http) = { body: "metadata_resource" @@ -51072,7 +88960,9 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field. + // Sets the default network tier of the project. The default network tier is + // used when an address/forwardingRule/instance is created without specifying + // the network tier field. rpc SetDefaultNetworkTier(SetDefaultNetworkTierProjectRequest) returns (Operation) { option (google.api.http) = { body: "projects_set_default_network_tier_request_resource" @@ -51082,7 +88972,10 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information. + // Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set + // PLUS or above the billing account of the project must be subscribed to + // Managed Protection Plus. See Subscribing + // to Managed Protection Plus for more information. rpc SetManagedProtectionTier(SetManagedProtectionTierProjectRequest) returns (Operation) { option (google.api.http) = { body: "projects_set_managed_protection_tier_request_resource" @@ -51092,7 +88985,9 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled. + // Enables the usage export feature and sets theusage export bucket + // where reports are stored. If you provide an empty request body using this + // method, the usage export feature will be disabled. rpc SetUsageExportBucket(SetUsageExportBucketProjectRequest) returns (Operation) { option (google.api.http) = { body: "usage_export_location_resource" @@ -51139,7 +89034,8 @@ service PublicAdvertisedPrefixes { option (google.api.method_signature) = "project,public_advertised_prefix"; } - // Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request. + // Creates a PublicAdvertisedPrefix in the specified project + // using the parameters that are included in the request. rpc Insert(InsertPublicAdvertisedPrefixeRequest) returns (Operation) { option (google.api.http) = { body: "public_advertised_prefix_resource" @@ -51157,7 +89053,10 @@ service PublicAdvertisedPrefixes { option (google.api.method_signature) = "project"; } - // Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified Router resource with the data included in the + // request. This method supportsPATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchPublicAdvertisedPrefixeRequest) returns (Operation) { option (google.api.http) = { body: "public_advertised_prefix_resource" @@ -51187,7 +89086,11 @@ service PublicDelegatedPrefixes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Lists all PublicDelegatedPrefix resources owned by the specific project + // across all scopes. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListPublicDelegatedPrefixesRequest) returns (PublicDelegatedPrefixAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/publicDelegatedPrefixes" @@ -51221,7 +89124,8 @@ service PublicDelegatedPrefixes { option (google.api.method_signature) = "project,region,public_delegated_prefix"; } - // Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request. + // Creates a PublicDelegatedPrefix in the specified project in the given + // region using the parameters that are included in the request. rpc Insert(InsertPublicDelegatedPrefixeRequest) returns (Operation) { option (google.api.http) = { body: "public_delegated_prefix_resource" @@ -51239,7 +89143,10 @@ service PublicDelegatedPrefixes { option (google.api.method_signature) = "project,region"; } - // Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified PublicDelegatedPrefix resource with the data included + // in the request. This method supportsPATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchPublicDelegatedPrefixeRequest) returns (Operation) { option (google.api.http) = { body: "public_delegated_prefix_resource" @@ -51286,7 +89193,8 @@ service RegionAutoscalers { option (google.api.method_signature) = "project,region,autoscaler"; } - // Creates an autoscaler in the specified project using the data included in the request. + // Creates an autoscaler in the specified project using + // the data included in the request. rpc Insert(InsertRegionAutoscalerRequest) returns (Operation) { option (google.api.http) = { body: "autoscaler_resource" @@ -51296,7 +89204,8 @@ service RegionAutoscalers { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of autoscalers contained within the specified region. + // Retrieves a list of autoscalers contained within + // the specified region. rpc List(ListRegionAutoscalersRequest) returns (RegionAutoscalerList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/autoscalers" @@ -51304,7 +89213,10 @@ service RegionAutoscalers { option (google.api.method_signature) = "project,region"; } - // Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates an autoscaler in the specified project using + // the data included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchRegionAutoscalerRequest) returns (Operation) { option (google.api.http) = { body: "autoscaler_resource" @@ -51323,7 +89235,8 @@ service RegionAutoscalers { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } - // Updates an autoscaler in the specified project using the data included in the request. + // Updates an autoscaler in the specified project using + // the data included in the request. rpc Update(UpdateRegionAutoscalerRequest) returns (Operation) { option (google.api.http) = { body: "autoscaler_resource" @@ -51335,6 +89248,104 @@ service RegionAutoscalers { } +// The RegionBackendBuckets API. +service RegionBackendBuckets { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Deletes the specified regional BackendBucket resource. + rpc Delete(DeleteRegionBackendBucketRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}" + }; + option (google.api.method_signature) = "project,region,backend_bucket"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified regional BackendBucket resource. + rpc Get(GetRegionBackendBucketRequest) returns (BackendBucket) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}" + }; + option (google.api.method_signature) = "project,region,backend_bucket"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyRegionBackendBucketRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource"; + } + + // Creates a RegionBackendBucket in the specified project in the given scope + // using the parameters that are included in the request. + rpc Insert(InsertRegionBackendBucketRequest) returns (Operation) { + option (google.api.http) = { + body: "backend_bucket_resource" + post: "/compute/beta/projects/{project}/regions/{region}/backendBuckets" + }; + option (google.api.method_signature) = "project,region,backend_bucket_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Retrieves the list of BackendBucket resources available to the specified + // project in the given region. + rpc List(ListRegionBackendBucketsRequest) returns (BackendBucketList) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/backendBuckets" + }; + option (google.api.method_signature) = "project,region"; + } + + // Retrieves a list of all usable backend buckets in the specified project in + // the given region. + rpc ListUsable(ListUsableRegionBackendBucketsRequest) returns (BackendBucketListUsable) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/backendBuckets/listUsable" + }; + option (google.api.method_signature) = "project,region"; + } + + // Updates the specified BackendBucket resource with the data included in the + // request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. + rpc Patch(PatchRegionBackendBucketRequest) returns (Operation) { + option (google.api.http) = { + body: "backend_bucket_resource" + patch: "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}" + }; + option (google.api.method_signature) = "project,region,backend_bucket,backend_bucket_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyRegionBackendBucketRequest) returns (Policy) { + option (google.api.http) = { + body: "region_set_policy_request_resource" + post: "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionBackendBucketRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionBackendServices API. service RegionBackendServices { option (google.api.default_host) = @@ -51361,7 +89372,8 @@ service RegionBackendServices { option (google.api.method_signature) = "project,region,backend_service"; } - // Gets the most recent health check results for this regional BackendService. + // Gets the most recent health check results for this + // regional BackendService. rpc GetHealth(GetHealthRegionBackendServiceRequest) returns (BackendServiceGroupHealth) { option (google.api.http) = { body: "resource_group_reference_resource" @@ -51370,7 +89382,8 @@ service RegionBackendServices { option (google.api.method_signature) = "project,region,backend_service,resource_group_reference_resource"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyRegionBackendServiceRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy" @@ -51378,7 +89391,9 @@ service RegionBackendServices { option (google.api.method_signature) = "project,region,resource"; } - // Creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview. + // Creates a regional BackendService resource in the specified project using + // the data included in the request. For more information, see + // Backend services overview. rpc Insert(InsertRegionBackendServiceRequest) returns (Operation) { option (google.api.http) = { body: "backend_service_resource" @@ -51388,7 +89403,8 @@ service RegionBackendServices { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of regional BackendService resources available to the specified project in the given region. + // Retrieves the list of regional BackendService resources available to the + // specified project in the given region. rpc List(ListRegionBackendServicesRequest) returns (BackendServiceList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/backendServices" @@ -51396,7 +89412,8 @@ service RegionBackendServices { option (google.api.method_signature) = "project,region"; } - // Retrieves a list of all usable backend services in the specified project in the given region. + // Retrieves a list of all usable backend services in the specified project in + // the given region. rpc ListUsable(ListUsableRegionBackendServicesRequest) returns (BackendServiceListUsable) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/backendServices/listUsable" @@ -51404,7 +89421,11 @@ service RegionBackendServices { option (google.api.method_signature) = "project,region"; } - // Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified regional BackendService resource with the data + // included in the request. For more information, see + // Understanding backend services This method + // supports PATCH semantics and uses the JSON merge + // patch format and processing rules. rpc Patch(PatchRegionBackendServiceRequest) returns (Operation) { option (google.api.http) = { body: "backend_service_resource" @@ -51414,7 +89435,8 @@ service RegionBackendServices { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyRegionBackendServiceRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -51423,7 +89445,9 @@ service RegionBackendServices { option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; } - // Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview + // Sets the Google Cloud Armor security policy for the specified backend + // service. For more information, seeGoogle + // Cloud Armor Overview rpc SetSecurityPolicy(SetSecurityPolicyRegionBackendServiceRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_reference_resource" @@ -51442,7 +89466,10 @@ service RegionBackendServices { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } - // Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview . + // Updates the specified regional BackendService resource with the data + // included in the request. For more information, + // see + // Backend services overview. rpc Update(UpdateRegionBackendServiceRequest) returns (Operation) { option (google.api.http) = { body: "backend_service_resource" @@ -51463,7 +89490,10 @@ service RegionCommitments { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of commitments by region. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListRegionCommitmentsRequest) returns (CommitmentAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/commitments" @@ -51479,7 +89509,8 @@ service RegionCommitments { option (google.api.method_signature) = "project,region,commitment"; } - // Creates a commitment in the specified project using the data included in the request. + // Creates a commitment in the specified project using the data + // included in the request. rpc Insert(InsertRegionCommitmentRequest) returns (Operation) { option (google.api.http) = { body: "commitment_resource" @@ -51489,7 +89520,8 @@ service RegionCommitments { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of commitments contained within the specified region. + // Retrieves a list of commitments contained within + // the specified region. rpc List(ListRegionCommitmentsRequest) returns (CommitmentList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/commitments" @@ -51506,7 +89538,9 @@ service RegionCommitments { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } - // Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be updated: auto_renew and plan. + // Updates the specified commitment with the data included in the request. + // Update is performed only on selected fields included as part of + // update-mask. Only the following fields can be updated: auto_renew and plan. rpc Update(UpdateRegionCommitmentRequest) returns (Operation) { option (google.api.http) = { body: "commitment_resource" @@ -51516,7 +89550,8 @@ service RegionCommitments { option (google.cloud.operation_service) = "RegionOperations"; } - // Transfers GPUs or Local SSD disks between reservations that are attached to the same commitment. + // Transfers GPUs or Local SSD disks between reservations that are attached + // to the same commitment. rpc UpdateReservations(UpdateReservationsRegionCommitmentRequest) returns (Operation) { option (google.api.http) = { body: "region_commitments_update_reservations_request_resource" @@ -51528,6 +89563,87 @@ service RegionCommitments { } +// The RegionCompositeHealthChecks API. +service RegionCompositeHealthChecks { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves the list of all CompositeHealthCheck resources (all + // regional) available to the specified project. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListRegionCompositeHealthChecksRequest) returns (CompositeHealthCheckAggregatedList) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/aggregated/compositeHealthChecks" + }; + option (google.api.method_signature) = "project"; + } + + // Deletes the specified CompositeHealthCheck in the given region + rpc Delete(DeleteRegionCompositeHealthCheckRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + }; + option (google.api.method_signature) = "project,region,composite_health_check"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified CompositeHealthCheck resource in the given region. + rpc Get(GetRegionCompositeHealthCheckRequest) returns (CompositeHealthCheck) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + }; + option (google.api.method_signature) = "project,region,composite_health_check"; + } + + // Create a CompositeHealthCheck in the specified project in the given region + // using the parameters that are included in the request. + rpc Insert(InsertRegionCompositeHealthCheckRequest) returns (Operation) { + option (google.api.http) = { + body: "composite_health_check_resource" + post: "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks" + }; + option (google.api.method_signature) = "project,region,composite_health_check_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Lists the CompositeHealthChecks for a project in the given region. + rpc List(ListRegionCompositeHealthChecksRequest) returns (CompositeHealthCheckList) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks" + }; + option (google.api.method_signature) = "project,region"; + } + + // Updates the specified regional CompositeHealthCheck resource + // with the data included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. + rpc Patch(PatchRegionCompositeHealthCheckRequest) returns (Operation) { + option (google.api.http) = { + body: "composite_health_check_resource" + patch: "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + }; + option (google.api.method_signature) = "project,region,composite_health_check,composite_health_check_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionCompositeHealthCheckRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionDiskSettings API. service RegionDiskSettings { option (google.api.default_host) = @@ -51594,7 +89710,9 @@ service RegionDisks { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation. + // Adds existing resource policies to a regional disk. You can only add one + // policy which will be applied to this disk for scheduling snapshot + // creation. rpc AddResourcePolicies(AddResourcePoliciesRegionDiskRequest) returns (Operation) { option (google.api.http) = { body: "region_disks_add_resource_policies_request_resource" @@ -51614,7 +89732,10 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } - // Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. + // Creates a snapshot of a specified persistent disk. For regular snapshot + // creation, consider using snapshots.insert + // instead, as that method supports more features, such as creating snapshots + // in a project different from the source disk project. rpc CreateSnapshot(CreateSnapshotRegionDiskRequest) returns (Operation) { option (google.api.http) = { body: "snapshot_resource" @@ -51624,7 +89745,11 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } - // Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots. + // Deletes the specified regional persistent disk. Deleting a regional disk + // removes all the replicas of its data permanently and is irreversible. + // However, deleting a disk does not delete anysnapshots + // previously made from the disk. You must separatelydelete + // snapshots. rpc Delete(DeleteRegionDiskRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/regions/{region}/disks/{disk}" @@ -51641,7 +89766,8 @@ service RegionDisks { option (google.api.method_signature) = "project,region,disk"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyRegionDiskRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy" @@ -51649,7 +89775,8 @@ service RegionDisks { option (google.api.method_signature) = "project,region,resource"; } - // Creates a persistent regional disk in the specified project using the data included in the request. + // Creates a persistent regional disk in the specified project using the data + // included in the request. rpc Insert(InsertRegionDiskRequest) returns (Operation) { option (google.api.http) = { body: "disk_resource" @@ -51659,7 +89786,8 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of persistent disks contained within the specified region. + // Retrieves the list of persistent disks contained within + // the specified region. rpc List(ListRegionDisksRequest) returns (DiskList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/disks" @@ -51687,7 +89815,8 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyRegionDiskRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -51706,7 +89835,8 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } - // Starts asynchronous replication. Must be invoked on the primary disk. + // Starts asynchronous replication. + // Must be invoked on the primary disk. rpc StartAsyncReplication(StartAsyncReplicationRegionDiskRequest) returns (Operation) { option (google.api.http) = { body: "region_disks_start_async_replication_request_resource" @@ -51716,7 +89846,8 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } - // Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + // Stops asynchronous replication. + // Can be invoked either on the primary or on the secondary disk. rpc StopAsyncReplication(StopAsyncReplicationRegionDiskRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication" @@ -51725,7 +89856,8 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } - // Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope. + // Stops asynchronous replication for a consistency group of disks. + // Can be invoked either in the primary or secondary scope. rpc StopGroupAsyncReplication(StopGroupAsyncReplicationRegionDiskRequest) returns (Operation) { option (google.api.http) = { body: "disks_stop_group_async_replication_resource_resource" @@ -51744,7 +89876,9 @@ service RegionDisks { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } - // Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. + // Update the specified disk with the data included in the request. Update is + // performed only on selected fields included as part of update-mask. Only the + // following fields can be modified: user_license. rpc Update(UpdateRegionDiskRequest) returns (Operation) { option (google.api.http) = { body: "disk_resource" @@ -51756,6 +89890,87 @@ service RegionDisks { } +// The RegionHealthAggregationPolicies API. +service RegionHealthAggregationPolicies { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves the list of all HealthAggregationPolicy resources, + // regional and global, available to the specified project. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListRegionHealthAggregationPoliciesRequest) returns (HealthAggregationPolicyAggregatedList) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/aggregated/healthAggregationPolicies" + }; + option (google.api.method_signature) = "project"; + } + + // Deletes the specified HealthAggregationPolicy in the given region. + rpc Delete(DeleteRegionHealthAggregationPolicyRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + }; + option (google.api.method_signature) = "project,region,health_aggregation_policy"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified HealthAggregationPolicy resource in the given region. + rpc Get(GetRegionHealthAggregationPolicyRequest) returns (HealthAggregationPolicy) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + }; + option (google.api.method_signature) = "project,region,health_aggregation_policy"; + } + + // Create a HealthAggregationPolicy in the specified project in the given + // region using the parameters that are included in the request. + rpc Insert(InsertRegionHealthAggregationPolicyRequest) returns (Operation) { + option (google.api.http) = { + body: "health_aggregation_policy_resource" + post: "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies" + }; + option (google.api.method_signature) = "project,region,health_aggregation_policy_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Lists the HealthAggregationPolicies for a project in the given region. + rpc List(ListRegionHealthAggregationPoliciesRequest) returns (HealthAggregationPolicyList) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies" + }; + option (google.api.method_signature) = "project,region"; + } + + // Updates the specified regional HealthAggregationPolicy + // resource with the data included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. + rpc Patch(PatchRegionHealthAggregationPolicyRequest) returns (Operation) { + option (google.api.http) = { + body: "health_aggregation_policy_resource" + patch: "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + }; + option (google.api.method_signature) = "project,region,health_aggregation_policy,health_aggregation_policy_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionHealthAggregationPolicyRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionHealthCheckServices API. service RegionHealthCheckServices { option (google.api.default_host) = @@ -51782,7 +89997,8 @@ service RegionHealthCheckServices { option (google.api.method_signature) = "project,region,health_check_service"; } - // Creates a regional HealthCheckService resource in the specified project and region using the data included in the request. + // Creates a regional HealthCheckService resource in the + // specified project and region using the data included in the request. rpc Insert(InsertRegionHealthCheckServiceRequest) returns (Operation) { option (google.api.http) = { body: "health_check_service_resource" @@ -51792,7 +90008,8 @@ service RegionHealthCheckServices { option (google.cloud.operation_service) = "RegionOperations"; } - // Lists all the HealthCheckService resources that have been configured for the specified project in the given region. + // Lists all the HealthCheckService resources that have been + // configured for the specified project in the given region. rpc List(ListRegionHealthCheckServicesRequest) returns (HealthCheckServicesList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/healthCheckServices" @@ -51800,7 +90017,10 @@ service RegionHealthCheckServices { option (google.api.method_signature) = "project,region"; } - // Updates the specified regional HealthCheckService resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified regional HealthCheckService resource + // with the data included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchRegionHealthCheckServiceRequest) returns (Operation) { option (google.api.http) = { body: "health_check_service_resource" @@ -51847,7 +90067,8 @@ service RegionHealthChecks { option (google.api.method_signature) = "project,region,health_check"; } - // Creates a HealthCheck resource in the specified project using the data included in the request. + // Creates a HealthCheck resource in the specified project using the data + // included in the request. rpc Insert(InsertRegionHealthCheckRequest) returns (Operation) { option (google.api.http) = { body: "health_check_resource" @@ -51857,7 +90078,8 @@ service RegionHealthChecks { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of HealthCheck resources available to the specified project. + // Retrieves the list of HealthCheck resources available to the specified + // project. rpc List(ListRegionHealthChecksRequest) returns (HealthCheckList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/healthChecks" @@ -51865,7 +90087,10 @@ service RegionHealthChecks { option (google.api.method_signature) = "project,region"; } - // Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates a HealthCheck resource in the specified project using the data + // included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchRegionHealthCheckRequest) returns (Operation) { option (google.api.http) = { body: "health_check_resource" @@ -51884,7 +90109,8 @@ service RegionHealthChecks { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } - // Updates a HealthCheck resource in the specified project using the data included in the request. + // Updates a HealthCheck resource in the specified project using the data + // included in the request. rpc Update(UpdateRegionHealthCheckRequest) returns (Operation) { option (google.api.http) = { body: "health_check_resource" @@ -51905,7 +90131,11 @@ service RegionHealthSources { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all HealthSource resources (all regional) available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all HealthSource resources (all + // regional) available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListRegionHealthSourcesRequest) returns (HealthSourceAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/healthSources" @@ -51930,7 +90160,8 @@ service RegionHealthSources { option (google.api.method_signature) = "project,region,health_source"; } - // Create a HealthSource in the specified project in the given region using the parameters that are included in the request. + // Create a HealthSource in the specified project in the given region + // using the parameters that are included in the request. rpc Insert(InsertRegionHealthSourceRequest) returns (Operation) { option (google.api.http) = { body: "health_source_resource" @@ -51948,7 +90179,10 @@ service RegionHealthSources { option (google.api.method_signature) = "project,region"; } - // Updates the specified regional HealthSource resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified regional HealthSource resource + // with the data included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchRegionHealthSourceRequest) returns (Operation) { option (google.api.http) = { body: "health_source_resource" @@ -51978,7 +90212,10 @@ service RegionInstanceGroupManagerResizeRequests { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Cancels the specified resize request. Cancelled resize request no longer waits for the resources to be provisioned. Cancel is only possible for requests that are in accepted state. + // Cancels the specified resize request. + // Cancelled resize request no longer waits for the resources to be + // provisioned. Cancel is only possible for requests that are in accepted + // state. rpc Cancel(CancelRegionInstanceGroupManagerResizeRequestRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}/cancel" @@ -51987,7 +90224,9 @@ service RegionInstanceGroupManagerResizeRequests { option (google.cloud.operation_service) = "RegionOperations"; } - // Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously. + // Deletes the specified, inactive resize request. Requests that are still + // active cannot be deleted. Deleting request does not delete instances that + // were provisioned previously. rpc Delete(DeleteRegionInstanceGroupManagerResizeRequestRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}" @@ -52004,7 +90243,8 @@ service RegionInstanceGroupManagerResizeRequests { option (google.api.method_signature) = "project,region,instance_group_manager,resize_request"; } - // Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + // Creates a new Resize Request that starts provisioning VMs immediately + // or queues VM creation. rpc Insert(InsertRegionInstanceGroupManagerResizeRequestRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_manager_resize_request_resource" @@ -52014,7 +90254,8 @@ service RegionInstanceGroupManagerResizeRequests { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of Resize Requests that are contained in the managed instance group. + // Retrieves a list of Resize Requests that are contained in the + // managed instance group. rpc List(ListRegionInstanceGroupManagerResizeRequestsRequest) returns (RegionInstanceGroupManagerResizeRequestsListResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests" @@ -52033,7 +90274,21 @@ service RegionInstanceGroupManagers { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances to be immediately removed from the managed + // instance group. Abandoning an instance does not delete the + // instance, but it does remove the instance from any target pools that are + // applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the + // number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have + // not yet been removed from the group. You must separately verify the + // status of the abandoning action with thelistmanagedinstances + // method. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. + // + // You can specify a maximum of 1000 instances with this method per request. rpc AbandonInstances(AbandonInstancesRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_abandon_instances_request_resource" @@ -52053,7 +90308,12 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Creates instances with per-instance configurations in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method. + // Creates instances with per-instance configurations in this regional managed + // instance group. Instances are created using the current instance template. + // The create instances operation is marked DONE if + // the createInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances + // method. rpc CreateInstances(CreateInstancesRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_create_instances_request_resource" @@ -52063,7 +90323,8 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Deletes the specified managed instance group and all of the instances in that group. + // Deletes the specified managed instance group and all of the instances + // in that group. rpc Delete(DeleteRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}" @@ -52072,7 +90333,21 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group to be + // immediately deleted. The instances are also removed from any target + // pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of + // instances that you delete. + // The deleteInstances operation is marked DONE if + // the deleteInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of thedeleting action with thelistmanagedinstances + // method. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. + // + // You can specify a maximum of 1000 instances with this method per request. rpc DeleteInstances(DeleteInstancesRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_delete_instances_request_resource" @@ -52082,7 +90357,8 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Deletes selected per-instance configurations for the managed instance group. + // Deletes selected per-instance configurations for the managed instance + // group. rpc DeletePerInstanceConfigs(DeletePerInstanceConfigsRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_manager_delete_instance_config_req_resource" @@ -52100,7 +90376,15 @@ service RegionInstanceGroupManagers { option (google.api.method_signature) = "project,region,instance_group_manager"; } - // Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A regional managed instance group can contain up to 2000 instances. + // Creates a managed instance group using the information that you specify + // in the request. After the group is created, instances in the group are + // created using the specified instance template. + // This operation is marked as DONE when the group is created + // even if the instances in the group have not yet been created. You must + // separately verify the status of the individual instances with thelistmanagedinstances + // method. + // + // A regional managed instance group can contain up to 2000 instances. rpc Insert(InsertRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_manager_resource" @@ -52110,7 +90394,8 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of managed instance groups that are contained within the specified region. + // Retrieves the list of managed instance groups that are contained + // within the specified region. rpc List(ListRegionInstanceGroupManagersRequest) returns (RegionInstanceGroupManagerList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers" @@ -52118,7 +90403,8 @@ service RegionInstanceGroupManagers { option (google.api.method_signature) = "project,region"; } - // Lists all errors thrown by actions on instances for a given regional managed instance group. The filter and orderBy query parameters are not supported. + // Lists all errors thrown by actions on instances for a given regional + // managed instance group. The filter andorderBy query parameters are not supported. rpc ListErrors(ListErrorsRegionInstanceGroupManagersRequest) returns (RegionInstanceGroupManagersListErrorsResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listErrors" @@ -52126,7 +90412,12 @@ service RegionInstanceGroupManagers { option (google.api.method_signature) = "project,region,instance_group_manager"; } - // Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. + // Lists the instances in the managed instance group and instances that are + // scheduled to be created. The list includes any current actions + // that the group has scheduled for its instances. The orderBy + // query parameter is not supported. The `pageToken` query parameter is + // supported only if the group's `listManagedInstancesResults` field is set + // to `PAGINATED`. rpc ListManagedInstances(ListManagedInstancesRegionInstanceGroupManagersRequest) returns (RegionInstanceGroupManagersListInstancesResponse) { option (google.api.http) = { post: "/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listManagedInstances" @@ -52134,7 +90425,8 @@ service RegionInstanceGroupManagers { option (google.api.method_signature) = "project,region,instance_group_manager"; } - // Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported. + // Lists all of the per-instance configurations defined for the managed + // instance group. The orderBy query parameter is not supported. rpc ListPerInstanceConfigs(ListPerInstanceConfigsRegionInstanceGroupManagersRequest) returns (RegionInstanceGroupManagersListInstanceConfigsResp) { option (google.api.http) = { post: "/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listPerInstanceConfigs" @@ -52142,7 +90434,21 @@ service RegionInstanceGroupManagers { option (google.api.method_signature) = "project,region,instance_group_manager"; } - // Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + // Updates a managed instance group using the information that you specify + // in the request. + // This operation is marked as DONE when the group is patched + // even if the instances in the group are still in the process of being + // patched. You must separately verify the status of the individual instances + // with the listmanagedinstances + // method. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. + // + // If you update your group to specify a new template or instance + // configuration, it's possible that your intended specification for each VM + // in the group is different from the current state of that VM. To learn how + // to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + // a MIG. rpc Patch(PatchRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_manager_resource" @@ -52152,7 +90458,9 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + // Inserts or patches per-instance configurations for the managed instance + // group. perInstanceConfig.name serves as a key used to + // distinguish whether to perform insert or patch. rpc PatchPerInstanceConfigs(PatchPerInstanceConfigsRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_manager_patch_instance_config_req_resource" @@ -52162,7 +90470,19 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified VM instances in the managed instance group to be + // immediately recreated. Each instance is recreated using the group's current + // configuration. This operation is marked as DONE when the flag + // is set even if the instances have not yet been recreated. You must + // separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking + // the status of managed instances. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. + // + // You can specify a maximum of 1000 instances with this method per request. rpc RecreateInstances(RecreateInstancesRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_recreate_request_resource" @@ -52172,7 +90492,19 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. + // Changes the intended size of the managed instance group. If you increase + // the size, the group creates new instances using the current instance + // template. If you decrease the size, the group deletes one or more + // instances. + // + // The resize operation is marked DONE if theresize request is successful. The underlying actions take + // additional time. You must separately verify the status of thecreating or deleting actions with thelistmanagedinstances + // method. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. rpc Resize(ResizeRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resize" @@ -52181,7 +90513,22 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Resizes the regional managed instance group with advanced configuration options like disabling creation retries. This is an extended version of the resize method. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the get or listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. + // Resizes the regional managed instance group with advanced configuration + // options like disabling creation retries. This is an extended version of theresize method. + // + // If you increase the size, the group creates new instances using the current + // instance template. If you decrease the size, the group deletes one or more + // instances. + // + // The resize operation is marked DONE if theresize request is successful. The underlying actions take + // additional time. You must separately verify the status of thecreating or deleting actions with the get + // orlistmanagedinstances + // method. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is removed or deleted. rpc ResizeAdvanced(ResizeAdvancedRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_resize_advanced_request_resource" @@ -52191,7 +90538,22 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group to be + // resumed. This method increases thetargetSize and decreases the targetSuspendedSize + // of the managed instance group by the number of instances that you resume. + // The resumeInstances operation is marked DONE if + // the resumeInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances + // method. + // + // In this request, you can only specify instances that are suspended. For + // example, if an instance was previously suspended using the suspendInstances + // method, it can be resumed using the resumeInstances method. + // + // If a health check is attached to the managed instance group, the specified + // instances will be verified as healthy after they are resumed. + // + // You can specify a maximum of 1000 instances with this method per request. rpc ResumeInstances(ResumeInstancesRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_resume_instances_request_resource" @@ -52201,7 +90563,9 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.patch instead. + // Modifies the autohealing policy for the instances in this managed + // instance group. + // [Deprecated] This method is deprecated. UseregionInstanceGroupManagers.patch instead. rpc SetAutoHealingPolicies(SetAutoHealingPoliciesRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_set_auto_healing_request_resource" @@ -52211,7 +90575,8 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected. + // Sets the instance template to use when creating new instances or recreating + // instances in this group. Existing instances are not affected. rpc SetInstanceTemplate(SetInstanceTemplateRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_set_template_request_resource" @@ -52221,7 +90586,8 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected. + // Modifies the target pools to which all new instances in this group are + // assigned. Existing instances in the group are not affected. rpc SetTargetPools(SetTargetPoolsRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_set_target_pools_request_resource" @@ -52231,7 +90597,22 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group to be + // started. This method increases thetargetSize and decreases the targetStoppedSize + // of the managed instance group by the number of instances that you start. + // The startInstances operation is marked DONE if + // the startInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances + // method. + // + // In this request, you can only specify instances that are stopped. For + // example, if an instance was previously stopped using the stopInstances + // method, it can be started using the startInstances method. + // + // If a health check is attached to the managed instance group, the specified + // instances will be verified as healthy after they are started. + // + // You can specify a maximum of 1000 instances with this method per request. rpc StartInstances(StartInstancesRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_start_instances_request_resource" @@ -52241,7 +90622,31 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group to be + // immediately stopped. You can only specify instances that are running in + // this request. This method reduces thetargetSize and increases the targetStoppedSize + // of the managed instance group by the number of instances that you stop. + // The stopInstances operation is marked DONE if + // the stopInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances + // method. + // + // If the standbyPolicy.initialDelaySec field is set, the group + // delays stopping the instances until initialDelaySec have + // passed from instance.creationTimestamp (that is, when the + // instance was created). This delay gives your application time to + // set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there + // will be zero delay. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is stopped. + // + // Stopped instances can be started using the startInstances + // method. + // + // You can specify a maximum of 1000 instances with this method per request. rpc StopInstances(StopInstancesRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_stop_instances_request_resource" @@ -52251,7 +90656,31 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request. + // Flags the specified instances in the managed instance group to be + // immediately suspended. You can only specify instances that are running in + // this request. This method reduces thetargetSize and increases the targetSuspendedSize + // of the managed instance group by the number of instances that you suspend. + // The suspendInstances operation is marked DONE if + // the suspendInstances request is successful. The underlying + // actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances + // method. + // + // If the standbyPolicy.initialDelaySec field is set, the group + // delays suspension of the instances until initialDelaySec have + // passed from instance.creationTimestamp (that is, when the + // instance was created). This delay gives your application time to + // set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there + // will be zero delay. + // + // If the group is part of a backend + // service that has enabled + // connection draining, it can take up to 60 seconds after the connection + // draining duration has elapsed before the VM instance is suspended. + // + // Suspended instances can be resumed using the resumeInstances + // method. + // + // You can specify a maximum of 1000 instances with this method per request. rpc SuspendInstances(SuspendInstancesRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_managers_suspend_instances_request_resource" @@ -52270,7 +90699,18 @@ service RegionInstanceGroupManagers { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } - // Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with the listmanagedinstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + // Updates a managed instance group using the information that you specify + // in the request. + // This operation is marked as DONE when the group is updated + // even if the instances in the group have not yet been updated. You must + // separately verify the status of the individual instances with thelistmanagedinstances + // method. + // + // If you update your group to specify a new template or instance + // configuration, it's possible that your intended specification for each VM + // in the group is different from the current state of that VM. To learn how + // to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + // a MIG. rpc Update(UpdateRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "instance_group_manager_resource" @@ -52280,7 +90720,9 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } - // Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + // Inserts or updates per-instance configurations for the managed instance + // group. perInstanceConfig.name serves as a key used to + // distinguish whether to perform insert or patch. rpc UpdatePerInstanceConfigs(UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { body: "region_instance_group_manager_update_instance_config_req_resource" @@ -52309,7 +90751,8 @@ service RegionInstanceGroups { option (google.api.method_signature) = "project,region,instance_group"; } - // Retrieves the list of instance group resources contained within the specified region. + // Retrieves the list of instance group resources contained within + // the specified region. rpc List(ListRegionInstanceGroupsRequest) returns (RegionInstanceGroupList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/instanceGroups" @@ -52317,7 +90760,10 @@ service RegionInstanceGroups { option (google.api.method_signature) = "project,region"; } - // Lists the instances in the specified instance group and displays information about the named ports. Depending on the specified options, this method can list all instances or only the instances that are running. The orderBy query parameter is not supported. + // Lists the instances in the specified instance group and displays + // information about the named ports. Depending on the specified options, this + // method can list all instances or only the instances that are running. + // The orderBy query parameter is not supported. rpc ListInstances(ListInstancesRegionInstanceGroupsRequest) returns (RegionInstanceGroupsListInstances) { option (google.api.http) = { body: "region_instance_groups_list_instances_request_resource" @@ -52356,7 +90802,8 @@ service RegionInstanceTemplates { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. + // Deletes the specified instance template. Deleting an instance template is + // permanent and cannot be undone. rpc Delete(DeleteRegionInstanceTemplateRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/regions/{region}/instanceTemplates/{instance_template}" @@ -52373,7 +90820,8 @@ service RegionInstanceTemplates { option (google.api.method_signature) = "project,region,instance_template"; } - // Creates an instance template in the specified project and region using the global instance template whose URL is included in the request. + // Creates an instance template in the specified project and region using the + // global instance template whose URL is included in the request. rpc Insert(InsertRegionInstanceTemplateRequest) returns (Operation) { option (google.api.http) = { body: "instance_template_resource" @@ -52383,7 +90831,8 @@ service RegionInstanceTemplates { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of instance templates that are contained within the specified project and region. + // Retrieves a list of instance templates that are contained within the + // specified project and region. rpc List(ListRegionInstanceTemplatesRequest) returns (InstanceTemplateList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/instanceTemplates" @@ -52402,7 +90851,8 @@ service RegionInstances { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Creates multiple instances in a given region. Count specifies the number of instances to create. + // Creates multiple instances in a given region. Count specifies the number of + // instances to create. rpc BulkInsert(BulkInsertRegionInstanceRequest) returns (Operation) { option (google.api.http) = { body: "bulk_insert_instance_resource_resource" @@ -52423,7 +90873,14 @@ service RegionInstantSnapshots { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. + // Deletes the specified InstantSnapshot resource. Keep in mind that deleting + // a single instantSnapshot might not necessarily delete all the data on that + // instantSnapshot. If any data on the instantSnapshot that is marked for + // deletion is needed for subsequent instantSnapshots, the data will be moved + // to the next corresponding instantSnapshot. + // + // For more information, seeDeleting + // instantSnapshots. rpc Delete(DeleteRegionInstantSnapshotRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/regions/{region}/instantSnapshots/{instant_snapshot}" @@ -52440,7 +90897,8 @@ service RegionInstantSnapshots { option (google.api.method_signature) = "project,region,instant_snapshot"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyRegionInstantSnapshotRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy" @@ -52458,7 +90916,8 @@ service RegionInstantSnapshots { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of InstantSnapshot resources contained within the specified region. + // Retrieves the list of InstantSnapshot resources contained within + // the specified region. rpc List(ListRegionInstantSnapshotsRequest) returns (InstantSnapshotList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/instantSnapshots" @@ -52466,7 +90925,8 @@ service RegionInstantSnapshots { option (google.api.method_signature) = "project,region"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyRegionInstantSnapshotRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -52475,7 +90935,9 @@ service RegionInstantSnapshots { option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; } - // Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a instantSnapshot in the given region. To learn more + // about labels, read the Labeling + // Resources documentation. rpc SetLabels(SetLabelsRegionInstantSnapshotRequest) returns (Operation) { option (google.api.http) = { body: "region_set_labels_request_resource" @@ -52561,7 +91023,8 @@ service RegionNetworkEndpointGroups { option (google.cloud.operation_service) = "RegionOperations"; } - // Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service. + // Deletes the specified network endpoint group. Note that the NEG cannot be + // deleted if it is configured as a backend of a backend service. rpc Delete(DeleteRegionNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{network_endpoint_group}" @@ -52588,7 +91051,8 @@ service RegionNetworkEndpointGroups { option (google.api.method_signature) = "project,region,network_endpoint_group"; } - // Creates a network endpoint group in the specified project using the parameters that are included in the request. + // Creates a network endpoint group in the specified project using the + // parameters that are included in the request. rpc Insert(InsertRegionNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_group_resource" @@ -52598,7 +91062,8 @@ service RegionNetworkEndpointGroups { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of regional network endpoint groups available to the specified project in the given region. + // Retrieves the list of regional network endpoint groups available to the + // specified project in the given region. rpc List(ListRegionNetworkEndpointGroupsRequest) returns (NetworkEndpointGroupList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups" @@ -52687,7 +91152,8 @@ service RegionNetworkFirewallPolicies { option (google.api.method_signature) = "project,region,network"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyRegionNetworkFirewallPolicyRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy" @@ -52713,7 +91179,8 @@ service RegionNetworkFirewallPolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // Lists all the network firewall policies that have been configured for the specified project in the given region. + // Lists all the network firewall policies that have been configured + // for the specified project in the given region. rpc List(ListRegionNetworkFirewallPoliciesRequest) returns (FirewallPolicyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/firewallPolicies" @@ -52769,7 +91236,8 @@ service RegionNetworkFirewallPolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyRegionNetworkFirewallPolicyRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -52818,7 +91286,10 @@ service RegionNetworkPolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves an aggregated list of network policies. To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of network policies. + // + // To prevent failure, it's recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListRegionNetworkPoliciesRequest) returns (NetworkPolicyAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/networkPolicies" @@ -52859,7 +91330,8 @@ service RegionNetworkPolicies { option (google.api.method_signature) = "project,region,network_policy"; } - // Creates a new policy in the specified project using the data included in the request. + // Creates a new policy in the specified project using the data included in + // the request. rpc Insert(InsertRegionNetworkPolicyRequest) returns (Operation) { option (google.api.http) = { body: "network_policy_resource" @@ -52869,7 +91341,8 @@ service RegionNetworkPolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // Lists all the policies that have been configured for the specified project in the given region. + // Lists all the policies that have been configured for the specified project + // in the given region. rpc List(ListRegionNetworkPoliciesRequest) returns (NetworkPolicyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/networkPolicies" @@ -52877,7 +91350,8 @@ service RegionNetworkPolicies { option (google.api.method_signature) = "project,region"; } - // Patches the specified policy with the data included in the request. + // Patches the specified policy with the data included in the + // request. rpc Patch(PatchRegionNetworkPolicyRequest) returns (Operation) { option (google.api.http) = { body: "network_policy_resource" @@ -52943,7 +91417,8 @@ service RegionNotificationEndpoints { option (google.api.method_signature) = "project,region,notification_endpoint"; } - // Create a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request. + // Create a NotificationEndpoint in the specified project in the given region + // using the parameters that are included in the request. rpc Insert(InsertRegionNotificationEndpointRequest) returns (Operation) { option (google.api.http) = { body: "notification_endpoint_resource" @@ -52998,7 +91473,8 @@ service RegionOperations { option (google.cloud.operation_polling_method) = true; } - // Retrieves a list of Operation resources contained within the specified region. + // Retrieves a list of Operation resources contained within + // the specified region. rpc List(ListRegionOperationsRequest) returns (OperationList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/operations" @@ -53006,7 +91482,22 @@ service RegionOperations { option (google.api.method_signature) = "project,region"; } - // Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. + // Waits for the specified Operation resource to return as `DONE` + // or for the request to approach the 2 minute deadline, and retrieves the + // specified Operation resource. This method differs from the + // `GET` method in that it waits for no more than the default + // deadline (2 minutes) and then returns the current state of the operation, + // which might be `DONE` or still in progress. + // + // This method is called on a best-effort basis. Specifically: + // + // + // - In uncommon cases, when the server is overloaded, the request might + // return before the default deadline is reached, or might return after zero + // seconds. + // - If the default deadline is reached, there is no guarantee that the + // operation is actually done when the method returns. Be prepared to retry + // if the operation is not `DONE`. rpc Wait(WaitRegionOperationRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/regions/{region}/operations/{operation}/wait" @@ -53060,7 +91551,8 @@ service RegionSecurityPolicies { option (google.api.method_signature) = "project,region,security_policy"; } - // Creates a new policy in the specified project using the data included in the request. + // Creates a new policy in the specified project using the data included in + // the request. rpc Insert(InsertRegionSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_resource" @@ -53070,7 +91562,8 @@ service RegionSecurityPolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // List all the policies that have been configured for the specified project and region. + // List all the policies that have been configured for the specified project + // and region. rpc List(ListRegionSecurityPoliciesRequest) returns (SecurityPolicyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/securityPolicies" @@ -53078,7 +91571,11 @@ service RegionSecurityPolicies { option (google.api.method_signature) = "project,region"; } - // Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead. + // Patches the specified policy with the data included in the request. To + // clear fields in the policy, leave the fields empty and specify them in the + // updateMask. This cannot be used to be update the rules in the policy. + // Please use the per rule methods like addRule, patchRule, and removeRule + // instead. rpc Patch(PatchRegionSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_resource" @@ -53088,7 +91585,8 @@ service RegionSecurityPolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask. + // Patches a rule at the specified priority. To clear fields in the rule, + // leave the fields empty and specify them in the updateMask. rpc PatchRule(PatchRuleRegionSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_rule_resource" @@ -53107,7 +91605,9 @@ service RegionSecurityPolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a security policy. To learn more about labels, + // read the Labeling Resources + // documentation. rpc SetLabels(SetLabelsRegionSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "region_set_labels_request_resource" @@ -53157,7 +91657,14 @@ service RegionSnapshots { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots. + // Deletes the specified Snapshot resource. Keep in mind that deleting + // a single snapshot might not necessarily delete all the data on that + // snapshot. If any data on the snapshot that is marked for deletion is + // needed for subsequent snapshots, the data will be moved to the next + // corresponding snapshot. + // + // For more information, seeDeleting + // snapshots. rpc Delete(DeleteRegionSnapshotRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/regions/{region}/snapshots/{snapshot}" @@ -53174,7 +91681,8 @@ service RegionSnapshots { option (google.api.method_signature) = "project,region,snapshot"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyRegionSnapshotRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy" @@ -53182,7 +91690,8 @@ service RegionSnapshots { option (google.api.method_signature) = "project,region,resource"; } - // Creates a snapshot in the specified region using the data included in the request. + // Creates a snapshot in the specified region using the data included + // in the request. rpc Insert(InsertRegionSnapshotRequest) returns (Operation) { option (google.api.http) = { body: "snapshot_resource" @@ -53192,7 +91701,8 @@ service RegionSnapshots { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of Snapshot resources contained within the specified region. + // Retrieves the list of Snapshot resources contained within + // the specified region. rpc List(ListRegionSnapshotsRequest) returns (SnapshotList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/snapshots" @@ -53200,7 +91710,8 @@ service RegionSnapshots { option (google.api.method_signature) = "project,region"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyRegionSnapshotRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -53209,7 +91720,9 @@ service RegionSnapshots { option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; } - // Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a regional snapshot. To learn more about labels, read + // the Labeling Resources + // documentation. rpc SetLabels(SetLabelsRegionSnapshotRequest) returns (Operation) { option (google.api.http) = { body: "region_set_labels_request_resource" @@ -53248,7 +91761,9 @@ service RegionSslCertificates { option (google.cloud.operation_service) = "RegionOperations"; } - // Returns the specified SslCertificate resource in the specified region. Get a list of available SSL certificates by making a list() request. + // Returns the specified SslCertificate resource in the specified region. Get + // a list of available SSL certificates by making a list() + // request. rpc Get(GetRegionSslCertificateRequest) returns (SslCertificate) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/sslCertificates/{ssl_certificate}" @@ -53256,7 +91771,8 @@ service RegionSslCertificates { option (google.api.method_signature) = "project,region,ssl_certificate"; } - // Creates a SslCertificate resource in the specified project and region using the data included in the request + // Creates a SslCertificate resource in the specified project and region using + // the data included in the request rpc Insert(InsertRegionSslCertificateRequest) returns (Operation) { option (google.api.http) = { body: "ssl_certificate_resource" @@ -53266,7 +91782,8 @@ service RegionSslCertificates { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of SslCertificate resources available to the specified project in the specified region. + // Retrieves the list of SslCertificate resources available to the specified + // project in the specified region. rpc List(ListRegionSslCertificatesRequest) returns (SslCertificateList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/sslCertificates" @@ -53294,7 +91811,9 @@ service RegionSslPolicies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. + // Deletes the specified SSL policy. The SSL policy resource can be deleted + // only if it is not in use by any TargetHttpsProxy or TargetSslProxy + // resources. rpc Delete(DeleteRegionSslPolicyRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/regions/{region}/sslPolicies/{ssl_policy}" @@ -53311,7 +91830,8 @@ service RegionSslPolicies { option (google.api.method_signature) = "project,region,ssl_policy"; } - // Creates a new policy in the specified project and region using the data included in the request. + // Creates a new policy in the specified project and region using the data + // included in the request. rpc Insert(InsertRegionSslPolicyRequest) returns (Operation) { option (google.api.http) = { body: "ssl_policy_resource" @@ -53321,7 +91841,8 @@ service RegionSslPolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // Lists all the SSL policies that have been configured for the specified project and region. + // Lists all the SSL policies that have been configured for the specified + // project and region. rpc List(ListRegionSslPoliciesRequest) returns (SslPoliciesList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/sslPolicies" @@ -53329,7 +91850,8 @@ service RegionSslPolicies { option (google.api.method_signature) = "project,region"; } - // Lists all features that can be specified in the SSL policy when using custom profile. + // Lists all features that can be specified in the SSL policy when using + // custom profile. rpc ListAvailableFeatures(ListAvailableFeaturesRegionSslPoliciesRequest) returns (SslPoliciesListAvailableFeaturesResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures" @@ -53384,7 +91906,8 @@ service RegionTargetHttpProxies { option (google.api.method_signature) = "project,region,target_http_proxy"; } - // Creates a TargetHttpProxy resource in the specified project and region using the data included in the request. + // Creates a TargetHttpProxy resource in the specified project and region + // using the data included in the request. rpc Insert(InsertRegionTargetHttpProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_http_proxy_resource" @@ -53394,7 +91917,8 @@ service RegionTargetHttpProxies { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of TargetHttpProxy resources available to the specified project in the specified region. + // Retrieves the list of TargetHttpProxy resources available + // to the specified project in the specified region. rpc List(ListRegionTargetHttpProxiesRequest) returns (TargetHttpProxyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/targetHttpProxies" @@ -53449,7 +91973,8 @@ service RegionTargetHttpsProxies { option (google.api.method_signature) = "project,region,target_https_proxy"; } - // Creates a TargetHttpsProxy resource in the specified project and region using the data included in the request. + // Creates a TargetHttpsProxy resource in the specified project and region + // using the data included in the request. rpc Insert(InsertRegionTargetHttpsProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_https_proxy_resource" @@ -53459,7 +91984,8 @@ service RegionTargetHttpsProxies { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of TargetHttpsProxy resources available to the specified project in the specified region. + // Retrieves the list of TargetHttpsProxy resources available + // to the specified project in the specified region. rpc List(ListRegionTargetHttpsProxiesRequest) returns (TargetHttpsProxyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies" @@ -53467,7 +91993,10 @@ service RegionTargetHttpsProxies { option (google.api.method_signature) = "project,region"; } - // Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified regional TargetHttpsProxy resource with the data + // included in the request. This method supports PATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchRegionTargetHttpsProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_https_proxy_resource" @@ -53534,7 +92063,8 @@ service RegionTargetTcpProxies { option (google.api.method_signature) = "project,region,target_tcp_proxy"; } - // Creates a TargetTcpProxy resource in the specified project and region using the data included in the request. + // Creates a TargetTcpProxy resource in the specified project and region using + // the data included in the request. rpc Insert(InsertRegionTargetTcpProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_tcp_proxy_resource" @@ -53544,7 +92074,8 @@ service RegionTargetTcpProxies { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of TargetTcpProxy resources available to the specified project in a given region. + // Retrieves a list of TargetTcpProxy resources + // available to the specified project in a given region. rpc List(ListRegionTargetTcpProxiesRequest) returns (TargetTcpProxyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/targetTcpProxies" @@ -53589,7 +92120,8 @@ service RegionUrlMaps { option (google.api.method_signature) = "project,region,url_map"; } - // Creates a UrlMap resource in the specified project using the data included in the request. + // Creates a UrlMap resource in the specified project using + // the data included in the request. rpc Insert(InsertRegionUrlMapRequest) returns (Operation) { option (google.api.http) = { body: "url_map_resource" @@ -53599,7 +92131,11 @@ service RegionUrlMaps { option (google.cloud.operation_service) = "RegionOperations"; } - // Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + // Initiates a cache invalidation operation, invalidating the specified path, + // scoped to the specified UrlMap. + // + // For more information, see [Invalidating cached + // content](/cdn/docs/invalidating-cached-content). rpc InvalidateCache(InvalidateCacheRegionUrlMapRequest) returns (Operation) { option (google.api.http) = { body: "cache_invalidation_rule_resource" @@ -53609,7 +92145,8 @@ service RegionUrlMaps { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves the list of UrlMap resources available to the specified project in the specified region. + // Retrieves the list of UrlMap resources available to the specified + // project in the specified region. rpc List(ListRegionUrlMapsRequest) returns (UrlMapList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/urlMaps" @@ -53617,7 +92154,10 @@ service RegionUrlMaps { option (google.api.method_signature) = "project,region"; } - // Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified UrlMap resource with the data included in the + // request. This method supportsPATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchRegionUrlMapRequest) returns (Operation) { option (google.api.http) = { body: "url_map_resource" @@ -53636,7 +92176,8 @@ service RegionUrlMaps { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } - // Updates the specified UrlMap resource with the data included in the request. + // Updates the specified UrlMap resource with the data included in the + // request. rpc Update(UpdateRegionUrlMapRequest) returns (Operation) { option (google.api.http) = { body: "url_map_resource" @@ -53646,7 +92187,9 @@ service RegionUrlMaps { option (google.cloud.operation_service) = "RegionOperations"; } - // Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. + // Runs static validation for the UrlMap. In particular, the tests of the + // provided UrlMap will be run. Calling this method does NOT create the + // UrlMap. rpc Validate(ValidateRegionUrlMapRequest) returns (UrlMapsValidateResponse) { option (google.api.http) = { body: "region_url_maps_validate_request_resource" @@ -53667,7 +92210,8 @@ service RegionZones { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of Zone resources under the specific region available to the specified project. + // Retrieves the list of Zone resources under the specific region available to + // the specified project. rpc List(ListRegionZonesRequest) returns (ZoneList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/zones" @@ -53687,7 +92231,24 @@ service Regions { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method. + // Returns the specified Region resource. + // + // To decrease latency for this method, you can optionally omit any unneeded + // information from the response by using a field mask. This practice is + // especially recommended for unused quota information (the `quotas` field). + // To exclude one or more fields, set your request's `fields` query parameter + // to only include the fields you need. For example, to only include the `id` + // and `selfLink` fields, add the query parameter `?fields=id,selfLink` to + // your request. + // + // This method fails if the quota information is unavailable for the region + // and if the organization policy constraint + // compute.requireBasicQuotaInResponse is enforced. This + // constraint, when enforced, disables the fail-open behaviour when quota + // information (the `items.quotas` field) is unavailable for the region. + // It is recommended to use the default setting + // for the constraint unless your application requires the fail-closed + // behaviour for this method. rpc Get(GetRegionRequest) returns (Region) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}" @@ -53695,7 +92256,25 @@ service Regions { option (google.api.method_signature) = "project,region"; } - // Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method. + // Retrieves the list of region resources available to the specified project. + // + // To decrease latency for this method, you can optionally omit any unneeded + // information from the response by using a field mask. This practice is + // especially recommended for unused quota information + // (the `items.quotas` field). + // To exclude one or more fields, set your request's `fields` query parameter + // to only include the fields you need. For example, to only include the `id` + // and `selfLink` fields, add the query parameter `?fields=id,selfLink` to + // your request. + // + // This method fails if the quota information is unavailable for the region + // and if the organization policy constraint + // compute.requireBasicQuotaInResponse is enforced. This + // constraint, when enforced, disables the fail-open behaviour when quota + // information (the `items.quotas` field) is unavailable for the region. + // It is recommended to use the default setting + // for the constraint unless your application requires the fail-closed + // behaviour for this method. rpc List(ListRegionsRequest) returns (RegionList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions" @@ -53722,6 +92301,15 @@ service ReservationBlocks { option (google.api.method_signature) = "project,zone,reservation,reservation_block"; } + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyReservationBlockRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,zone,parent_resource,resource"; + } + // Retrieves a list of reservation blocks under a single reservation. rpc List(ListReservationBlocksRequest) returns (ReservationBlocksListResponse) { option (google.api.http) = { @@ -53740,6 +92328,25 @@ service ReservationBlocks { option (google.cloud.operation_service) = "ZoneOperations"; } + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyReservationBlockRequest) returns (Policy) { + option (google.api.http) = { + body: "zone_set_nested_policy_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsReservationBlockRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,zone,parent_resource,resource,test_permissions_request_resource"; + } + } // The ReservationSubBlocks API. @@ -53759,6 +92366,15 @@ service ReservationSubBlocks { option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block"; } + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyReservationSubBlockRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,zone,parent_resource,resource"; + } + // Retrieves a list of reservation subBlocks under a single reservation. rpc List(ListReservationSubBlocksRequest) returns (ReservationSubBlocksListResponse) { option (google.api.http) = { @@ -53786,6 +92402,25 @@ service ReservationSubBlocks { option (google.cloud.operation_service) = "ZoneOperations"; } + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyReservationSubBlockRequest) returns (Policy) { + option (google.api.http) = { + body: "zone_set_nested_policy_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsReservationSubBlockRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,zone,parent_resource,resource,test_permissions_request_resource"; + } + } // The Reservations API. @@ -53797,7 +92432,10 @@ service Reservations { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of reservations. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListReservationsRequest) returns (ReservationAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/reservations" @@ -53822,7 +92460,8 @@ service Reservations { option (google.api.method_signature) = "project,zone,reservation"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyReservationRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy" @@ -53830,7 +92469,8 @@ service Reservations { option (google.api.method_signature) = "project,zone,resource"; } - // Creates a new reservation. For more information, read Reserving zonal resources. + // Creates a new reservation. For more information, readReserving zonal + // resources. rpc Insert(InsertReservationRequest) returns (Operation) { option (google.api.http) = { body: "reservation_resource" @@ -53840,7 +92480,8 @@ service Reservations { option (google.cloud.operation_service) = "ZoneOperations"; } - // A list of all the reservations that have been configured for the specified project in specified zone. + // A list of all the reservations that have been configured for the + // specified project in specified zone. rpc List(ListReservationsRequest) returns (ReservationList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/reservations" @@ -53858,7 +92499,9 @@ service Reservations { option (google.cloud.operation_service) = "ZoneOperations"; } - // Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations. + // Resizes the reservation (applicable to standalone reservations only). For + // more information, readModifying + // reservations. rpc Resize(ResizeReservationRequest) returns (Operation) { option (google.api.http) = { body: "reservations_resize_request_resource" @@ -53868,7 +92511,8 @@ service Reservations { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyReservationRequest) returns (Policy) { option (google.api.http) = { body: "zone_set_policy_request_resource" @@ -53907,7 +92551,10 @@ service ResourcePolicies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of resource policies. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListResourcePoliciesRequest) returns (ResourcePolicyAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/resourcePolicies" @@ -53932,7 +92579,8 @@ service ResourcePolicies { option (google.api.method_signature) = "project,region,resource_policy"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyResourcePolicyRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy" @@ -53950,7 +92598,8 @@ service ResourcePolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // A list all the resource policies that have been configured for the specified project in specified region. + // A list all the resource policies that have been configured for the + // specified project in specified region. rpc List(ListResourcePoliciesRequest) returns (ResourcePolicyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/resourcePolicies" @@ -53968,7 +92617,8 @@ service ResourcePolicies { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyResourcePolicyRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -53997,7 +92647,10 @@ service Routers { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of routers. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListRoutersRequest) returns (RouterAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/routers" @@ -54063,7 +92716,8 @@ service Routers { option (google.api.method_signature) = "project,region,router"; } - // Creates a Router resource in the specified project and region using the data included in the request. + // Creates a Router resource in the specified project and region using + // the data included in the request. rpc Insert(InsertRouterRequest) returns (Operation) { option (google.api.http) = { body: "router_resource" @@ -54089,7 +92743,8 @@ service Routers { option (google.api.method_signature) = "project,region,router"; } - // Retrieves a list of router route policy subresources available to the specified project. + // Retrieves a list of router route policy subresources available to the + // specified project. rpc ListRoutePolicies(ListRoutePoliciesRoutersRequest) returns (RoutersListRoutePolicies) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/routers/{router}/listRoutePolicies" @@ -54097,7 +92752,10 @@ service Routers { option (google.api.method_signature) = "project,region,router"; } - // Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified Router resource with the data included in the + // request. This method supportsPATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchRouterRequest) returns (Operation) { option (google.api.http) = { body: "router_resource" @@ -54117,7 +92775,8 @@ service Routers { option (google.cloud.operation_service) = "RegionOperations"; } - // Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router. + // Preview fields auto-generated during router create andupdate operations. + // Calling this method does NOT create or update the router. rpc Preview(PreviewRouterRequest) returns (RoutersPreviewResponse) { option (google.api.http) = { body: "router_resource" @@ -54135,7 +92794,10 @@ service Routers { option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; } - // Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload. + // Updates the specified Router resource with the data included in the + // request. This method conforms toPUT semantics, which requests that the state of the + // target resource be created or replaced with the state defined by the + // representation enclosed in the request message payload. rpc Update(UpdateRouterRequest) returns (Operation) { option (google.api.http) = { body: "router_resource" @@ -54183,7 +92845,8 @@ service Routes { option (google.api.method_signature) = "project,route"; } - // Creates a Route resource in the specified project using the data included in the request. + // Creates a Route resource in the specified project using the data included + // in the request. rpc Insert(InsertRouteRequest) returns (Operation) { option (google.api.http) = { body: "route_resource" @@ -54231,7 +92894,11 @@ service SecurityPolicies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all SecurityPolicy resources, regional and global, + // available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListSecurityPoliciesRequest) returns (SecurityPoliciesAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/securityPolicies" @@ -54264,7 +92931,8 @@ service SecurityPolicies { option (google.api.method_signature) = "project,security_policy"; } - // Creates a new policy in the specified project using the data included in the request. + // Creates a new policy in the specified project using the data included in + // the request. rpc Insert(InsertSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_resource" @@ -54282,7 +92950,8 @@ service SecurityPolicies { option (google.api.method_signature) = "project"; } - // Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + // Gets the current list of preconfigured Web Application Firewall (WAF) + // expressions. rpc ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsSecurityPoliciesRequest) returns (SecurityPoliciesListPreconfiguredExpressionSetsResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets" @@ -54290,7 +92959,11 @@ service SecurityPolicies { option (google.api.method_signature) = "project"; } - // Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead. + // Patches the specified policy with the data included in the request. To + // clear fields in the policy, leave the fields empty and specify them in the + // updateMask. This cannot be used to be update the rules in the policy. + // Please use the per rule methods like addRule, patchRule, and removeRule + // instead. rpc Patch(PatchSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_resource" @@ -54300,7 +92973,8 @@ service SecurityPolicies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask. + // Patches a rule at the specified priority. To clear fields in the rule, + // leave the fields empty and specify them in the updateMask. rpc PatchRule(PatchRuleSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_rule_resource" @@ -54319,7 +92993,9 @@ service SecurityPolicies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a security policy. To learn more about labels, + // read the Labeling Resources + // documentation. rpc SetLabels(SetLabelsSecurityPolicyRequest) returns (Operation) { option (google.api.http) = { body: "global_set_labels_request_resource" @@ -54349,7 +93025,11 @@ service ServiceAttachments { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all ServiceAttachment resources, + // regional and global, available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListServiceAttachmentsRequest) returns (ServiceAttachmentAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/serviceAttachments" @@ -54374,7 +93054,8 @@ service ServiceAttachments { option (google.api.method_signature) = "project,region,service_attachment"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyServiceAttachmentRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy" @@ -54382,7 +93063,8 @@ service ServiceAttachments { option (google.api.method_signature) = "project,region,resource"; } - // Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request. + // Creates a ServiceAttachment in the specified project in the given scope + // using the parameters that are included in the request. rpc Insert(InsertServiceAttachmentRequest) returns (Operation) { option (google.api.http) = { body: "service_attachment_resource" @@ -54400,7 +93082,10 @@ service ServiceAttachments { option (google.api.method_signature) = "project,region"; } - // Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified ServiceAttachment resource with the data included in + // the request. This method supports PATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchServiceAttachmentRequest) returns (Operation) { option (google.api.http) = { body: "service_attachment_resource" @@ -54410,7 +93095,8 @@ service ServiceAttachments { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyServiceAttachmentRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -54468,7 +93154,11 @@ service Snapshots { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of all of the snapshots in your project across all regions and global scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of all of the snapshots in your project + // across all regions and global scope. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListSnapshotsRequest) returns (SnapshotAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/snapshots" @@ -54476,7 +93166,14 @@ service Snapshots { option (google.api.method_signature) = "project"; } - // Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots. + // Deletes the specified Snapshot resource. Keep in mind that deleting + // a single snapshot might not necessarily delete all the data on that + // snapshot. If any data on the snapshot that is marked for deletion is + // needed for subsequent snapshots, the data will be moved to the next + // corresponding snapshot. + // + // For more information, seeDeleting + // snapshots. rpc Delete(DeleteSnapshotRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/global/snapshots/{snapshot}" @@ -54493,7 +93190,8 @@ service Snapshots { option (google.api.method_signature) = "project,snapshot"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicySnapshotRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/snapshots/{resource}/getIamPolicy" @@ -54501,7 +93199,11 @@ service Snapshots { option (google.api.method_signature) = "project,resource"; } - // Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project. + // Creates a snapshot in the specified project using the data included + // in the request. For regular snapshot creation, consider using this method + // instead of disks.createSnapshot, + // as this method supports more features, such as creating snapshots in a + // project different from the source disk project. rpc Insert(InsertSnapshotRequest) returns (Operation) { option (google.api.http) = { body: "snapshot_resource" @@ -54511,7 +93213,8 @@ service Snapshots { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of Snapshot resources contained within the specified project. + // Retrieves the list of Snapshot resources contained within + // the specified project. rpc List(ListSnapshotsRequest) returns (SnapshotList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/snapshots" @@ -54519,7 +93222,8 @@ service Snapshots { option (google.api.method_signature) = "project"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicySnapshotRequest) returns (Policy) { option (google.api.http) = { body: "global_set_policy_request_resource" @@ -54528,7 +93232,8 @@ service Snapshots { option (google.api.method_signature) = "project,resource,global_set_policy_request_resource"; } - // Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a snapshot. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsSnapshotRequest) returns (Operation) { option (google.api.http) = { body: "global_set_labels_request_resource" @@ -54558,7 +93263,11 @@ service SslCertificates { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all SslCertificate resources, regional and global, + // available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListSslCertificatesRequest) returns (SslCertificateAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/sslCertificates" @@ -54583,7 +93292,8 @@ service SslCertificates { option (google.api.method_signature) = "project,ssl_certificate"; } - // Creates a SslCertificate resource in the specified project using the data included in the request. + // Creates a SslCertificate resource in the specified project using the data + // included in the request. rpc Insert(InsertSslCertificateRequest) returns (Operation) { option (google.api.http) = { body: "ssl_certificate_resource" @@ -54593,7 +93303,8 @@ service SslCertificates { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of SslCertificate resources available to the specified project. + // Retrieves the list of SslCertificate resources available to the specified + // project. rpc List(ListSslCertificatesRequest) returns (SslCertificateList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/sslCertificates" @@ -54621,7 +93332,11 @@ service SslPolicies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all SslPolicy resources, regional and global, + // available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListSslPoliciesRequest) returns (SslPoliciesAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/sslPolicies" @@ -54629,7 +93344,9 @@ service SslPolicies { option (google.api.method_signature) = "project"; } - // Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. + // Deletes the specified SSL policy. The SSL policy resource can be deleted + // only if it is not in use by any TargetHttpsProxy or TargetSslProxy + // resources. rpc Delete(DeleteSslPolicyRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/global/sslPolicies/{ssl_policy}" @@ -54656,7 +93373,8 @@ service SslPolicies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Lists all the SSL policies that have been configured for the specified project. + // Lists all the SSL policies that have been configured for the specified + // project. rpc List(ListSslPoliciesRequest) returns (SslPoliciesList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/sslPolicies" @@ -54664,7 +93382,8 @@ service SslPolicies { option (google.api.method_signature) = "project"; } - // Lists all features that can be specified in the SSL policy when using custom profile. + // Lists all features that can be specified in the SSL policy when using + // custom profile. rpc ListAvailableFeatures(ListAvailableFeaturesSslPoliciesRequest) returns (SslPoliciesListAvailableFeaturesResponse) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/sslPolicies/listAvailableFeatures" @@ -54703,7 +93422,10 @@ service StoragePoolTypes { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of storage pool types. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListStoragePoolTypesRequest) returns (StoragePoolTypeAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/storagePoolTypes" @@ -54719,7 +93441,8 @@ service StoragePoolTypes { option (google.api.method_signature) = "project,zone,storage_pool_type"; } - // Retrieves a list of storage pool types available to the specified project. + // Retrieves a list of storage pool types available to the specified + // project. rpc List(ListStoragePoolTypesRequest) returns (StoragePoolTypeList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/storagePoolTypes" @@ -54738,7 +93461,10 @@ service StoragePools { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of storage pools. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListStoragePoolsRequest) returns (StoragePoolAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/storagePools" @@ -54746,7 +93472,11 @@ service StoragePools { option (google.api.method_signature) = "project"; } - // Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots. + // Deletes the specified storage pool. Deleting a storagePool + // removes its data permanently and is irreversible. However, deleting a + // storagePool does not delete any snapshots previously + // made from the storagePool. You must separately delete + // snapshots. rpc Delete(DeleteStoragePoolRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/beta/projects/{project}/zones/{zone}/storagePools/{storage_pool}" @@ -54755,7 +93485,8 @@ service StoragePools { option (google.cloud.operation_service) = "ZoneOperations"; } - // Returns a specified storage pool. Gets a list of available storage pools by making a list() request. + // Returns a specified storage pool. Gets a list of available + // storage pools by making a list() request. rpc Get(GetStoragePoolRequest) returns (StoragePool) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/storagePools/{storage_pool}" @@ -54763,7 +93494,8 @@ service StoragePools { option (google.api.method_signature) = "project,zone,storage_pool"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicyStoragePoolRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy" @@ -54771,7 +93503,8 @@ service StoragePools { option (google.api.method_signature) = "project,zone,resource"; } - // Creates a storage pool in the specified project using the data in the request. + // Creates a storage pool in the specified project using the data + // in the request. rpc Insert(InsertStoragePoolRequest) returns (Operation) { option (google.api.http) = { body: "storage_pool_resource" @@ -54781,7 +93514,8 @@ service StoragePools { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves a list of storage pools contained within the specified zone. + // Retrieves a list of storage pools contained within + // the specified zone. rpc List(ListStoragePoolsRequest) returns (StoragePoolList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/storagePools" @@ -54797,7 +93531,8 @@ service StoragePools { option (google.api.method_signature) = "project,zone,storage_pool"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicyStoragePoolRequest) returns (Policy) { option (google.api.http) = { body: "zone_set_policy_request_resource" @@ -54815,7 +93550,11 @@ service StoragePools { option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; } - // Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. + // Updates the specified storagePool with the data included in the request. + // The update is performed only on selected fields included as part + // of update-mask. Only the following fields can be modified: + // pool_provisioned_capacity_gb, pool_provisioned_iops and + // pool_provisioned_throughput. rpc Update(UpdateStoragePoolRequest) returns (Operation) { option (google.api.http) = { body: "storage_pool_resource" @@ -54836,7 +93575,10 @@ service Subnetworks { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of subnetworks. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListSubnetworksRequest) returns (SubnetworkAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/subnetworks" @@ -54871,7 +93613,8 @@ service Subnetworks { option (google.api.method_signature) = "project,region,subnetwork"; } - // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. rpc GetIamPolicy(GetIamPolicySubnetworkRequest) returns (Policy) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy" @@ -54879,7 +93622,8 @@ service Subnetworks { option (google.api.method_signature) = "project,region,resource"; } - // Creates a subnetwork in the specified project using the data included in the request. + // Creates a subnetwork in the specified project using the data + // included in the request. rpc Insert(InsertSubnetworkRequest) returns (Operation) { option (google.api.http) = { body: "subnetwork_resource" @@ -54889,7 +93633,8 @@ service Subnetworks { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of subnetworks available to the specified project. + // Retrieves a list of subnetworks available to the specified + // project. rpc List(ListSubnetworksRequest) returns (SubnetworkList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/subnetworks" @@ -54905,7 +93650,11 @@ service Subnetworks { option (google.api.method_signature) = "project"; } - // Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched. + // Patches the specified subnetwork with the data included in the request. + // Only certain fields can be updated with a patch request + // as indicated in the field descriptions. + // You must specify the current fingerprint of the + // subnetwork resource being patched. rpc Patch(PatchSubnetworkRequest) returns (Operation) { option (google.api.http) = { body: "subnetwork_resource" @@ -54915,7 +93664,8 @@ service Subnetworks { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the access control policy on the specified resource. Replaces any existing policy. + // Sets the access control policy on the specified resource. + // Replaces any existing policy. rpc SetIamPolicy(SetIamPolicySubnetworkRequest) returns (Policy) { option (google.api.http) = { body: "region_set_policy_request_resource" @@ -54924,7 +93674,8 @@ service Subnetworks { option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; } - // Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access. + // Set whether VMs in this subnet can access Google services without assigning + // external IP addresses through Private Google Access. rpc SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest) returns (Operation) { option (google.api.http) = { body: "subnetworks_set_private_ip_google_access_request_resource" @@ -54971,7 +93722,8 @@ service TargetGrpcProxies { option (google.api.method_signature) = "project,target_grpc_proxy"; } - // Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request. + // Creates a TargetGrpcProxy in the specified project in the given scope + // using the parameters that are included in the request. rpc Insert(InsertTargetGrpcProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_grpc_proxy_resource" @@ -54989,7 +93741,10 @@ service TargetGrpcProxies { option (google.api.method_signature) = "project"; } - // Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified TargetGrpcProxy resource with the data included in + // the request. This method supports PATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchTargetGrpcProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_grpc_proxy_resource" @@ -55019,7 +93774,11 @@ service TargetHttpProxies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all TargetHttpProxy resources, regional and global, + // available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetHttpProxiesRequest) returns (TargetHttpProxyAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/targetHttpProxies" @@ -55044,7 +93803,8 @@ service TargetHttpProxies { option (google.api.method_signature) = "project,target_http_proxy"; } - // Creates a TargetHttpProxy resource in the specified project using the data included in the request. + // Creates a TargetHttpProxy resource in the specified + // project using the data included in the request. rpc Insert(InsertTargetHttpProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_http_proxy_resource" @@ -55054,7 +93814,8 @@ service TargetHttpProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of TargetHttpProxy resources available to the specified project. + // Retrieves the list of TargetHttpProxy resources available + // to the specified project. rpc List(ListTargetHttpProxiesRequest) returns (TargetHttpProxyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/targetHttpProxies" @@ -55062,7 +93823,10 @@ service TargetHttpProxies { option (google.api.method_signature) = "project"; } - // Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified TargetHttpProxy resource with the data included in + // the request. This method supports PATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchTargetHttpProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_http_proxy_resource" @@ -55102,7 +93866,11 @@ service TargetHttpsProxies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all TargetHttpsProxy resources, regional and global, + // available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetHttpsProxiesRequest) returns (TargetHttpsProxyAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/targetHttpsProxies" @@ -55127,7 +93895,8 @@ service TargetHttpsProxies { option (google.api.method_signature) = "project,target_https_proxy"; } - // Creates a TargetHttpsProxy resource in the specified project using the data included in the request. + // Creates a TargetHttpsProxy resource in the specified + // project using the data included in the request. rpc Insert(InsertTargetHttpsProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_https_proxy_resource" @@ -55137,7 +93906,8 @@ service TargetHttpsProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of TargetHttpsProxy resources available to the specified project. + // Retrieves the list of TargetHttpsProxy resources + // available to the specified project. rpc List(ListTargetHttpsProxiesRequest) returns (TargetHttpsProxyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/targetHttpsProxies" @@ -55145,7 +93915,10 @@ service TargetHttpsProxies { option (google.api.method_signature) = "project"; } - // Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Patches the specified TargetHttpsProxy resource with the data included in + // the request. This method supports PATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchTargetHttpsProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_https_proxy_resource" @@ -55185,7 +93958,10 @@ service TargetHttpsProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends. + // Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the + // server-side support for SSL features. This affects connections between + // clients and the HTTPS proxy load balancer. They do not affect the + // connection between the load balancer and the backends. rpc SetSslPolicy(SetSslPolicyTargetHttpsProxyRequest) returns (Operation) { option (google.api.http) = { body: "ssl_policy_reference_resource" @@ -55225,7 +94001,10 @@ service TargetInstances { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of target instances. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetInstancesRequest) returns (TargetInstanceAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/targetInstances" @@ -55250,7 +94029,8 @@ service TargetInstances { option (google.api.method_signature) = "project,zone,target_instance"; } - // Creates a TargetInstance resource in the specified project and zone using the data included in the request. + // Creates a TargetInstance resource in the specified project and zone using + // the data included in the request. rpc Insert(InsertTargetInstanceRequest) returns (Operation) { option (google.api.http) = { body: "target_instance_resource" @@ -55260,7 +94040,8 @@ service TargetInstances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Retrieves a list of TargetInstance resources available to the specified project and zone. + // Retrieves a list of TargetInstance resources available to the specified + // project and zone. rpc List(ListTargetInstancesRequest) returns (TargetInstanceList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/targetInstances" @@ -55268,7 +94049,9 @@ service TargetInstances { option (google.api.method_signature) = "project,zone"; } - // Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview + // Sets the Google Cloud Armor security policy for the specified target + // instance. For more information, seeGoogle + // Cloud Armor Overview rpc SetSecurityPolicy(SetSecurityPolicyTargetInstanceRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_reference_resource" @@ -55318,7 +94101,10 @@ service TargetPools { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of target pools. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetPoolsRequest) returns (TargetPoolAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/targetPools" @@ -55343,7 +94129,8 @@ service TargetPools { option (google.api.method_signature) = "project,region,target_pool"; } - // Gets the most recent health check results for each IP for the instance that is referenced by the given target pool. + // Gets the most recent health check results for each IP for the + // instance that is referenced by the given target pool. rpc GetHealth(GetHealthTargetPoolRequest) returns (TargetPoolInstanceHealth) { option (google.api.http) = { body: "instance_reference_resource" @@ -55352,7 +94139,8 @@ service TargetPools { option (google.api.method_signature) = "project,region,target_pool,instance_reference_resource"; } - // Creates a target pool in the specified project and region using the data included in the request. + // Creates a target pool in the specified project and region using + // the data included in the request. rpc Insert(InsertTargetPoolRequest) returns (Operation) { option (google.api.http) = { body: "target_pool_resource" @@ -55362,7 +94150,8 @@ service TargetPools { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of target pools available to the specified project and region. + // Retrieves a list of target pools available to the specified + // project and region. rpc List(ListTargetPoolsRequest) returns (TargetPoolList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/targetPools" @@ -55400,7 +94189,9 @@ service TargetPools { option (google.cloud.operation_service) = "RegionOperations"; } - // Sets the Google Cloud Armor security policy for the specified target pool. For more information, see Google Cloud Armor Overview + // Sets the Google Cloud Armor security policy for the specified target pool. + // For more information, seeGoogle + // Cloud Armor Overview rpc SetSecurityPolicy(SetSecurityPolicyTargetPoolRequest) returns (Operation) { option (google.api.http) = { body: "security_policy_reference_resource" @@ -55447,7 +94238,8 @@ service TargetSslProxies { option (google.api.method_signature) = "project,target_ssl_proxy"; } - // Creates a TargetSslProxy resource in the specified project using the data included in the request. + // Creates a TargetSslProxy resource in the specified project using + // the data included in the request. rpc Insert(InsertTargetSslProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_ssl_proxy_resource" @@ -55457,7 +94249,8 @@ service TargetSslProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of TargetSslProxy resources available to the specified project. + // Retrieves the list of TargetSslProxy resources + // available to the specified project. rpc List(ListTargetSslProxiesRequest) returns (TargetSslProxyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/targetSslProxies" @@ -55505,7 +94298,10 @@ service TargetSslProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends. + // Sets the SSL policy for TargetSslProxy. The SSL policy specifies the + // server-side support for SSL features. This affects connections between + // clients and the load balancer. They do not affect the + // connection between the load balancer and the backends. rpc SetSslPolicy(SetSslPolicyTargetSslProxyRequest) returns (Operation) { option (google.api.http) = { body: "ssl_policy_reference_resource" @@ -55535,7 +94331,11 @@ service TargetTcpProxies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all TargetTcpProxy resources, regional and global, + // available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetTcpProxiesRequest) returns (TargetTcpProxyAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/targetTcpProxies" @@ -55560,7 +94360,8 @@ service TargetTcpProxies { option (google.api.method_signature) = "project,target_tcp_proxy"; } - // Creates a TargetTcpProxy resource in the specified project using the data included in the request. + // Creates a TargetTcpProxy resource in the specified project using + // the data included in the request. rpc Insert(InsertTargetTcpProxyRequest) returns (Operation) { option (google.api.http) = { body: "target_tcp_proxy_resource" @@ -55570,7 +94371,8 @@ service TargetTcpProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of TargetTcpProxy resources available to the specified project. + // Retrieves the list of TargetTcpProxy resources + // available to the specified project. rpc List(ListTargetTcpProxiesRequest) returns (TargetTcpProxyList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/targetTcpProxies" @@ -55618,7 +94420,10 @@ service TargetVpnGateways { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of target VPN gateways. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListTargetVpnGatewaysRequest) returns (TargetVpnGatewayAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/targetVpnGateways" @@ -55643,7 +94448,8 @@ service TargetVpnGateways { option (google.api.method_signature) = "project,region,target_vpn_gateway"; } - // Creates a target VPN gateway in the specified project and region using the data included in the request. + // Creates a target VPN gateway in the specified project and region using + // the data included in the request. rpc Insert(InsertTargetVpnGatewayRequest) returns (Operation) { option (google.api.http) = { body: "target_vpn_gateway_resource" @@ -55653,7 +94459,8 @@ service TargetVpnGateways { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of target VPN gateways available to the specified project and region. + // Retrieves a list of target VPN gateways available to the specified + // project and region. rpc List(ListTargetVpnGatewaysRequest) returns (TargetVpnGatewayList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/targetVpnGateways" @@ -55661,7 +94468,8 @@ service TargetVpnGateways { option (google.api.method_signature) = "project,region"; } - // Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsTargetVpnGatewayRequest) returns (Operation) { option (google.api.http) = { body: "region_set_labels_request_resource" @@ -55691,7 +94499,11 @@ service UrlMaps { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves the list of all UrlMap resources, regional and global, + // available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListUrlMapsRequest) returns (UrlMapsAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/urlMaps" @@ -55716,7 +94528,8 @@ service UrlMaps { option (google.api.method_signature) = "project,url_map"; } - // Creates a UrlMap resource in the specified project using the data included in the request. + // Creates a UrlMap resource in the specified project using + // the data included in the request. rpc Insert(InsertUrlMapRequest) returns (Operation) { option (google.api.http) = { body: "url_map_resource" @@ -55726,7 +94539,11 @@ service UrlMaps { option (google.cloud.operation_service) = "GlobalOperations"; } - // Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + // Initiates a cache invalidation operation, invalidating the specified path, + // scoped to the specified UrlMap. + // + // For more information, see [Invalidating cached + // content](/cdn/docs/invalidating-cached-content). rpc InvalidateCache(InvalidateCacheUrlMapRequest) returns (Operation) { option (google.api.http) = { body: "cache_invalidation_rule_resource" @@ -55736,7 +94553,8 @@ service UrlMaps { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of UrlMap resources available to the specified project. + // Retrieves the list of UrlMap resources available to the specified + // project. rpc List(ListUrlMapsRequest) returns (UrlMapList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/global/urlMaps" @@ -55744,7 +94562,10 @@ service UrlMaps { option (google.api.method_signature) = "project"; } - // Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Patches the specified UrlMap resource with the data included in the + // request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. rpc Patch(PatchUrlMapRequest) returns (Operation) { option (google.api.http) = { body: "url_map_resource" @@ -55763,7 +94584,8 @@ service UrlMaps { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } - // Updates the specified UrlMap resource with the data included in the request. + // Updates the specified UrlMap resource with the data included in the + // request. rpc Update(UpdateUrlMapRequest) returns (Operation) { option (google.api.http) = { body: "url_map_resource" @@ -55773,7 +94595,9 @@ service UrlMaps { option (google.cloud.operation_service) = "GlobalOperations"; } - // Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. + // Runs static validation for the UrlMap. In particular, the tests of the + // provided UrlMap will be run. Calling this method does NOT create the + // UrlMap. rpc Validate(ValidateUrlMapRequest) returns (UrlMapsValidateResponse) { option (google.api.http) = { body: "url_maps_validate_request_resource" @@ -55793,7 +94617,10 @@ service VpnGateways { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of VPN gateways. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListVpnGatewaysRequest) returns (VpnGatewayAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/vpnGateways" @@ -55826,7 +94653,8 @@ service VpnGateways { option (google.api.method_signature) = "project,region,vpn_gateway"; } - // Creates a VPN gateway in the specified project and region using the data included in the request. + // Creates a VPN gateway in the specified project and region using + // the data included in the request. rpc Insert(InsertVpnGatewayRequest) returns (Operation) { option (google.api.http) = { body: "vpn_gateway_resource" @@ -55836,7 +94664,8 @@ service VpnGateways { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of VPN gateways available to the specified project and region. + // Retrieves a list of VPN gateways available to the specified + // project and region. rpc List(ListVpnGatewaysRequest) returns (VpnGatewayList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/vpnGateways" @@ -55844,7 +94673,8 @@ service VpnGateways { option (google.api.method_signature) = "project,region"; } - // Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a VpnGateway. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsVpnGatewayRequest) returns (Operation) { option (google.api.http) = { body: "region_set_labels_request_resource" @@ -55874,7 +94704,10 @@ service VpnTunnels { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + // Retrieves an aggregated list of VPN tunnels. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. rpc AggregatedList(AggregatedListVpnTunnelsRequest) returns (VpnTunnelAggregatedList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/aggregated/vpnTunnels" @@ -55899,7 +94732,8 @@ service VpnTunnels { option (google.api.method_signature) = "project,region,vpn_tunnel"; } - // Creates a VpnTunnel resource in the specified project and region using the data included in the request. + // Creates a VpnTunnel resource in the specified project and region using + // the data included in the request. rpc Insert(InsertVpnTunnelRequest) returns (Operation) { option (google.api.http) = { body: "vpn_tunnel_resource" @@ -55909,7 +94743,8 @@ service VpnTunnels { option (google.cloud.operation_service) = "RegionOperations"; } - // Retrieves a list of VpnTunnel resources contained in the specified project and region. + // Retrieves a list of VpnTunnel resources contained in the specified + // project and region. rpc List(ListVpnTunnelsRequest) returns (VpnTunnelList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/regions/{region}/vpnTunnels" @@ -55917,7 +94752,8 @@ service VpnTunnels { option (google.api.method_signature) = "project,region"; } - // Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation. + // Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling + // Resources documentation. rpc SetLabels(SetLabelsVpnTunnelRequest) returns (Operation) { option (google.api.http) = { body: "region_set_labels_request_resource" @@ -55964,7 +94800,8 @@ service WireGroups { option (google.api.method_signature) = "project,cross_site_network,wire_group"; } - // Creates a wire group in the specified project in the given scope using the parameters that are included in the request. + // Creates a wire group in the specified project in the given scope + // using the parameters that are included in the request. rpc Insert(InsertWireGroupRequest) returns (Operation) { option (google.api.http) = { body: "wire_group_resource" @@ -55982,7 +94819,10 @@ service WireGroups { option (google.api.method_signature) = "project,cross_site_network"; } - // Updates the specified wire group resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + // Updates the specified wire group resource with the data included in the + // request. This method supportsPATCH + // semantics and usesJSON merge + // patch format and processing rules. rpc Patch(PatchWireGroupRequest) returns (Operation) { option (google.api.http) = { body: "wire_group_resource" @@ -56020,7 +94860,8 @@ service ZoneOperations { option (google.cloud.operation_polling_method) = true; } - // Retrieves a list of Operation resources contained within the specified zone. + // Retrieves a list of Operation resources contained within + // the specified zone. rpc List(ListZoneOperationsRequest) returns (OperationList) { option (google.api.http) = { get: "/compute/beta/projects/{project}/zones/{zone}/operations" @@ -56028,7 +94869,21 @@ service ZoneOperations { option (google.api.method_signature) = "project,zone"; } - // Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. + // Waits for the specified Operation resource to return as `DONE` + // or for the request to approach the 2 minute deadline, and retrieves the + // specified Operation resource. This method waits for no more than the + // 2 minutes and then returns the current state of the + // operation, which might be `DONE` or still in progress. + // + // This method is called on a best-effort basis. Specifically: + // + // + // - In uncommon cases, when the server is overloaded, the request might + // return before the default deadline is reached, or might return after zero + // seconds. + // - If the default deadline is reached, there is no guarantee that the + // operation is actually done when the method returns. Be prepared to retry + // if the operation is not `DONE`. rpc Wait(WaitZoneOperationRequest) returns (Operation) { option (google.api.http) = { post: "/compute/beta/projects/{project}/zones/{zone}/operations/{operation}/wait" @@ -56038,6 +94893,62 @@ service ZoneOperations { } +// The ZoneVmExtensionPolicies API. +service ZoneVmExtensionPolicies { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Deletes a specified zone VM extension policy. + rpc Delete(DeleteZoneVmExtensionPolicyRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}" + }; + option (google.api.method_signature) = "project,zone,vm_extension_policy"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // Retrieves details of a specific zone VM extension policy. + rpc Get(GetZoneVmExtensionPolicyRequest) returns (VmExtensionPolicy) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}" + }; + option (google.api.method_signature) = "project,zone,vm_extension_policy"; + } + + // Creates a new zone-level VM extension policy within a project. + rpc Insert(InsertZoneVmExtensionPolicyRequest) returns (Operation) { + option (google.api.http) = { + body: "vm_extension_policy_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies" + }; + option (google.api.method_signature) = "project,zone,vm_extension_policy_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // Lists all VM extension policies within a specific zone for a project. + rpc List(ListZoneVmExtensionPoliciesRequest) returns (VmExtensionPolicyList) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies" + }; + option (google.api.method_signature) = "project,zone"; + } + + // Modifies an existing zone VM extension policy. + rpc Update(UpdateZoneVmExtensionPolicyRequest) returns (Operation) { + option (google.api.http) = { + body: "vm_extension_policy_resource" + patch: "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}" + }; + option (google.api.method_signature) = "project,zone,vm_extension_policy,vm_extension_policy_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + +} + // The Zones API. service Zones { option (google.api.default_host) = diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 09244540f8fd..ba18c05b6216 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -228939,6 +228939,321 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AcceleratorTopologiesInfo. */ + interface IAcceleratorTopologiesInfo { + + /** AcceleratorTopologiesInfo acceleratorTopologyInfos */ + acceleratorTopologyInfos?: (google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo[]|null); + } + + /** Represents an AcceleratorTopologiesInfo. */ + class AcceleratorTopologiesInfo implements IAcceleratorTopologiesInfo { + + /** + * Constructs a new AcceleratorTopologiesInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IAcceleratorTopologiesInfo); + + /** AcceleratorTopologiesInfo acceleratorTopologyInfos. */ + public acceleratorTopologyInfos: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo[]; + + /** + * Creates a new AcceleratorTopologiesInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AcceleratorTopologiesInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IAcceleratorTopologiesInfo): google.cloud.compute.v1beta.AcceleratorTopologiesInfo; + + /** + * Encodes the specified AcceleratorTopologiesInfo message. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfo.verify|verify} messages. + * @param message AcceleratorTopologiesInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IAcceleratorTopologiesInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AcceleratorTopologiesInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfo.verify|verify} messages. + * @param message AcceleratorTopologiesInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IAcceleratorTopologiesInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AcceleratorTopologiesInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AcceleratorTopologiesInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.AcceleratorTopologiesInfo; + + /** + * Decodes an AcceleratorTopologiesInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AcceleratorTopologiesInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.AcceleratorTopologiesInfo; + + /** + * Verifies an AcceleratorTopologiesInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AcceleratorTopologiesInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcceleratorTopologiesInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.AcceleratorTopologiesInfo; + + /** + * Creates a plain object from an AcceleratorTopologiesInfo message. Also converts values to other types if specified. + * @param message AcceleratorTopologiesInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.AcceleratorTopologiesInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AcceleratorTopologiesInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AcceleratorTopologiesInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AcceleratorTopologiesInfoAcceleratorTopologyInfo. */ + interface IAcceleratorTopologiesInfoAcceleratorTopologyInfo { + + /** AcceleratorTopologiesInfoAcceleratorTopologyInfo acceleratorTopology */ + acceleratorTopology?: (string|null); + + /** AcceleratorTopologiesInfoAcceleratorTopologyInfo infoPerTopologyStates */ + infoPerTopologyStates?: (google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState[]|null); + } + + /** Represents an AcceleratorTopologiesInfoAcceleratorTopologyInfo. */ + class AcceleratorTopologiesInfoAcceleratorTopologyInfo implements IAcceleratorTopologiesInfoAcceleratorTopologyInfo { + + /** + * Constructs a new AcceleratorTopologiesInfoAcceleratorTopologyInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo); + + /** AcceleratorTopologiesInfoAcceleratorTopologyInfo acceleratorTopology. */ + public acceleratorTopology?: (string|null); + + /** AcceleratorTopologiesInfoAcceleratorTopologyInfo infoPerTopologyStates. */ + public infoPerTopologyStates: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState[]; + + /** + * Creates a new AcceleratorTopologiesInfoAcceleratorTopologyInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AcceleratorTopologiesInfoAcceleratorTopologyInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo): google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo; + + /** + * Encodes the specified AcceleratorTopologiesInfoAcceleratorTopologyInfo message. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.verify|verify} messages. + * @param message AcceleratorTopologiesInfoAcceleratorTopologyInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AcceleratorTopologiesInfoAcceleratorTopologyInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.verify|verify} messages. + * @param message AcceleratorTopologiesInfoAcceleratorTopologyInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AcceleratorTopologiesInfoAcceleratorTopologyInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo; + + /** + * Decodes an AcceleratorTopologiesInfoAcceleratorTopologyInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo; + + /** + * Verifies an AcceleratorTopologiesInfoAcceleratorTopologyInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AcceleratorTopologiesInfoAcceleratorTopologyInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcceleratorTopologiesInfoAcceleratorTopologyInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo; + + /** + * Creates a plain object from an AcceleratorTopologiesInfoAcceleratorTopologyInfo message. Also converts values to other types if specified. + * @param message AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AcceleratorTopologiesInfoAcceleratorTopologyInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState. */ + interface IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState { + + /** AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState count */ + count?: (number|null); + + /** AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState state */ + state?: (string|null); + } + + /** Represents an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState. */ + class AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState implements IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState { + + /** + * Constructs a new AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState); + + /** AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState count. */ + public count?: (number|null); + + /** AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState state. */ + public state?: (string|null); + + /** + * Creates a new AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState instance using the specified properties. + * @param [properties] Properties to set + * @returns AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState instance + */ + public static create(properties?: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState): google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState; + + /** + * Encodes the specified AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.verify|verify} messages. + * @param message AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.verify|verify} messages. + * @param message AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState; + + /** + * Decodes an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState; + + /** + * Verifies an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState; + + /** + * Creates a plain object from an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message. Also converts values to other types if specified. + * @param message AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState { + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + AVAILABLE = 442079913, + RUNNING = 121282975, + TOPOLOGY_STATE_UNSPECIFIED = 188327545, + UNHEALTHY = 462118084 + } + } + /** Properties of an AcceleratorType. */ interface IAcceleratorType { @@ -234028,6 +234343,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListBackendBucketsRequest. */ + interface IAggregatedListBackendBucketsRequest { + + /** AggregatedListBackendBucketsRequest filter */ + filter?: (string|null); + + /** AggregatedListBackendBucketsRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListBackendBucketsRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListBackendBucketsRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListBackendBucketsRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListBackendBucketsRequest project */ + project?: (string|null); + + /** AggregatedListBackendBucketsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListBackendBucketsRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListBackendBucketsRequest. */ + class AggregatedListBackendBucketsRequest implements IAggregatedListBackendBucketsRequest { + + /** + * Constructs a new AggregatedListBackendBucketsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest); + + /** AggregatedListBackendBucketsRequest filter. */ + public filter?: (string|null); + + /** AggregatedListBackendBucketsRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListBackendBucketsRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListBackendBucketsRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListBackendBucketsRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListBackendBucketsRequest project. */ + public project: string; + + /** AggregatedListBackendBucketsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListBackendBucketsRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListBackendBucketsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListBackendBucketsRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest): google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest; + + /** + * Encodes the specified AggregatedListBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest.verify|verify} messages. + * @param message AggregatedListBackendBucketsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest.verify|verify} messages. + * @param message AggregatedListBackendBucketsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListBackendBucketsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListBackendBucketsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest; + + /** + * Decodes an AggregatedListBackendBucketsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListBackendBucketsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest; + + /** + * Verifies an AggregatedListBackendBucketsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AggregatedListBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListBackendBucketsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest; + + /** + * Creates a plain object from an AggregatedListBackendBucketsRequest message. Also converts values to other types if specified. + * @param message AggregatedListBackendBucketsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListBackendBucketsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListBackendBucketsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListBackendServicesRequest. */ interface IAggregatedListBackendServicesRequest { @@ -234862,6 +235316,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListGlobalVmExtensionPoliciesRequest. */ + interface IAggregatedListGlobalVmExtensionPoliciesRequest { + + /** AggregatedListGlobalVmExtensionPoliciesRequest filter */ + filter?: (string|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest project */ + project?: (string|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListGlobalVmExtensionPoliciesRequest. */ + class AggregatedListGlobalVmExtensionPoliciesRequest implements IAggregatedListGlobalVmExtensionPoliciesRequest { + + /** + * Constructs a new AggregatedListGlobalVmExtensionPoliciesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest); + + /** AggregatedListGlobalVmExtensionPoliciesRequest filter. */ + public filter?: (string|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest project. */ + public project: string; + + /** AggregatedListGlobalVmExtensionPoliciesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListGlobalVmExtensionPoliciesRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListGlobalVmExtensionPoliciesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListGlobalVmExtensionPoliciesRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest): google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest; + + /** + * Encodes the specified AggregatedListGlobalVmExtensionPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest.verify|verify} messages. + * @param message AggregatedListGlobalVmExtensionPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListGlobalVmExtensionPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest.verify|verify} messages. + * @param message AggregatedListGlobalVmExtensionPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListGlobalVmExtensionPoliciesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListGlobalVmExtensionPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest; + + /** + * Decodes an AggregatedListGlobalVmExtensionPoliciesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListGlobalVmExtensionPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest; + + /** + * Verifies an AggregatedListGlobalVmExtensionPoliciesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AggregatedListGlobalVmExtensionPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListGlobalVmExtensionPoliciesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest; + + /** + * Creates a plain object from an AggregatedListGlobalVmExtensionPoliciesRequest message. Also converts values to other types if specified. + * @param message AggregatedListGlobalVmExtensionPoliciesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListGlobalVmExtensionPoliciesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListGlobalVmExtensionPoliciesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListHealthChecksRequest. */ interface IAggregatedListHealthChecksRequest { @@ -237364,6 +237957,284 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListRegionCompositeHealthChecksRequest. */ + interface IAggregatedListRegionCompositeHealthChecksRequest { + + /** AggregatedListRegionCompositeHealthChecksRequest filter */ + filter?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListRegionCompositeHealthChecksRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListRegionCompositeHealthChecksRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest project */ + project?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListRegionCompositeHealthChecksRequest. */ + class AggregatedListRegionCompositeHealthChecksRequest implements IAggregatedListRegionCompositeHealthChecksRequest { + + /** + * Constructs a new AggregatedListRegionCompositeHealthChecksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest); + + /** AggregatedListRegionCompositeHealthChecksRequest filter. */ + public filter?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListRegionCompositeHealthChecksRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListRegionCompositeHealthChecksRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest project. */ + public project: string; + + /** AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListRegionCompositeHealthChecksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListRegionCompositeHealthChecksRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest): google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest; + + /** + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. + * @param message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. + * @param message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListRegionCompositeHealthChecksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest; + + /** + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListRegionCompositeHealthChecksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest; + + /** + * Verifies an AggregatedListRegionCompositeHealthChecksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AggregatedListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListRegionCompositeHealthChecksRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest; + + /** + * Creates a plain object from an AggregatedListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. + * @param message AggregatedListRegionCompositeHealthChecksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListRegionCompositeHealthChecksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListRegionCompositeHealthChecksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. */ + interface IAggregatedListRegionHealthAggregationPoliciesRequest { + + /** AggregatedListRegionHealthAggregationPoliciesRequest filter */ + filter?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest project */ + project?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListRegionHealthAggregationPoliciesRequest. */ + class AggregatedListRegionHealthAggregationPoliciesRequest implements IAggregatedListRegionHealthAggregationPoliciesRequest { + + /** + * Constructs a new AggregatedListRegionHealthAggregationPoliciesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest); + + /** AggregatedListRegionHealthAggregationPoliciesRequest filter. */ + public filter?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest project. */ + public project: string; + + /** AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListRegionHealthAggregationPoliciesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListRegionHealthAggregationPoliciesRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest): google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest; + + /** + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListRegionHealthAggregationPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest; + + /** + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListRegionHealthAggregationPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest; + + /** + * Verifies an AggregatedListRegionHealthAggregationPoliciesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AggregatedListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListRegionHealthAggregationPoliciesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest; + + /** + * Creates a plain object from an AggregatedListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. + * @param message AggregatedListRegionHealthAggregationPoliciesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListRegionHealthAggregationPoliciesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListRegionHealthAggregationPoliciesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListRegionHealthSourcesRequest. */ interface IAggregatedListRegionHealthSourcesRequest { @@ -239058,6 +239929,9 @@ export namespace google { /** AggregatedListSubnetworksRequest serviceProjectNumber */ serviceProjectNumber?: (number|Long|string|null); + + /** AggregatedListSubnetworksRequest views */ + views?: (string|null); } /** Represents an AggregatedListSubnetworksRequest. */ @@ -239093,6 +239967,9 @@ export namespace google { /** AggregatedListSubnetworksRequest serviceProjectNumber. */ public serviceProjectNumber?: (number|Long|string|null); + /** AggregatedListSubnetworksRequest views. */ + public views?: (string|null); + /** * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. * @param [properties] Properties to set @@ -239171,6 +240048,16 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace AggregatedListSubnetworksRequest { + + /** Views enum. */ + enum Views { + UNDEFINED_VIEWS = 0, + DEFAULT = 115302945, + WITH_UTILIZATION = 504090633 + } + } + /** Properties of an AggregatedListTargetHttpProxiesRequest. */ interface IAggregatedListTargetHttpProxiesRequest { @@ -240669,7 +241556,8 @@ export namespace google { VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E = 398926997, VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P = 517384376, VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 517384407, - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 517384438 + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 517384438, + VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X = 485271888 } /** WorkloadType enum. */ @@ -245258,6 +246146,9 @@ export namespace google { /** BackendBucket params */ params?: (google.cloud.compute.v1beta.IBackendBucketParams|null); + /** BackendBucket region */ + region?: (string|null); + /** BackendBucket selfLink */ selfLink?: (string|null); @@ -245313,6 +246204,9 @@ export namespace google { /** BackendBucket params. */ public params?: (google.cloud.compute.v1beta.IBackendBucketParams|null); + /** BackendBucket region. */ + public region?: (string|null); + /** BackendBucket selfLink. */ public selfLink?: (string|null); @@ -245409,10 +246303,138 @@ export namespace google { /** LoadBalancingScheme enum. */ enum LoadBalancingScheme { UNDEFINED_LOAD_BALANCING_SCHEME = 0, + EXTERNAL_MANAGED = 512006923, INTERNAL_MANAGED = 37350397 } } + /** Properties of a BackendBucketAggregatedList. */ + interface IBackendBucketAggregatedList { + + /** BackendBucketAggregatedList id */ + id?: (string|null); + + /** BackendBucketAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1beta.IBackendBucketsScopedList }|null); + + /** BackendBucketAggregatedList kind */ + kind?: (string|null); + + /** BackendBucketAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** BackendBucketAggregatedList selfLink */ + selfLink?: (string|null); + + /** BackendBucketAggregatedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a BackendBucketAggregatedList. */ + class BackendBucketAggregatedList implements IBackendBucketAggregatedList { + + /** + * Constructs a new BackendBucketAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IBackendBucketAggregatedList); + + /** BackendBucketAggregatedList id. */ + public id?: (string|null); + + /** BackendBucketAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1beta.IBackendBucketsScopedList }; + + /** BackendBucketAggregatedList kind. */ + public kind?: (string|null); + + /** BackendBucketAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** BackendBucketAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** BackendBucketAggregatedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new BackendBucketAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendBucketAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.IBackendBucketAggregatedList): google.cloud.compute.v1beta.BackendBucketAggregatedList; + + /** + * Encodes the specified BackendBucketAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.BackendBucketAggregatedList.verify|verify} messages. + * @param message BackendBucketAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IBackendBucketAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendBucketAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendBucketAggregatedList.verify|verify} messages. + * @param message BackendBucketAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IBackendBucketAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendBucketAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendBucketAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.BackendBucketAggregatedList; + + /** + * Decodes a BackendBucketAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendBucketAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.BackendBucketAggregatedList; + + /** + * Verifies a BackendBucketAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackendBucketAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendBucketAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.BackendBucketAggregatedList; + + /** + * Creates a plain object from a BackendBucketAggregatedList message. Also converts values to other types if specified. + * @param message BackendBucketAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.BackendBucketAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendBucketAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendBucketAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BackendBucketCdnPolicy. */ interface IBackendBucketCdnPolicy { @@ -246339,6 +247361,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BackendBucketsScopedList. */ + interface IBackendBucketsScopedList { + + /** BackendBucketsScopedList backendBuckets */ + backendBuckets?: (google.cloud.compute.v1beta.IBackendBucket[]|null); + + /** BackendBucketsScopedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a BackendBucketsScopedList. */ + class BackendBucketsScopedList implements IBackendBucketsScopedList { + + /** + * Constructs a new BackendBucketsScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IBackendBucketsScopedList); + + /** BackendBucketsScopedList backendBuckets. */ + public backendBuckets: google.cloud.compute.v1beta.IBackendBucket[]; + + /** BackendBucketsScopedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new BackendBucketsScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendBucketsScopedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.IBackendBucketsScopedList): google.cloud.compute.v1beta.BackendBucketsScopedList; + + /** + * Encodes the specified BackendBucketsScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.BackendBucketsScopedList.verify|verify} messages. + * @param message BackendBucketsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IBackendBucketsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendBucketsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendBucketsScopedList.verify|verify} messages. + * @param message BackendBucketsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IBackendBucketsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendBucketsScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendBucketsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.BackendBucketsScopedList; + + /** + * Decodes a BackendBucketsScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendBucketsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.BackendBucketsScopedList; + + /** + * Verifies a BackendBucketsScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackendBucketsScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendBucketsScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.BackendBucketsScopedList; + + /** + * Creates a plain object from a BackendBucketsScopedList message. Also converts values to other types if specified. + * @param message BackendBucketsScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.BackendBucketsScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendBucketsScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendBucketsScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BackendCustomMetric. */ interface IBackendCustomMetric { @@ -249738,6 +250863,9 @@ export namespace google { /** BackendServiceTlsSettings authenticationConfig */ authenticationConfig?: (string|null); + /** BackendServiceTlsSettings identity */ + identity?: (string|null); + /** BackendServiceTlsSettings sni */ sni?: (string|null); @@ -249757,6 +250885,9 @@ export namespace google { /** BackendServiceTlsSettings authenticationConfig. */ public authenticationConfig?: (string|null); + /** BackendServiceTlsSettings identity. */ + public identity?: (string|null); + /** BackendServiceTlsSettings sni. */ public sni?: (string|null); @@ -254801,6 +255932,526 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CompositeHealthCheck. */ + interface ICompositeHealthCheck { + + /** CompositeHealthCheck creationTimestamp */ + creationTimestamp?: (string|null); + + /** CompositeHealthCheck description */ + description?: (string|null); + + /** CompositeHealthCheck fingerprint */ + fingerprint?: (string|null); + + /** CompositeHealthCheck healthDestination */ + healthDestination?: (string|null); + + /** CompositeHealthCheck healthSources */ + healthSources?: (string[]|null); + + /** CompositeHealthCheck id */ + id?: (number|Long|string|null); + + /** CompositeHealthCheck kind */ + kind?: (string|null); + + /** CompositeHealthCheck name */ + name?: (string|null); + + /** CompositeHealthCheck region */ + region?: (string|null); + + /** CompositeHealthCheck selfLink */ + selfLink?: (string|null); + + /** CompositeHealthCheck selfLinkWithId */ + selfLinkWithId?: (string|null); + } + + /** Represents a CompositeHealthCheck. */ + class CompositeHealthCheck implements ICompositeHealthCheck { + + /** + * Constructs a new CompositeHealthCheck. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICompositeHealthCheck); + + /** CompositeHealthCheck creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** CompositeHealthCheck description. */ + public description?: (string|null); + + /** CompositeHealthCheck fingerprint. */ + public fingerprint?: (string|null); + + /** CompositeHealthCheck healthDestination. */ + public healthDestination?: (string|null); + + /** CompositeHealthCheck healthSources. */ + public healthSources: string[]; + + /** CompositeHealthCheck id. */ + public id?: (number|Long|string|null); + + /** CompositeHealthCheck kind. */ + public kind?: (string|null); + + /** CompositeHealthCheck name. */ + public name?: (string|null); + + /** CompositeHealthCheck region. */ + public region?: (string|null); + + /** CompositeHealthCheck selfLink. */ + public selfLink?: (string|null); + + /** CompositeHealthCheck selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** + * Creates a new CompositeHealthCheck instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthCheck instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICompositeHealthCheck): google.cloud.compute.v1beta.CompositeHealthCheck; + + /** + * Encodes the specified CompositeHealthCheck message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheck.verify|verify} messages. + * @param message CompositeHealthCheck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICompositeHealthCheck, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheck.verify|verify} messages. + * @param message CompositeHealthCheck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICompositeHealthCheck, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthCheck message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.CompositeHealthCheck; + + /** + * Decodes a CompositeHealthCheck message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.CompositeHealthCheck; + + /** + * Verifies a CompositeHealthCheck message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompositeHealthCheck message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthCheck + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CompositeHealthCheck; + + /** + * Creates a plain object from a CompositeHealthCheck message. Also converts values to other types if specified. + * @param message CompositeHealthCheck + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CompositeHealthCheck, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthCheck to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthCheck + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompositeHealthCheckAggregatedList. */ + interface ICompositeHealthCheckAggregatedList { + + /** CompositeHealthCheckAggregatedList id */ + id?: (string|null); + + /** CompositeHealthCheckAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1beta.ICompositeHealthChecksScopedList }|null); + + /** CompositeHealthCheckAggregatedList kind */ + kind?: (string|null); + + /** CompositeHealthCheckAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** CompositeHealthCheckAggregatedList selfLink */ + selfLink?: (string|null); + + /** CompositeHealthCheckAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** CompositeHealthCheckAggregatedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a CompositeHealthCheckAggregatedList. */ + class CompositeHealthCheckAggregatedList implements ICompositeHealthCheckAggregatedList { + + /** + * Constructs a new CompositeHealthCheckAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICompositeHealthCheckAggregatedList); + + /** CompositeHealthCheckAggregatedList id. */ + public id?: (string|null); + + /** CompositeHealthCheckAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1beta.ICompositeHealthChecksScopedList }; + + /** CompositeHealthCheckAggregatedList kind. */ + public kind?: (string|null); + + /** CompositeHealthCheckAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** CompositeHealthCheckAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** CompositeHealthCheckAggregatedList unreachables. */ + public unreachables: string[]; + + /** CompositeHealthCheckAggregatedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new CompositeHealthCheckAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthCheckAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICompositeHealthCheckAggregatedList): google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList; + + /** + * Encodes the specified CompositeHealthCheckAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList.verify|verify} messages. + * @param message CompositeHealthCheckAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICompositeHealthCheckAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthCheckAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList.verify|verify} messages. + * @param message CompositeHealthCheckAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICompositeHealthCheckAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthCheckAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthCheckAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList; + + /** + * Decodes a CompositeHealthCheckAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthCheckAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList; + + /** + * Verifies a CompositeHealthCheckAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompositeHealthCheckAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthCheckAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList; + + /** + * Creates a plain object from a CompositeHealthCheckAggregatedList message. Also converts values to other types if specified. + * @param message CompositeHealthCheckAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthCheckAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthCheckAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompositeHealthCheckList. */ + interface ICompositeHealthCheckList { + + /** CompositeHealthCheckList id */ + id?: (string|null); + + /** CompositeHealthCheckList items */ + items?: (google.cloud.compute.v1beta.ICompositeHealthCheck[]|null); + + /** CompositeHealthCheckList kind */ + kind?: (string|null); + + /** CompositeHealthCheckList nextPageToken */ + nextPageToken?: (string|null); + + /** CompositeHealthCheckList selfLink */ + selfLink?: (string|null); + + /** CompositeHealthCheckList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a CompositeHealthCheckList. */ + class CompositeHealthCheckList implements ICompositeHealthCheckList { + + /** + * Constructs a new CompositeHealthCheckList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICompositeHealthCheckList); + + /** CompositeHealthCheckList id. */ + public id?: (string|null); + + /** CompositeHealthCheckList items. */ + public items: google.cloud.compute.v1beta.ICompositeHealthCheck[]; + + /** CompositeHealthCheckList kind. */ + public kind?: (string|null); + + /** CompositeHealthCheckList nextPageToken. */ + public nextPageToken?: (string|null); + + /** CompositeHealthCheckList selfLink. */ + public selfLink?: (string|null); + + /** CompositeHealthCheckList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new CompositeHealthCheckList instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthCheckList instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICompositeHealthCheckList): google.cloud.compute.v1beta.CompositeHealthCheckList; + + /** + * Encodes the specified CompositeHealthCheckList message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckList.verify|verify} messages. + * @param message CompositeHealthCheckList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICompositeHealthCheckList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthCheckList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckList.verify|verify} messages. + * @param message CompositeHealthCheckList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICompositeHealthCheckList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthCheckList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthCheckList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.CompositeHealthCheckList; + + /** + * Decodes a CompositeHealthCheckList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthCheckList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.CompositeHealthCheckList; + + /** + * Verifies a CompositeHealthCheckList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompositeHealthCheckList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthCheckList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CompositeHealthCheckList; + + /** + * Creates a plain object from a CompositeHealthCheckList message. Also converts values to other types if specified. + * @param message CompositeHealthCheckList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CompositeHealthCheckList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthCheckList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthCheckList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompositeHealthChecksScopedList. */ + interface ICompositeHealthChecksScopedList { + + /** CompositeHealthChecksScopedList compositeHealthChecks */ + compositeHealthChecks?: (google.cloud.compute.v1beta.ICompositeHealthCheck[]|null); + + /** CompositeHealthChecksScopedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a CompositeHealthChecksScopedList. */ + class CompositeHealthChecksScopedList implements ICompositeHealthChecksScopedList { + + /** + * Constructs a new CompositeHealthChecksScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ICompositeHealthChecksScopedList); + + /** CompositeHealthChecksScopedList compositeHealthChecks. */ + public compositeHealthChecks: google.cloud.compute.v1beta.ICompositeHealthCheck[]; + + /** CompositeHealthChecksScopedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new CompositeHealthChecksScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthChecksScopedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.ICompositeHealthChecksScopedList): google.cloud.compute.v1beta.CompositeHealthChecksScopedList; + + /** + * Encodes the specified CompositeHealthChecksScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthChecksScopedList.verify|verify} messages. + * @param message CompositeHealthChecksScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ICompositeHealthChecksScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthChecksScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthChecksScopedList.verify|verify} messages. + * @param message CompositeHealthChecksScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ICompositeHealthChecksScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthChecksScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthChecksScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.CompositeHealthChecksScopedList; + + /** + * Decodes a CompositeHealthChecksScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthChecksScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.CompositeHealthChecksScopedList; + + /** + * Verifies a CompositeHealthChecksScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompositeHealthChecksScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthChecksScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.CompositeHealthChecksScopedList; + + /** + * Creates a plain object from a CompositeHealthChecksScopedList message. Also converts values to other types if specified. + * @param message CompositeHealthChecksScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.CompositeHealthChecksScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthChecksScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthChecksScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ConfidentialInstanceConfig. */ interface IConfidentialInstanceConfig { @@ -262804,6 +264455,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionBackendBucketRequest. */ + interface IDeleteRegionBackendBucketRequest { + + /** DeleteRegionBackendBucketRequest backendBucket */ + backendBucket?: (string|null); + + /** DeleteRegionBackendBucketRequest forceDelete */ + forceDelete?: (boolean|null); + + /** DeleteRegionBackendBucketRequest project */ + project?: (string|null); + + /** DeleteRegionBackendBucketRequest region */ + region?: (string|null); + + /** DeleteRegionBackendBucketRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionBackendBucketRequest. */ + class DeleteRegionBackendBucketRequest implements IDeleteRegionBackendBucketRequest { + + /** + * Constructs a new DeleteRegionBackendBucketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest); + + /** DeleteRegionBackendBucketRequest backendBucket. */ + public backendBucket: string; + + /** DeleteRegionBackendBucketRequest forceDelete. */ + public forceDelete?: (boolean|null); + + /** DeleteRegionBackendBucketRequest project. */ + public project: string; + + /** DeleteRegionBackendBucketRequest region. */ + public region: string; + + /** DeleteRegionBackendBucketRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new DeleteRegionBackendBucketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionBackendBucketRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest): google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest; + + /** + * Encodes the specified DeleteRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest.verify|verify} messages. + * @param message DeleteRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest.verify|verify} messages. + * @param message DeleteRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionBackendBucketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest; + + /** + * Decodes a DeleteRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest; + + /** + * Verifies a DeleteRegionBackendBucketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionBackendBucketRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest; + + /** + * Creates a plain object from a DeleteRegionBackendBucketRequest message. Also converts values to other types if specified. + * @param message DeleteRegionBackendBucketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionBackendBucketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionBackendBucketRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionBackendServiceRequest. */ interface IDeleteRegionBackendServiceRequest { @@ -262919,6 +264691,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionCompositeHealthCheckRequest. */ + interface IDeleteRegionCompositeHealthCheckRequest { + + /** DeleteRegionCompositeHealthCheckRequest compositeHealthCheck */ + compositeHealthCheck?: (string|null); + + /** DeleteRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** DeleteRegionCompositeHealthCheckRequest region */ + region?: (string|null); + + /** DeleteRegionCompositeHealthCheckRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionCompositeHealthCheckRequest. */ + class DeleteRegionCompositeHealthCheckRequest implements IDeleteRegionCompositeHealthCheckRequest { + + /** + * Constructs a new DeleteRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest); + + /** DeleteRegionCompositeHealthCheckRequest compositeHealthCheck. */ + public compositeHealthCheck: string; + + /** DeleteRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** DeleteRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** DeleteRegionCompositeHealthCheckRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new DeleteRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest): google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified DeleteRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message DeleteRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message DeleteRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest; + + /** + * Decodes a DeleteRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest; + + /** + * Verifies a DeleteRegionCompositeHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a DeleteRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message DeleteRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionDiskRequest. */ interface IDeleteRegionDiskRequest { @@ -263034,6 +264921,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionHealthAggregationPolicyRequest. */ + interface IDeleteRegionHealthAggregationPolicyRequest { + + /** DeleteRegionHealthAggregationPolicyRequest healthAggregationPolicy */ + healthAggregationPolicy?: (string|null); + + /** DeleteRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** DeleteRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + + /** DeleteRegionHealthAggregationPolicyRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionHealthAggregationPolicyRequest. */ + class DeleteRegionHealthAggregationPolicyRequest implements IDeleteRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new DeleteRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest); + + /** DeleteRegionHealthAggregationPolicyRequest healthAggregationPolicy. */ + public healthAggregationPolicy: string; + + /** DeleteRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** DeleteRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** DeleteRegionHealthAggregationPolicyRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new DeleteRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest): google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified DeleteRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message DeleteRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message DeleteRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest; + + /** + * Decodes a DeleteRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest; + + /** + * Verifies a DeleteRegionHealthAggregationPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from a DeleteRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message DeleteRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionHealthCheckRequest. */ interface IDeleteRegionHealthCheckRequest { @@ -268670,6 +270672,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteZoneVmExtensionPolicyRequest. */ + interface IDeleteZoneVmExtensionPolicyRequest { + + /** DeleteZoneVmExtensionPolicyRequest project */ + project?: (string|null); + + /** DeleteZoneVmExtensionPolicyRequest requestId */ + requestId?: (string|null); + + /** DeleteZoneVmExtensionPolicyRequest vmExtensionPolicy */ + vmExtensionPolicy?: (string|null); + + /** DeleteZoneVmExtensionPolicyRequest zone */ + zone?: (string|null); + } + + /** Represents a DeleteZoneVmExtensionPolicyRequest. */ + class DeleteZoneVmExtensionPolicyRequest implements IDeleteZoneVmExtensionPolicyRequest { + + /** + * Constructs a new DeleteZoneVmExtensionPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest); + + /** DeleteZoneVmExtensionPolicyRequest project. */ + public project: string; + + /** DeleteZoneVmExtensionPolicyRequest requestId. */ + public requestId?: (string|null); + + /** DeleteZoneVmExtensionPolicyRequest vmExtensionPolicy. */ + public vmExtensionPolicy: string; + + /** DeleteZoneVmExtensionPolicyRequest zone. */ + public zone: string; + + /** + * Creates a new DeleteZoneVmExtensionPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteZoneVmExtensionPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest): google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest; + + /** + * Encodes the specified DeleteZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest.verify|verify} messages. + * @param message DeleteZoneVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest.verify|verify} messages. + * @param message DeleteZoneVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteZoneVmExtensionPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest; + + /** + * Decodes a DeleteZoneVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest; + + /** + * Verifies a DeleteZoneVmExtensionPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteZoneVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteZoneVmExtensionPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest; + + /** + * Creates a plain object from a DeleteZoneVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @param message DeleteZoneVmExtensionPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteZoneVmExtensionPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteZoneVmExtensionPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a Denied. */ interface IDenied { @@ -279903,7 +282020,8 @@ export namespace google { VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E = 398926997, VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P = 517384376, VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 517384407, - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 517384438 + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 517384438, + VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X = 485271888 } /** WorkloadType enum. */ @@ -281563,6 +283681,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest. */ + interface IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest { + + /** GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest project */ + project?: (string|null); + + /** GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest resourceId */ + resourceId?: (string|null); + + /** GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest zone */ + zone?: (string|null); + } + + /** Represents a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest. */ + class GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest implements IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest { + + /** + * Constructs a new GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest); + + /** GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest project. */ + public project: string; + + /** GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest resourceId. */ + public resourceId: string; + + /** GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest zone. */ + public zone: string; + + /** + * Creates a new GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest): google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest; + + /** + * Encodes the specified GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.verify|verify} messages. + * @param message GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.verify|verify} messages. + * @param message GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest; + + /** + * Decodes a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest; + + /** + * Verifies a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest; + + /** + * Creates a plain object from a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message. Also converts values to other types if specified. + * @param message GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetBackendBucketRequest. */ interface IGetBackendBucketRequest { @@ -283968,6 +286195,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetGlobalVmExtensionPolicyRequest. */ + interface IGetGlobalVmExtensionPolicyRequest { + + /** GetGlobalVmExtensionPolicyRequest globalVmExtensionPolicy */ + globalVmExtensionPolicy?: (string|null); + + /** GetGlobalVmExtensionPolicyRequest project */ + project?: (string|null); + } + + /** Represents a GetGlobalVmExtensionPolicyRequest. */ + class GetGlobalVmExtensionPolicyRequest implements IGetGlobalVmExtensionPolicyRequest { + + /** + * Constructs a new GetGlobalVmExtensionPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest); + + /** GetGlobalVmExtensionPolicyRequest globalVmExtensionPolicy. */ + public globalVmExtensionPolicy: string; + + /** GetGlobalVmExtensionPolicyRequest project. */ + public project: string; + + /** + * Creates a new GetGlobalVmExtensionPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetGlobalVmExtensionPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest): google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest; + + /** + * Encodes the specified GetGlobalVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest.verify|verify} messages. + * @param message GetGlobalVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetGlobalVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest.verify|verify} messages. + * @param message GetGlobalVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetGlobalVmExtensionPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetGlobalVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest; + + /** + * Decodes a GetGlobalVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetGlobalVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest; + + /** + * Verifies a GetGlobalVmExtensionPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetGlobalVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetGlobalVmExtensionPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest; + + /** + * Creates a plain object from a GetGlobalVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @param message GetGlobalVmExtensionPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetGlobalVmExtensionPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetGlobalVmExtensionPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetGuestAttributesInstanceRequest. */ interface IGetGuestAttributesInstanceRequest { @@ -286305,6 +288635,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyRegionBackendBucketRequest. */ + interface IGetIamPolicyRegionBackendBucketRequest { + + /** GetIamPolicyRegionBackendBucketRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionBackendBucketRequest project */ + project?: (string|null); + + /** GetIamPolicyRegionBackendBucketRequest region */ + region?: (string|null); + + /** GetIamPolicyRegionBackendBucketRequest resource */ + resource?: (string|null); + } + + /** Represents a GetIamPolicyRegionBackendBucketRequest. */ + class GetIamPolicyRegionBackendBucketRequest implements IGetIamPolicyRegionBackendBucketRequest { + + /** + * Constructs a new GetIamPolicyRegionBackendBucketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest); + + /** GetIamPolicyRegionBackendBucketRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyRegionBackendBucketRequest project. */ + public project: string; + + /** GetIamPolicyRegionBackendBucketRequest region. */ + public region: string; + + /** GetIamPolicyRegionBackendBucketRequest resource. */ + public resource: string; + + /** + * Creates a new GetIamPolicyRegionBackendBucketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyRegionBackendBucketRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest): google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest; + + /** + * Encodes the specified GetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @param message GetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @param message GetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest; + + /** + * Decodes a GetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest; + + /** + * Verifies a GetIamPolicyRegionBackendBucketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIamPolicyRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyRegionBackendBucketRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest; + + /** + * Creates a plain object from a GetIamPolicyRegionBackendBucketRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyRegionBackendBucketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyRegionBackendBucketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyRegionBackendBucketRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyRegionBackendServiceRequest. */ interface IGetIamPolicyRegionBackendServiceRequest { @@ -286880,6 +289325,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyReservationBlockRequest. */ + interface IGetIamPolicyReservationBlockRequest { + + /** GetIamPolicyReservationBlockRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyReservationBlockRequest parentResource */ + parentResource?: (string|null); + + /** GetIamPolicyReservationBlockRequest project */ + project?: (string|null); + + /** GetIamPolicyReservationBlockRequest resource */ + resource?: (string|null); + + /** GetIamPolicyReservationBlockRequest zone */ + zone?: (string|null); + } + + /** Represents a GetIamPolicyReservationBlockRequest. */ + class GetIamPolicyReservationBlockRequest implements IGetIamPolicyReservationBlockRequest { + + /** + * Constructs a new GetIamPolicyReservationBlockRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest); + + /** GetIamPolicyReservationBlockRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyReservationBlockRequest parentResource. */ + public parentResource: string; + + /** GetIamPolicyReservationBlockRequest project. */ + public project: string; + + /** GetIamPolicyReservationBlockRequest resource. */ + public resource: string; + + /** GetIamPolicyReservationBlockRequest zone. */ + public zone: string; + + /** + * Creates a new GetIamPolicyReservationBlockRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyReservationBlockRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest): google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest; + + /** + * Encodes the specified GetIamPolicyReservationBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest.verify|verify} messages. + * @param message GetIamPolicyReservationBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyReservationBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest.verify|verify} messages. + * @param message GetIamPolicyReservationBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyReservationBlockRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyReservationBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest; + + /** + * Decodes a GetIamPolicyReservationBlockRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyReservationBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest; + + /** + * Verifies a GetIamPolicyReservationBlockRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIamPolicyReservationBlockRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyReservationBlockRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest; + + /** + * Creates a plain object from a GetIamPolicyReservationBlockRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyReservationBlockRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyReservationBlockRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyReservationBlockRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyReservationRequest. */ interface IGetIamPolicyReservationRequest { @@ -286995,6 +289561,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyReservationSubBlockRequest. */ + interface IGetIamPolicyReservationSubBlockRequest { + + /** GetIamPolicyReservationSubBlockRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyReservationSubBlockRequest parentResource */ + parentResource?: (string|null); + + /** GetIamPolicyReservationSubBlockRequest project */ + project?: (string|null); + + /** GetIamPolicyReservationSubBlockRequest resource */ + resource?: (string|null); + + /** GetIamPolicyReservationSubBlockRequest zone */ + zone?: (string|null); + } + + /** Represents a GetIamPolicyReservationSubBlockRequest. */ + class GetIamPolicyReservationSubBlockRequest implements IGetIamPolicyReservationSubBlockRequest { + + /** + * Constructs a new GetIamPolicyReservationSubBlockRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest); + + /** GetIamPolicyReservationSubBlockRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyReservationSubBlockRequest parentResource. */ + public parentResource: string; + + /** GetIamPolicyReservationSubBlockRequest project. */ + public project: string; + + /** GetIamPolicyReservationSubBlockRequest resource. */ + public resource: string; + + /** GetIamPolicyReservationSubBlockRequest zone. */ + public zone: string; + + /** + * Creates a new GetIamPolicyReservationSubBlockRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyReservationSubBlockRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest): google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest; + + /** + * Encodes the specified GetIamPolicyReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest.verify|verify} messages. + * @param message GetIamPolicyReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest.verify|verify} messages. + * @param message GetIamPolicyReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyReservationSubBlockRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest; + + /** + * Decodes a GetIamPolicyReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest; + + /** + * Verifies a GetIamPolicyReservationSubBlockRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIamPolicyReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyReservationSubBlockRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest; + + /** + * Creates a plain object from a GetIamPolicyReservationSubBlockRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyReservationSubBlockRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyReservationSubBlockRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyReservationSubBlockRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyResourcePolicyRequest. */ interface IGetIamPolicyResourcePolicyRequest { @@ -292195,6 +294882,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionBackendBucketRequest. */ + interface IGetRegionBackendBucketRequest { + + /** GetRegionBackendBucketRequest backendBucket */ + backendBucket?: (string|null); + + /** GetRegionBackendBucketRequest project */ + project?: (string|null); + + /** GetRegionBackendBucketRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionBackendBucketRequest. */ + class GetRegionBackendBucketRequest implements IGetRegionBackendBucketRequest { + + /** + * Constructs a new GetRegionBackendBucketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetRegionBackendBucketRequest); + + /** GetRegionBackendBucketRequest backendBucket. */ + public backendBucket: string; + + /** GetRegionBackendBucketRequest project. */ + public project: string; + + /** GetRegionBackendBucketRequest region. */ + public region: string; + + /** + * Creates a new GetRegionBackendBucketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionBackendBucketRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetRegionBackendBucketRequest): google.cloud.compute.v1beta.GetRegionBackendBucketRequest; + + /** + * Encodes the specified GetRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionBackendBucketRequest.verify|verify} messages. + * @param message GetRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionBackendBucketRequest.verify|verify} messages. + * @param message GetRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionBackendBucketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetRegionBackendBucketRequest; + + /** + * Decodes a GetRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetRegionBackendBucketRequest; + + /** + * Verifies a GetRegionBackendBucketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionBackendBucketRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetRegionBackendBucketRequest; + + /** + * Creates a plain object from a GetRegionBackendBucketRequest message. Also converts values to other types if specified. + * @param message GetRegionBackendBucketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetRegionBackendBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionBackendBucketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionBackendBucketRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionBackendServiceRequest. */ interface IGetRegionBackendServiceRequest { @@ -292413,6 +295209,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionCompositeHealthCheckRequest. */ + interface IGetRegionCompositeHealthCheckRequest { + + /** GetRegionCompositeHealthCheckRequest compositeHealthCheck */ + compositeHealthCheck?: (string|null); + + /** GetRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** GetRegionCompositeHealthCheckRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionCompositeHealthCheckRequest. */ + class GetRegionCompositeHealthCheckRequest implements IGetRegionCompositeHealthCheckRequest { + + /** + * Constructs a new GetRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest); + + /** GetRegionCompositeHealthCheckRequest compositeHealthCheck. */ + public compositeHealthCheck: string; + + /** GetRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** GetRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** + * Creates a new GetRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest): google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified GetRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message GetRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message GetRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest; + + /** + * Decodes a GetRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest; + + /** + * Verifies a GetRegionCompositeHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a GetRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message GetRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionDiskRequest. */ interface IGetRegionDiskRequest { @@ -292734,6 +295639,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionHealthAggregationPolicyRequest. */ + interface IGetRegionHealthAggregationPolicyRequest { + + /** GetRegionHealthAggregationPolicyRequest healthAggregationPolicy */ + healthAggregationPolicy?: (string|null); + + /** GetRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** GetRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionHealthAggregationPolicyRequest. */ + class GetRegionHealthAggregationPolicyRequest implements IGetRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new GetRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest); + + /** GetRegionHealthAggregationPolicyRequest healthAggregationPolicy. */ + public healthAggregationPolicy: string; + + /** GetRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** GetRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** + * Creates a new GetRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest): google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified GetRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message GetRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message GetRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest; + + /** + * Decodes a GetRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest; + + /** + * Verifies a GetRegionHealthAggregationPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from a GetRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message GetRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionHealthCheckRequest. */ interface IGetRegionHealthCheckRequest { @@ -295614,6 +298628,9 @@ export namespace google { /** GetReservationSubBlockRequest reservationSubBlock */ reservationSubBlock?: (string|null); + /** GetReservationSubBlockRequest view */ + view?: (string|null); + /** GetReservationSubBlockRequest zone */ zone?: (string|null); } @@ -295636,6 +298653,9 @@ export namespace google { /** GetReservationSubBlockRequest reservationSubBlock. */ public reservationSubBlock: string; + /** GetReservationSubBlockRequest view. */ + public view?: (string|null); + /** GetReservationSubBlockRequest zone. */ public zone: string; @@ -295717,6 +298737,17 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace GetReservationSubBlockRequest { + + /** View enum. */ + enum View { + UNDEFINED_VIEW = 0, + SUB_BLOCK_VIEW_BASIC = 236009797, + SUB_BLOCK_VIEW_FULL = 440711800, + SUB_BLOCK_VIEW_UNSPECIFIED = 246642446 + } + } + /** Properties of a GetResourcePolicyRequest. */ interface IGetResourcePolicyRequest { @@ -300263,6 +303294,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetZoneVmExtensionPolicyRequest. */ + interface IGetZoneVmExtensionPolicyRequest { + + /** GetZoneVmExtensionPolicyRequest project */ + project?: (string|null); + + /** GetZoneVmExtensionPolicyRequest vmExtensionPolicy */ + vmExtensionPolicy?: (string|null); + + /** GetZoneVmExtensionPolicyRequest zone */ + zone?: (string|null); + } + + /** Represents a GetZoneVmExtensionPolicyRequest. */ + class GetZoneVmExtensionPolicyRequest implements IGetZoneVmExtensionPolicyRequest { + + /** + * Constructs a new GetZoneVmExtensionPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest); + + /** GetZoneVmExtensionPolicyRequest project. */ + public project: string; + + /** GetZoneVmExtensionPolicyRequest vmExtensionPolicy. */ + public vmExtensionPolicy: string; + + /** GetZoneVmExtensionPolicyRequest zone. */ + public zone: string; + + /** + * Creates a new GetZoneVmExtensionPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetZoneVmExtensionPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest): google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest; + + /** + * Encodes the specified GetZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest.verify|verify} messages. + * @param message GetZoneVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest.verify|verify} messages. + * @param message GetZoneVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetZoneVmExtensionPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest; + + /** + * Decodes a GetZoneVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest; + + /** + * Verifies a GetZoneVmExtensionPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetZoneVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetZoneVmExtensionPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest; + + /** + * Creates a plain object from a GetZoneVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @param message GetZoneVmExtensionPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetZoneVmExtensionPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetZoneVmExtensionPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GlobalAddressesMoveRequest. */ interface IGlobalAddressesMoveRequest { @@ -300881,6 +304021,938 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GlobalVmExtensionPolicy. */ + interface IGlobalVmExtensionPolicy { + + /** GlobalVmExtensionPolicy creationTimestamp */ + creationTimestamp?: (string|null); + + /** GlobalVmExtensionPolicy description */ + description?: (string|null); + + /** GlobalVmExtensionPolicy extensionPolicies */ + extensionPolicies?: ({ [k: string]: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy }|null); + + /** GlobalVmExtensionPolicy id */ + id?: (number|Long|string|null); + + /** GlobalVmExtensionPolicy instanceSelectors */ + instanceSelectors?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector[]|null); + + /** GlobalVmExtensionPolicy kind */ + kind?: (string|null); + + /** GlobalVmExtensionPolicy name */ + name?: (string|null); + + /** GlobalVmExtensionPolicy priority */ + priority?: (number|null); + + /** GlobalVmExtensionPolicy rolloutOperation */ + rolloutOperation?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation|null); + + /** GlobalVmExtensionPolicy scopedResourceStatus */ + scopedResourceStatus?: (string|null); + + /** GlobalVmExtensionPolicy selfLink */ + selfLink?: (string|null); + + /** GlobalVmExtensionPolicy selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** GlobalVmExtensionPolicy updateTimestamp */ + updateTimestamp?: (string|null); + } + + /** Represents a GlobalVmExtensionPolicy. */ + class GlobalVmExtensionPolicy implements IGlobalVmExtensionPolicy { + + /** + * Constructs a new GlobalVmExtensionPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicy); + + /** GlobalVmExtensionPolicy creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** GlobalVmExtensionPolicy description. */ + public description?: (string|null); + + /** GlobalVmExtensionPolicy extensionPolicies. */ + public extensionPolicies: { [k: string]: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy }; + + /** GlobalVmExtensionPolicy id. */ + public id?: (number|Long|string|null); + + /** GlobalVmExtensionPolicy instanceSelectors. */ + public instanceSelectors: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector[]; + + /** GlobalVmExtensionPolicy kind. */ + public kind?: (string|null); + + /** GlobalVmExtensionPolicy name. */ + public name?: (string|null); + + /** GlobalVmExtensionPolicy priority. */ + public priority?: (number|null); + + /** GlobalVmExtensionPolicy rolloutOperation. */ + public rolloutOperation?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation|null); + + /** GlobalVmExtensionPolicy scopedResourceStatus. */ + public scopedResourceStatus?: (string|null); + + /** GlobalVmExtensionPolicy selfLink. */ + public selfLink?: (string|null); + + /** GlobalVmExtensionPolicy selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** GlobalVmExtensionPolicy updateTimestamp. */ + public updateTimestamp?: (string|null); + + /** + * Creates a new GlobalVmExtensionPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalVmExtensionPolicy instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicy): google.cloud.compute.v1beta.GlobalVmExtensionPolicy; + + /** + * Encodes the specified GlobalVmExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicy.verify|verify} messages. + * @param message GlobalVmExtensionPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalVmExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicy.verify|verify} messages. + * @param message GlobalVmExtensionPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalVmExtensionPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalVmExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GlobalVmExtensionPolicy; + + /** + * Decodes a GlobalVmExtensionPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalVmExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GlobalVmExtensionPolicy; + + /** + * Verifies a GlobalVmExtensionPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalVmExtensionPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalVmExtensionPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GlobalVmExtensionPolicy; + + /** + * Creates a plain object from a GlobalVmExtensionPolicy message. Also converts values to other types if specified. + * @param message GlobalVmExtensionPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GlobalVmExtensionPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalVmExtensionPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalVmExtensionPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GlobalVmExtensionPolicy { + + /** ScopedResourceStatus enum. */ + enum ScopedResourceStatus { + UNDEFINED_SCOPED_RESOURCE_STATUS = 0, + SCOPED_RESOURCE_STATUS_DELETING = 404198387, + SCOPED_RESOURCE_STATUS_UNSPECIFIED = 437941996 + } + } + + /** Properties of a GlobalVmExtensionPolicyExtensionPolicy. */ + interface IGlobalVmExtensionPolicyExtensionPolicy { + + /** GlobalVmExtensionPolicyExtensionPolicy pinnedVersion */ + pinnedVersion?: (string|null); + + /** GlobalVmExtensionPolicyExtensionPolicy stringConfig */ + stringConfig?: (string|null); + } + + /** Represents a GlobalVmExtensionPolicyExtensionPolicy. */ + class GlobalVmExtensionPolicyExtensionPolicy implements IGlobalVmExtensionPolicyExtensionPolicy { + + /** + * Constructs a new GlobalVmExtensionPolicyExtensionPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy); + + /** GlobalVmExtensionPolicyExtensionPolicy pinnedVersion. */ + public pinnedVersion?: (string|null); + + /** GlobalVmExtensionPolicyExtensionPolicy stringConfig. */ + public stringConfig?: (string|null); + + /** + * Creates a new GlobalVmExtensionPolicyExtensionPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalVmExtensionPolicyExtensionPolicy instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy): google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy; + + /** + * Encodes the specified GlobalVmExtensionPolicyExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @param message GlobalVmExtensionPolicyExtensionPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalVmExtensionPolicyExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @param message GlobalVmExtensionPolicyExtensionPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalVmExtensionPolicyExtensionPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalVmExtensionPolicyExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy; + + /** + * Decodes a GlobalVmExtensionPolicyExtensionPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalVmExtensionPolicyExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy; + + /** + * Verifies a GlobalVmExtensionPolicyExtensionPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalVmExtensionPolicyExtensionPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalVmExtensionPolicyExtensionPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyExtensionPolicy message. Also converts values to other types if specified. + * @param message GlobalVmExtensionPolicyExtensionPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalVmExtensionPolicyExtensionPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyExtensionPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GlobalVmExtensionPolicyInstanceSelector. */ + interface IGlobalVmExtensionPolicyInstanceSelector { + + /** GlobalVmExtensionPolicyInstanceSelector labelSelector */ + labelSelector?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector|null); + } + + /** Represents a GlobalVmExtensionPolicyInstanceSelector. */ + class GlobalVmExtensionPolicyInstanceSelector implements IGlobalVmExtensionPolicyInstanceSelector { + + /** + * Constructs a new GlobalVmExtensionPolicyInstanceSelector. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector); + + /** GlobalVmExtensionPolicyInstanceSelector labelSelector. */ + public labelSelector?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector|null); + + /** + * Creates a new GlobalVmExtensionPolicyInstanceSelector instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalVmExtensionPolicyInstanceSelector instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector): google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector; + + /** + * Encodes the specified GlobalVmExtensionPolicyInstanceSelector message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.verify|verify} messages. + * @param message GlobalVmExtensionPolicyInstanceSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalVmExtensionPolicyInstanceSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.verify|verify} messages. + * @param message GlobalVmExtensionPolicyInstanceSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalVmExtensionPolicyInstanceSelector message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalVmExtensionPolicyInstanceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector; + + /** + * Decodes a GlobalVmExtensionPolicyInstanceSelector message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalVmExtensionPolicyInstanceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector; + + /** + * Verifies a GlobalVmExtensionPolicyInstanceSelector message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalVmExtensionPolicyInstanceSelector message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalVmExtensionPolicyInstanceSelector + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyInstanceSelector message. Also converts values to other types if specified. + * @param message GlobalVmExtensionPolicyInstanceSelector + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalVmExtensionPolicyInstanceSelector to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyInstanceSelector + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GlobalVmExtensionPolicyLabelSelector. */ + interface IGlobalVmExtensionPolicyLabelSelector { + + /** GlobalVmExtensionPolicyLabelSelector inclusionLabels */ + inclusionLabels?: ({ [k: string]: string }|null); + } + + /** Represents a GlobalVmExtensionPolicyLabelSelector. */ + class GlobalVmExtensionPolicyLabelSelector implements IGlobalVmExtensionPolicyLabelSelector { + + /** + * Constructs a new GlobalVmExtensionPolicyLabelSelector. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector); + + /** GlobalVmExtensionPolicyLabelSelector inclusionLabels. */ + public inclusionLabels: { [k: string]: string }; + + /** + * Creates a new GlobalVmExtensionPolicyLabelSelector instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalVmExtensionPolicyLabelSelector instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector): google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector; + + /** + * Encodes the specified GlobalVmExtensionPolicyLabelSelector message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.verify|verify} messages. + * @param message GlobalVmExtensionPolicyLabelSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalVmExtensionPolicyLabelSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.verify|verify} messages. + * @param message GlobalVmExtensionPolicyLabelSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalVmExtensionPolicyLabelSelector message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalVmExtensionPolicyLabelSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector; + + /** + * Decodes a GlobalVmExtensionPolicyLabelSelector message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalVmExtensionPolicyLabelSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector; + + /** + * Verifies a GlobalVmExtensionPolicyLabelSelector message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalVmExtensionPolicyLabelSelector message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalVmExtensionPolicyLabelSelector + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyLabelSelector message. Also converts values to other types if specified. + * @param message GlobalVmExtensionPolicyLabelSelector + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalVmExtensionPolicyLabelSelector to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyLabelSelector + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GlobalVmExtensionPolicyRolloutOperation. */ + interface IGlobalVmExtensionPolicyRolloutOperation { + + /** GlobalVmExtensionPolicyRolloutOperation rolloutInput */ + rolloutInput?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput|null); + + /** GlobalVmExtensionPolicyRolloutOperation rolloutStatus */ + rolloutStatus?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus|null); + } + + /** Represents a GlobalVmExtensionPolicyRolloutOperation. */ + class GlobalVmExtensionPolicyRolloutOperation implements IGlobalVmExtensionPolicyRolloutOperation { + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation); + + /** GlobalVmExtensionPolicyRolloutOperation rolloutInput. */ + public rolloutInput?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput|null); + + /** GlobalVmExtensionPolicyRolloutOperation rolloutStatus. */ + public rolloutStatus?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus|null); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperation instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalVmExtensionPolicyRolloutOperation instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperation message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperation message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalVmExtensionPolicyRolloutOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalVmExtensionPolicyRolloutOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalVmExtensionPolicyRolloutOperation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperation message. Also converts values to other types if specified. + * @param message GlobalVmExtensionPolicyRolloutOperation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutInput. */ + interface IGlobalVmExtensionPolicyRolloutOperationRolloutInput { + + /** GlobalVmExtensionPolicyRolloutOperationRolloutInput conflictBehavior */ + conflictBehavior?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutInput name */ + name?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutInput predefinedRolloutPlan */ + predefinedRolloutPlan?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutInput retryUuid */ + retryUuid?: (string|null); + } + + /** Represents a GlobalVmExtensionPolicyRolloutOperationRolloutInput. */ + class GlobalVmExtensionPolicyRolloutOperationRolloutInput implements IGlobalVmExtensionPolicyRolloutOperationRolloutInput { + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperationRolloutInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutInput conflictBehavior. */ + public conflictBehavior?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutInput name. */ + public name?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutInput predefinedRolloutPlan. */ + public predefinedRolloutPlan?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutInput retryUuid. */ + public retryUuid?: (string|null); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperationRolloutInput instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutInput instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutInput message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutInput message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperationRolloutInput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperationRolloutInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperationRolloutInput message. Also converts values to other types if specified. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperationRolloutInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GlobalVmExtensionPolicyRolloutOperationRolloutInput { + + /** PredefinedRolloutPlan enum. */ + enum PredefinedRolloutPlan { + UNDEFINED_PREDEFINED_ROLLOUT_PLAN = 0, + FAST_ROLLOUT = 207153326, + ROLLOUT_PLAN_UNSPECIFIED = 144511983, + SLOW_ROLLOUT = 31032659 + } + } + + /** Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutStatus. */ + interface IGlobalVmExtensionPolicyRolloutOperationRolloutStatus { + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatus currentRollouts */ + currentRollouts?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata[]|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatus previousRollout */ + previousRollout?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata|null); + } + + /** Represents a GlobalVmExtensionPolicyRolloutOperationRolloutStatus. */ + class GlobalVmExtensionPolicyRolloutOperationRolloutStatus implements IGlobalVmExtensionPolicyRolloutOperationRolloutStatus { + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperationRolloutStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatus currentRollouts. */ + public currentRollouts: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata[]; + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatus previousRollout. */ + public previousRollout?: (google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata|null); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperationRolloutStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatus instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatus message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message. Also converts values to other types if specified. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperationRolloutStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. */ + interface IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata { + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rollout */ + rollout?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rolloutPlan */ + rolloutPlan?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata state */ + state?: (string|null); + } + + /** Represents a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. */ + class GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata implements IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata { + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rollout. */ + public rollout?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rolloutPlan. */ + public rolloutPlan?: (string|null); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata state. */ + public state?: (string|null); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message. Also converts values to other types if specified. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata { + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + STATE_CANCELLED = 534636259, + STATE_COMPLETED = 265728989, + STATE_FAILED = 50857931, + STATE_PAUSED = 337513660, + STATE_PROCESSING = 74195873, + STATE_UNKNOWN = 230861404, + STATE_UNSPECIFIED = 470755401 + } + } + /** Properties of a GroupMaintenanceInfo. */ interface IGroupMaintenanceInfo { @@ -301937,6 +306009,542 @@ export namespace google { } } + /** Properties of a HealthAggregationPoliciesScopedList. */ + interface IHealthAggregationPoliciesScopedList { + + /** HealthAggregationPoliciesScopedList healthAggregationPolicies */ + healthAggregationPolicies?: (google.cloud.compute.v1beta.IHealthAggregationPolicy[]|null); + + /** HealthAggregationPoliciesScopedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a HealthAggregationPoliciesScopedList. */ + class HealthAggregationPoliciesScopedList implements IHealthAggregationPoliciesScopedList { + + /** + * Constructs a new HealthAggregationPoliciesScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList); + + /** HealthAggregationPoliciesScopedList healthAggregationPolicies. */ + public healthAggregationPolicies: google.cloud.compute.v1beta.IHealthAggregationPolicy[]; + + /** HealthAggregationPoliciesScopedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new HealthAggregationPoliciesScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthAggregationPoliciesScopedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList): google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList; + + /** + * Encodes the specified HealthAggregationPoliciesScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.verify|verify} messages. + * @param message HealthAggregationPoliciesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthAggregationPoliciesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.verify|verify} messages. + * @param message HealthAggregationPoliciesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthAggregationPoliciesScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthAggregationPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList; + + /** + * Decodes a HealthAggregationPoliciesScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthAggregationPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList; + + /** + * Verifies a HealthAggregationPoliciesScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthAggregationPoliciesScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthAggregationPoliciesScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList; + + /** + * Creates a plain object from a HealthAggregationPoliciesScopedList message. Also converts values to other types if specified. + * @param message HealthAggregationPoliciesScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthAggregationPoliciesScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthAggregationPoliciesScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HealthAggregationPolicy. */ + interface IHealthAggregationPolicy { + + /** HealthAggregationPolicy creationTimestamp */ + creationTimestamp?: (string|null); + + /** HealthAggregationPolicy description */ + description?: (string|null); + + /** HealthAggregationPolicy fingerprint */ + fingerprint?: (string|null); + + /** HealthAggregationPolicy healthyPercentThreshold */ + healthyPercentThreshold?: (number|null); + + /** HealthAggregationPolicy id */ + id?: (number|Long|string|null); + + /** HealthAggregationPolicy kind */ + kind?: (string|null); + + /** HealthAggregationPolicy minHealthyThreshold */ + minHealthyThreshold?: (number|null); + + /** HealthAggregationPolicy name */ + name?: (string|null); + + /** HealthAggregationPolicy policyType */ + policyType?: (string|null); + + /** HealthAggregationPolicy region */ + region?: (string|null); + + /** HealthAggregationPolicy selfLink */ + selfLink?: (string|null); + + /** HealthAggregationPolicy selfLinkWithId */ + selfLinkWithId?: (string|null); + } + + /** Represents a HealthAggregationPolicy. */ + class HealthAggregationPolicy implements IHealthAggregationPolicy { + + /** + * Constructs a new HealthAggregationPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IHealthAggregationPolicy); + + /** HealthAggregationPolicy creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** HealthAggregationPolicy description. */ + public description?: (string|null); + + /** HealthAggregationPolicy fingerprint. */ + public fingerprint?: (string|null); + + /** HealthAggregationPolicy healthyPercentThreshold. */ + public healthyPercentThreshold?: (number|null); + + /** HealthAggregationPolicy id. */ + public id?: (number|Long|string|null); + + /** HealthAggregationPolicy kind. */ + public kind?: (string|null); + + /** HealthAggregationPolicy minHealthyThreshold. */ + public minHealthyThreshold?: (number|null); + + /** HealthAggregationPolicy name. */ + public name?: (string|null); + + /** HealthAggregationPolicy policyType. */ + public policyType?: (string|null); + + /** HealthAggregationPolicy region. */ + public region?: (string|null); + + /** HealthAggregationPolicy selfLink. */ + public selfLink?: (string|null); + + /** HealthAggregationPolicy selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** + * Creates a new HealthAggregationPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthAggregationPolicy instance + */ + public static create(properties?: google.cloud.compute.v1beta.IHealthAggregationPolicy): google.cloud.compute.v1beta.HealthAggregationPolicy; + + /** + * Encodes the specified HealthAggregationPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicy.verify|verify} messages. + * @param message HealthAggregationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IHealthAggregationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthAggregationPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicy.verify|verify} messages. + * @param message HealthAggregationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IHealthAggregationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthAggregationPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthAggregationPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.HealthAggregationPolicy; + + /** + * Decodes a HealthAggregationPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthAggregationPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.HealthAggregationPolicy; + + /** + * Verifies a HealthAggregationPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthAggregationPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthAggregationPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.HealthAggregationPolicy; + + /** + * Creates a plain object from a HealthAggregationPolicy message. Also converts values to other types if specified. + * @param message HealthAggregationPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.HealthAggregationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthAggregationPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthAggregationPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace HealthAggregationPolicy { + + /** PolicyType enum. */ + enum PolicyType { + UNDEFINED_POLICY_TYPE = 0, + BACKEND_SERVICE_POLICY = 415582023, + DNS_PUBLIC_IP_POLICY = 366354794 + } + } + + /** Properties of a HealthAggregationPolicyAggregatedList. */ + interface IHealthAggregationPolicyAggregatedList { + + /** HealthAggregationPolicyAggregatedList id */ + id?: (string|null); + + /** HealthAggregationPolicyAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList }|null); + + /** HealthAggregationPolicyAggregatedList kind */ + kind?: (string|null); + + /** HealthAggregationPolicyAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** HealthAggregationPolicyAggregatedList selfLink */ + selfLink?: (string|null); + + /** HealthAggregationPolicyAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** HealthAggregationPolicyAggregatedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a HealthAggregationPolicyAggregatedList. */ + class HealthAggregationPolicyAggregatedList implements IHealthAggregationPolicyAggregatedList { + + /** + * Constructs a new HealthAggregationPolicyAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IHealthAggregationPolicyAggregatedList); + + /** HealthAggregationPolicyAggregatedList id. */ + public id?: (string|null); + + /** HealthAggregationPolicyAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList }; + + /** HealthAggregationPolicyAggregatedList kind. */ + public kind?: (string|null); + + /** HealthAggregationPolicyAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** HealthAggregationPolicyAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** HealthAggregationPolicyAggregatedList unreachables. */ + public unreachables: string[]; + + /** HealthAggregationPolicyAggregatedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new HealthAggregationPolicyAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthAggregationPolicyAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.IHealthAggregationPolicyAggregatedList): google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList; + + /** + * Encodes the specified HealthAggregationPolicyAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList.verify|verify} messages. + * @param message HealthAggregationPolicyAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IHealthAggregationPolicyAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthAggregationPolicyAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList.verify|verify} messages. + * @param message HealthAggregationPolicyAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IHealthAggregationPolicyAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthAggregationPolicyAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthAggregationPolicyAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList; + + /** + * Decodes a HealthAggregationPolicyAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthAggregationPolicyAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList; + + /** + * Verifies a HealthAggregationPolicyAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthAggregationPolicyAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthAggregationPolicyAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList; + + /** + * Creates a plain object from a HealthAggregationPolicyAggregatedList message. Also converts values to other types if specified. + * @param message HealthAggregationPolicyAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthAggregationPolicyAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthAggregationPolicyAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HealthAggregationPolicyList. */ + interface IHealthAggregationPolicyList { + + /** HealthAggregationPolicyList id */ + id?: (string|null); + + /** HealthAggregationPolicyList items */ + items?: (google.cloud.compute.v1beta.IHealthAggregationPolicy[]|null); + + /** HealthAggregationPolicyList kind */ + kind?: (string|null); + + /** HealthAggregationPolicyList nextPageToken */ + nextPageToken?: (string|null); + + /** HealthAggregationPolicyList selfLink */ + selfLink?: (string|null); + + /** HealthAggregationPolicyList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a HealthAggregationPolicyList. */ + class HealthAggregationPolicyList implements IHealthAggregationPolicyList { + + /** + * Constructs a new HealthAggregationPolicyList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IHealthAggregationPolicyList); + + /** HealthAggregationPolicyList id. */ + public id?: (string|null); + + /** HealthAggregationPolicyList items. */ + public items: google.cloud.compute.v1beta.IHealthAggregationPolicy[]; + + /** HealthAggregationPolicyList kind. */ + public kind?: (string|null); + + /** HealthAggregationPolicyList nextPageToken. */ + public nextPageToken?: (string|null); + + /** HealthAggregationPolicyList selfLink. */ + public selfLink?: (string|null); + + /** HealthAggregationPolicyList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new HealthAggregationPolicyList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthAggregationPolicyList instance + */ + public static create(properties?: google.cloud.compute.v1beta.IHealthAggregationPolicyList): google.cloud.compute.v1beta.HealthAggregationPolicyList; + + /** + * Encodes the specified HealthAggregationPolicyList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicyList.verify|verify} messages. + * @param message HealthAggregationPolicyList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IHealthAggregationPolicyList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthAggregationPolicyList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicyList.verify|verify} messages. + * @param message HealthAggregationPolicyList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IHealthAggregationPolicyList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthAggregationPolicyList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthAggregationPolicyList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.HealthAggregationPolicyList; + + /** + * Decodes a HealthAggregationPolicyList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthAggregationPolicyList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.HealthAggregationPolicyList; + + /** + * Verifies a HealthAggregationPolicyList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthAggregationPolicyList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthAggregationPolicyList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.HealthAggregationPolicyList; + + /** + * Creates a plain object from a HealthAggregationPolicyList message. Also converts values to other types if specified. + * @param message HealthAggregationPolicyList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.HealthAggregationPolicyList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthAggregationPolicyList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthAggregationPolicyList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HealthCheck. */ interface IHealthCheck { @@ -303325,6 +307933,9 @@ export namespace google { /** HealthSourceAggregatedList selfLink */ selfLink?: (string|null); + /** HealthSourceAggregatedList unreachables */ + unreachables?: (string[]|null); + /** HealthSourceAggregatedList warning */ warning?: (google.cloud.compute.v1beta.IWarning|null); } @@ -303353,6 +307964,9 @@ export namespace google { /** HealthSourceAggregatedList selfLink. */ public selfLink?: (string|null); + /** HealthSourceAggregatedList unreachables. */ + public unreachables: string[]; + /** HealthSourceAggregatedList warning. */ public warning?: (google.cloud.compute.v1beta.IWarning|null); @@ -311296,6 +315910,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionBackendBucketRequest. */ + interface IInsertRegionBackendBucketRequest { + + /** InsertRegionBackendBucketRequest backendBucketResource */ + backendBucketResource?: (google.cloud.compute.v1beta.IBackendBucket|null); + + /** InsertRegionBackendBucketRequest project */ + project?: (string|null); + + /** InsertRegionBackendBucketRequest region */ + region?: (string|null); + + /** InsertRegionBackendBucketRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertRegionBackendBucketRequest. */ + class InsertRegionBackendBucketRequest implements IInsertRegionBackendBucketRequest { + + /** + * Constructs a new InsertRegionBackendBucketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest); + + /** InsertRegionBackendBucketRequest backendBucketResource. */ + public backendBucketResource?: (google.cloud.compute.v1beta.IBackendBucket|null); + + /** InsertRegionBackendBucketRequest project. */ + public project: string; + + /** InsertRegionBackendBucketRequest region. */ + public region: string; + + /** InsertRegionBackendBucketRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new InsertRegionBackendBucketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionBackendBucketRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest): google.cloud.compute.v1beta.InsertRegionBackendBucketRequest; + + /** + * Encodes the specified InsertRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionBackendBucketRequest.verify|verify} messages. + * @param message InsertRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionBackendBucketRequest.verify|verify} messages. + * @param message InsertRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionBackendBucketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InsertRegionBackendBucketRequest; + + /** + * Decodes an InsertRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InsertRegionBackendBucketRequest; + + /** + * Verifies an InsertRegionBackendBucketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InsertRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionBackendBucketRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InsertRegionBackendBucketRequest; + + /** + * Creates a plain object from an InsertRegionBackendBucketRequest message. Also converts values to other types if specified. + * @param message InsertRegionBackendBucketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InsertRegionBackendBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionBackendBucketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionBackendBucketRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionBackendServiceRequest. */ interface IInsertRegionBackendServiceRequest { @@ -311526,6 +316255,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionCompositeHealthCheckRequest. */ + interface IInsertRegionCompositeHealthCheckRequest { + + /** InsertRegionCompositeHealthCheckRequest compositeHealthCheckResource */ + compositeHealthCheckResource?: (google.cloud.compute.v1beta.ICompositeHealthCheck|null); + + /** InsertRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** InsertRegionCompositeHealthCheckRequest region */ + region?: (string|null); + + /** InsertRegionCompositeHealthCheckRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertRegionCompositeHealthCheckRequest. */ + class InsertRegionCompositeHealthCheckRequest implements IInsertRegionCompositeHealthCheckRequest { + + /** + * Constructs a new InsertRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest); + + /** InsertRegionCompositeHealthCheckRequest compositeHealthCheckResource. */ + public compositeHealthCheckResource?: (google.cloud.compute.v1beta.ICompositeHealthCheck|null); + + /** InsertRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** InsertRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** InsertRegionCompositeHealthCheckRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new InsertRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest): google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified InsertRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message InsertRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message InsertRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest; + + /** + * Decodes an InsertRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest; + + /** + * Verifies an InsertRegionCompositeHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InsertRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from an InsertRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message InsertRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionDiskRequest. */ interface IInsertRegionDiskRequest { @@ -311647,6 +316491,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionHealthAggregationPolicyRequest. */ + interface IInsertRegionHealthAggregationPolicyRequest { + + /** InsertRegionHealthAggregationPolicyRequest healthAggregationPolicyResource */ + healthAggregationPolicyResource?: (google.cloud.compute.v1beta.IHealthAggregationPolicy|null); + + /** InsertRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** InsertRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + + /** InsertRegionHealthAggregationPolicyRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertRegionHealthAggregationPolicyRequest. */ + class InsertRegionHealthAggregationPolicyRequest implements IInsertRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new InsertRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest); + + /** InsertRegionHealthAggregationPolicyRequest healthAggregationPolicyResource. */ + public healthAggregationPolicyResource?: (google.cloud.compute.v1beta.IHealthAggregationPolicy|null); + + /** InsertRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** InsertRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** InsertRegionHealthAggregationPolicyRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new InsertRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest): google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified InsertRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message InsertRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message InsertRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest; + + /** + * Decodes an InsertRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest; + + /** + * Verifies an InsertRegionHealthAggregationPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InsertRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from an InsertRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message InsertRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionHealthCheckRequest. */ interface IInsertRegionHealthCheckRequest { @@ -316550,6 +321509,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertZoneVmExtensionPolicyRequest. */ + interface IInsertZoneVmExtensionPolicyRequest { + + /** InsertZoneVmExtensionPolicyRequest project */ + project?: (string|null); + + /** InsertZoneVmExtensionPolicyRequest requestId */ + requestId?: (string|null); + + /** InsertZoneVmExtensionPolicyRequest vmExtensionPolicyResource */ + vmExtensionPolicyResource?: (google.cloud.compute.v1beta.IVmExtensionPolicy|null); + + /** InsertZoneVmExtensionPolicyRequest zone */ + zone?: (string|null); + } + + /** Represents an InsertZoneVmExtensionPolicyRequest. */ + class InsertZoneVmExtensionPolicyRequest implements IInsertZoneVmExtensionPolicyRequest { + + /** + * Constructs a new InsertZoneVmExtensionPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest); + + /** InsertZoneVmExtensionPolicyRequest project. */ + public project: string; + + /** InsertZoneVmExtensionPolicyRequest requestId. */ + public requestId?: (string|null); + + /** InsertZoneVmExtensionPolicyRequest vmExtensionPolicyResource. */ + public vmExtensionPolicyResource?: (google.cloud.compute.v1beta.IVmExtensionPolicy|null); + + /** InsertZoneVmExtensionPolicyRequest zone. */ + public zone: string; + + /** + * Creates a new InsertZoneVmExtensionPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertZoneVmExtensionPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest): google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest; + + /** + * Encodes the specified InsertZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest.verify|verify} messages. + * @param message InsertZoneVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest.verify|verify} messages. + * @param message InsertZoneVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertZoneVmExtensionPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest; + + /** + * Decodes an InsertZoneVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest; + + /** + * Verifies an InsertZoneVmExtensionPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InsertZoneVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertZoneVmExtensionPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest; + + /** + * Creates a plain object from an InsertZoneVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @param message InsertZoneVmExtensionPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertZoneVmExtensionPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertZoneVmExtensionPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an Instance. */ interface IInstance { @@ -321763,6 +326837,217 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse. */ + interface IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse { + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse acceleratorTopologiesInfo */ + acceleratorTopologiesInfo?: ({ [k: string]: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo }|null); + } + + /** Represents an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse. */ + class InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse implements IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse { + + /** + * Constructs a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse acceleratorTopologiesInfo. */ + public acceleratorTopologiesInfo: { [k: string]: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo }; + + /** + * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.verify|verify} messages. + * @param message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.verify|verify} messages. + * @param message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse; + + /** + * Verifies an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse; + + /** + * Creates a plain object from an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message. Also converts values to other types if specified. + * @param message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo. */ + interface IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo { + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopology */ + acceleratorTopology?: (string|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyHealth */ + acceleratorTopologyHealth?: (string|null); + } + + /** Represents an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo. */ + class InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo implements IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo { + + /** + * Constructs a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopology. */ + public acceleratorTopology?: (string|null); + + /** InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyHealth. */ + public acceleratorTopologyHealth?: (string|null); + + /** + * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.verify|verify} messages. + * @param message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.verify|verify} messages. + * @param message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo; + + /** + * Verifies an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo; + + /** + * Creates a plain object from an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message. Also converts values to other types if specified. + * @param message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo { + + /** AcceleratorTopologyHealth enum. */ + enum AcceleratorTopologyHealth { + UNDEFINED_ACCELERATOR_TOPOLOGY_HEALTH = 0, + DEGRADED = 396890926, + HEALTHY = 439801213, + UNHEALTHY = 462118084 + } + } + /** Properties of an InstanceGroupManagersListErrorsResponse. */ interface IInstanceGroupManagersListErrorsResponse { @@ -328783,6 +334068,9 @@ export namespace google { /** Interconnect operationalStatus */ operationalStatus?: (string|null); + /** Interconnect params */ + params?: (google.cloud.compute.v1beta.IInterconnectParams|null); + /** Interconnect peerIpAddress */ peerIpAddress?: (string|null); @@ -328898,6 +334186,9 @@ export namespace google { /** Interconnect operationalStatus. */ public operationalStatus?: (string|null); + /** Interconnect params. */ + public params?: (google.cloud.compute.v1beta.IInterconnectParams|null); + /** Interconnect peerIpAddress. */ public peerIpAddress?: (string|null); @@ -329557,6 +334848,9 @@ export namespace google { /** InterconnectAttachment kind */ kind?: (string|null); + /** InterconnectAttachment l2Forwarding */ + l2Forwarding?: (google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding|null); + /** InterconnectAttachment labelFingerprint */ labelFingerprint?: (string|null); @@ -329575,6 +334869,9 @@ export namespace google { /** InterconnectAttachment pairingKey */ pairingKey?: (string|null); + /** InterconnectAttachment params */ + params?: (google.cloud.compute.v1beta.IInterconnectAttachmentParams|null); + /** InterconnectAttachment partnerAsn */ partnerAsn?: (number|Long|string|null); @@ -329702,6 +334999,9 @@ export namespace google { /** InterconnectAttachment kind. */ public kind?: (string|null); + /** InterconnectAttachment l2Forwarding. */ + public l2Forwarding?: (google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding|null); + /** InterconnectAttachment labelFingerprint. */ public labelFingerprint?: (string|null); @@ -329720,6 +335020,9 @@ export namespace google { /** InterconnectAttachment pairingKey. */ public pairingKey?: (string|null); + /** InterconnectAttachment params. */ + public params?: (google.cloud.compute.v1beta.IInterconnectAttachmentParams|null); + /** InterconnectAttachment partnerAsn. */ public partnerAsn?: (number|Long|string|null); @@ -329902,6 +335205,7 @@ export namespace google { enum Type { UNDEFINED_TYPE = 0, DEDICATED = 258411983, + L2_DEDICATED = 336595510, PARTNER = 461924520, PARTNER_PROVIDER = 483261352 } @@ -332016,6 +337320,436 @@ export namespace google { } } + /** Properties of an InterconnectAttachmentL2Forwarding. */ + interface IInterconnectAttachmentL2Forwarding { + + /** InterconnectAttachmentL2Forwarding applianceMappings */ + applianceMappings?: ({ [k: string]: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping }|null); + + /** InterconnectAttachmentL2Forwarding defaultApplianceIpAddress */ + defaultApplianceIpAddress?: (string|null); + + /** InterconnectAttachmentL2Forwarding geneveHeader */ + geneveHeader?: (google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader|null); + + /** InterconnectAttachmentL2Forwarding network */ + network?: (string|null); + + /** InterconnectAttachmentL2Forwarding tunnelEndpointIpAddress */ + tunnelEndpointIpAddress?: (string|null); + } + + /** Represents an InterconnectAttachmentL2Forwarding. */ + class InterconnectAttachmentL2Forwarding implements IInterconnectAttachmentL2Forwarding { + + /** + * Constructs a new InterconnectAttachmentL2Forwarding. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding); + + /** InterconnectAttachmentL2Forwarding applianceMappings. */ + public applianceMappings: { [k: string]: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping }; + + /** InterconnectAttachmentL2Forwarding defaultApplianceIpAddress. */ + public defaultApplianceIpAddress?: (string|null); + + /** InterconnectAttachmentL2Forwarding geneveHeader. */ + public geneveHeader?: (google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader|null); + + /** InterconnectAttachmentL2Forwarding network. */ + public network?: (string|null); + + /** InterconnectAttachmentL2Forwarding tunnelEndpointIpAddress. */ + public tunnelEndpointIpAddress?: (string|null); + + /** + * Creates a new InterconnectAttachmentL2Forwarding instance using the specified properties. + * @param [properties] Properties to set + * @returns InterconnectAttachmentL2Forwarding instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding): google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding; + + /** + * Encodes the specified InterconnectAttachmentL2Forwarding message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.verify|verify} messages. + * @param message InterconnectAttachmentL2Forwarding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InterconnectAttachmentL2Forwarding message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.verify|verify} messages. + * @param message InterconnectAttachmentL2Forwarding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InterconnectAttachmentL2Forwarding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InterconnectAttachmentL2Forwarding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding; + + /** + * Decodes an InterconnectAttachmentL2Forwarding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InterconnectAttachmentL2Forwarding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding; + + /** + * Verifies an InterconnectAttachmentL2Forwarding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InterconnectAttachmentL2Forwarding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InterconnectAttachmentL2Forwarding + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding; + + /** + * Creates a plain object from an InterconnectAttachmentL2Forwarding message. Also converts values to other types if specified. + * @param message InterconnectAttachmentL2Forwarding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InterconnectAttachmentL2Forwarding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InterconnectAttachmentL2Forwarding + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InterconnectAttachmentL2ForwardingApplianceMapping. */ + interface IInterconnectAttachmentL2ForwardingApplianceMapping { + + /** InterconnectAttachmentL2ForwardingApplianceMapping applianceIpAddress */ + applianceIpAddress?: (string|null); + + /** InterconnectAttachmentL2ForwardingApplianceMapping innerVlanToApplianceMappings */ + innerVlanToApplianceMappings?: (google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping[]|null); + + /** InterconnectAttachmentL2ForwardingApplianceMapping name */ + name?: (string|null); + } + + /** Represents an InterconnectAttachmentL2ForwardingApplianceMapping. */ + class InterconnectAttachmentL2ForwardingApplianceMapping implements IInterconnectAttachmentL2ForwardingApplianceMapping { + + /** + * Constructs a new InterconnectAttachmentL2ForwardingApplianceMapping. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping); + + /** InterconnectAttachmentL2ForwardingApplianceMapping applianceIpAddress. */ + public applianceIpAddress?: (string|null); + + /** InterconnectAttachmentL2ForwardingApplianceMapping innerVlanToApplianceMappings. */ + public innerVlanToApplianceMappings: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping[]; + + /** InterconnectAttachmentL2ForwardingApplianceMapping name. */ + public name?: (string|null); + + /** + * Creates a new InterconnectAttachmentL2ForwardingApplianceMapping instance using the specified properties. + * @param [properties] Properties to set + * @returns InterconnectAttachmentL2ForwardingApplianceMapping instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingApplianceMapping message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.verify|verify} messages. + * @param message InterconnectAttachmentL2ForwardingApplianceMapping message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingApplianceMapping message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.verify|verify} messages. + * @param message InterconnectAttachmentL2ForwardingApplianceMapping message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InterconnectAttachmentL2ForwardingApplianceMapping message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InterconnectAttachmentL2ForwardingApplianceMapping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping; + + /** + * Decodes an InterconnectAttachmentL2ForwardingApplianceMapping message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InterconnectAttachmentL2ForwardingApplianceMapping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping; + + /** + * Verifies an InterconnectAttachmentL2ForwardingApplianceMapping message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InterconnectAttachmentL2ForwardingApplianceMapping message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InterconnectAttachmentL2ForwardingApplianceMapping + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping; + + /** + * Creates a plain object from an InterconnectAttachmentL2ForwardingApplianceMapping message. Also converts values to other types if specified. + * @param message InterconnectAttachmentL2ForwardingApplianceMapping + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InterconnectAttachmentL2ForwardingApplianceMapping to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InterconnectAttachmentL2ForwardingApplianceMapping + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping. */ + interface IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping { + + /** InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping innerApplianceIpAddress */ + innerApplianceIpAddress?: (string|null); + + /** InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping innerVlanTags */ + innerVlanTags?: (string[]|null); + } + + /** Represents an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping. */ + class InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping implements IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping { + + /** + * Constructs a new InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping); + + /** InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping innerApplianceIpAddress. */ + public innerApplianceIpAddress?: (string|null); + + /** InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping innerVlanTags. */ + public innerVlanTags: string[]; + + /** + * Creates a new InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping instance using the specified properties. + * @param [properties] Properties to set + * @returns InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.verify|verify} messages. + * @param message InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.verify|verify} messages. + * @param message InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping; + + /** + * Decodes an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping; + + /** + * Verifies an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping; + + /** + * Creates a plain object from an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message. Also converts values to other types if specified. + * @param message InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InterconnectAttachmentL2ForwardingGeneveHeader. */ + interface IInterconnectAttachmentL2ForwardingGeneveHeader { + + /** InterconnectAttachmentL2ForwardingGeneveHeader vni */ + vni?: (number|null); + } + + /** Represents an InterconnectAttachmentL2ForwardingGeneveHeader. */ + class InterconnectAttachmentL2ForwardingGeneveHeader implements IInterconnectAttachmentL2ForwardingGeneveHeader { + + /** + * Constructs a new InterconnectAttachmentL2ForwardingGeneveHeader. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader); + + /** InterconnectAttachmentL2ForwardingGeneveHeader vni. */ + public vni?: (number|null); + + /** + * Creates a new InterconnectAttachmentL2ForwardingGeneveHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns InterconnectAttachmentL2ForwardingGeneveHeader instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingGeneveHeader message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader.verify|verify} messages. + * @param message InterconnectAttachmentL2ForwardingGeneveHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingGeneveHeader message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader.verify|verify} messages. + * @param message InterconnectAttachmentL2ForwardingGeneveHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InterconnectAttachmentL2ForwardingGeneveHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InterconnectAttachmentL2ForwardingGeneveHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader; + + /** + * Decodes an InterconnectAttachmentL2ForwardingGeneveHeader message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InterconnectAttachmentL2ForwardingGeneveHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader; + + /** + * Verifies an InterconnectAttachmentL2ForwardingGeneveHeader message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InterconnectAttachmentL2ForwardingGeneveHeader message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InterconnectAttachmentL2ForwardingGeneveHeader + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader; + + /** + * Creates a plain object from an InterconnectAttachmentL2ForwardingGeneveHeader message. Also converts values to other types if specified. + * @param message InterconnectAttachmentL2ForwardingGeneveHeader + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InterconnectAttachmentL2ForwardingGeneveHeader to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InterconnectAttachmentL2ForwardingGeneveHeader + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InterconnectAttachmentList. */ interface IInterconnectAttachmentList { @@ -332143,6 +337877,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InterconnectAttachmentParams. */ + interface IInterconnectAttachmentParams { + + /** InterconnectAttachmentParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents an InterconnectAttachmentParams. */ + class InterconnectAttachmentParams implements IInterconnectAttachmentParams { + + /** + * Constructs a new InterconnectAttachmentParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentParams); + + /** InterconnectAttachmentParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new InterconnectAttachmentParams instance using the specified properties. + * @param [properties] Properties to set + * @returns InterconnectAttachmentParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInterconnectAttachmentParams): google.cloud.compute.v1beta.InterconnectAttachmentParams; + + /** + * Encodes the specified InterconnectAttachmentParams message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentParams.verify|verify} messages. + * @param message InterconnectAttachmentParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInterconnectAttachmentParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InterconnectAttachmentParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentParams.verify|verify} messages. + * @param message InterconnectAttachmentParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInterconnectAttachmentParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InterconnectAttachmentParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InterconnectAttachmentParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InterconnectAttachmentParams; + + /** + * Decodes an InterconnectAttachmentParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InterconnectAttachmentParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InterconnectAttachmentParams; + + /** + * Verifies an InterconnectAttachmentParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InterconnectAttachmentParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InterconnectAttachmentParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InterconnectAttachmentParams; + + /** + * Creates a plain object from an InterconnectAttachmentParams message. Also converts values to other types if specified. + * @param message InterconnectAttachmentParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InterconnectAttachmentParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InterconnectAttachmentParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InterconnectAttachmentParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InterconnectAttachmentPartnerMetadata. */ interface IInterconnectAttachmentPartnerMetadata { @@ -334716,6 +340547,7 @@ export namespace google { enum RequestedFeatures { UNDEFINED_REQUESTED_FEATURES = 0, IF_CROSS_SITE_NETWORK = 469111095, + IF_L2_FORWARDING = 125563860, IF_MACSEC = 396279300 } } @@ -335662,6 +341494,7 @@ export namespace google { enum AvailableFeatures { UNDEFINED_AVAILABLE_FEATURES = 0, IF_CROSS_SITE_NETWORK = 469111095, + IF_L2_FORWARDING = 125563860, IF_MACSEC = 396279300 } @@ -335926,6 +341759,9 @@ export namespace google { /** InterconnectLocationRegionInfo expectedRttMs */ expectedRttMs?: (number|Long|string|null); + /** InterconnectLocationRegionInfo l2ForwardingEnabled */ + l2ForwardingEnabled?: (boolean|null); + /** InterconnectLocationRegionInfo locationPresence */ locationPresence?: (string|null); @@ -335945,6 +341781,9 @@ export namespace google { /** InterconnectLocationRegionInfo expectedRttMs. */ public expectedRttMs?: (number|Long|string|null); + /** InterconnectLocationRegionInfo l2ForwardingEnabled. */ + public l2ForwardingEnabled?: (boolean|null); + /** InterconnectLocationRegionInfo locationPresence. */ public locationPresence?: (string|null); @@ -336627,6 +342466,103 @@ export namespace google { } } + /** Properties of an InterconnectParams. */ + interface IInterconnectParams { + + /** InterconnectParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents an InterconnectParams. */ + class InterconnectParams implements IInterconnectParams { + + /** + * Constructs a new InterconnectParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInterconnectParams); + + /** InterconnectParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new InterconnectParams instance using the specified properties. + * @param [properties] Properties to set + * @returns InterconnectParams instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInterconnectParams): google.cloud.compute.v1beta.InterconnectParams; + + /** + * Encodes the specified InterconnectParams message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectParams.verify|verify} messages. + * @param message InterconnectParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInterconnectParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InterconnectParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectParams.verify|verify} messages. + * @param message InterconnectParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInterconnectParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InterconnectParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InterconnectParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.InterconnectParams; + + /** + * Decodes an InterconnectParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InterconnectParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.InterconnectParams; + + /** + * Verifies an InterconnectParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InterconnectParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InterconnectParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InterconnectParams; + + /** + * Creates a plain object from an InterconnectParams message. Also converts values to other types if specified. + * @param message InterconnectParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InterconnectParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InterconnectParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InterconnectParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InterconnectRemoteLocation. */ interface IInterconnectRemoteLocation { @@ -338943,6 +344879,9 @@ export namespace google { /** Properties of a ListAssociationsFirewallPolicyRequest. */ interface IListAssociationsFirewallPolicyRequest { + /** ListAssociationsFirewallPolicyRequest includeInheritedPolicies */ + includeInheritedPolicies?: (boolean|null); + /** ListAssociationsFirewallPolicyRequest targetResource */ targetResource?: (string|null); } @@ -338956,6 +344895,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IListAssociationsFirewallPolicyRequest); + /** ListAssociationsFirewallPolicyRequest includeInheritedPolicies. */ + public includeInheritedPolicies?: (boolean|null); + /** ListAssociationsFirewallPolicyRequest targetResource. */ public targetResource?: (string|null); @@ -348217,6 +354159,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionBackendBucketsRequest. */ + interface IListRegionBackendBucketsRequest { + + /** ListRegionBackendBucketsRequest filter */ + filter?: (string|null); + + /** ListRegionBackendBucketsRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionBackendBucketsRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionBackendBucketsRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionBackendBucketsRequest project */ + project?: (string|null); + + /** ListRegionBackendBucketsRequest region */ + region?: (string|null); + + /** ListRegionBackendBucketsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionBackendBucketsRequest. */ + class ListRegionBackendBucketsRequest implements IListRegionBackendBucketsRequest { + + /** + * Constructs a new ListRegionBackendBucketsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListRegionBackendBucketsRequest); + + /** ListRegionBackendBucketsRequest filter. */ + public filter?: (string|null); + + /** ListRegionBackendBucketsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionBackendBucketsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionBackendBucketsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionBackendBucketsRequest project. */ + public project: string; + + /** ListRegionBackendBucketsRequest region. */ + public region: string; + + /** ListRegionBackendBucketsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionBackendBucketsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionBackendBucketsRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListRegionBackendBucketsRequest): google.cloud.compute.v1beta.ListRegionBackendBucketsRequest; + + /** + * Encodes the specified ListRegionBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionBackendBucketsRequest.verify|verify} messages. + * @param message ListRegionBackendBucketsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionBackendBucketsRequest.verify|verify} messages. + * @param message ListRegionBackendBucketsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionBackendBucketsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionBackendBucketsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListRegionBackendBucketsRequest; + + /** + * Decodes a ListRegionBackendBucketsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionBackendBucketsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListRegionBackendBucketsRequest; + + /** + * Verifies a ListRegionBackendBucketsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRegionBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionBackendBucketsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListRegionBackendBucketsRequest; + + /** + * Creates a plain object from a ListRegionBackendBucketsRequest message. Also converts values to other types if specified. + * @param message ListRegionBackendBucketsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListRegionBackendBucketsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionBackendBucketsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionBackendBucketsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionBackendServicesRequest. */ interface IListRegionBackendServicesRequest { @@ -348483,6 +354558,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionCompositeHealthChecksRequest. */ + interface IListRegionCompositeHealthChecksRequest { + + /** ListRegionCompositeHealthChecksRequest filter */ + filter?: (string|null); + + /** ListRegionCompositeHealthChecksRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionCompositeHealthChecksRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionCompositeHealthChecksRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionCompositeHealthChecksRequest project */ + project?: (string|null); + + /** ListRegionCompositeHealthChecksRequest region */ + region?: (string|null); + + /** ListRegionCompositeHealthChecksRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionCompositeHealthChecksRequest. */ + class ListRegionCompositeHealthChecksRequest implements IListRegionCompositeHealthChecksRequest { + + /** + * Constructs a new ListRegionCompositeHealthChecksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest); + + /** ListRegionCompositeHealthChecksRequest filter. */ + public filter?: (string|null); + + /** ListRegionCompositeHealthChecksRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionCompositeHealthChecksRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionCompositeHealthChecksRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionCompositeHealthChecksRequest project. */ + public project: string; + + /** ListRegionCompositeHealthChecksRequest region. */ + public region: string; + + /** ListRegionCompositeHealthChecksRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionCompositeHealthChecksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionCompositeHealthChecksRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest): google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest; + + /** + * Encodes the specified ListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest.verify|verify} messages. + * @param message ListRegionCompositeHealthChecksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest.verify|verify} messages. + * @param message ListRegionCompositeHealthChecksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionCompositeHealthChecksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest; + + /** + * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionCompositeHealthChecksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest; + + /** + * Verifies a ListRegionCompositeHealthChecksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionCompositeHealthChecksRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest; + + /** + * Creates a plain object from a ListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. + * @param message ListRegionCompositeHealthChecksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionCompositeHealthChecksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionCompositeHealthChecksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionDiskTypesRequest. */ interface IListRegionDiskTypesRequest { @@ -348749,6 +354957,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionHealthAggregationPoliciesRequest. */ + interface IListRegionHealthAggregationPoliciesRequest { + + /** ListRegionHealthAggregationPoliciesRequest filter */ + filter?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionHealthAggregationPoliciesRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest project */ + project?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest region */ + region?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionHealthAggregationPoliciesRequest. */ + class ListRegionHealthAggregationPoliciesRequest implements IListRegionHealthAggregationPoliciesRequest { + + /** + * Constructs a new ListRegionHealthAggregationPoliciesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest); + + /** ListRegionHealthAggregationPoliciesRequest filter. */ + public filter?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionHealthAggregationPoliciesRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest project. */ + public project: string; + + /** ListRegionHealthAggregationPoliciesRequest region. */ + public region: string; + + /** ListRegionHealthAggregationPoliciesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionHealthAggregationPoliciesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionHealthAggregationPoliciesRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest): google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest; + + /** + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * @param message ListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * @param message ListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionHealthAggregationPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest; + + /** + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionHealthAggregationPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest; + + /** + * Verifies a ListRegionHealthAggregationPoliciesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionHealthAggregationPoliciesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest; + + /** + * Creates a plain object from a ListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. + * @param message ListRegionHealthAggregationPoliciesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionHealthAggregationPoliciesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionHealthAggregationPoliciesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionHealthCheckServicesRequest. */ interface IListRegionHealthCheckServicesRequest { @@ -355372,6 +361713,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListUsableRegionBackendBucketsRequest. */ + interface IListUsableRegionBackendBucketsRequest { + + /** ListUsableRegionBackendBucketsRequest filter */ + filter?: (string|null); + + /** ListUsableRegionBackendBucketsRequest maxResults */ + maxResults?: (number|null); + + /** ListUsableRegionBackendBucketsRequest orderBy */ + orderBy?: (string|null); + + /** ListUsableRegionBackendBucketsRequest pageToken */ + pageToken?: (string|null); + + /** ListUsableRegionBackendBucketsRequest project */ + project?: (string|null); + + /** ListUsableRegionBackendBucketsRequest region */ + region?: (string|null); + + /** ListUsableRegionBackendBucketsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListUsableRegionBackendBucketsRequest. */ + class ListUsableRegionBackendBucketsRequest implements IListUsableRegionBackendBucketsRequest { + + /** + * Constructs a new ListUsableRegionBackendBucketsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest); + + /** ListUsableRegionBackendBucketsRequest filter. */ + public filter?: (string|null); + + /** ListUsableRegionBackendBucketsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListUsableRegionBackendBucketsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListUsableRegionBackendBucketsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListUsableRegionBackendBucketsRequest project. */ + public project: string; + + /** ListUsableRegionBackendBucketsRequest region. */ + public region: string; + + /** ListUsableRegionBackendBucketsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListUsableRegionBackendBucketsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListUsableRegionBackendBucketsRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest): google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest; + + /** + * Encodes the specified ListUsableRegionBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest.verify|verify} messages. + * @param message ListUsableRegionBackendBucketsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListUsableRegionBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest.verify|verify} messages. + * @param message ListUsableRegionBackendBucketsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListUsableRegionBackendBucketsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListUsableRegionBackendBucketsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest; + + /** + * Decodes a ListUsableRegionBackendBucketsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListUsableRegionBackendBucketsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest; + + /** + * Verifies a ListUsableRegionBackendBucketsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListUsableRegionBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListUsableRegionBackendBucketsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest; + + /** + * Creates a plain object from a ListUsableRegionBackendBucketsRequest message. Also converts values to other types if specified. + * @param message ListUsableRegionBackendBucketsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListUsableRegionBackendBucketsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListUsableRegionBackendBucketsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListUsableRegionBackendServicesRequest. */ interface IListUsableRegionBackendServicesRequest { @@ -356303,6 +362777,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListZoneVmExtensionPoliciesRequest. */ + interface IListZoneVmExtensionPoliciesRequest { + + /** ListZoneVmExtensionPoliciesRequest filter */ + filter?: (string|null); + + /** ListZoneVmExtensionPoliciesRequest maxResults */ + maxResults?: (number|null); + + /** ListZoneVmExtensionPoliciesRequest orderBy */ + orderBy?: (string|null); + + /** ListZoneVmExtensionPoliciesRequest pageToken */ + pageToken?: (string|null); + + /** ListZoneVmExtensionPoliciesRequest project */ + project?: (string|null); + + /** ListZoneVmExtensionPoliciesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** ListZoneVmExtensionPoliciesRequest zone */ + zone?: (string|null); + } + + /** Represents a ListZoneVmExtensionPoliciesRequest. */ + class ListZoneVmExtensionPoliciesRequest implements IListZoneVmExtensionPoliciesRequest { + + /** + * Constructs a new ListZoneVmExtensionPoliciesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest); + + /** ListZoneVmExtensionPoliciesRequest filter. */ + public filter?: (string|null); + + /** ListZoneVmExtensionPoliciesRequest maxResults. */ + public maxResults?: (number|null); + + /** ListZoneVmExtensionPoliciesRequest orderBy. */ + public orderBy?: (string|null); + + /** ListZoneVmExtensionPoliciesRequest pageToken. */ + public pageToken?: (string|null); + + /** ListZoneVmExtensionPoliciesRequest project. */ + public project: string; + + /** ListZoneVmExtensionPoliciesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListZoneVmExtensionPoliciesRequest zone. */ + public zone: string; + + /** + * Creates a new ListZoneVmExtensionPoliciesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListZoneVmExtensionPoliciesRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest): google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest; + + /** + * Encodes the specified ListZoneVmExtensionPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest.verify|verify} messages. + * @param message ListZoneVmExtensionPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListZoneVmExtensionPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest.verify|verify} messages. + * @param message ListZoneVmExtensionPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListZoneVmExtensionPoliciesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListZoneVmExtensionPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest; + + /** + * Decodes a ListZoneVmExtensionPoliciesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListZoneVmExtensionPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest; + + /** + * Verifies a ListZoneVmExtensionPoliciesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListZoneVmExtensionPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListZoneVmExtensionPoliciesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest; + + /** + * Creates a plain object from a ListZoneVmExtensionPoliciesRequest message. Also converts values to other types if specified. + * @param message ListZoneVmExtensionPoliciesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListZoneVmExtensionPoliciesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListZoneVmExtensionPoliciesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListZonesRequest. */ interface IListZonesRequest { @@ -367112,6 +373719,9 @@ export namespace google { /** NetworkProfileNetworkFeatures allowExternalIpAccess */ allowExternalIpAccess?: (string|null); + /** NetworkProfileNetworkFeatures allowFirewallPolicy */ + allowFirewallPolicy?: (string|null); + /** NetworkProfileNetworkFeatures allowInterconnect */ allowInterconnect?: (string|null); @@ -367124,6 +373734,9 @@ export namespace google { /** NetworkProfileNetworkFeatures allowMultiNicInSameNetwork */ allowMultiNicInSameNetwork?: (string|null); + /** NetworkProfileNetworkFeatures allowMulticast */ + allowMulticast?: (string|null); + /** NetworkProfileNetworkFeatures allowNcc */ allowNcc?: (string|null); @@ -367154,9 +373767,15 @@ export namespace google { /** NetworkProfileNetworkFeatures allowVpn */ allowVpn?: (string|null); + /** NetworkProfileNetworkFeatures firewallPolicyTypes */ + firewallPolicyTypes?: (string[]|null); + /** NetworkProfileNetworkFeatures interfaceTypes */ interfaceTypes?: (string[]|null); + /** NetworkProfileNetworkFeatures multicast */ + multicast?: (string|null); + /** NetworkProfileNetworkFeatures subnetPurposes */ subnetPurposes?: (string[]|null); @@ -367206,6 +373825,9 @@ export namespace google { /** NetworkProfileNetworkFeatures allowExternalIpAccess. */ public allowExternalIpAccess?: (string|null); + /** NetworkProfileNetworkFeatures allowFirewallPolicy. */ + public allowFirewallPolicy?: (string|null); + /** NetworkProfileNetworkFeatures allowInterconnect. */ public allowInterconnect?: (string|null); @@ -367218,6 +373840,9 @@ export namespace google { /** NetworkProfileNetworkFeatures allowMultiNicInSameNetwork. */ public allowMultiNicInSameNetwork?: (string|null); + /** NetworkProfileNetworkFeatures allowMulticast. */ + public allowMulticast?: (string|null); + /** NetworkProfileNetworkFeatures allowNcc. */ public allowNcc?: (string|null); @@ -367248,9 +373873,15 @@ export namespace google { /** NetworkProfileNetworkFeatures allowVpn. */ public allowVpn?: (string|null); + /** NetworkProfileNetworkFeatures firewallPolicyTypes. */ + public firewallPolicyTypes: string[]; + /** NetworkProfileNetworkFeatures interfaceTypes. */ public interfaceTypes: string[]; + /** NetworkProfileNetworkFeatures multicast. */ + public multicast?: (string|null); + /** NetworkProfileNetworkFeatures subnetPurposes. */ public subnetPurposes: string[]; @@ -367408,6 +374039,13 @@ export namespace google { EXTERNAL_IP_ACCESS_BLOCKED = 462564501 } + /** AllowFirewallPolicy enum. */ + enum AllowFirewallPolicy { + UNDEFINED_ALLOW_FIREWALL_POLICY = 0, + FIREWALL_POLICY_ALLOWED = 388488346, + FIREWALL_POLICY_BLOCKED = 204651742 + } + /** AllowInterconnect enum. */ enum AllowInterconnect { UNDEFINED_ALLOW_INTERCONNECT = 0, @@ -367436,6 +374074,13 @@ export namespace google { MULTI_NIC_IN_SAME_NETWORK_BLOCKED = 273718815 } + /** AllowMulticast enum. */ + enum AllowMulticast { + UNDEFINED_ALLOW_MULTICAST = 0, + MULTICAST_ALLOWED = 44693537, + MULTICAST_BLOCKED = 397727845 + } + /** AllowNcc enum. */ enum AllowNcc { UNDEFINED_ALLOW_NCC = 0, @@ -367506,6 +374151,13 @@ export namespace google { VPN_BLOCKED = 515198305 } + /** FirewallPolicyTypes enum. */ + enum FirewallPolicyTypes { + UNDEFINED_FIREWALL_POLICY_TYPES = 0, + RDMA_ROCE_POLICY = 148757145, + VPC_POLICY = 74319208 + } + /** InterfaceTypes enum. */ enum InterfaceTypes { UNDEFINED_INTERFACE_TYPES = 0, @@ -367517,6 +374169,13 @@ export namespace google { VIRTIO_NET = 452123481 } + /** Multicast enum. */ + enum Multicast { + UNDEFINED_MULTICAST = 0, + MULTICAST_SDN = 532209462, + MULTICAST_ULL = 532211630 + } + /** SubnetPurposes enum. */ enum SubnetPurposes { UNDEFINED_SUBNET_PURPOSES = 0, @@ -378342,6 +385001,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PatchRegionBackendBucketRequest. */ + interface IPatchRegionBackendBucketRequest { + + /** PatchRegionBackendBucketRequest backendBucket */ + backendBucket?: (string|null); + + /** PatchRegionBackendBucketRequest backendBucketResource */ + backendBucketResource?: (google.cloud.compute.v1beta.IBackendBucket|null); + + /** PatchRegionBackendBucketRequest project */ + project?: (string|null); + + /** PatchRegionBackendBucketRequest region */ + region?: (string|null); + + /** PatchRegionBackendBucketRequest requestId */ + requestId?: (string|null); + } + + /** Represents a PatchRegionBackendBucketRequest. */ + class PatchRegionBackendBucketRequest implements IPatchRegionBackendBucketRequest { + + /** + * Constructs a new PatchRegionBackendBucketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest); + + /** PatchRegionBackendBucketRequest backendBucket. */ + public backendBucket: string; + + /** PatchRegionBackendBucketRequest backendBucketResource. */ + public backendBucketResource?: (google.cloud.compute.v1beta.IBackendBucket|null); + + /** PatchRegionBackendBucketRequest project. */ + public project: string; + + /** PatchRegionBackendBucketRequest region. */ + public region: string; + + /** PatchRegionBackendBucketRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new PatchRegionBackendBucketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PatchRegionBackendBucketRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest): google.cloud.compute.v1beta.PatchRegionBackendBucketRequest; + + /** + * Encodes the specified PatchRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionBackendBucketRequest.verify|verify} messages. + * @param message PatchRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PatchRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionBackendBucketRequest.verify|verify} messages. + * @param message PatchRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PatchRegionBackendBucketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PatchRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.PatchRegionBackendBucketRequest; + + /** + * Decodes a PatchRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PatchRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.PatchRegionBackendBucketRequest; + + /** + * Verifies a PatchRegionBackendBucketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PatchRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PatchRegionBackendBucketRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.PatchRegionBackendBucketRequest; + + /** + * Creates a plain object from a PatchRegionBackendBucketRequest message. Also converts values to other types if specified. + * @param message PatchRegionBackendBucketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.PatchRegionBackendBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PatchRegionBackendBucketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PatchRegionBackendBucketRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PatchRegionBackendServiceRequest. */ interface IPatchRegionBackendServiceRequest { @@ -378463,6 +385243,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PatchRegionCompositeHealthCheckRequest. */ + interface IPatchRegionCompositeHealthCheckRequest { + + /** PatchRegionCompositeHealthCheckRequest compositeHealthCheck */ + compositeHealthCheck?: (string|null); + + /** PatchRegionCompositeHealthCheckRequest compositeHealthCheckResource */ + compositeHealthCheckResource?: (google.cloud.compute.v1beta.ICompositeHealthCheck|null); + + /** PatchRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** PatchRegionCompositeHealthCheckRequest region */ + region?: (string|null); + + /** PatchRegionCompositeHealthCheckRequest requestId */ + requestId?: (string|null); + } + + /** Represents a PatchRegionCompositeHealthCheckRequest. */ + class PatchRegionCompositeHealthCheckRequest implements IPatchRegionCompositeHealthCheckRequest { + + /** + * Constructs a new PatchRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest); + + /** PatchRegionCompositeHealthCheckRequest compositeHealthCheck. */ + public compositeHealthCheck: string; + + /** PatchRegionCompositeHealthCheckRequest compositeHealthCheckResource. */ + public compositeHealthCheckResource?: (google.cloud.compute.v1beta.ICompositeHealthCheck|null); + + /** PatchRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** PatchRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** PatchRegionCompositeHealthCheckRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new PatchRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PatchRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest): google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified PatchRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message PatchRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PatchRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message PatchRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PatchRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PatchRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest; + + /** + * Decodes a PatchRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PatchRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest; + + /** + * Verifies a PatchRegionCompositeHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PatchRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PatchRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a PatchRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message PatchRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PatchRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PatchRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PatchRegionDiskSettingRequest. */ interface IPatchRegionDiskSettingRequest { @@ -378584,6 +385485,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PatchRegionHealthAggregationPolicyRequest. */ + interface IPatchRegionHealthAggregationPolicyRequest { + + /** PatchRegionHealthAggregationPolicyRequest healthAggregationPolicy */ + healthAggregationPolicy?: (string|null); + + /** PatchRegionHealthAggregationPolicyRequest healthAggregationPolicyResource */ + healthAggregationPolicyResource?: (google.cloud.compute.v1beta.IHealthAggregationPolicy|null); + + /** PatchRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** PatchRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + + /** PatchRegionHealthAggregationPolicyRequest requestId */ + requestId?: (string|null); + } + + /** Represents a PatchRegionHealthAggregationPolicyRequest. */ + class PatchRegionHealthAggregationPolicyRequest implements IPatchRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new PatchRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest); + + /** PatchRegionHealthAggregationPolicyRequest healthAggregationPolicy. */ + public healthAggregationPolicy: string; + + /** PatchRegionHealthAggregationPolicyRequest healthAggregationPolicyResource. */ + public healthAggregationPolicyResource?: (google.cloud.compute.v1beta.IHealthAggregationPolicy|null); + + /** PatchRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** PatchRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** PatchRegionHealthAggregationPolicyRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new PatchRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PatchRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest): google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified PatchRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message PatchRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PatchRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message PatchRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PatchRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PatchRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest; + + /** + * Decodes a PatchRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PatchRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest; + + /** + * Verifies a PatchRegionHealthAggregationPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PatchRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PatchRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from a PatchRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message PatchRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PatchRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PatchRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PatchRegionHealthCheckRequest. */ interface IPatchRegionHealthCheckRequest { @@ -385853,6 +392875,9 @@ export namespace google { /** PublicAdvertisedPrefix ipCidrRange */ ipCidrRange?: (string|null); + /** PublicAdvertisedPrefix ipv6AccessType */ + ipv6AccessType?: (string|null); + /** PublicAdvertisedPrefix kind */ kind?: (string|null); @@ -385905,6 +392930,9 @@ export namespace google { /** PublicAdvertisedPrefix ipCidrRange. */ public ipCidrRange?: (string|null); + /** PublicAdvertisedPrefix ipv6AccessType. */ + public ipv6AccessType?: (string|null); + /** PublicAdvertisedPrefix kind. */ public kind?: (string|null); @@ -386013,6 +393041,13 @@ export namespace google { V2 = 2716 } + /** Ipv6AccessType enum. */ + enum Ipv6AccessType { + UNDEFINED_IPV6_ACCESS_TYPE = 0, + EXTERNAL = 35607499, + INTERNAL = 279295677 + } + /** PdpScope enum. */ enum PdpScope { UNDEFINED_PDP_SCOPE = 0, @@ -386311,6 +393346,9 @@ export namespace google { /** PublicDelegatedPrefix ipCidrRange */ ipCidrRange?: (string|null); + /** PublicDelegatedPrefix ipv6AccessType */ + ipv6AccessType?: (string|null); + /** PublicDelegatedPrefix isLiveMigration */ isLiveMigration?: (boolean|null); @@ -386372,6 +393410,9 @@ export namespace google { /** PublicDelegatedPrefix ipCidrRange. */ public ipCidrRange?: (string|null); + /** PublicDelegatedPrefix ipv6AccessType. */ + public ipv6AccessType?: (string|null); + /** PublicDelegatedPrefix isLiveMigration. */ public isLiveMigration?: (boolean|null); @@ -386486,17 +393527,26 @@ export namespace google { V2 = 2716 } + /** Ipv6AccessType enum. */ + enum Ipv6AccessType { + UNDEFINED_IPV6_ACCESS_TYPE = 0, + EXTERNAL = 35607499, + INTERNAL = 279295677 + } + /** Mode enum. */ enum Mode { UNDEFINED_MODE = 0, DELEGATION = 264149288, EXTERNAL_IPV6_FORWARDING_RULE_CREATION = 398684356, - EXTERNAL_IPV6_SUBNETWORK_CREATION = 61198284 + EXTERNAL_IPV6_SUBNETWORK_CREATION = 61198284, + INTERNAL_IPV6_SUBNETWORK_CREATION = 153239834 } /** Status enum. */ enum Status { UNDEFINED_STATUS = 0, + ACTIVE = 314733318, ANNOUNCED = 365103355, ANNOUNCED_TO_GOOGLE = 454875705, ANNOUNCED_TO_INTERNET = 177880897, @@ -386784,6 +393834,9 @@ export namespace google { /** PublicDelegatedPrefixPublicDelegatedSubPrefix ipCidrRange */ ipCidrRange?: (string|null); + /** PublicDelegatedPrefixPublicDelegatedSubPrefix ipv6AccessType */ + ipv6AccessType?: (string|null); + /** PublicDelegatedPrefixPublicDelegatedSubPrefix isAddress */ isAddress?: (boolean|null); @@ -386824,6 +393877,9 @@ export namespace google { /** PublicDelegatedPrefixPublicDelegatedSubPrefix ipCidrRange. */ public ipCidrRange?: (string|null); + /** PublicDelegatedPrefixPublicDelegatedSubPrefix ipv6AccessType. */ + public ipv6AccessType?: (string|null); + /** PublicDelegatedPrefixPublicDelegatedSubPrefix isAddress. */ public isAddress?: (boolean|null); @@ -386919,12 +393975,20 @@ export namespace google { namespace PublicDelegatedPrefixPublicDelegatedSubPrefix { + /** Ipv6AccessType enum. */ + enum Ipv6AccessType { + UNDEFINED_IPV6_ACCESS_TYPE = 0, + EXTERNAL = 35607499, + INTERNAL = 279295677 + } + /** Mode enum. */ enum Mode { UNDEFINED_MODE = 0, DELEGATION = 264149288, EXTERNAL_IPV6_FORWARDING_RULE_CREATION = 398684356, - EXTERNAL_IPV6_SUBNETWORK_CREATION = 61198284 + EXTERNAL_IPV6_SUBNETWORK_CREATION = 61198284, + INTERNAL_IPV6_SUBNETWORK_CREATION = 153239834 } /** Status enum. */ @@ -397289,6 +404353,9 @@ export namespace google { /** Properties of a ReservationSubBlock. */ interface IReservationSubBlock { + /** ReservationSubBlock acceleratorTopologiesInfo */ + acceleratorTopologiesInfo?: (google.cloud.compute.v1beta.IAcceleratorTopologiesInfo|null); + /** ReservationSubBlock count */ count?: (number|null); @@ -397341,6 +404408,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IReservationSubBlock); + /** ReservationSubBlock acceleratorTopologiesInfo. */ + public acceleratorTopologiesInfo?: (google.cloud.compute.v1beta.IAcceleratorTopologiesInfo|null); + /** ReservationSubBlock count. */ public count?: (number|null); @@ -398176,6 +405246,7 @@ export namespace google { FAULT_BEHAVIOR_UNSPECIFIED = 447660743, GPU_ERROR = 198817909, PERFORMANCE = 135701520, + SILENT_DATA_CORRUPTION = 111360678, SWITCH_FAILURE = 254909279 } } @@ -400412,6 +407483,9 @@ export namespace google { /** Properties of a ResourcePolicyGroupPlacementPolicy. */ interface IResourcePolicyGroupPlacementPolicy { + /** ResourcePolicyGroupPlacementPolicy acceleratorTopologyMode */ + acceleratorTopologyMode?: (string|null); + /** ResourcePolicyGroupPlacementPolicy availabilityDomainCount */ availabilityDomainCount?: (number|null); @@ -400443,6 +407517,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IResourcePolicyGroupPlacementPolicy); + /** ResourcePolicyGroupPlacementPolicy acceleratorTopologyMode. */ + public acceleratorTopologyMode?: (string|null); + /** ResourcePolicyGroupPlacementPolicy availabilityDomainCount. */ public availabilityDomainCount?: (number|null); @@ -400544,6 +407621,13 @@ export namespace google { namespace ResourcePolicyGroupPlacementPolicy { + /** AcceleratorTopologyMode enum. */ + enum AcceleratorTopologyMode { + UNDEFINED_ACCELERATOR_TOPOLOGY_MODE = 0, + AUTO_CONNECT = 491872826, + PROVISION_ONLY = 399134966 + } + /** Collocation enum. */ enum Collocation { UNDEFINED_COLLOCATION = 0, @@ -401893,6 +408977,9 @@ export namespace google { /** ResourcePolicyWorkloadPolicy acceleratorTopology */ acceleratorTopology?: (string|null); + /** ResourcePolicyWorkloadPolicy acceleratorTopologyMode */ + acceleratorTopologyMode?: (string|null); + /** ResourcePolicyWorkloadPolicy maxTopologyDistance */ maxTopologyDistance?: (string|null); @@ -401912,6 +408999,9 @@ export namespace google { /** ResourcePolicyWorkloadPolicy acceleratorTopology. */ public acceleratorTopology?: (string|null); + /** ResourcePolicyWorkloadPolicy acceleratorTopologyMode. */ + public acceleratorTopologyMode?: (string|null); + /** ResourcePolicyWorkloadPolicy maxTopologyDistance. */ public maxTopologyDistance?: (string|null); @@ -401998,6 +409088,13 @@ export namespace google { namespace ResourcePolicyWorkloadPolicy { + /** AcceleratorTopologyMode enum. */ + enum AcceleratorTopologyMode { + UNDEFINED_ACCELERATOR_TOPOLOGY_MODE = 0, + AUTO_CONNECT = 491872826, + PROVISION_ONLY = 399134966 + } + /** MaxTopologyDistance enum. */ enum MaxTopologyDistance { UNDEFINED_MAX_TOPOLOGY_DISTANCE = 0, @@ -402026,6 +409123,9 @@ export namespace google { /** ResourceStatus physicalHostTopology */ physicalHostTopology?: (google.cloud.compute.v1beta.IResourceStatusPhysicalHostTopology|null); + /** ResourceStatus reservationConsumptionInfo */ + reservationConsumptionInfo?: (google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo|null); + /** ResourceStatus scheduling */ scheduling?: (google.cloud.compute.v1beta.IResourceStatusScheduling|null); @@ -402054,6 +409154,9 @@ export namespace google { /** ResourceStatus physicalHostTopology. */ public physicalHostTopology?: (google.cloud.compute.v1beta.IResourceStatusPhysicalHostTopology|null); + /** ResourceStatus reservationConsumptionInfo. */ + public reservationConsumptionInfo?: (google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo|null); + /** ResourceStatus scheduling. */ public scheduling?: (google.cloud.compute.v1beta.IResourceStatusScheduling|null); @@ -402395,6 +409498,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ResourceStatusReservationConsumptionInfo. */ + interface IResourceStatusReservationConsumptionInfo { + + /** ResourceStatusReservationConsumptionInfo consumedReservation */ + consumedReservation?: (string|null); + } + + /** Represents a ResourceStatusReservationConsumptionInfo. */ + class ResourceStatusReservationConsumptionInfo implements IResourceStatusReservationConsumptionInfo { + + /** + * Constructs a new ResourceStatusReservationConsumptionInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo); + + /** ResourceStatusReservationConsumptionInfo consumedReservation. */ + public consumedReservation?: (string|null); + + /** + * Creates a new ResourceStatusReservationConsumptionInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceStatusReservationConsumptionInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo): google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo; + + /** + * Encodes the specified ResourceStatusReservationConsumptionInfo message. Does not implicitly {@link google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo.verify|verify} messages. + * @param message ResourceStatusReservationConsumptionInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceStatusReservationConsumptionInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo.verify|verify} messages. + * @param message ResourceStatusReservationConsumptionInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceStatusReservationConsumptionInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceStatusReservationConsumptionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo; + + /** + * Decodes a ResourceStatusReservationConsumptionInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceStatusReservationConsumptionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo; + + /** + * Verifies a ResourceStatusReservationConsumptionInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResourceStatusReservationConsumptionInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceStatusReservationConsumptionInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo; + + /** + * Creates a plain object from a ResourceStatusReservationConsumptionInfo message. Also converts values to other types if specified. + * @param message ResourceStatusReservationConsumptionInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceStatusReservationConsumptionInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceStatusReservationConsumptionInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ResourceStatusScheduling. */ interface IResourceStatusScheduling { @@ -414169,6 +421369,9 @@ export namespace google { /** ServiceAttachmentConnectedEndpoint endpoint */ endpoint?: (string|null); + /** ServiceAttachmentConnectedEndpoint endpointWithId */ + endpointWithId?: (string|null); + /** ServiceAttachmentConnectedEndpoint natIps */ natIps?: (string[]|null); @@ -414197,6 +421400,9 @@ export namespace google { /** ServiceAttachmentConnectedEndpoint endpoint. */ public endpoint?: (string|null); + /** ServiceAttachmentConnectedEndpoint endpointWithId. */ + public endpointWithId?: (string|null); + /** ServiceAttachmentConnectedEndpoint natIps. */ public natIps: string[]; @@ -414307,6 +421513,9 @@ export namespace google { /** ServiceAttachmentConsumerProjectLimit connectionLimit */ connectionLimit?: (number|null); + /** ServiceAttachmentConsumerProjectLimit endpointUrl */ + endpointUrl?: (string|null); + /** ServiceAttachmentConsumerProjectLimit networkUrl */ networkUrl?: (string|null); @@ -414326,6 +421535,9 @@ export namespace google { /** ServiceAttachmentConsumerProjectLimit connectionLimit. */ public connectionLimit?: (number|null); + /** ServiceAttachmentConsumerProjectLimit endpointUrl. */ + public endpointUrl?: (string|null); + /** ServiceAttachmentConsumerProjectLimit networkUrl. */ public networkUrl?: (string|null); @@ -418389,6 +425601,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyRegionBackendBucketRequest. */ + interface ISetIamPolicyRegionBackendBucketRequest { + + /** SetIamPolicyRegionBackendBucketRequest project */ + project?: (string|null); + + /** SetIamPolicyRegionBackendBucketRequest region */ + region?: (string|null); + + /** SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource */ + regionSetPolicyRequestResource?: (google.cloud.compute.v1beta.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionBackendBucketRequest resource */ + resource?: (string|null); + } + + /** Represents a SetIamPolicyRegionBackendBucketRequest. */ + class SetIamPolicyRegionBackendBucketRequest implements ISetIamPolicyRegionBackendBucketRequest { + + /** + * Constructs a new SetIamPolicyRegionBackendBucketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest); + + /** SetIamPolicyRegionBackendBucketRequest project. */ + public project: string; + + /** SetIamPolicyRegionBackendBucketRequest region. */ + public region: string; + + /** SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource. */ + public regionSetPolicyRequestResource?: (google.cloud.compute.v1beta.IRegionSetPolicyRequest|null); + + /** SetIamPolicyRegionBackendBucketRequest resource. */ + public resource: string; + + /** + * Creates a new SetIamPolicyRegionBackendBucketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyRegionBackendBucketRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest): google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest; + + /** + * Encodes the specified SetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @param message SetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @param message SetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest; + + /** + * Decodes a SetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest; + + /** + * Verifies a SetIamPolicyRegionBackendBucketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetIamPolicyRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyRegionBackendBucketRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest; + + /** + * Creates a plain object from a SetIamPolicyRegionBackendBucketRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyRegionBackendBucketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyRegionBackendBucketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyRegionBackendBucketRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyRegionBackendServiceRequest. */ interface ISetIamPolicyRegionBackendServiceRequest { @@ -418964,6 +426291,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyReservationBlockRequest. */ + interface ISetIamPolicyReservationBlockRequest { + + /** SetIamPolicyReservationBlockRequest parentResource */ + parentResource?: (string|null); + + /** SetIamPolicyReservationBlockRequest project */ + project?: (string|null); + + /** SetIamPolicyReservationBlockRequest resource */ + resource?: (string|null); + + /** SetIamPolicyReservationBlockRequest zone */ + zone?: (string|null); + + /** SetIamPolicyReservationBlockRequest zoneSetNestedPolicyRequestResource */ + zoneSetNestedPolicyRequestResource?: (google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest|null); + } + + /** Represents a SetIamPolicyReservationBlockRequest. */ + class SetIamPolicyReservationBlockRequest implements ISetIamPolicyReservationBlockRequest { + + /** + * Constructs a new SetIamPolicyReservationBlockRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest); + + /** SetIamPolicyReservationBlockRequest parentResource. */ + public parentResource: string; + + /** SetIamPolicyReservationBlockRequest project. */ + public project: string; + + /** SetIamPolicyReservationBlockRequest resource. */ + public resource: string; + + /** SetIamPolicyReservationBlockRequest zone. */ + public zone: string; + + /** SetIamPolicyReservationBlockRequest zoneSetNestedPolicyRequestResource. */ + public zoneSetNestedPolicyRequestResource?: (google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest|null); + + /** + * Creates a new SetIamPolicyReservationBlockRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyReservationBlockRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest): google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest; + + /** + * Encodes the specified SetIamPolicyReservationBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest.verify|verify} messages. + * @param message SetIamPolicyReservationBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyReservationBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest.verify|verify} messages. + * @param message SetIamPolicyReservationBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyReservationBlockRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyReservationBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest; + + /** + * Decodes a SetIamPolicyReservationBlockRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyReservationBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest; + + /** + * Verifies a SetIamPolicyReservationBlockRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetIamPolicyReservationBlockRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyReservationBlockRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest; + + /** + * Creates a plain object from a SetIamPolicyReservationBlockRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyReservationBlockRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyReservationBlockRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyReservationBlockRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyReservationRequest. */ interface ISetIamPolicyReservationRequest { @@ -419079,6 +426527,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyReservationSubBlockRequest. */ + interface ISetIamPolicyReservationSubBlockRequest { + + /** SetIamPolicyReservationSubBlockRequest parentResource */ + parentResource?: (string|null); + + /** SetIamPolicyReservationSubBlockRequest project */ + project?: (string|null); + + /** SetIamPolicyReservationSubBlockRequest resource */ + resource?: (string|null); + + /** SetIamPolicyReservationSubBlockRequest zone */ + zone?: (string|null); + + /** SetIamPolicyReservationSubBlockRequest zoneSetNestedPolicyRequestResource */ + zoneSetNestedPolicyRequestResource?: (google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest|null); + } + + /** Represents a SetIamPolicyReservationSubBlockRequest. */ + class SetIamPolicyReservationSubBlockRequest implements ISetIamPolicyReservationSubBlockRequest { + + /** + * Constructs a new SetIamPolicyReservationSubBlockRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest); + + /** SetIamPolicyReservationSubBlockRequest parentResource. */ + public parentResource: string; + + /** SetIamPolicyReservationSubBlockRequest project. */ + public project: string; + + /** SetIamPolicyReservationSubBlockRequest resource. */ + public resource: string; + + /** SetIamPolicyReservationSubBlockRequest zone. */ + public zone: string; + + /** SetIamPolicyReservationSubBlockRequest zoneSetNestedPolicyRequestResource. */ + public zoneSetNestedPolicyRequestResource?: (google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest|null); + + /** + * Creates a new SetIamPolicyReservationSubBlockRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyReservationSubBlockRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest): google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest; + + /** + * Encodes the specified SetIamPolicyReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest.verify|verify} messages. + * @param message SetIamPolicyReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest.verify|verify} messages. + * @param message SetIamPolicyReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyReservationSubBlockRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest; + + /** + * Decodes a SetIamPolicyReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest; + + /** + * Verifies a SetIamPolicyReservationSubBlockRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetIamPolicyReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyReservationSubBlockRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest; + + /** + * Creates a plain object from a SetIamPolicyReservationSubBlockRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyReservationSubBlockRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyReservationSubBlockRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyReservationSubBlockRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyResourcePolicyRequest. */ interface ISetIamPolicyResourcePolicyRequest { @@ -427052,6 +434621,12 @@ export namespace google { /** Properties of a ShieldedInstanceIdentity. */ interface IShieldedInstanceIdentity { + /** ShieldedInstanceIdentity eccP256EncryptionKey */ + eccP256EncryptionKey?: (google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null); + + /** ShieldedInstanceIdentity eccP256SigningKey */ + eccP256SigningKey?: (google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null); + /** ShieldedInstanceIdentity encryptionKey */ encryptionKey?: (google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null); @@ -427071,6 +434646,12 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IShieldedInstanceIdentity); + /** ShieldedInstanceIdentity eccP256EncryptionKey. */ + public eccP256EncryptionKey?: (google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null); + + /** ShieldedInstanceIdentity eccP256SigningKey. */ + public eccP256SigningKey?: (google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null); + /** ShieldedInstanceIdentity encryptionKey. */ public encryptionKey?: (google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null); @@ -431296,7 +438877,8 @@ export namespace google { UNDEFINED_MIN_TLS_VERSION = 0, TLS_1_0 = 33116734, TLS_1_1 = 33116735, - TLS_1_2 = 33116736 + TLS_1_2 = 33116736, + TLS_1_3 = 33116737 } /** Profile enum. */ @@ -431304,6 +438886,7 @@ export namespace google { UNDEFINED_PROFILE = 0, COMPATIBLE = 179357396, CUSTOM = 388595569, + FIPS_202205 = 475828188, MODERN = 132013855, RESTRICTED = 261551195 } @@ -446895,6 +454478,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionBackendBucketRequest. */ + interface ITestIamPermissionsRegionBackendBucketRequest { + + /** TestIamPermissionsRegionBackendBucketRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionBackendBucketRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionBackendBucketRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionBackendBucketRequest. */ + class TestIamPermissionsRegionBackendBucketRequest implements ITestIamPermissionsRegionBackendBucketRequest { + + /** + * Constructs a new TestIamPermissionsRegionBackendBucketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest); + + /** TestIamPermissionsRegionBackendBucketRequest project. */ + public project: string; + + /** TestIamPermissionsRegionBackendBucketRequest region. */ + public region: string; + + /** TestIamPermissionsRegionBackendBucketRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionBackendBucketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionBackendBucketRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest): google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest; + + /** + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest; + + /** + * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest; + + /** + * Verifies a TestIamPermissionsRegionBackendBucketRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionBackendBucketRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionBackendBucketRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionBackendBucketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionBackendBucketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionBackendBucketRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsRegionBackendServiceRequest. */ interface ITestIamPermissionsRegionBackendServiceRequest { @@ -447125,6 +454823,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionCompositeHealthCheckRequest. */ + interface ITestIamPermissionsRegionCompositeHealthCheckRequest { + + /** TestIamPermissionsRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionCompositeHealthCheckRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionCompositeHealthCheckRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionCompositeHealthCheckRequest. */ + class TestIamPermissionsRegionCompositeHealthCheckRequest implements ITestIamPermissionsRegionCompositeHealthCheckRequest { + + /** + * Constructs a new TestIamPermissionsRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest); + + /** TestIamPermissionsRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** TestIamPermissionsRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** TestIamPermissionsRegionCompositeHealthCheckRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest): google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest; + + /** + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest; + + /** + * Verifies a TestIamPermissionsRegionCompositeHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsRegionDiskRequest. */ interface ITestIamPermissionsRegionDiskRequest { @@ -447240,6 +455053,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionHealthAggregationPolicyRequest. */ + interface ITestIamPermissionsRegionHealthAggregationPolicyRequest { + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionHealthAggregationPolicyRequest. */ + class TestIamPermissionsRegionHealthAggregationPolicyRequest implements ITestIamPermissionsRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new TestIamPermissionsRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest); + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest): google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest; + + /** + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest; + + /** + * Verifies a TestIamPermissionsRegionHealthAggregationPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsRegionHealthCheckRequest. */ interface ITestIamPermissionsRegionHealthCheckRequest { @@ -448965,6 +456893,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsReservationBlockRequest. */ + interface ITestIamPermissionsReservationBlockRequest { + + /** TestIamPermissionsReservationBlockRequest parentResource */ + parentResource?: (string|null); + + /** TestIamPermissionsReservationBlockRequest project */ + project?: (string|null); + + /** TestIamPermissionsReservationBlockRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsReservationBlockRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** TestIamPermissionsReservationBlockRequest zone */ + zone?: (string|null); + } + + /** Represents a TestIamPermissionsReservationBlockRequest. */ + class TestIamPermissionsReservationBlockRequest implements ITestIamPermissionsReservationBlockRequest { + + /** + * Constructs a new TestIamPermissionsReservationBlockRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest); + + /** TestIamPermissionsReservationBlockRequest parentResource. */ + public parentResource: string; + + /** TestIamPermissionsReservationBlockRequest project. */ + public project: string; + + /** TestIamPermissionsReservationBlockRequest resource. */ + public resource: string; + + /** TestIamPermissionsReservationBlockRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** TestIamPermissionsReservationBlockRequest zone. */ + public zone: string; + + /** + * Creates a new TestIamPermissionsReservationBlockRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsReservationBlockRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest): google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest; + + /** + * Encodes the specified TestIamPermissionsReservationBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest.verify|verify} messages. + * @param message TestIamPermissionsReservationBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsReservationBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest.verify|verify} messages. + * @param message TestIamPermissionsReservationBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsReservationBlockRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsReservationBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest; + + /** + * Decodes a TestIamPermissionsReservationBlockRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsReservationBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest; + + /** + * Verifies a TestIamPermissionsReservationBlockRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsReservationBlockRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsReservationBlockRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest; + + /** + * Creates a plain object from a TestIamPermissionsReservationBlockRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsReservationBlockRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsReservationBlockRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsReservationBlockRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsReservationRequest. */ interface ITestIamPermissionsReservationRequest { @@ -449080,6 +457129,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsReservationSubBlockRequest. */ + interface ITestIamPermissionsReservationSubBlockRequest { + + /** TestIamPermissionsReservationSubBlockRequest parentResource */ + parentResource?: (string|null); + + /** TestIamPermissionsReservationSubBlockRequest project */ + project?: (string|null); + + /** TestIamPermissionsReservationSubBlockRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsReservationSubBlockRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** TestIamPermissionsReservationSubBlockRequest zone */ + zone?: (string|null); + } + + /** Represents a TestIamPermissionsReservationSubBlockRequest. */ + class TestIamPermissionsReservationSubBlockRequest implements ITestIamPermissionsReservationSubBlockRequest { + + /** + * Constructs a new TestIamPermissionsReservationSubBlockRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest); + + /** TestIamPermissionsReservationSubBlockRequest parentResource. */ + public parentResource: string; + + /** TestIamPermissionsReservationSubBlockRequest project. */ + public project: string; + + /** TestIamPermissionsReservationSubBlockRequest resource. */ + public resource: string; + + /** TestIamPermissionsReservationSubBlockRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1beta.ITestPermissionsRequest|null); + + /** TestIamPermissionsReservationSubBlockRequest zone. */ + public zone: string; + + /** + * Creates a new TestIamPermissionsReservationSubBlockRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsReservationSubBlockRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest): google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest; + + /** + * Encodes the specified TestIamPermissionsReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest.verify|verify} messages. + * @param message TestIamPermissionsReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest.verify|verify} messages. + * @param message TestIamPermissionsReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsReservationSubBlockRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest; + + /** + * Decodes a TestIamPermissionsReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest; + + /** + * Verifies a TestIamPermissionsReservationSubBlockRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsReservationSubBlockRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest; + + /** + * Creates a plain object from a TestIamPermissionsReservationSubBlockRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsReservationSubBlockRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsReservationSubBlockRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsReservationSubBlockRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsResourcePolicyRequest. */ interface ITestIamPermissionsResourcePolicyRequest { @@ -451882,6 +460052,7 @@ export namespace google { FAILURE_NETWORK = 42811449, FAILURE_NVLINK = 484426295, FAILURE_REDUNDANT_HARDWARE_FAULT = 31000530, + FAILURE_TPU = 467889412, INFRASTRUCTURE_RELOCATION = 359845636, MAINTENANCE_REASON_UNKNOWN = 50570235, PLANNED_NETWORK_UPDATE = 135494677, @@ -455833,6 +464004,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UpdateZoneVmExtensionPolicyRequest. */ + interface IUpdateZoneVmExtensionPolicyRequest { + + /** UpdateZoneVmExtensionPolicyRequest project */ + project?: (string|null); + + /** UpdateZoneVmExtensionPolicyRequest requestId */ + requestId?: (string|null); + + /** UpdateZoneVmExtensionPolicyRequest vmExtensionPolicy */ + vmExtensionPolicy?: (string|null); + + /** UpdateZoneVmExtensionPolicyRequest vmExtensionPolicyResource */ + vmExtensionPolicyResource?: (google.cloud.compute.v1beta.IVmExtensionPolicy|null); + + /** UpdateZoneVmExtensionPolicyRequest zone */ + zone?: (string|null); + } + + /** Represents an UpdateZoneVmExtensionPolicyRequest. */ + class UpdateZoneVmExtensionPolicyRequest implements IUpdateZoneVmExtensionPolicyRequest { + + /** + * Constructs a new UpdateZoneVmExtensionPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest); + + /** UpdateZoneVmExtensionPolicyRequest project. */ + public project: string; + + /** UpdateZoneVmExtensionPolicyRequest requestId. */ + public requestId?: (string|null); + + /** UpdateZoneVmExtensionPolicyRequest vmExtensionPolicy. */ + public vmExtensionPolicy: string; + + /** UpdateZoneVmExtensionPolicyRequest vmExtensionPolicyResource. */ + public vmExtensionPolicyResource?: (google.cloud.compute.v1beta.IVmExtensionPolicy|null); + + /** UpdateZoneVmExtensionPolicyRequest zone. */ + public zone: string; + + /** + * Creates a new UpdateZoneVmExtensionPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateZoneVmExtensionPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest): google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest; + + /** + * Encodes the specified UpdateZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest.verify|verify} messages. + * @param message UpdateZoneVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest.verify|verify} messages. + * @param message UpdateZoneVmExtensionPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateZoneVmExtensionPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest; + + /** + * Decodes an UpdateZoneVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest; + + /** + * Verifies an UpdateZoneVmExtensionPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateZoneVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateZoneVmExtensionPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest; + + /** + * Creates a plain object from an UpdateZoneVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @param message UpdateZoneVmExtensionPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateZoneVmExtensionPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateZoneVmExtensionPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UrlMap. */ interface IUrlMap { @@ -458393,6 +466685,870 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a VmExtensionPoliciesScopedList. */ + interface IVmExtensionPoliciesScopedList { + + /** VmExtensionPoliciesScopedList vmExtensionPolicies */ + vmExtensionPolicies?: (google.cloud.compute.v1beta.IVmExtensionPolicy[]|null); + + /** VmExtensionPoliciesScopedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a VmExtensionPoliciesScopedList. */ + class VmExtensionPoliciesScopedList implements IVmExtensionPoliciesScopedList { + + /** + * Constructs a new VmExtensionPoliciesScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList); + + /** VmExtensionPoliciesScopedList vmExtensionPolicies. */ + public vmExtensionPolicies: google.cloud.compute.v1beta.IVmExtensionPolicy[]; + + /** VmExtensionPoliciesScopedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new VmExtensionPoliciesScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns VmExtensionPoliciesScopedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList): google.cloud.compute.v1beta.VmExtensionPoliciesScopedList; + + /** + * Encodes the specified VmExtensionPoliciesScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.verify|verify} messages. + * @param message VmExtensionPoliciesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPoliciesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.verify|verify} messages. + * @param message VmExtensionPoliciesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VmExtensionPoliciesScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VmExtensionPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.VmExtensionPoliciesScopedList; + + /** + * Decodes a VmExtensionPoliciesScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VmExtensionPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.VmExtensionPoliciesScopedList; + + /** + * Verifies a VmExtensionPoliciesScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VmExtensionPoliciesScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VmExtensionPoliciesScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.VmExtensionPoliciesScopedList; + + /** + * Creates a plain object from a VmExtensionPoliciesScopedList message. Also converts values to other types if specified. + * @param message VmExtensionPoliciesScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.VmExtensionPoliciesScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VmExtensionPoliciesScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VmExtensionPoliciesScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VmExtensionPolicy. */ + interface IVmExtensionPolicy { + + /** VmExtensionPolicy creationTimestamp */ + creationTimestamp?: (string|null); + + /** VmExtensionPolicy description */ + description?: (string|null); + + /** VmExtensionPolicy extensionPolicies */ + extensionPolicies?: ({ [k: string]: google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy }|null); + + /** VmExtensionPolicy globalResourceLink */ + globalResourceLink?: (string|null); + + /** VmExtensionPolicy id */ + id?: (number|Long|string|null); + + /** VmExtensionPolicy instanceSelectors */ + instanceSelectors?: (google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector[]|null); + + /** VmExtensionPolicy kind */ + kind?: (string|null); + + /** VmExtensionPolicy managedByGlobal */ + managedByGlobal?: (boolean|null); + + /** VmExtensionPolicy name */ + name?: (string|null); + + /** VmExtensionPolicy priority */ + priority?: (number|null); + + /** VmExtensionPolicy selfLink */ + selfLink?: (string|null); + + /** VmExtensionPolicy selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** VmExtensionPolicy state */ + state?: (string|null); + + /** VmExtensionPolicy updateTimestamp */ + updateTimestamp?: (string|null); + } + + /** Represents a VmExtensionPolicy. */ + class VmExtensionPolicy implements IVmExtensionPolicy { + + /** + * Constructs a new VmExtensionPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IVmExtensionPolicy); + + /** VmExtensionPolicy creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** VmExtensionPolicy description. */ + public description?: (string|null); + + /** VmExtensionPolicy extensionPolicies. */ + public extensionPolicies: { [k: string]: google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy }; + + /** VmExtensionPolicy globalResourceLink. */ + public globalResourceLink?: (string|null); + + /** VmExtensionPolicy id. */ + public id?: (number|Long|string|null); + + /** VmExtensionPolicy instanceSelectors. */ + public instanceSelectors: google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector[]; + + /** VmExtensionPolicy kind. */ + public kind?: (string|null); + + /** VmExtensionPolicy managedByGlobal. */ + public managedByGlobal?: (boolean|null); + + /** VmExtensionPolicy name. */ + public name?: (string|null); + + /** VmExtensionPolicy priority. */ + public priority?: (number|null); + + /** VmExtensionPolicy selfLink. */ + public selfLink?: (string|null); + + /** VmExtensionPolicy selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** VmExtensionPolicy state. */ + public state?: (string|null); + + /** VmExtensionPolicy updateTimestamp. */ + public updateTimestamp?: (string|null); + + /** + * Creates a new VmExtensionPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns VmExtensionPolicy instance + */ + public static create(properties?: google.cloud.compute.v1beta.IVmExtensionPolicy): google.cloud.compute.v1beta.VmExtensionPolicy; + + /** + * Encodes the specified VmExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicy.verify|verify} messages. + * @param message VmExtensionPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IVmExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicy.verify|verify} messages. + * @param message VmExtensionPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IVmExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VmExtensionPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VmExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.VmExtensionPolicy; + + /** + * Decodes a VmExtensionPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VmExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.VmExtensionPolicy; + + /** + * Verifies a VmExtensionPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VmExtensionPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VmExtensionPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.VmExtensionPolicy; + + /** + * Creates a plain object from a VmExtensionPolicy message. Also converts values to other types if specified. + * @param message VmExtensionPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.VmExtensionPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VmExtensionPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VmExtensionPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace VmExtensionPolicy { + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + ACTIVE = 314733318, + DELETING = 528602024, + STATE_UNSPECIFIED = 470755401 + } + } + + /** Properties of a VmExtensionPolicyAggregatedListResponse. */ + interface IVmExtensionPolicyAggregatedListResponse { + + /** VmExtensionPolicyAggregatedListResponse etag */ + etag?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse id */ + id?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse items */ + items?: ({ [k: string]: google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList }|null); + + /** VmExtensionPolicyAggregatedListResponse kind */ + kind?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse nextPageToken */ + nextPageToken?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse selfLink */ + selfLink?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse unreachables */ + unreachables?: (string[]|null); + + /** VmExtensionPolicyAggregatedListResponse warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a VmExtensionPolicyAggregatedListResponse. */ + class VmExtensionPolicyAggregatedListResponse implements IVmExtensionPolicyAggregatedListResponse { + + /** + * Constructs a new VmExtensionPolicyAggregatedListResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyAggregatedListResponse); + + /** VmExtensionPolicyAggregatedListResponse etag. */ + public etag?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse id. */ + public id?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse items. */ + public items: { [k: string]: google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList }; + + /** VmExtensionPolicyAggregatedListResponse kind. */ + public kind?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse nextPageToken. */ + public nextPageToken?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse selfLink. */ + public selfLink?: (string|null); + + /** VmExtensionPolicyAggregatedListResponse unreachables. */ + public unreachables: string[]; + + /** VmExtensionPolicyAggregatedListResponse warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new VmExtensionPolicyAggregatedListResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VmExtensionPolicyAggregatedListResponse instance + */ + public static create(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyAggregatedListResponse): google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse; + + /** + * Encodes the specified VmExtensionPolicyAggregatedListResponse message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse.verify|verify} messages. + * @param message VmExtensionPolicyAggregatedListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IVmExtensionPolicyAggregatedListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicyAggregatedListResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse.verify|verify} messages. + * @param message VmExtensionPolicyAggregatedListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IVmExtensionPolicyAggregatedListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VmExtensionPolicyAggregatedListResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VmExtensionPolicyAggregatedListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse; + + /** + * Decodes a VmExtensionPolicyAggregatedListResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VmExtensionPolicyAggregatedListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse; + + /** + * Verifies a VmExtensionPolicyAggregatedListResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VmExtensionPolicyAggregatedListResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VmExtensionPolicyAggregatedListResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse; + + /** + * Creates a plain object from a VmExtensionPolicyAggregatedListResponse message. Also converts values to other types if specified. + * @param message VmExtensionPolicyAggregatedListResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VmExtensionPolicyAggregatedListResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VmExtensionPolicyAggregatedListResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VmExtensionPolicyExtensionPolicy. */ + interface IVmExtensionPolicyExtensionPolicy { + + /** VmExtensionPolicyExtensionPolicy pinnedVersion */ + pinnedVersion?: (string|null); + + /** VmExtensionPolicyExtensionPolicy stringConfig */ + stringConfig?: (string|null); + } + + /** Represents a VmExtensionPolicyExtensionPolicy. */ + class VmExtensionPolicyExtensionPolicy implements IVmExtensionPolicyExtensionPolicy { + + /** + * Constructs a new VmExtensionPolicyExtensionPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy); + + /** VmExtensionPolicyExtensionPolicy pinnedVersion. */ + public pinnedVersion?: (string|null); + + /** VmExtensionPolicyExtensionPolicy stringConfig. */ + public stringConfig?: (string|null); + + /** + * Creates a new VmExtensionPolicyExtensionPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns VmExtensionPolicyExtensionPolicy instance + */ + public static create(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy): google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy; + + /** + * Encodes the specified VmExtensionPolicyExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @param message VmExtensionPolicyExtensionPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicyExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @param message VmExtensionPolicyExtensionPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VmExtensionPolicyExtensionPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VmExtensionPolicyExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy; + + /** + * Decodes a VmExtensionPolicyExtensionPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VmExtensionPolicyExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy; + + /** + * Verifies a VmExtensionPolicyExtensionPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VmExtensionPolicyExtensionPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VmExtensionPolicyExtensionPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy; + + /** + * Creates a plain object from a VmExtensionPolicyExtensionPolicy message. Also converts values to other types if specified. + * @param message VmExtensionPolicyExtensionPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VmExtensionPolicyExtensionPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VmExtensionPolicyExtensionPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VmExtensionPolicyInstanceSelector. */ + interface IVmExtensionPolicyInstanceSelector { + + /** VmExtensionPolicyInstanceSelector labelSelector */ + labelSelector?: (google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector|null); + } + + /** Represents a VmExtensionPolicyInstanceSelector. */ + class VmExtensionPolicyInstanceSelector implements IVmExtensionPolicyInstanceSelector { + + /** + * Constructs a new VmExtensionPolicyInstanceSelector. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector); + + /** VmExtensionPolicyInstanceSelector labelSelector. */ + public labelSelector?: (google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector|null); + + /** + * Creates a new VmExtensionPolicyInstanceSelector instance using the specified properties. + * @param [properties] Properties to set + * @returns VmExtensionPolicyInstanceSelector instance + */ + public static create(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector): google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector; + + /** + * Encodes the specified VmExtensionPolicyInstanceSelector message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.verify|verify} messages. + * @param message VmExtensionPolicyInstanceSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicyInstanceSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.verify|verify} messages. + * @param message VmExtensionPolicyInstanceSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VmExtensionPolicyInstanceSelector message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VmExtensionPolicyInstanceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector; + + /** + * Decodes a VmExtensionPolicyInstanceSelector message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VmExtensionPolicyInstanceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector; + + /** + * Verifies a VmExtensionPolicyInstanceSelector message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VmExtensionPolicyInstanceSelector message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VmExtensionPolicyInstanceSelector + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector; + + /** + * Creates a plain object from a VmExtensionPolicyInstanceSelector message. Also converts values to other types if specified. + * @param message VmExtensionPolicyInstanceSelector + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VmExtensionPolicyInstanceSelector to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VmExtensionPolicyInstanceSelector + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VmExtensionPolicyLabelSelector. */ + interface IVmExtensionPolicyLabelSelector { + + /** VmExtensionPolicyLabelSelector inclusionLabels */ + inclusionLabels?: ({ [k: string]: string }|null); + } + + /** Represents a VmExtensionPolicyLabelSelector. */ + class VmExtensionPolicyLabelSelector implements IVmExtensionPolicyLabelSelector { + + /** + * Constructs a new VmExtensionPolicyLabelSelector. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector); + + /** VmExtensionPolicyLabelSelector inclusionLabels. */ + public inclusionLabels: { [k: string]: string }; + + /** + * Creates a new VmExtensionPolicyLabelSelector instance using the specified properties. + * @param [properties] Properties to set + * @returns VmExtensionPolicyLabelSelector instance + */ + public static create(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector): google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector; + + /** + * Encodes the specified VmExtensionPolicyLabelSelector message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.verify|verify} messages. + * @param message VmExtensionPolicyLabelSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicyLabelSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.verify|verify} messages. + * @param message VmExtensionPolicyLabelSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VmExtensionPolicyLabelSelector message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VmExtensionPolicyLabelSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector; + + /** + * Decodes a VmExtensionPolicyLabelSelector message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VmExtensionPolicyLabelSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector; + + /** + * Verifies a VmExtensionPolicyLabelSelector message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VmExtensionPolicyLabelSelector message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VmExtensionPolicyLabelSelector + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector; + + /** + * Creates a plain object from a VmExtensionPolicyLabelSelector message. Also converts values to other types if specified. + * @param message VmExtensionPolicyLabelSelector + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VmExtensionPolicyLabelSelector to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VmExtensionPolicyLabelSelector + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VmExtensionPolicyList. */ + interface IVmExtensionPolicyList { + + /** VmExtensionPolicyList etag */ + etag?: (string|null); + + /** VmExtensionPolicyList id */ + id?: (string|null); + + /** VmExtensionPolicyList items */ + items?: (google.cloud.compute.v1beta.IVmExtensionPolicy[]|null); + + /** VmExtensionPolicyList kind */ + kind?: (string|null); + + /** VmExtensionPolicyList nextPageToken */ + nextPageToken?: (string|null); + + /** VmExtensionPolicyList selfLink */ + selfLink?: (string|null); + + /** VmExtensionPolicyList unreachables */ + unreachables?: (string[]|null); + + /** VmExtensionPolicyList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a VmExtensionPolicyList. */ + class VmExtensionPolicyList implements IVmExtensionPolicyList { + + /** + * Constructs a new VmExtensionPolicyList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyList); + + /** VmExtensionPolicyList etag. */ + public etag?: (string|null); + + /** VmExtensionPolicyList id. */ + public id?: (string|null); + + /** VmExtensionPolicyList items. */ + public items: google.cloud.compute.v1beta.IVmExtensionPolicy[]; + + /** VmExtensionPolicyList kind. */ + public kind?: (string|null); + + /** VmExtensionPolicyList nextPageToken. */ + public nextPageToken?: (string|null); + + /** VmExtensionPolicyList selfLink. */ + public selfLink?: (string|null); + + /** VmExtensionPolicyList unreachables. */ + public unreachables: string[]; + + /** VmExtensionPolicyList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new VmExtensionPolicyList instance using the specified properties. + * @param [properties] Properties to set + * @returns VmExtensionPolicyList instance + */ + public static create(properties?: google.cloud.compute.v1beta.IVmExtensionPolicyList): google.cloud.compute.v1beta.VmExtensionPolicyList; + + /** + * Encodes the specified VmExtensionPolicyList message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyList.verify|verify} messages. + * @param message VmExtensionPolicyList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IVmExtensionPolicyList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VmExtensionPolicyList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyList.verify|verify} messages. + * @param message VmExtensionPolicyList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IVmExtensionPolicyList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VmExtensionPolicyList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VmExtensionPolicyList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.VmExtensionPolicyList; + + /** + * Decodes a VmExtensionPolicyList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VmExtensionPolicyList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.VmExtensionPolicyList; + + /** + * Verifies a VmExtensionPolicyList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VmExtensionPolicyList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VmExtensionPolicyList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.VmExtensionPolicyList; + + /** + * Creates a plain object from a VmExtensionPolicyList message. Also converts values to other types if specified. + * @param message VmExtensionPolicyList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.VmExtensionPolicyList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VmExtensionPolicyList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VmExtensionPolicyList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a VpnGateway. */ interface IVpnGateway { @@ -463502,6 +472658,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ZoneSetNestedPolicyRequest. */ + interface IZoneSetNestedPolicyRequest { + + /** ZoneSetNestedPolicyRequest bindings */ + bindings?: (google.cloud.compute.v1beta.IBinding[]|null); + + /** ZoneSetNestedPolicyRequest etag */ + etag?: (string|null); + + /** ZoneSetNestedPolicyRequest policy */ + policy?: (google.cloud.compute.v1beta.IPolicy|null); + } + + /** Represents a ZoneSetNestedPolicyRequest. */ + class ZoneSetNestedPolicyRequest implements IZoneSetNestedPolicyRequest { + + /** + * Constructs a new ZoneSetNestedPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest); + + /** ZoneSetNestedPolicyRequest bindings. */ + public bindings: google.cloud.compute.v1beta.IBinding[]; + + /** ZoneSetNestedPolicyRequest etag. */ + public etag?: (string|null); + + /** ZoneSetNestedPolicyRequest policy. */ + public policy?: (google.cloud.compute.v1beta.IPolicy|null); + + /** + * Creates a new ZoneSetNestedPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ZoneSetNestedPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest): google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest; + + /** + * Encodes the specified ZoneSetNestedPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.verify|verify} messages. + * @param message ZoneSetNestedPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ZoneSetNestedPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.verify|verify} messages. + * @param message ZoneSetNestedPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ZoneSetNestedPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ZoneSetNestedPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest; + + /** + * Decodes a ZoneSetNestedPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ZoneSetNestedPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest; + + /** + * Verifies a ZoneSetNestedPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ZoneSetNestedPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ZoneSetNestedPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest; + + /** + * Creates a plain object from a ZoneSetNestedPolicyRequest message. Also converts values to other types if specified. + * @param message ZoneSetNestedPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ZoneSetNestedPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ZoneSetNestedPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ZoneSetPolicyRequest. */ interface IZoneSetPolicyRequest { @@ -464161,6 +473426,20 @@ export namespace google { */ public addSignedUrlKey(request: google.cloud.compute.v1beta.IAddSignedUrlKeyBackendBucketRequest): Promise; + /** + * Calls AggregatedList. + * @param request AggregatedListBackendBucketsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BackendBucketAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest, callback: google.cloud.compute.v1beta.BackendBuckets.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListBackendBucketsRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest): Promise; + /** * Calls Delete. * @param request DeleteBackendBucketRequest message or plain object @@ -464339,6 +473618,13 @@ export namespace google { */ type AddSignedUrlKeyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.BackendBuckets|aggregatedList}. + * @param error Error, if any + * @param [response] BackendBucketAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.BackendBucketAggregatedList) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.BackendBuckets|delete_}. * @param error Error, if any @@ -467580,6 +476866,72 @@ export namespace google { type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } + /** Represents a GlobalVmExtensionPolicies */ + class GlobalVmExtensionPolicies extends $protobuf.rpc.Service { + + /** + * Constructs a new GlobalVmExtensionPolicies service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new GlobalVmExtensionPolicies service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): GlobalVmExtensionPolicies; + + /** + * Calls AggregatedList. + * @param request AggregatedListGlobalVmExtensionPoliciesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VmExtensionPolicyAggregatedListResponse + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest, callback: google.cloud.compute.v1beta.GlobalVmExtensionPolicies.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListGlobalVmExtensionPoliciesRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest): Promise; + + /** + * Calls Get. + * @param request GetGlobalVmExtensionPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GlobalVmExtensionPolicy + */ + public get(request: google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest, callback: google.cloud.compute.v1beta.GlobalVmExtensionPolicies.GetCallback): void; + + /** + * Calls Get. + * @param request GetGlobalVmExtensionPolicyRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest): Promise; + } + + namespace GlobalVmExtensionPolicies { + + /** + * Callback as used by {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicies|aggregatedList}. + * @param error Error, if any + * @param [response] VmExtensionPolicyAggregatedListResponse + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicies|get}. + * @param error Error, if any + * @param [response] GlobalVmExtensionPolicy + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.GlobalVmExtensionPolicy) => void; + } + /** Represents a HealthChecks */ class HealthChecks extends $protobuf.rpc.Service { @@ -468333,6 +477685,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1beta.IGetInstanceGroupManagerRequest): Promise; + /** + * Calls GetAvailableAcceleratorTopologies. + * @param request GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + */ + public getAvailableAcceleratorTopologies(request: google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest, callback: google.cloud.compute.v1beta.InstanceGroupManagers.GetAvailableAcceleratorTopologiesCallback): void; + + /** + * Calls GetAvailableAcceleratorTopologies. + * @param request GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message or plain object + * @returns Promise + */ + public getAvailableAcceleratorTopologies(request: google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest): Promise; + /** * Calls Insert. * @param request InsertInstanceGroupManagerRequest message or plain object @@ -468672,6 +478038,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.InstanceGroupManager) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstanceGroupManagers|getAvailableAcceleratorTopologies}. + * @param error Error, if any + * @param [response] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + */ + type GetAvailableAcceleratorTopologiesCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.InstanceGroupManagers|insert}. * @param error Error, if any @@ -475731,6 +485104,219 @@ export namespace google { type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } + /** Represents a RegionBackendBuckets */ + class RegionBackendBuckets extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionBackendBuckets service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new RegionBackendBuckets service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionBackendBuckets; + + /** + * Calls Delete. + * @param request DeleteRegionBackendBucketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest, callback: google.cloud.compute.v1beta.RegionBackendBuckets.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionBackendBucketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BackendBucket + */ + public get(request: google.cloud.compute.v1beta.IGetRegionBackendBucketRequest, callback: google.cloud.compute.v1beta.RegionBackendBuckets.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1beta.IGetRegionBackendBucketRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionBackendBucketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest, callback: google.cloud.compute.v1beta.RegionBackendBuckets.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionBackendBucketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest, callback: google.cloud.compute.v1beta.RegionBackendBuckets.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest): Promise; + + /** + * Calls List. + * @param request ListRegionBackendBucketsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BackendBucketList + */ + public list(request: google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, callback: google.cloud.compute.v1beta.RegionBackendBuckets.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionBackendBucketsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1beta.IListRegionBackendBucketsRequest): Promise; + + /** + * Calls ListUsable. + * @param request ListUsableRegionBackendBucketsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BackendBucketListUsable + */ + public listUsable(request: google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, callback: google.cloud.compute.v1beta.RegionBackendBuckets.ListUsableCallback): void; + + /** + * Calls ListUsable. + * @param request ListUsableRegionBackendBucketsRequest message or plain object + * @returns Promise + */ + public listUsable(request: google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest): Promise; + + /** + * Calls Patch. + * @param request PatchRegionBackendBucketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public patch(request: google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest, callback: google.cloud.compute.v1beta.RegionBackendBuckets.PatchCallback): void; + + /** + * Calls Patch. + * @param request PatchRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public patch(request: google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionBackendBucketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest, callback: google.cloud.compute.v1beta.RegionBackendBuckets.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionBackendBucketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest, callback: google.cloud.compute.v1beta.RegionBackendBuckets.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionBackendBucketRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest): Promise; + } + + namespace RegionBackendBuckets { + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|get}. + * @param error Error, if any + * @param [response] BackendBucket + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.BackendBucket) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|list}. + * @param error Error, if any + * @param [response] BackendBucketList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.BackendBucketList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|listUsable}. + * @param error Error, if any + * @param [response] BackendBucketListUsable + */ + type ListUsableCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.BackendBucketListUsable) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|patch}. + * @param error Error, if any + * @param [response] Operation + */ + type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; + } + /** Represents a RegionBackendServices */ class RegionBackendServices extends $protobuf.rpc.Service { @@ -476178,6 +485764,177 @@ export namespace google { type UpdateReservationsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } + /** Represents a RegionCompositeHealthChecks */ + class RegionCompositeHealthChecks extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionCompositeHealthChecks service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new RegionCompositeHealthChecks service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionCompositeHealthChecks; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionCompositeHealthChecksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompositeHealthCheckAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest, callback: google.cloud.compute.v1beta.RegionCompositeHealthChecks.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionCompositeHealthChecksRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest): Promise; + + /** + * Calls Delete. + * @param request DeleteRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1beta.RegionCompositeHealthChecks.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompositeHealthCheck + */ + public get(request: google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1beta.RegionCompositeHealthChecks.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1beta.RegionCompositeHealthChecks.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest): Promise; + + /** + * Calls List. + * @param request ListRegionCompositeHealthChecksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompositeHealthCheckList + */ + public list(request: google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, callback: google.cloud.compute.v1beta.RegionCompositeHealthChecks.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionCompositeHealthChecksRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest): Promise; + + /** + * Calls Patch. + * @param request PatchRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public patch(request: google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1beta.RegionCompositeHealthChecks.PatchCallback): void; + + /** + * Calls Patch. + * @param request PatchRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public patch(request: google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1beta.RegionCompositeHealthChecks.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest): Promise; + } + + namespace RegionCompositeHealthChecks { + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|aggregatedList}. + * @param error Error, if any + * @param [response] CompositeHealthCheckAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|get}. + * @param error Error, if any + * @param [response] CompositeHealthCheck + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.CompositeHealthCheck) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|list}. + * @param error Error, if any + * @param [response] CompositeHealthCheckList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.CompositeHealthCheckList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|patch}. + * @param error Error, if any + * @param [response] Operation + */ + type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; + } + /** Represents a RegionDiskSettings */ class RegionDiskSettings extends $protobuf.rpc.Service { @@ -476691,6 +486448,177 @@ export namespace google { type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } + /** Represents a RegionHealthAggregationPolicies */ + class RegionHealthAggregationPolicies extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionHealthAggregationPolicies service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new RegionHealthAggregationPolicies service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionHealthAggregationPolicies; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthAggregationPoliciesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthAggregationPolicyAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest, callback: google.cloud.compute.v1beta.RegionHealthAggregationPolicies.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthAggregationPoliciesRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest): Promise; + + /** + * Calls Delete. + * @param request DeleteRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1beta.RegionHealthAggregationPolicies.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthAggregationPolicy + */ + public get(request: google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1beta.RegionHealthAggregationPolicies.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1beta.RegionHealthAggregationPolicies.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest): Promise; + + /** + * Calls List. + * @param request ListRegionHealthAggregationPoliciesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthAggregationPolicyList + */ + public list(request: google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, callback: google.cloud.compute.v1beta.RegionHealthAggregationPolicies.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionHealthAggregationPoliciesRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest): Promise; + + /** + * Calls Patch. + * @param request PatchRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public patch(request: google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1beta.RegionHealthAggregationPolicies.PatchCallback): void; + + /** + * Calls Patch. + * @param request PatchRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public patch(request: google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1beta.RegionHealthAggregationPolicies.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest): Promise; + } + + namespace RegionHealthAggregationPolicies { + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|aggregatedList}. + * @param error Error, if any + * @param [response] HealthAggregationPolicyAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|get}. + * @param error Error, if any + * @param [response] HealthAggregationPolicy + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.HealthAggregationPolicy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|list}. + * @param error Error, if any + * @param [response] HealthAggregationPolicyList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.HealthAggregationPolicyList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|patch}. + * @param error Error, if any + * @param [response] Operation + */ + type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; + } + /** Represents a RegionHealthCheckServices */ class RegionHealthCheckServices extends $protobuf.rpc.Service { @@ -481213,6 +491141,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1beta.IGetReservationBlockRequest): Promise; + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyReservationBlockRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest, callback: google.cloud.compute.v1beta.ReservationBlocks.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyReservationBlockRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest): Promise; + /** * Calls List. * @param request ListReservationBlocksRequest message or plain object @@ -481240,6 +491182,34 @@ export namespace google { * @returns Promise */ public performMaintenance(request: google.cloud.compute.v1beta.IPerformMaintenanceReservationBlockRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyReservationBlockRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest, callback: google.cloud.compute.v1beta.ReservationBlocks.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyReservationBlockRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsReservationBlockRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest, callback: google.cloud.compute.v1beta.ReservationBlocks.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsReservationBlockRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest): Promise; } namespace ReservationBlocks { @@ -481251,6 +491221,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.ReservationBlocksGetResponse) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationBlocks|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.ReservationBlocks|list}. * @param error Error, if any @@ -481264,6 +491241,20 @@ export namespace google { * @param [response] Operation */ type PerformMaintenanceCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationBlocks|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationBlocks|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; } /** Represents a ReservationSubBlocks */ @@ -481300,6 +491291,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1beta.IGetReservationSubBlockRequest): Promise; + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyReservationSubBlockRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest, callback: google.cloud.compute.v1beta.ReservationSubBlocks.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyReservationSubBlockRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest): Promise; + /** * Calls List. * @param request ListReservationSubBlocksRequest message or plain object @@ -481341,6 +491346,34 @@ export namespace google { * @returns Promise */ public reportFaulty(request: google.cloud.compute.v1beta.IReportFaultyReservationSubBlockRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyReservationSubBlockRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest, callback: google.cloud.compute.v1beta.ReservationSubBlocks.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyReservationSubBlockRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsReservationSubBlockRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest, callback: google.cloud.compute.v1beta.ReservationSubBlocks.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsReservationSubBlockRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest): Promise; } namespace ReservationSubBlocks { @@ -481352,6 +491385,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.ReservationSubBlocksGetResponse) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|list}. * @param error Error, if any @@ -481372,6 +491412,20 @@ export namespace google { * @param [response] Operation */ type ReportFaultyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.TestPermissionsResponse) => void; } /** Represents a Reservations */ @@ -486618,6 +496672,135 @@ export namespace google { type WaitCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; } + /** Represents a ZoneVmExtensionPolicies */ + class ZoneVmExtensionPolicies extends $protobuf.rpc.Service { + + /** + * Constructs a new ZoneVmExtensionPolicies service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ZoneVmExtensionPolicies service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ZoneVmExtensionPolicies; + + /** + * Calls Delete. + * @param request DeleteZoneVmExtensionPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest, callback: google.cloud.compute.v1beta.ZoneVmExtensionPolicies.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteZoneVmExtensionPolicyRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest): Promise; + + /** + * Calls Get. + * @param request GetZoneVmExtensionPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VmExtensionPolicy + */ + public get(request: google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest, callback: google.cloud.compute.v1beta.ZoneVmExtensionPolicies.GetCallback): void; + + /** + * Calls Get. + * @param request GetZoneVmExtensionPolicyRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest): Promise; + + /** + * Calls Insert. + * @param request InsertZoneVmExtensionPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest, callback: google.cloud.compute.v1beta.ZoneVmExtensionPolicies.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertZoneVmExtensionPolicyRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest): Promise; + + /** + * Calls List. + * @param request ListZoneVmExtensionPoliciesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VmExtensionPolicyList + */ + public list(request: google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, callback: google.cloud.compute.v1beta.ZoneVmExtensionPolicies.ListCallback): void; + + /** + * Calls List. + * @param request ListZoneVmExtensionPoliciesRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest): Promise; + + /** + * Calls Update. + * @param request UpdateZoneVmExtensionPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public update(request: google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest, callback: google.cloud.compute.v1beta.ZoneVmExtensionPolicies.UpdateCallback): void; + + /** + * Calls Update. + * @param request UpdateZoneVmExtensionPolicyRequest message or plain object + * @returns Promise + */ + public update(request: google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest): Promise; + } + + namespace ZoneVmExtensionPolicies { + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|get}. + * @param error Error, if any + * @param [response] VmExtensionPolicy + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.VmExtensionPolicy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|list}. + * @param error Error, if any + * @param [response] VmExtensionPolicyList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.VmExtensionPolicyList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|update}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + } + /** Represents a Zones */ class Zones extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index 1c0ef6f4de6a..547b388bf972 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -617185,6 +617185,766 @@ return AcceleratorConfig; })(); + v1beta.AcceleratorTopologiesInfo = (function() { + + /** + * Properties of an AcceleratorTopologiesInfo. + * @memberof google.cloud.compute.v1beta + * @interface IAcceleratorTopologiesInfo + * @property {Array.|null} [acceleratorTopologyInfos] AcceleratorTopologiesInfo acceleratorTopologyInfos + */ + + /** + * Constructs a new AcceleratorTopologiesInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an AcceleratorTopologiesInfo. + * @implements IAcceleratorTopologiesInfo + * @constructor + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo=} [properties] Properties to set + */ + function AcceleratorTopologiesInfo(properties) { + this.acceleratorTopologyInfos = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AcceleratorTopologiesInfo acceleratorTopologyInfos. + * @member {Array.} acceleratorTopologyInfos + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @instance + */ + AcceleratorTopologiesInfo.prototype.acceleratorTopologyInfos = $util.emptyArray; + + /** + * Creates a new AcceleratorTopologiesInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @static + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfo} AcceleratorTopologiesInfo instance + */ + AcceleratorTopologiesInfo.create = function create(properties) { + return new AcceleratorTopologiesInfo(properties); + }; + + /** + * Encodes the specified AcceleratorTopologiesInfo message. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @static + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo} message AcceleratorTopologiesInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcceleratorTopologiesInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.acceleratorTopologyInfos != null && message.acceleratorTopologyInfos.length) + for (var i = 0; i < message.acceleratorTopologyInfos.length; ++i) + $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.encode(message.acceleratorTopologyInfos[i], writer.uint32(/* id 219451401, wireType 2 =*/1755611210).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AcceleratorTopologiesInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @static + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo} message AcceleratorTopologiesInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcceleratorTopologiesInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AcceleratorTopologiesInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfo} AcceleratorTopologiesInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcceleratorTopologiesInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 219451401: { + if (!(message.acceleratorTopologyInfos && message.acceleratorTopologyInfos.length)) + message.acceleratorTopologyInfos = []; + message.acceleratorTopologyInfos.push($root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AcceleratorTopologiesInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfo} AcceleratorTopologiesInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcceleratorTopologiesInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AcceleratorTopologiesInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AcceleratorTopologiesInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.acceleratorTopologyInfos != null && message.hasOwnProperty("acceleratorTopologyInfos")) { + if (!Array.isArray(message.acceleratorTopologyInfos)) + return "acceleratorTopologyInfos: array expected"; + for (var i = 0; i < message.acceleratorTopologyInfos.length; ++i) { + var error = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.verify(message.acceleratorTopologyInfos[i]); + if (error) + return "acceleratorTopologyInfos." + error; + } + } + return null; + }; + + /** + * Creates an AcceleratorTopologiesInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfo} AcceleratorTopologiesInfo + */ + AcceleratorTopologiesInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo(); + if (object.acceleratorTopologyInfos) { + if (!Array.isArray(object.acceleratorTopologyInfos)) + throw TypeError(".google.cloud.compute.v1beta.AcceleratorTopologiesInfo.acceleratorTopologyInfos: array expected"); + message.acceleratorTopologyInfos = []; + for (var i = 0; i < object.acceleratorTopologyInfos.length; ++i) { + if (typeof object.acceleratorTopologyInfos[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.AcceleratorTopologiesInfo.acceleratorTopologyInfos: object expected"); + message.acceleratorTopologyInfos[i] = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.fromObject(object.acceleratorTopologyInfos[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AcceleratorTopologiesInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @static + * @param {google.cloud.compute.v1beta.AcceleratorTopologiesInfo} message AcceleratorTopologiesInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AcceleratorTopologiesInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.acceleratorTopologyInfos = []; + if (message.acceleratorTopologyInfos && message.acceleratorTopologyInfos.length) { + object.acceleratorTopologyInfos = []; + for (var j = 0; j < message.acceleratorTopologyInfos.length; ++j) + object.acceleratorTopologyInfos[j] = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.toObject(message.acceleratorTopologyInfos[j], options); + } + return object; + }; + + /** + * Converts this AcceleratorTopologiesInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @instance + * @returns {Object.} JSON object + */ + AcceleratorTopologiesInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AcceleratorTopologiesInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AcceleratorTopologiesInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.AcceleratorTopologiesInfo"; + }; + + return AcceleratorTopologiesInfo; + })(); + + v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo = (function() { + + /** + * Properties of an AcceleratorTopologiesInfoAcceleratorTopologyInfo. + * @memberof google.cloud.compute.v1beta + * @interface IAcceleratorTopologiesInfoAcceleratorTopologyInfo + * @property {string|null} [acceleratorTopology] AcceleratorTopologiesInfoAcceleratorTopologyInfo acceleratorTopology + * @property {Array.|null} [infoPerTopologyStates] AcceleratorTopologiesInfoAcceleratorTopologyInfo infoPerTopologyStates + */ + + /** + * Constructs a new AcceleratorTopologiesInfoAcceleratorTopologyInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an AcceleratorTopologiesInfoAcceleratorTopologyInfo. + * @implements IAcceleratorTopologiesInfoAcceleratorTopologyInfo + * @constructor + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo=} [properties] Properties to set + */ + function AcceleratorTopologiesInfoAcceleratorTopologyInfo(properties) { + this.infoPerTopologyStates = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AcceleratorTopologiesInfoAcceleratorTopologyInfo acceleratorTopology. + * @member {string|null|undefined} acceleratorTopology + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @instance + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.prototype.acceleratorTopology = null; + + /** + * AcceleratorTopologiesInfoAcceleratorTopologyInfo infoPerTopologyStates. + * @member {Array.} infoPerTopologyStates + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @instance + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.prototype.infoPerTopologyStates = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AcceleratorTopologiesInfoAcceleratorTopologyInfo.prototype, "_acceleratorTopology", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopology"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AcceleratorTopologiesInfoAcceleratorTopologyInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @static + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo} AcceleratorTopologiesInfoAcceleratorTopologyInfo instance + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.create = function create(properties) { + return new AcceleratorTopologiesInfoAcceleratorTopologyInfo(properties); + }; + + /** + * Encodes the specified AcceleratorTopologiesInfoAcceleratorTopologyInfo message. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @static + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo} message AcceleratorTopologiesInfoAcceleratorTopologyInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.infoPerTopologyStates != null && message.infoPerTopologyStates.length) + for (var i = 0; i < message.infoPerTopologyStates.length; ++i) + $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.encode(message.infoPerTopologyStates[i], writer.uint32(/* id 183777695, wireType 2 =*/1470221562).fork()).ldelim(); + if (message.acceleratorTopology != null && Object.hasOwnProperty.call(message, "acceleratorTopology")) + writer.uint32(/* id 389323203, wireType 2 =*/3114585626).string(message.acceleratorTopology); + return writer; + }; + + /** + * Encodes the specified AcceleratorTopologiesInfoAcceleratorTopologyInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @static + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfo} message AcceleratorTopologiesInfoAcceleratorTopologyInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AcceleratorTopologiesInfoAcceleratorTopologyInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo} AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 389323203: { + message.acceleratorTopology = reader.string(); + break; + } + case 183777695: { + if (!(message.infoPerTopologyStates && message.infoPerTopologyStates.length)) + message.infoPerTopologyStates = []; + message.infoPerTopologyStates.push($root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AcceleratorTopologiesInfoAcceleratorTopologyInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo} AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AcceleratorTopologiesInfoAcceleratorTopologyInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { + properties._acceleratorTopology = 1; + if (!$util.isString(message.acceleratorTopology)) + return "acceleratorTopology: string expected"; + } + if (message.infoPerTopologyStates != null && message.hasOwnProperty("infoPerTopologyStates")) { + if (!Array.isArray(message.infoPerTopologyStates)) + return "infoPerTopologyStates: array expected"; + for (var i = 0; i < message.infoPerTopologyStates.length; ++i) { + var error = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.verify(message.infoPerTopologyStates[i]); + if (error) + return "infoPerTopologyStates." + error; + } + } + return null; + }; + + /** + * Creates an AcceleratorTopologiesInfoAcceleratorTopologyInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo} AcceleratorTopologiesInfoAcceleratorTopologyInfo + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo(); + if (object.acceleratorTopology != null) + message.acceleratorTopology = String(object.acceleratorTopology); + if (object.infoPerTopologyStates) { + if (!Array.isArray(object.infoPerTopologyStates)) + throw TypeError(".google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.infoPerTopologyStates: array expected"); + message.infoPerTopologyStates = []; + for (var i = 0; i < object.infoPerTopologyStates.length; ++i) { + if (typeof object.infoPerTopologyStates[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo.infoPerTopologyStates: object expected"); + message.infoPerTopologyStates[i] = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.fromObject(object.infoPerTopologyStates[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AcceleratorTopologiesInfoAcceleratorTopologyInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @static + * @param {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo} message AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.infoPerTopologyStates = []; + if (message.infoPerTopologyStates && message.infoPerTopologyStates.length) { + object.infoPerTopologyStates = []; + for (var j = 0; j < message.infoPerTopologyStates.length; ++j) + object.infoPerTopologyStates[j] = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.toObject(message.infoPerTopologyStates[j], options); + } + if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { + object.acceleratorTopology = message.acceleratorTopology; + if (options.oneofs) + object._acceleratorTopology = "acceleratorTopology"; + } + return object; + }; + + /** + * Converts this AcceleratorTopologiesInfoAcceleratorTopologyInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @instance + * @returns {Object.} JSON object + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfo"; + }; + + return AcceleratorTopologiesInfoAcceleratorTopologyInfo; + })(); + + v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState = (function() { + + /** + * Properties of an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState. + * @memberof google.cloud.compute.v1beta + * @interface IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @property {number|null} [count] AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState count + * @property {string|null} [state] AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState state + */ + + /** + * Constructs a new AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState. + * @implements IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @constructor + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState=} [properties] Properties to set + */ + function AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState count. + * @member {number|null|undefined} count + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @instance + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.prototype.count = null; + + /** + * AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @instance + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.prototype.state = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.prototype, "_count", { + get: $util.oneOfGetter($oneOfFields = ["count"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @static + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState} AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState instance + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.create = function create(properties) { + return new AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState(properties); + }; + + /** + * Encodes the specified AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @static + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState} message AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 94851343, wireType 0 =*/758810744).int32(message.count); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); + return writer; + }; + + /** + * Encodes the specified AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @static + * @param {google.cloud.compute.v1beta.IAcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState} message AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState} AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 94851343: { + message.count = reader.int32(); + break; + } + case 109757585: { + message.state = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState} AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message. + * @function verify + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.count != null && message.hasOwnProperty("count")) { + properties._count = 1; + if (!$util.isInteger(message.count)) + return "count: integer expected"; + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } + return null; + }; + + /** + * Creates an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState} AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState) + return object; + var message = new $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState(); + if (object.count != null) + message.count = object.count | 0; + if (object.state != null) + message.state = String(object.state); + return message; + }; + + /** + * Creates a plain object from an AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @static + * @param {google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState} message AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.count != null && message.hasOwnProperty("count")) { + object.count = message.count; + if (options.oneofs) + object._count = "count"; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = message.state; + if (options.oneofs) + object._state = "state"; + } + return object; + }; + + /** + * Converts this AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @instance + * @returns {Object.} JSON object + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1beta.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} AVAILABLE=442079913 AVAILABLE value + * @property {number} RUNNING=121282975 RUNNING value + * @property {number} TOPOLOGY_STATE_UNSPECIFIED=188327545 TOPOLOGY_STATE_UNSPECIFIED value + * @property {number} UNHEALTHY=462118084 UNHEALTHY value + */ + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[442079913] = "AVAILABLE"] = 442079913; + values[valuesById[121282975] = "RUNNING"] = 121282975; + values[valuesById[188327545] = "TOPOLOGY_STATE_UNSPECIFIED"] = 188327545; + values[valuesById[462118084] = "UNHEALTHY"] = 462118084; + return values; + })(); + + return AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState; + })(); + v1beta.AcceleratorType = (function() { /** @@ -631778,31 +632538,31 @@ return AggregatedListAutoscalersRequest; })(); - v1beta.AggregatedListBackendServicesRequest = (function() { + v1beta.AggregatedListBackendBucketsRequest = (function() { /** - * Properties of an AggregatedListBackendServicesRequest. + * Properties of an AggregatedListBackendBucketsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListBackendServicesRequest - * @property {string|null} [filter] AggregatedListBackendServicesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListBackendServicesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListBackendServicesRequest maxResults - * @property {string|null} [orderBy] AggregatedListBackendServicesRequest orderBy - * @property {string|null} [pageToken] AggregatedListBackendServicesRequest pageToken - * @property {string|null} [project] AggregatedListBackendServicesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListBackendServicesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListBackendServicesRequest serviceProjectNumber + * @interface IAggregatedListBackendBucketsRequest + * @property {string|null} [filter] AggregatedListBackendBucketsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListBackendBucketsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListBackendBucketsRequest maxResults + * @property {string|null} [orderBy] AggregatedListBackendBucketsRequest orderBy + * @property {string|null} [pageToken] AggregatedListBackendBucketsRequest pageToken + * @property {string|null} [project] AggregatedListBackendBucketsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListBackendBucketsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListBackendBucketsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListBackendServicesRequest. + * Constructs a new AggregatedListBackendBucketsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListBackendServicesRequest. - * @implements IAggregatedListBackendServicesRequest + * @classdesc Represents an AggregatedListBackendBucketsRequest. + * @implements IAggregatedListBackendBucketsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest=} [properties] Properties to set */ - function AggregatedListBackendServicesRequest(properties) { + function AggregatedListBackendBucketsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -631810,136 +632570,136 @@ } /** - * AggregatedListBackendServicesRequest filter. + * AggregatedListBackendBucketsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.filter = null; + AggregatedListBackendBucketsRequest.prototype.filter = null; /** - * AggregatedListBackendServicesRequest includeAllScopes. + * AggregatedListBackendBucketsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.includeAllScopes = null; + AggregatedListBackendBucketsRequest.prototype.includeAllScopes = null; /** - * AggregatedListBackendServicesRequest maxResults. + * AggregatedListBackendBucketsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.maxResults = null; + AggregatedListBackendBucketsRequest.prototype.maxResults = null; /** - * AggregatedListBackendServicesRequest orderBy. + * AggregatedListBackendBucketsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.orderBy = null; + AggregatedListBackendBucketsRequest.prototype.orderBy = null; /** - * AggregatedListBackendServicesRequest pageToken. + * AggregatedListBackendBucketsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.pageToken = null; + AggregatedListBackendBucketsRequest.prototype.pageToken = null; /** - * AggregatedListBackendServicesRequest project. + * AggregatedListBackendBucketsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.project = ""; + AggregatedListBackendBucketsRequest.prototype.project = ""; /** - * AggregatedListBackendServicesRequest returnPartialSuccess. + * AggregatedListBackendBucketsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.returnPartialSuccess = null; + AggregatedListBackendBucketsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListBackendServicesRequest serviceProjectNumber. + * AggregatedListBackendBucketsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.serviceProjectNumber = null; + AggregatedListBackendBucketsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListBackendServicesRequest instance using the specified properties. + * Creates a new AggregatedListBackendBucketsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest instance */ - AggregatedListBackendServicesRequest.create = function create(properties) { - return new AggregatedListBackendServicesRequest(properties); + AggregatedListBackendBucketsRequest.create = function create(properties) { + return new AggregatedListBackendBucketsRequest(properties); }; /** - * Encodes the specified AggregatedListBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest} message AggregatedListBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListBackendServicesRequest.encode = function encode(message, writer) { + AggregatedListBackendBucketsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -631962,33 +632722,33 @@ }; /** - * Encodes the specified AggregatedListBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest} message AggregatedListBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListBackendServicesRequest message from the specified reader or buffer. + * Decodes an AggregatedListBackendBucketsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListBackendServicesRequest.decode = function decode(reader, length, error) { + AggregatedListBackendBucketsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -632035,30 +632795,30 @@ }; /** - * Decodes an AggregatedListBackendServicesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListBackendBucketsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListBackendBucketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListBackendServicesRequest message. + * Verifies an AggregatedListBackendBucketsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListBackendServicesRequest.verify = function verify(message) { + AggregatedListBackendBucketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -632104,17 +632864,17 @@ }; /** - * Creates an AggregatedListBackendServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest */ - AggregatedListBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest) + AggregatedListBackendBucketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -632142,15 +632902,15 @@ }; /** - * Creates a plain object from an AggregatedListBackendServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListBackendBucketsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest + * @param {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} message AggregatedListBackendBucketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListBackendServicesRequest.toObject = function toObject(message, options) { + AggregatedListBackendBucketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -632200,59 +632960,59 @@ }; /** - * Converts this AggregatedListBackendServicesRequest to JSON. + * Converts this AggregatedListBackendBucketsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListBackendServicesRequest.prototype.toJSON = function toJSON() { + AggregatedListBackendBucketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListBackendServicesRequest + * Gets the default type url for AggregatedListBackendBucketsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest"; }; - return AggregatedListBackendServicesRequest; + return AggregatedListBackendBucketsRequest; })(); - v1beta.AggregatedListDiskTypesRequest = (function() { + v1beta.AggregatedListBackendServicesRequest = (function() { /** - * Properties of an AggregatedListDiskTypesRequest. + * Properties of an AggregatedListBackendServicesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListDiskTypesRequest - * @property {string|null} [filter] AggregatedListDiskTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListDiskTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListDiskTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListDiskTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListDiskTypesRequest pageToken - * @property {string|null} [project] AggregatedListDiskTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListDiskTypesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListDiskTypesRequest serviceProjectNumber + * @interface IAggregatedListBackendServicesRequest + * @property {string|null} [filter] AggregatedListBackendServicesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListBackendServicesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListBackendServicesRequest maxResults + * @property {string|null} [orderBy] AggregatedListBackendServicesRequest orderBy + * @property {string|null} [pageToken] AggregatedListBackendServicesRequest pageToken + * @property {string|null} [project] AggregatedListBackendServicesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListBackendServicesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListBackendServicesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListDiskTypesRequest. + * Constructs a new AggregatedListBackendServicesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListDiskTypesRequest. - * @implements IAggregatedListDiskTypesRequest + * @classdesc Represents an AggregatedListBackendServicesRequest. + * @implements IAggregatedListBackendServicesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest=} [properties] Properties to set */ - function AggregatedListDiskTypesRequest(properties) { + function AggregatedListBackendServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -632260,136 +633020,136 @@ } /** - * AggregatedListDiskTypesRequest filter. + * AggregatedListBackendServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.filter = null; + AggregatedListBackendServicesRequest.prototype.filter = null; /** - * AggregatedListDiskTypesRequest includeAllScopes. + * AggregatedListBackendServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.includeAllScopes = null; + AggregatedListBackendServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListDiskTypesRequest maxResults. + * AggregatedListBackendServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.maxResults = null; + AggregatedListBackendServicesRequest.prototype.maxResults = null; /** - * AggregatedListDiskTypesRequest orderBy. + * AggregatedListBackendServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.orderBy = null; + AggregatedListBackendServicesRequest.prototype.orderBy = null; /** - * AggregatedListDiskTypesRequest pageToken. + * AggregatedListBackendServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.pageToken = null; + AggregatedListBackendServicesRequest.prototype.pageToken = null; /** - * AggregatedListDiskTypesRequest project. + * AggregatedListBackendServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.project = ""; + AggregatedListBackendServicesRequest.prototype.project = ""; /** - * AggregatedListDiskTypesRequest returnPartialSuccess. + * AggregatedListBackendServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListBackendServicesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListDiskTypesRequest serviceProjectNumber. + * AggregatedListBackendServicesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.serviceProjectNumber = null; + AggregatedListBackendServicesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListDiskTypesRequest instance using the specified properties. + * Creates a new AggregatedListBackendServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest instance */ - AggregatedListDiskTypesRequest.create = function create(properties) { - return new AggregatedListDiskTypesRequest(properties); + AggregatedListBackendServicesRequest.create = function create(properties) { + return new AggregatedListBackendServicesRequest(properties); }; /** - * Encodes the specified AggregatedListDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDiskTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListDiskTypesRequest.encode = function encode(message, writer) { + AggregatedListBackendServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -632412,33 +633172,33 @@ }; /** - * Encodes the specified AggregatedListDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDiskTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListDiskTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListBackendServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListDiskTypesRequest.decode = function decode(reader, length, error) { + AggregatedListBackendServicesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -632485,30 +633245,30 @@ }; /** - * Decodes an AggregatedListDiskTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListBackendServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListDiskTypesRequest message. + * Verifies an AggregatedListBackendServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListDiskTypesRequest.verify = function verify(message) { + AggregatedListBackendServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -632554,17 +633314,17 @@ }; /** - * Creates an AggregatedListDiskTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListBackendServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest */ - AggregatedListDiskTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest) + AggregatedListBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -632592,15 +633352,15 @@ }; /** - * Creates a plain object from an AggregatedListDiskTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListBackendServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest + * @param {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListDiskTypesRequest.toObject = function toObject(message, options) { + AggregatedListBackendServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -632650,59 +633410,59 @@ }; /** - * Converts this AggregatedListDiskTypesRequest to JSON. + * Converts this AggregatedListBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListDiskTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListBackendServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListDiskTypesRequest + * Gets the default type url for AggregatedListBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListDiskTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListBackendServicesRequest"; }; - return AggregatedListDiskTypesRequest; + return AggregatedListBackendServicesRequest; })(); - v1beta.AggregatedListDisksRequest = (function() { + v1beta.AggregatedListDiskTypesRequest = (function() { /** - * Properties of an AggregatedListDisksRequest. + * Properties of an AggregatedListDiskTypesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListDisksRequest - * @property {string|null} [filter] AggregatedListDisksRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListDisksRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListDisksRequest maxResults - * @property {string|null} [orderBy] AggregatedListDisksRequest orderBy - * @property {string|null} [pageToken] AggregatedListDisksRequest pageToken - * @property {string|null} [project] AggregatedListDisksRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListDisksRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListDisksRequest serviceProjectNumber + * @interface IAggregatedListDiskTypesRequest + * @property {string|null} [filter] AggregatedListDiskTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListDiskTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListDiskTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListDiskTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListDiskTypesRequest pageToken + * @property {string|null} [project] AggregatedListDiskTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListDiskTypesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListDiskTypesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListDisksRequest. + * Constructs a new AggregatedListDiskTypesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListDisksRequest. - * @implements IAggregatedListDisksRequest + * @classdesc Represents an AggregatedListDiskTypesRequest. + * @implements IAggregatedListDiskTypesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest=} [properties] Properties to set */ - function AggregatedListDisksRequest(properties) { + function AggregatedListDiskTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -632710,136 +633470,136 @@ } /** - * AggregatedListDisksRequest filter. + * AggregatedListDiskTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.filter = null; + AggregatedListDiskTypesRequest.prototype.filter = null; /** - * AggregatedListDisksRequest includeAllScopes. + * AggregatedListDiskTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.includeAllScopes = null; + AggregatedListDiskTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListDisksRequest maxResults. + * AggregatedListDiskTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.maxResults = null; + AggregatedListDiskTypesRequest.prototype.maxResults = null; /** - * AggregatedListDisksRequest orderBy. + * AggregatedListDiskTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.orderBy = null; + AggregatedListDiskTypesRequest.prototype.orderBy = null; /** - * AggregatedListDisksRequest pageToken. + * AggregatedListDiskTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.pageToken = null; + AggregatedListDiskTypesRequest.prototype.pageToken = null; /** - * AggregatedListDisksRequest project. + * AggregatedListDiskTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.project = ""; + AggregatedListDiskTypesRequest.prototype.project = ""; /** - * AggregatedListDisksRequest returnPartialSuccess. + * AggregatedListDiskTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.returnPartialSuccess = null; + AggregatedListDiskTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListDisksRequest serviceProjectNumber. + * AggregatedListDiskTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListDisksRequest.prototype.serviceProjectNumber = null; + AggregatedListDiskTypesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListDisksRequest instance using the specified properties. + * Creates a new AggregatedListDiskTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest instance */ - AggregatedListDisksRequest.create = function create(properties) { - return new AggregatedListDisksRequest(properties); + AggregatedListDiskTypesRequest.create = function create(properties) { + return new AggregatedListDiskTypesRequest(properties); }; /** - * Encodes the specified AggregatedListDisksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDisksRequest.verify|verify} messages. + * Encodes the specified AggregatedListDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDiskTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListDisksRequest.encode = function encode(message, writer) { + AggregatedListDiskTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -632862,33 +633622,33 @@ }; /** - * Encodes the specified AggregatedListDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDisksRequest.verify|verify} messages. + * Encodes the specified AggregatedListDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDiskTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListDisksRequest message from the specified reader or buffer. + * Decodes an AggregatedListDiskTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListDisksRequest.decode = function decode(reader, length, error) { + AggregatedListDiskTypesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListDisksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -632935,30 +633695,30 @@ }; /** - * Decodes an AggregatedListDisksRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListDiskTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListDisksRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListDisksRequest message. + * Verifies an AggregatedListDiskTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListDisksRequest.verify = function verify(message) { + AggregatedListDiskTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -633004,17 +633764,17 @@ }; /** - * Creates an AggregatedListDisksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListDiskTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest */ - AggregatedListDisksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListDisksRequest) + AggregatedListDiskTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListDisksRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -633042,15 +633802,15 @@ }; /** - * Creates a plain object from an AggregatedListDisksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListDiskTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListDisksRequest} message AggregatedListDisksRequest + * @param {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListDisksRequest.toObject = function toObject(message, options) { + AggregatedListDiskTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -633100,59 +633860,59 @@ }; /** - * Converts this AggregatedListDisksRequest to JSON. + * Converts this AggregatedListDiskTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListDisksRequest.prototype.toJSON = function toJSON() { + AggregatedListDiskTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListDisksRequest + * Gets the default type url for AggregatedListDiskTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListDisksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListDiskTypesRequest"; }; - return AggregatedListDisksRequest; + return AggregatedListDiskTypesRequest; })(); - v1beta.AggregatedListForwardingRulesRequest = (function() { + v1beta.AggregatedListDisksRequest = (function() { /** - * Properties of an AggregatedListForwardingRulesRequest. + * Properties of an AggregatedListDisksRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListForwardingRulesRequest - * @property {string|null} [filter] AggregatedListForwardingRulesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListForwardingRulesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListForwardingRulesRequest maxResults - * @property {string|null} [orderBy] AggregatedListForwardingRulesRequest orderBy - * @property {string|null} [pageToken] AggregatedListForwardingRulesRequest pageToken - * @property {string|null} [project] AggregatedListForwardingRulesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListForwardingRulesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListForwardingRulesRequest serviceProjectNumber + * @interface IAggregatedListDisksRequest + * @property {string|null} [filter] AggregatedListDisksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListDisksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListDisksRequest maxResults + * @property {string|null} [orderBy] AggregatedListDisksRequest orderBy + * @property {string|null} [pageToken] AggregatedListDisksRequest pageToken + * @property {string|null} [project] AggregatedListDisksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListDisksRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListDisksRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListForwardingRulesRequest. + * Constructs a new AggregatedListDisksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListForwardingRulesRequest. - * @implements IAggregatedListForwardingRulesRequest + * @classdesc Represents an AggregatedListDisksRequest. + * @implements IAggregatedListDisksRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest=} [properties] Properties to set */ - function AggregatedListForwardingRulesRequest(properties) { + function AggregatedListDisksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -633160,136 +633920,136 @@ } /** - * AggregatedListForwardingRulesRequest filter. + * AggregatedListDisksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.filter = null; + AggregatedListDisksRequest.prototype.filter = null; /** - * AggregatedListForwardingRulesRequest includeAllScopes. + * AggregatedListDisksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.includeAllScopes = null; + AggregatedListDisksRequest.prototype.includeAllScopes = null; /** - * AggregatedListForwardingRulesRequest maxResults. + * AggregatedListDisksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.maxResults = null; + AggregatedListDisksRequest.prototype.maxResults = null; /** - * AggregatedListForwardingRulesRequest orderBy. + * AggregatedListDisksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.orderBy = null; + AggregatedListDisksRequest.prototype.orderBy = null; /** - * AggregatedListForwardingRulesRequest pageToken. + * AggregatedListDisksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.pageToken = null; + AggregatedListDisksRequest.prototype.pageToken = null; /** - * AggregatedListForwardingRulesRequest project. + * AggregatedListDisksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.project = ""; + AggregatedListDisksRequest.prototype.project = ""; /** - * AggregatedListForwardingRulesRequest returnPartialSuccess. + * AggregatedListDisksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.returnPartialSuccess = null; + AggregatedListDisksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListForwardingRulesRequest serviceProjectNumber. + * AggregatedListDisksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.serviceProjectNumber = null; + AggregatedListDisksRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListForwardingRulesRequest instance using the specified properties. + * Creates a new AggregatedListDisksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest instance */ - AggregatedListForwardingRulesRequest.create = function create(properties) { - return new AggregatedListForwardingRulesRequest(properties); + AggregatedListDisksRequest.create = function create(properties) { + return new AggregatedListDisksRequest(properties); }; /** - * Encodes the specified AggregatedListForwardingRulesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest.verify|verify} messages. + * Encodes the specified AggregatedListDisksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDisksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListForwardingRulesRequest.encode = function encode(message, writer) { + AggregatedListDisksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -633312,33 +634072,33 @@ }; /** - * Encodes the specified AggregatedListForwardingRulesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest.verify|verify} messages. + * Encodes the specified AggregatedListDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDisksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListForwardingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListForwardingRulesRequest message from the specified reader or buffer. + * Decodes an AggregatedListDisksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListForwardingRulesRequest.decode = function decode(reader, length, error) { + AggregatedListDisksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListDisksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -633385,30 +634145,30 @@ }; /** - * Decodes an AggregatedListForwardingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListDisksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListForwardingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListDisksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListForwardingRulesRequest message. + * Verifies an AggregatedListDisksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListForwardingRulesRequest.verify = function verify(message) { + AggregatedListDisksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -633454,17 +634214,17 @@ }; /** - * Creates an AggregatedListForwardingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListDisksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest */ - AggregatedListForwardingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest) + AggregatedListDisksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListDisksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListDisksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -633492,15 +634252,15 @@ }; /** - * Creates a plain object from an AggregatedListForwardingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListDisksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest + * @param {google.cloud.compute.v1beta.AggregatedListDisksRequest} message AggregatedListDisksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListForwardingRulesRequest.toObject = function toObject(message, options) { + AggregatedListDisksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -633550,59 +634310,59 @@ }; /** - * Converts this AggregatedListForwardingRulesRequest to JSON. + * Converts this AggregatedListDisksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListForwardingRulesRequest.prototype.toJSON = function toJSON() { + AggregatedListDisksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListForwardingRulesRequest + * Gets the default type url for AggregatedListDisksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListForwardingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListDisksRequest"; }; - return AggregatedListForwardingRulesRequest; + return AggregatedListDisksRequest; })(); - v1beta.AggregatedListFutureReservationsRequest = (function() { + v1beta.AggregatedListForwardingRulesRequest = (function() { /** - * Properties of an AggregatedListFutureReservationsRequest. + * Properties of an AggregatedListForwardingRulesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListFutureReservationsRequest - * @property {string|null} [filter] AggregatedListFutureReservationsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListFutureReservationsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListFutureReservationsRequest maxResults - * @property {string|null} [orderBy] AggregatedListFutureReservationsRequest orderBy - * @property {string|null} [pageToken] AggregatedListFutureReservationsRequest pageToken - * @property {string|null} [project] AggregatedListFutureReservationsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListFutureReservationsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListFutureReservationsRequest serviceProjectNumber + * @interface IAggregatedListForwardingRulesRequest + * @property {string|null} [filter] AggregatedListForwardingRulesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListForwardingRulesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListForwardingRulesRequest maxResults + * @property {string|null} [orderBy] AggregatedListForwardingRulesRequest orderBy + * @property {string|null} [pageToken] AggregatedListForwardingRulesRequest pageToken + * @property {string|null} [project] AggregatedListForwardingRulesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListForwardingRulesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListForwardingRulesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListFutureReservationsRequest. + * Constructs a new AggregatedListForwardingRulesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListFutureReservationsRequest. - * @implements IAggregatedListFutureReservationsRequest + * @classdesc Represents an AggregatedListForwardingRulesRequest. + * @implements IAggregatedListForwardingRulesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest=} [properties] Properties to set */ - function AggregatedListFutureReservationsRequest(properties) { + function AggregatedListForwardingRulesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -633610,136 +634370,136 @@ } /** - * AggregatedListFutureReservationsRequest filter. + * AggregatedListForwardingRulesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.filter = null; + AggregatedListForwardingRulesRequest.prototype.filter = null; /** - * AggregatedListFutureReservationsRequest includeAllScopes. + * AggregatedListForwardingRulesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.includeAllScopes = null; + AggregatedListForwardingRulesRequest.prototype.includeAllScopes = null; /** - * AggregatedListFutureReservationsRequest maxResults. + * AggregatedListForwardingRulesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.maxResults = null; + AggregatedListForwardingRulesRequest.prototype.maxResults = null; /** - * AggregatedListFutureReservationsRequest orderBy. + * AggregatedListForwardingRulesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.orderBy = null; + AggregatedListForwardingRulesRequest.prototype.orderBy = null; /** - * AggregatedListFutureReservationsRequest pageToken. + * AggregatedListForwardingRulesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.pageToken = null; + AggregatedListForwardingRulesRequest.prototype.pageToken = null; /** - * AggregatedListFutureReservationsRequest project. + * AggregatedListForwardingRulesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.project = ""; + AggregatedListForwardingRulesRequest.prototype.project = ""; /** - * AggregatedListFutureReservationsRequest returnPartialSuccess. + * AggregatedListForwardingRulesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.returnPartialSuccess = null; + AggregatedListForwardingRulesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListFutureReservationsRequest serviceProjectNumber. + * AggregatedListForwardingRulesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.serviceProjectNumber = null; + AggregatedListForwardingRulesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListFutureReservationsRequest instance using the specified properties. + * Creates a new AggregatedListForwardingRulesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest instance */ - AggregatedListFutureReservationsRequest.create = function create(properties) { - return new AggregatedListFutureReservationsRequest(properties); + AggregatedListForwardingRulesRequest.create = function create(properties) { + return new AggregatedListForwardingRulesRequest(properties); }; /** - * Encodes the specified AggregatedListFutureReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListForwardingRulesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListFutureReservationsRequest.encode = function encode(message, writer) { + AggregatedListForwardingRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -633762,33 +634522,33 @@ }; /** - * Encodes the specified AggregatedListFutureReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListForwardingRulesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListFutureReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListForwardingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListFutureReservationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListForwardingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListFutureReservationsRequest.decode = function decode(reader, length, error) { + AggregatedListForwardingRulesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -633835,30 +634595,30 @@ }; /** - * Decodes an AggregatedListFutureReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListForwardingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListFutureReservationsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListForwardingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListFutureReservationsRequest message. + * Verifies an AggregatedListForwardingRulesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListFutureReservationsRequest.verify = function verify(message) { + AggregatedListForwardingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -633904,17 +634664,17 @@ }; /** - * Creates an AggregatedListFutureReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListForwardingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest */ - AggregatedListFutureReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest) + AggregatedListForwardingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -633942,15 +634702,15 @@ }; /** - * Creates a plain object from an AggregatedListFutureReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListForwardingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest + * @param {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListFutureReservationsRequest.toObject = function toObject(message, options) { + AggregatedListForwardingRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -634000,59 +634760,59 @@ }; /** - * Converts this AggregatedListFutureReservationsRequest to JSON. + * Converts this AggregatedListForwardingRulesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListFutureReservationsRequest.prototype.toJSON = function toJSON() { + AggregatedListForwardingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListFutureReservationsRequest + * Gets the default type url for AggregatedListForwardingRulesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListFutureReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListForwardingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest"; }; - return AggregatedListFutureReservationsRequest; + return AggregatedListForwardingRulesRequest; })(); - v1beta.AggregatedListGlobalOperationsRequest = (function() { + v1beta.AggregatedListFutureReservationsRequest = (function() { /** - * Properties of an AggregatedListGlobalOperationsRequest. + * Properties of an AggregatedListFutureReservationsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListGlobalOperationsRequest - * @property {string|null} [filter] AggregatedListGlobalOperationsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListGlobalOperationsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListGlobalOperationsRequest maxResults - * @property {string|null} [orderBy] AggregatedListGlobalOperationsRequest orderBy - * @property {string|null} [pageToken] AggregatedListGlobalOperationsRequest pageToken - * @property {string|null} [project] AggregatedListGlobalOperationsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListGlobalOperationsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListGlobalOperationsRequest serviceProjectNumber + * @interface IAggregatedListFutureReservationsRequest + * @property {string|null} [filter] AggregatedListFutureReservationsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListFutureReservationsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListFutureReservationsRequest maxResults + * @property {string|null} [orderBy] AggregatedListFutureReservationsRequest orderBy + * @property {string|null} [pageToken] AggregatedListFutureReservationsRequest pageToken + * @property {string|null} [project] AggregatedListFutureReservationsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListFutureReservationsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListFutureReservationsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListGlobalOperationsRequest. + * Constructs a new AggregatedListFutureReservationsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListGlobalOperationsRequest. - * @implements IAggregatedListGlobalOperationsRequest + * @classdesc Represents an AggregatedListFutureReservationsRequest. + * @implements IAggregatedListFutureReservationsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest=} [properties] Properties to set */ - function AggregatedListGlobalOperationsRequest(properties) { + function AggregatedListFutureReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -634060,136 +634820,136 @@ } /** - * AggregatedListGlobalOperationsRequest filter. + * AggregatedListFutureReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.filter = null; + AggregatedListFutureReservationsRequest.prototype.filter = null; /** - * AggregatedListGlobalOperationsRequest includeAllScopes. + * AggregatedListFutureReservationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.includeAllScopes = null; + AggregatedListFutureReservationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListGlobalOperationsRequest maxResults. + * AggregatedListFutureReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.maxResults = null; + AggregatedListFutureReservationsRequest.prototype.maxResults = null; /** - * AggregatedListGlobalOperationsRequest orderBy. + * AggregatedListFutureReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.orderBy = null; + AggregatedListFutureReservationsRequest.prototype.orderBy = null; /** - * AggregatedListGlobalOperationsRequest pageToken. + * AggregatedListFutureReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.pageToken = null; + AggregatedListFutureReservationsRequest.prototype.pageToken = null; /** - * AggregatedListGlobalOperationsRequest project. + * AggregatedListFutureReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.project = ""; + AggregatedListFutureReservationsRequest.prototype.project = ""; /** - * AggregatedListGlobalOperationsRequest returnPartialSuccess. + * AggregatedListFutureReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.returnPartialSuccess = null; + AggregatedListFutureReservationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListGlobalOperationsRequest serviceProjectNumber. + * AggregatedListFutureReservationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.serviceProjectNumber = null; + AggregatedListFutureReservationsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListGlobalOperationsRequest instance using the specified properties. + * Creates a new AggregatedListFutureReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest instance */ - AggregatedListGlobalOperationsRequest.create = function create(properties) { - return new AggregatedListGlobalOperationsRequest(properties); + AggregatedListFutureReservationsRequest.create = function create(properties) { + return new AggregatedListFutureReservationsRequest(properties); }; /** - * Encodes the specified AggregatedListGlobalOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListFutureReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListGlobalOperationsRequest.encode = function encode(message, writer) { + AggregatedListFutureReservationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -634212,33 +634972,33 @@ }; /** - * Encodes the specified AggregatedListGlobalOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListFutureReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListGlobalOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListFutureReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListGlobalOperationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListFutureReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListGlobalOperationsRequest.decode = function decode(reader, length, error) { + AggregatedListFutureReservationsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -634285,30 +635045,30 @@ }; /** - * Decodes an AggregatedListGlobalOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListFutureReservationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListGlobalOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListFutureReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListGlobalOperationsRequest message. + * Verifies an AggregatedListFutureReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListGlobalOperationsRequest.verify = function verify(message) { + AggregatedListFutureReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -634354,17 +635114,17 @@ }; /** - * Creates an AggregatedListGlobalOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListFutureReservationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest */ - AggregatedListGlobalOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest) + AggregatedListFutureReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -634392,15 +635152,15 @@ }; /** - * Creates a plain object from an AggregatedListGlobalOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListFutureReservationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest + * @param {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListGlobalOperationsRequest.toObject = function toObject(message, options) { + AggregatedListFutureReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -634450,59 +635210,59 @@ }; /** - * Converts this AggregatedListGlobalOperationsRequest to JSON. + * Converts this AggregatedListFutureReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListGlobalOperationsRequest.prototype.toJSON = function toJSON() { + AggregatedListFutureReservationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListGlobalOperationsRequest + * Gets the default type url for AggregatedListFutureReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListGlobalOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListFutureReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest"; }; - return AggregatedListGlobalOperationsRequest; + return AggregatedListFutureReservationsRequest; })(); - v1beta.AggregatedListHealthChecksRequest = (function() { + v1beta.AggregatedListGlobalOperationsRequest = (function() { /** - * Properties of an AggregatedListHealthChecksRequest. + * Properties of an AggregatedListGlobalOperationsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListHealthChecksRequest - * @property {string|null} [filter] AggregatedListHealthChecksRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListHealthChecksRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListHealthChecksRequest maxResults - * @property {string|null} [orderBy] AggregatedListHealthChecksRequest orderBy - * @property {string|null} [pageToken] AggregatedListHealthChecksRequest pageToken - * @property {string|null} [project] AggregatedListHealthChecksRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListHealthChecksRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListHealthChecksRequest serviceProjectNumber + * @interface IAggregatedListGlobalOperationsRequest + * @property {string|null} [filter] AggregatedListGlobalOperationsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListGlobalOperationsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListGlobalOperationsRequest maxResults + * @property {string|null} [orderBy] AggregatedListGlobalOperationsRequest orderBy + * @property {string|null} [pageToken] AggregatedListGlobalOperationsRequest pageToken + * @property {string|null} [project] AggregatedListGlobalOperationsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListGlobalOperationsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListGlobalOperationsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListHealthChecksRequest. + * Constructs a new AggregatedListGlobalOperationsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListHealthChecksRequest. - * @implements IAggregatedListHealthChecksRequest + * @classdesc Represents an AggregatedListGlobalOperationsRequest. + * @implements IAggregatedListGlobalOperationsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set */ - function AggregatedListHealthChecksRequest(properties) { + function AggregatedListGlobalOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -634510,136 +635270,136 @@ } /** - * AggregatedListHealthChecksRequest filter. + * AggregatedListGlobalOperationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.filter = null; + AggregatedListGlobalOperationsRequest.prototype.filter = null; /** - * AggregatedListHealthChecksRequest includeAllScopes. + * AggregatedListGlobalOperationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.includeAllScopes = null; + AggregatedListGlobalOperationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListHealthChecksRequest maxResults. + * AggregatedListGlobalOperationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.maxResults = null; + AggregatedListGlobalOperationsRequest.prototype.maxResults = null; /** - * AggregatedListHealthChecksRequest orderBy. + * AggregatedListGlobalOperationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.orderBy = null; + AggregatedListGlobalOperationsRequest.prototype.orderBy = null; /** - * AggregatedListHealthChecksRequest pageToken. + * AggregatedListGlobalOperationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.pageToken = null; + AggregatedListGlobalOperationsRequest.prototype.pageToken = null; /** - * AggregatedListHealthChecksRequest project. + * AggregatedListGlobalOperationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.project = ""; + AggregatedListGlobalOperationsRequest.prototype.project = ""; /** - * AggregatedListHealthChecksRequest returnPartialSuccess. + * AggregatedListGlobalOperationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.returnPartialSuccess = null; + AggregatedListGlobalOperationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListHealthChecksRequest serviceProjectNumber. + * AggregatedListGlobalOperationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.serviceProjectNumber = null; + AggregatedListGlobalOperationsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListHealthChecksRequest instance using the specified properties. + * Creates a new AggregatedListGlobalOperationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest instance */ - AggregatedListHealthChecksRequest.create = function create(properties) { - return new AggregatedListHealthChecksRequest(properties); + AggregatedListGlobalOperationsRequest.create = function create(properties) { + return new AggregatedListGlobalOperationsRequest(properties); }; /** - * Encodes the specified AggregatedListHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListHealthChecksRequest.encode = function encode(message, writer) { + AggregatedListGlobalOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -634662,33 +635422,33 @@ }; /** - * Encodes the specified AggregatedListHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListGlobalOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListHealthChecksRequest message from the specified reader or buffer. + * Decodes an AggregatedListGlobalOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListHealthChecksRequest.decode = function decode(reader, length, error) { + AggregatedListGlobalOperationsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -634735,30 +635495,30 @@ }; /** - * Decodes an AggregatedListHealthChecksRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListGlobalOperationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListGlobalOperationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListHealthChecksRequest message. + * Verifies an AggregatedListGlobalOperationsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListHealthChecksRequest.verify = function verify(message) { + AggregatedListGlobalOperationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -634804,17 +635564,17 @@ }; /** - * Creates an AggregatedListHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListGlobalOperationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest */ - AggregatedListHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest) + AggregatedListGlobalOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -634842,15 +635602,15 @@ }; /** - * Creates a plain object from an AggregatedListHealthChecksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListGlobalOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest + * @param {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListHealthChecksRequest.toObject = function toObject(message, options) { + AggregatedListGlobalOperationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -634900,59 +635660,59 @@ }; /** - * Converts this AggregatedListHealthChecksRequest to JSON. + * Converts this AggregatedListGlobalOperationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListHealthChecksRequest.prototype.toJSON = function toJSON() { + AggregatedListGlobalOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListHealthChecksRequest + * Gets the default type url for AggregatedListGlobalOperationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListGlobalOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest"; }; - return AggregatedListHealthChecksRequest; + return AggregatedListGlobalOperationsRequest; })(); - v1beta.AggregatedListInstanceGroupManagersRequest = (function() { + v1beta.AggregatedListGlobalVmExtensionPoliciesRequest = (function() { /** - * Properties of an AggregatedListInstanceGroupManagersRequest. + * Properties of an AggregatedListGlobalVmExtensionPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstanceGroupManagersRequest - * @property {string|null} [filter] AggregatedListInstanceGroupManagersRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstanceGroupManagersRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstanceGroupManagersRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstanceGroupManagersRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstanceGroupManagersRequest pageToken - * @property {string|null} [project] AggregatedListInstanceGroupManagersRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceGroupManagersRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceGroupManagersRequest serviceProjectNumber + * @interface IAggregatedListGlobalVmExtensionPoliciesRequest + * @property {string|null} [filter] AggregatedListGlobalVmExtensionPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListGlobalVmExtensionPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListGlobalVmExtensionPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListGlobalVmExtensionPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListGlobalVmExtensionPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListGlobalVmExtensionPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListGlobalVmExtensionPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListGlobalVmExtensionPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstanceGroupManagersRequest. + * Constructs a new AggregatedListGlobalVmExtensionPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstanceGroupManagersRequest. - * @implements IAggregatedListInstanceGroupManagersRequest + * @classdesc Represents an AggregatedListGlobalVmExtensionPoliciesRequest. + * @implements IAggregatedListGlobalVmExtensionPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest=} [properties] Properties to set */ - function AggregatedListInstanceGroupManagersRequest(properties) { + function AggregatedListGlobalVmExtensionPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -634960,136 +635720,136 @@ } /** - * AggregatedListInstanceGroupManagersRequest filter. + * AggregatedListGlobalVmExtensionPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.filter = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.filter = null; /** - * AggregatedListInstanceGroupManagersRequest includeAllScopes. + * AggregatedListGlobalVmExtensionPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.includeAllScopes = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstanceGroupManagersRequest maxResults. + * AggregatedListGlobalVmExtensionPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.maxResults = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListInstanceGroupManagersRequest orderBy. + * AggregatedListGlobalVmExtensionPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.orderBy = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListInstanceGroupManagersRequest pageToken. + * AggregatedListGlobalVmExtensionPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.pageToken = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListInstanceGroupManagersRequest project. + * AggregatedListGlobalVmExtensionPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.project = ""; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.project = ""; /** - * AggregatedListInstanceGroupManagersRequest returnPartialSuccess. + * AggregatedListGlobalVmExtensionPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstanceGroupManagersRequest serviceProjectNumber. + * AggregatedListGlobalVmExtensionPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.serviceProjectNumber = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstanceGroupManagersRequest instance using the specified properties. + * Creates a new AggregatedListGlobalVmExtensionPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest instance */ - AggregatedListInstanceGroupManagersRequest.create = function create(properties) { - return new AggregatedListInstanceGroupManagersRequest(properties); + AggregatedListGlobalVmExtensionPoliciesRequest.create = function create(properties) { + return new AggregatedListGlobalVmExtensionPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalVmExtensionPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest} message AggregatedListGlobalVmExtensionPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupManagersRequest.encode = function encode(message, writer) { + AggregatedListGlobalVmExtensionPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -635112,33 +635872,33 @@ }; /** - * Encodes the specified AggregatedListInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalVmExtensionPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest} message AggregatedListGlobalVmExtensionPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListGlobalVmExtensionPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer. + * Decodes an AggregatedListGlobalVmExtensionPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceGroupManagersRequest.decode = function decode(reader, length, error) { + AggregatedListGlobalVmExtensionPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -635185,30 +635945,30 @@ }; /** - * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListGlobalVmExtensionPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListGlobalVmExtensionPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstanceGroupManagersRequest message. + * Verifies an AggregatedListGlobalVmExtensionPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstanceGroupManagersRequest.verify = function verify(message) { + AggregatedListGlobalVmExtensionPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -635254,17 +636014,17 @@ }; /** - * Creates an AggregatedListInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListGlobalVmExtensionPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest */ - AggregatedListInstanceGroupManagersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest) + AggregatedListGlobalVmExtensionPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -635292,15 +636052,15 @@ }; /** - * Creates a plain object from an AggregatedListInstanceGroupManagersRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListGlobalVmExtensionPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest + * @param {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} message AggregatedListGlobalVmExtensionPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstanceGroupManagersRequest.toObject = function toObject(message, options) { + AggregatedListGlobalVmExtensionPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -635350,59 +636110,59 @@ }; /** - * Converts this AggregatedListInstanceGroupManagersRequest to JSON. + * Converts this AggregatedListGlobalVmExtensionPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstanceGroupManagersRequest + * Gets the default type url for AggregatedListGlobalVmExtensionPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListGlobalVmExtensionPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest"; }; - return AggregatedListInstanceGroupManagersRequest; + return AggregatedListGlobalVmExtensionPoliciesRequest; })(); - v1beta.AggregatedListInstanceGroupsRequest = (function() { + v1beta.AggregatedListHealthChecksRequest = (function() { /** - * Properties of an AggregatedListInstanceGroupsRequest. + * Properties of an AggregatedListHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstanceGroupsRequest - * @property {string|null} [filter] AggregatedListInstanceGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstanceGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstanceGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstanceGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstanceGroupsRequest pageToken - * @property {string|null} [project] AggregatedListInstanceGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceGroupsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceGroupsRequest serviceProjectNumber + * @interface IAggregatedListHealthChecksRequest + * @property {string|null} [filter] AggregatedListHealthChecksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListHealthChecksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListHealthChecksRequest maxResults + * @property {string|null} [orderBy] AggregatedListHealthChecksRequest orderBy + * @property {string|null} [pageToken] AggregatedListHealthChecksRequest pageToken + * @property {string|null} [project] AggregatedListHealthChecksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListHealthChecksRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListHealthChecksRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstanceGroupsRequest. + * Constructs a new AggregatedListHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstanceGroupsRequest. - * @implements IAggregatedListInstanceGroupsRequest + * @classdesc Represents an AggregatedListHealthChecksRequest. + * @implements IAggregatedListHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest=} [properties] Properties to set */ - function AggregatedListInstanceGroupsRequest(properties) { + function AggregatedListHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -635410,136 +636170,136 @@ } /** - * AggregatedListInstanceGroupsRequest filter. + * AggregatedListHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.filter = null; + AggregatedListHealthChecksRequest.prototype.filter = null; /** - * AggregatedListInstanceGroupsRequest includeAllScopes. + * AggregatedListHealthChecksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.includeAllScopes = null; + AggregatedListHealthChecksRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstanceGroupsRequest maxResults. + * AggregatedListHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.maxResults = null; + AggregatedListHealthChecksRequest.prototype.maxResults = null; /** - * AggregatedListInstanceGroupsRequest orderBy. + * AggregatedListHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.orderBy = null; + AggregatedListHealthChecksRequest.prototype.orderBy = null; /** - * AggregatedListInstanceGroupsRequest pageToken. + * AggregatedListHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.pageToken = null; + AggregatedListHealthChecksRequest.prototype.pageToken = null; /** - * AggregatedListInstanceGroupsRequest project. + * AggregatedListHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.project = ""; + AggregatedListHealthChecksRequest.prototype.project = ""; /** - * AggregatedListInstanceGroupsRequest returnPartialSuccess. + * AggregatedListHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListHealthChecksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstanceGroupsRequest serviceProjectNumber. + * AggregatedListHealthChecksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.serviceProjectNumber = null; + AggregatedListHealthChecksRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstanceGroupsRequest instance using the specified properties. + * Creates a new AggregatedListHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest instance */ - AggregatedListInstanceGroupsRequest.create = function create(properties) { - return new AggregatedListInstanceGroupsRequest(properties); + AggregatedListHealthChecksRequest.create = function create(properties) { + return new AggregatedListHealthChecksRequest(properties); }; /** - * Encodes the specified AggregatedListInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupsRequest.encode = function encode(message, writer) { + AggregatedListHealthChecksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -635562,33 +636322,33 @@ }; /** - * Encodes the specified AggregatedListInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceGroupsRequest.decode = function decode(reader, length, error) { + AggregatedListHealthChecksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -635635,30 +636395,30 @@ }; /** - * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstanceGroupsRequest message. + * Verifies an AggregatedListHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstanceGroupsRequest.verify = function verify(message) { + AggregatedListHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -635704,17 +636464,17 @@ }; /** - * Creates an AggregatedListInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest */ - AggregatedListInstanceGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest) + AggregatedListHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -635742,15 +636502,15 @@ }; /** - * Creates a plain object from an AggregatedListInstanceGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest + * @param {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstanceGroupsRequest.toObject = function toObject(message, options) { + AggregatedListHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -635800,59 +636560,59 @@ }; /** - * Converts this AggregatedListInstanceGroupsRequest to JSON. + * Converts this AggregatedListHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstanceGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstanceGroupsRequest + * Gets the default type url for AggregatedListHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListHealthChecksRequest"; }; - return AggregatedListInstanceGroupsRequest; + return AggregatedListHealthChecksRequest; })(); - v1beta.AggregatedListInstanceTemplatesRequest = (function() { + v1beta.AggregatedListInstanceGroupManagersRequest = (function() { /** - * Properties of an AggregatedListInstanceTemplatesRequest. + * Properties of an AggregatedListInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstanceTemplatesRequest - * @property {string|null} [filter] AggregatedListInstanceTemplatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstanceTemplatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstanceTemplatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstanceTemplatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstanceTemplatesRequest pageToken - * @property {string|null} [project] AggregatedListInstanceTemplatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceTemplatesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceTemplatesRequest serviceProjectNumber + * @interface IAggregatedListInstanceGroupManagersRequest + * @property {string|null} [filter] AggregatedListInstanceGroupManagersRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstanceGroupManagersRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstanceGroupManagersRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstanceGroupManagersRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstanceGroupManagersRequest pageToken + * @property {string|null} [project] AggregatedListInstanceGroupManagersRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceGroupManagersRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceGroupManagersRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstanceTemplatesRequest. + * Constructs a new AggregatedListInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstanceTemplatesRequest. - * @implements IAggregatedListInstanceTemplatesRequest + * @classdesc Represents an AggregatedListInstanceGroupManagersRequest. + * @implements IAggregatedListInstanceGroupManagersRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set */ - function AggregatedListInstanceTemplatesRequest(properties) { + function AggregatedListInstanceGroupManagersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -635860,136 +636620,136 @@ } /** - * AggregatedListInstanceTemplatesRequest filter. + * AggregatedListInstanceGroupManagersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.filter = null; + AggregatedListInstanceGroupManagersRequest.prototype.filter = null; /** - * AggregatedListInstanceTemplatesRequest includeAllScopes. + * AggregatedListInstanceGroupManagersRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.includeAllScopes = null; + AggregatedListInstanceGroupManagersRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstanceTemplatesRequest maxResults. + * AggregatedListInstanceGroupManagersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.maxResults = null; + AggregatedListInstanceGroupManagersRequest.prototype.maxResults = null; /** - * AggregatedListInstanceTemplatesRequest orderBy. + * AggregatedListInstanceGroupManagersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.orderBy = null; + AggregatedListInstanceGroupManagersRequest.prototype.orderBy = null; /** - * AggregatedListInstanceTemplatesRequest pageToken. + * AggregatedListInstanceGroupManagersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.pageToken = null; + AggregatedListInstanceGroupManagersRequest.prototype.pageToken = null; /** - * AggregatedListInstanceTemplatesRequest project. + * AggregatedListInstanceGroupManagersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.project = ""; + AggregatedListInstanceGroupManagersRequest.prototype.project = ""; /** - * AggregatedListInstanceTemplatesRequest returnPartialSuccess. + * AggregatedListInstanceGroupManagersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstanceTemplatesRequest serviceProjectNumber. + * AggregatedListInstanceGroupManagersRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.serviceProjectNumber = null; + AggregatedListInstanceGroupManagersRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstanceTemplatesRequest instance using the specified properties. + * Creates a new AggregatedListInstanceGroupManagersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest instance */ - AggregatedListInstanceTemplatesRequest.create = function create(properties) { - return new AggregatedListInstanceTemplatesRequest(properties); + AggregatedListInstanceGroupManagersRequest.create = function create(properties) { + return new AggregatedListInstanceGroupManagersRequest(properties); }; /** - * Encodes the specified AggregatedListInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceTemplatesRequest.encode = function encode(message, writer) { + AggregatedListInstanceGroupManagersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -636012,33 +636772,33 @@ }; /** - * Encodes the specified AggregatedListInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceTemplatesRequest.decode = function decode(reader, length, error) { + AggregatedListInstanceGroupManagersRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -636085,30 +636845,30 @@ }; /** - * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstanceTemplatesRequest message. + * Verifies an AggregatedListInstanceGroupManagersRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstanceTemplatesRequest.verify = function verify(message) { + AggregatedListInstanceGroupManagersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -636154,17 +636914,17 @@ }; /** - * Creates an AggregatedListInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest */ - AggregatedListInstanceTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest) + AggregatedListInstanceGroupManagersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -636192,15 +636952,15 @@ }; /** - * Creates a plain object from an AggregatedListInstanceTemplatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstanceGroupManagersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstanceTemplatesRequest.toObject = function toObject(message, options) { + AggregatedListInstanceGroupManagersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -636250,59 +637010,59 @@ }; /** - * Converts this AggregatedListInstanceTemplatesRequest to JSON. + * Converts this AggregatedListInstanceGroupManagersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstanceTemplatesRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstanceTemplatesRequest + * Gets the default type url for AggregatedListInstanceGroupManagersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest"; }; - return AggregatedListInstanceTemplatesRequest; + return AggregatedListInstanceGroupManagersRequest; })(); - v1beta.AggregatedListInstancesRequest = (function() { + v1beta.AggregatedListInstanceGroupsRequest = (function() { /** - * Properties of an AggregatedListInstancesRequest. + * Properties of an AggregatedListInstanceGroupsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstancesRequest - * @property {string|null} [filter] AggregatedListInstancesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstancesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstancesRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstancesRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstancesRequest pageToken - * @property {string|null} [project] AggregatedListInstancesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstancesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstancesRequest serviceProjectNumber + * @interface IAggregatedListInstanceGroupsRequest + * @property {string|null} [filter] AggregatedListInstanceGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstanceGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstanceGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstanceGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstanceGroupsRequest pageToken + * @property {string|null} [project] AggregatedListInstanceGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceGroupsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceGroupsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstancesRequest. + * Constructs a new AggregatedListInstanceGroupsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstancesRequest. - * @implements IAggregatedListInstancesRequest + * @classdesc Represents an AggregatedListInstanceGroupsRequest. + * @implements IAggregatedListInstanceGroupsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set */ - function AggregatedListInstancesRequest(properties) { + function AggregatedListInstanceGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -636310,136 +637070,136 @@ } /** - * AggregatedListInstancesRequest filter. + * AggregatedListInstanceGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstancesRequest.prototype.filter = null; + AggregatedListInstanceGroupsRequest.prototype.filter = null; /** - * AggregatedListInstancesRequest includeAllScopes. + * AggregatedListInstanceGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstancesRequest.prototype.includeAllScopes = null; + AggregatedListInstanceGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstancesRequest maxResults. + * AggregatedListInstanceGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstancesRequest.prototype.maxResults = null; + AggregatedListInstanceGroupsRequest.prototype.maxResults = null; /** - * AggregatedListInstancesRequest orderBy. + * AggregatedListInstanceGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstancesRequest.prototype.orderBy = null; + AggregatedListInstanceGroupsRequest.prototype.orderBy = null; /** - * AggregatedListInstancesRequest pageToken. + * AggregatedListInstanceGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstancesRequest.prototype.pageToken = null; + AggregatedListInstanceGroupsRequest.prototype.pageToken = null; /** - * AggregatedListInstancesRequest project. + * AggregatedListInstanceGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstancesRequest.prototype.project = ""; + AggregatedListInstanceGroupsRequest.prototype.project = ""; /** - * AggregatedListInstancesRequest returnPartialSuccess. + * AggregatedListInstanceGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstancesRequest serviceProjectNumber. + * AggregatedListInstanceGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListInstancesRequest.prototype.serviceProjectNumber = null; + AggregatedListInstanceGroupsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstancesRequest instance using the specified properties. + * Creates a new AggregatedListInstanceGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest instance */ - AggregatedListInstancesRequest.create = function create(properties) { - return new AggregatedListInstancesRequest(properties); + AggregatedListInstanceGroupsRequest.create = function create(properties) { + return new AggregatedListInstanceGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstancesRequest.encode = function encode(message, writer) { + AggregatedListInstanceGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -636462,33 +637222,33 @@ }; /** - * Encodes the specified AggregatedListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstancesRequest.decode = function decode(reader, length, error) { + AggregatedListInstanceGroupsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -636535,30 +637295,30 @@ }; /** - * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstancesRequest message. + * Verifies an AggregatedListInstanceGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstancesRequest.verify = function verify(message) { + AggregatedListInstanceGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -636604,17 +637364,17 @@ }; /** - * Creates an AggregatedListInstancesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest */ - AggregatedListInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest) + AggregatedListInstanceGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -636642,15 +637402,15 @@ }; /** - * Creates a plain object from an AggregatedListInstancesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstanceGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstancesRequest} message AggregatedListInstancesRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstancesRequest.toObject = function toObject(message, options) { + AggregatedListInstanceGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -636700,59 +637460,59 @@ }; /** - * Converts this AggregatedListInstancesRequest to JSON. + * Converts this AggregatedListInstanceGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstancesRequest + * Gets the default type url for AggregatedListInstanceGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest"; }; - return AggregatedListInstancesRequest; + return AggregatedListInstanceGroupsRequest; })(); - v1beta.AggregatedListInstantSnapshotsRequest = (function() { + v1beta.AggregatedListInstanceTemplatesRequest = (function() { /** - * Properties of an AggregatedListInstantSnapshotsRequest. + * Properties of an AggregatedListInstanceTemplatesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstantSnapshotsRequest - * @property {string|null} [filter] AggregatedListInstantSnapshotsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstantSnapshotsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstantSnapshotsRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstantSnapshotsRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstantSnapshotsRequest pageToken - * @property {string|null} [project] AggregatedListInstantSnapshotsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstantSnapshotsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstantSnapshotsRequest serviceProjectNumber + * @interface IAggregatedListInstanceTemplatesRequest + * @property {string|null} [filter] AggregatedListInstanceTemplatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstanceTemplatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstanceTemplatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstanceTemplatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstanceTemplatesRequest pageToken + * @property {string|null} [project] AggregatedListInstanceTemplatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceTemplatesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceTemplatesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstantSnapshotsRequest. + * Constructs a new AggregatedListInstanceTemplatesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstantSnapshotsRequest. - * @implements IAggregatedListInstantSnapshotsRequest + * @classdesc Represents an AggregatedListInstanceTemplatesRequest. + * @implements IAggregatedListInstanceTemplatesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set */ - function AggregatedListInstantSnapshotsRequest(properties) { + function AggregatedListInstanceTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -636760,136 +637520,136 @@ } /** - * AggregatedListInstantSnapshotsRequest filter. + * AggregatedListInstanceTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.filter = null; + AggregatedListInstanceTemplatesRequest.prototype.filter = null; /** - * AggregatedListInstantSnapshotsRequest includeAllScopes. + * AggregatedListInstanceTemplatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.includeAllScopes = null; + AggregatedListInstanceTemplatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstantSnapshotsRequest maxResults. + * AggregatedListInstanceTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.maxResults = null; + AggregatedListInstanceTemplatesRequest.prototype.maxResults = null; /** - * AggregatedListInstantSnapshotsRequest orderBy. + * AggregatedListInstanceTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.orderBy = null; + AggregatedListInstanceTemplatesRequest.prototype.orderBy = null; /** - * AggregatedListInstantSnapshotsRequest pageToken. + * AggregatedListInstanceTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.pageToken = null; + AggregatedListInstanceTemplatesRequest.prototype.pageToken = null; /** - * AggregatedListInstantSnapshotsRequest project. + * AggregatedListInstanceTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.project = ""; + AggregatedListInstanceTemplatesRequest.prototype.project = ""; /** - * AggregatedListInstantSnapshotsRequest returnPartialSuccess. + * AggregatedListInstanceTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceTemplatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstantSnapshotsRequest serviceProjectNumber. + * AggregatedListInstanceTemplatesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.serviceProjectNumber = null; + AggregatedListInstanceTemplatesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstantSnapshotsRequest instance using the specified properties. + * Creates a new AggregatedListInstanceTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest instance */ - AggregatedListInstantSnapshotsRequest.create = function create(properties) { - return new AggregatedListInstantSnapshotsRequest(properties); + AggregatedListInstanceTemplatesRequest.create = function create(properties) { + return new AggregatedListInstanceTemplatesRequest(properties); }; /** - * Encodes the specified AggregatedListInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstantSnapshotsRequest.encode = function encode(message, writer) { + AggregatedListInstanceTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -636912,33 +637672,33 @@ }; /** - * Encodes the specified AggregatedListInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstantSnapshotsRequest.decode = function decode(reader, length, error) { + AggregatedListInstanceTemplatesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -636985,30 +637745,30 @@ }; /** - * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstantSnapshotsRequest message. + * Verifies an AggregatedListInstanceTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstantSnapshotsRequest.verify = function verify(message) { + AggregatedListInstanceTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -637054,17 +637814,17 @@ }; /** - * Creates an AggregatedListInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest */ - AggregatedListInstantSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest) + AggregatedListInstanceTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -637092,15 +637852,15 @@ }; /** - * Creates a plain object from an AggregatedListInstantSnapshotsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstanceTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstantSnapshotsRequest.toObject = function toObject(message, options) { + AggregatedListInstanceTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -637150,59 +637910,59 @@ }; /** - * Converts this AggregatedListInstantSnapshotsRequest to JSON. + * Converts this AggregatedListInstanceTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstantSnapshotsRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstantSnapshotsRequest + * Gets the default type url for AggregatedListInstanceTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest"; }; - return AggregatedListInstantSnapshotsRequest; + return AggregatedListInstanceTemplatesRequest; })(); - v1beta.AggregatedListInterconnectAttachmentsRequest = (function() { + v1beta.AggregatedListInstancesRequest = (function() { /** - * Properties of an AggregatedListInterconnectAttachmentsRequest. + * Properties of an AggregatedListInstancesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInterconnectAttachmentsRequest - * @property {string|null} [filter] AggregatedListInterconnectAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInterconnectAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInterconnectAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListInterconnectAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListInterconnectAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListInterconnectAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInterconnectAttachmentsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInterconnectAttachmentsRequest serviceProjectNumber + * @interface IAggregatedListInstancesRequest + * @property {string|null} [filter] AggregatedListInstancesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstancesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstancesRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstancesRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstancesRequest pageToken + * @property {string|null} [project] AggregatedListInstancesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstancesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstancesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInterconnectAttachmentsRequest. + * Constructs a new AggregatedListInstancesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInterconnectAttachmentsRequest. - * @implements IAggregatedListInterconnectAttachmentsRequest + * @classdesc Represents an AggregatedListInstancesRequest. + * @implements IAggregatedListInstancesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest=} [properties] Properties to set */ - function AggregatedListInterconnectAttachmentsRequest(properties) { + function AggregatedListInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -637210,136 +637970,136 @@ } /** - * AggregatedListInterconnectAttachmentsRequest filter. + * AggregatedListInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.filter = null; + AggregatedListInstancesRequest.prototype.filter = null; /** - * AggregatedListInterconnectAttachmentsRequest includeAllScopes. + * AggregatedListInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInterconnectAttachmentsRequest maxResults. + * AggregatedListInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.maxResults = null; + AggregatedListInstancesRequest.prototype.maxResults = null; /** - * AggregatedListInterconnectAttachmentsRequest orderBy. + * AggregatedListInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.orderBy = null; + AggregatedListInstancesRequest.prototype.orderBy = null; /** - * AggregatedListInterconnectAttachmentsRequest pageToken. + * AggregatedListInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.pageToken = null; + AggregatedListInstancesRequest.prototype.pageToken = null; /** - * AggregatedListInterconnectAttachmentsRequest project. + * AggregatedListInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.project = ""; + AggregatedListInstancesRequest.prototype.project = ""; /** - * AggregatedListInterconnectAttachmentsRequest returnPartialSuccess. + * AggregatedListInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListInstancesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInterconnectAttachmentsRequest serviceProjectNumber. + * AggregatedListInstancesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.serviceProjectNumber = null; + AggregatedListInstancesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInterconnectAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest instance */ - AggregatedListInterconnectAttachmentsRequest.create = function create(properties) { - return new AggregatedListInterconnectAttachmentsRequest(properties); + AggregatedListInstancesRequest.create = function create(properties) { + return new AggregatedListInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListInterconnectAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInterconnectAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListInstancesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -637362,33 +638122,33 @@ }; /** - * Encodes the specified AggregatedListInterconnectAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInterconnectAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInterconnectAttachmentsRequest.decode = function decode(reader, length, error) { + AggregatedListInstancesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -637435,30 +638195,30 @@ }; /** - * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInterconnectAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInterconnectAttachmentsRequest message. + * Verifies an AggregatedListInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInterconnectAttachmentsRequest.verify = function verify(message) { + AggregatedListInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -637504,17 +638264,17 @@ }; /** - * Creates an AggregatedListInterconnectAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstancesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest */ - AggregatedListInterconnectAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest) + AggregatedListInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -637542,15 +638302,15 @@ }; /** - * Creates a plain object from an AggregatedListInterconnectAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstancesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstancesRequest} message AggregatedListInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInterconnectAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -637600,59 +638360,59 @@ }; /** - * Converts this AggregatedListInterconnectAttachmentsRequest to JSON. + * Converts this AggregatedListInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInterconnectAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListInstancesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInterconnectAttachmentsRequest + * Gets the default type url for AggregatedListInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInterconnectAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstancesRequest"; }; - return AggregatedListInterconnectAttachmentsRequest; + return AggregatedListInstancesRequest; })(); - v1beta.AggregatedListMachineTypesRequest = (function() { + v1beta.AggregatedListInstantSnapshotsRequest = (function() { /** - * Properties of an AggregatedListMachineTypesRequest. + * Properties of an AggregatedListInstantSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListMachineTypesRequest - * @property {string|null} [filter] AggregatedListMachineTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListMachineTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListMachineTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListMachineTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListMachineTypesRequest pageToken - * @property {string|null} [project] AggregatedListMachineTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListMachineTypesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListMachineTypesRequest serviceProjectNumber + * @interface IAggregatedListInstantSnapshotsRequest + * @property {string|null} [filter] AggregatedListInstantSnapshotsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstantSnapshotsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstantSnapshotsRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstantSnapshotsRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstantSnapshotsRequest pageToken + * @property {string|null} [project] AggregatedListInstantSnapshotsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstantSnapshotsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstantSnapshotsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListMachineTypesRequest. + * Constructs a new AggregatedListInstantSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListMachineTypesRequest. - * @implements IAggregatedListMachineTypesRequest + * @classdesc Represents an AggregatedListInstantSnapshotsRequest. + * @implements IAggregatedListInstantSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set */ - function AggregatedListMachineTypesRequest(properties) { + function AggregatedListInstantSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -637660,136 +638420,136 @@ } /** - * AggregatedListMachineTypesRequest filter. + * AggregatedListInstantSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.filter = null; + AggregatedListInstantSnapshotsRequest.prototype.filter = null; /** - * AggregatedListMachineTypesRequest includeAllScopes. + * AggregatedListInstantSnapshotsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.includeAllScopes = null; + AggregatedListInstantSnapshotsRequest.prototype.includeAllScopes = null; /** - * AggregatedListMachineTypesRequest maxResults. + * AggregatedListInstantSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.maxResults = null; + AggregatedListInstantSnapshotsRequest.prototype.maxResults = null; /** - * AggregatedListMachineTypesRequest orderBy. + * AggregatedListInstantSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.orderBy = null; + AggregatedListInstantSnapshotsRequest.prototype.orderBy = null; /** - * AggregatedListMachineTypesRequest pageToken. + * AggregatedListInstantSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.pageToken = null; + AggregatedListInstantSnapshotsRequest.prototype.pageToken = null; /** - * AggregatedListMachineTypesRequest project. + * AggregatedListInstantSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.project = ""; + AggregatedListInstantSnapshotsRequest.prototype.project = ""; /** - * AggregatedListMachineTypesRequest returnPartialSuccess. + * AggregatedListInstantSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListInstantSnapshotsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListMachineTypesRequest serviceProjectNumber. + * AggregatedListInstantSnapshotsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.serviceProjectNumber = null; + AggregatedListInstantSnapshotsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListMachineTypesRequest instance using the specified properties. + * Creates a new AggregatedListInstantSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest instance */ - AggregatedListMachineTypesRequest.create = function create(properties) { - return new AggregatedListMachineTypesRequest(properties); + AggregatedListInstantSnapshotsRequest.create = function create(properties) { + return new AggregatedListInstantSnapshotsRequest(properties); }; /** - * Encodes the specified AggregatedListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListMachineTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListMachineTypesRequest.encode = function encode(message, writer) { + AggregatedListInstantSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -637812,33 +638572,33 @@ }; /** - * Encodes the specified AggregatedListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListMachineTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListMachineTypesRequest.decode = function decode(reader, length, error) { + AggregatedListInstantSnapshotsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -637885,30 +638645,30 @@ }; /** - * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListMachineTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListMachineTypesRequest message. + * Verifies an AggregatedListInstantSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListMachineTypesRequest.verify = function verify(message) { + AggregatedListInstantSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -637954,17 +638714,17 @@ }; /** - * Creates an AggregatedListMachineTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest */ - AggregatedListMachineTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest) + AggregatedListInstantSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -637992,15 +638752,15 @@ }; /** - * Creates a plain object from an AggregatedListMachineTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstantSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListMachineTypesRequest.toObject = function toObject(message, options) { + AggregatedListInstantSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -638050,59 +638810,59 @@ }; /** - * Converts this AggregatedListMachineTypesRequest to JSON. + * Converts this AggregatedListInstantSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListMachineTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListInstantSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListMachineTypesRequest + * Gets the default type url for AggregatedListInstantSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListMachineTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListMachineTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest"; }; - return AggregatedListMachineTypesRequest; + return AggregatedListInstantSnapshotsRequest; })(); - v1beta.AggregatedListNetworkAttachmentsRequest = (function() { + v1beta.AggregatedListInterconnectAttachmentsRequest = (function() { /** - * Properties of an AggregatedListNetworkAttachmentsRequest. + * Properties of an AggregatedListInterconnectAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNetworkAttachmentsRequest - * @property {string|null} [filter] AggregatedListNetworkAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListNetworkAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkAttachmentsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkAttachmentsRequest serviceProjectNumber + * @interface IAggregatedListInterconnectAttachmentsRequest + * @property {string|null} [filter] AggregatedListInterconnectAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInterconnectAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInterconnectAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListInterconnectAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListInterconnectAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListInterconnectAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInterconnectAttachmentsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInterconnectAttachmentsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNetworkAttachmentsRequest. + * Constructs a new AggregatedListInterconnectAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNetworkAttachmentsRequest. - * @implements IAggregatedListNetworkAttachmentsRequest + * @classdesc Represents an AggregatedListInterconnectAttachmentsRequest. + * @implements IAggregatedListInterconnectAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListNetworkAttachmentsRequest(properties) { + function AggregatedListInterconnectAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -638110,136 +638870,136 @@ } /** - * AggregatedListNetworkAttachmentsRequest filter. + * AggregatedListInterconnectAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.filter = null; + AggregatedListInterconnectAttachmentsRequest.prototype.filter = null; /** - * AggregatedListNetworkAttachmentsRequest includeAllScopes. + * AggregatedListInterconnectAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListInterconnectAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkAttachmentsRequest maxResults. + * AggregatedListInterconnectAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.maxResults = null; + AggregatedListInterconnectAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListNetworkAttachmentsRequest orderBy. + * AggregatedListInterconnectAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.orderBy = null; + AggregatedListInterconnectAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListNetworkAttachmentsRequest pageToken. + * AggregatedListInterconnectAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.pageToken = null; + AggregatedListInterconnectAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListNetworkAttachmentsRequest project. + * AggregatedListInterconnectAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.project = ""; + AggregatedListInterconnectAttachmentsRequest.prototype.project = ""; /** - * AggregatedListNetworkAttachmentsRequest returnPartialSuccess. + * AggregatedListInterconnectAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListInterconnectAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkAttachmentsRequest serviceProjectNumber. + * AggregatedListInterconnectAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.serviceProjectNumber = null; + AggregatedListInterconnectAttachmentsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListInterconnectAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest instance */ - AggregatedListNetworkAttachmentsRequest.create = function create(properties) { - return new AggregatedListNetworkAttachmentsRequest(properties); + AggregatedListInterconnectAttachmentsRequest.create = function create(properties) { + return new AggregatedListInterconnectAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInterconnectAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListInterconnectAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -638262,33 +639022,33 @@ }; /** - * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInterconnectAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInterconnectAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkAttachmentsRequest.decode = function decode(reader, length, error) { + AggregatedListInterconnectAttachmentsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -638335,30 +639095,30 @@ }; /** - * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInterconnectAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkAttachmentsRequest message. + * Verifies an AggregatedListInterconnectAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkAttachmentsRequest.verify = function verify(message) { + AggregatedListInterconnectAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -638404,17 +639164,17 @@ }; /** - * Creates an AggregatedListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInterconnectAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest */ - AggregatedListNetworkAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest) + AggregatedListInterconnectAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -638442,15 +639202,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInterconnectAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest + * @param {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListInterconnectAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -638500,59 +639260,59 @@ }; /** - * Converts this AggregatedListNetworkAttachmentsRequest to JSON. + * Converts this AggregatedListInterconnectAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListInterconnectAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkAttachmentsRequest + * Gets the default type url for AggregatedListInterconnectAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInterconnectAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest"; }; - return AggregatedListNetworkAttachmentsRequest; + return AggregatedListInterconnectAttachmentsRequest; })(); - v1beta.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { + v1beta.AggregatedListMachineTypesRequest = (function() { /** - * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. + * Properties of an AggregatedListMachineTypesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNetworkEdgeSecurityServicesRequest - * @property {string|null} [filter] AggregatedListNetworkEdgeSecurityServicesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkEdgeSecurityServicesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkEdgeSecurityServicesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkEdgeSecurityServicesRequest pageToken - * @property {string|null} [project] AggregatedListNetworkEdgeSecurityServicesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber + * @interface IAggregatedListMachineTypesRequest + * @property {string|null} [filter] AggregatedListMachineTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListMachineTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListMachineTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListMachineTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListMachineTypesRequest pageToken + * @property {string|null} [project] AggregatedListMachineTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListMachineTypesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListMachineTypesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNetworkEdgeSecurityServicesRequest. + * Constructs a new AggregatedListMachineTypesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. - * @implements IAggregatedListNetworkEdgeSecurityServicesRequest + * @classdesc Represents an AggregatedListMachineTypesRequest. + * @implements IAggregatedListMachineTypesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest=} [properties] Properties to set */ - function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { + function AggregatedListMachineTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -638560,136 +639320,136 @@ } /** - * AggregatedListNetworkEdgeSecurityServicesRequest filter. + * AggregatedListMachineTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; + AggregatedListMachineTypesRequest.prototype.filter = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. + * AggregatedListMachineTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; + AggregatedListMachineTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. + * AggregatedListMachineTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; + AggregatedListMachineTypesRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. + * AggregatedListMachineTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; + AggregatedListMachineTypesRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. + * AggregatedListMachineTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; + AggregatedListMachineTypesRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest project. + * AggregatedListMachineTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; + AggregatedListMachineTypesRequest.prototype.project = ""; /** - * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. + * AggregatedListMachineTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; + AggregatedListMachineTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber. + * AggregatedListMachineTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.serviceProjectNumber = null; + AggregatedListMachineTypesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. + * Creates a new AggregatedListMachineTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { - return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); + AggregatedListMachineTypesRequest.create = function create(properties) { + return new AggregatedListMachineTypesRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListMachineTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.encode = function encode(message, writer) { + AggregatedListMachineTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -638712,33 +639472,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListMachineTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. + * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEdgeSecurityServicesRequest.decode = function decode(reader, length, error) { + AggregatedListMachineTypesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -638785,30 +639545,30 @@ }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEdgeSecurityServicesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListMachineTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. + * Verifies an AggregatedListMachineTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkEdgeSecurityServicesRequest.verify = function verify(message) { + AggregatedListMachineTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -638854,17 +639614,17 @@ }; /** - * Creates an AggregatedListNetworkEdgeSecurityServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListMachineTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest */ - AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest) + AggregatedListMachineTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -638892,15 +639652,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEdgeSecurityServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListMachineTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest + * @param {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { + AggregatedListMachineTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -638950,59 +639710,59 @@ }; /** - * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. + * Converts this AggregatedListMachineTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.toJSON = function toJSON() { + AggregatedListMachineTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkEdgeSecurityServicesRequest + * Gets the default type url for AggregatedListMachineTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListMachineTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListMachineTypesRequest"; }; - return AggregatedListNetworkEdgeSecurityServicesRequest; + return AggregatedListMachineTypesRequest; })(); - v1beta.AggregatedListNetworkEndpointGroupsRequest = (function() { + v1beta.AggregatedListNetworkAttachmentsRequest = (function() { /** - * Properties of an AggregatedListNetworkEndpointGroupsRequest. + * Properties of an AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNetworkEndpointGroupsRequest - * @property {string|null} [filter] AggregatedListNetworkEndpointGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEndpointGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] AggregatedListNetworkEndpointGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber + * @interface IAggregatedListNetworkAttachmentsRequest + * @property {string|null} [filter] AggregatedListNetworkAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListNetworkAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkAttachmentsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkAttachmentsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNetworkEndpointGroupsRequest. + * Constructs a new AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. - * @implements IAggregatedListNetworkEndpointGroupsRequest + * @classdesc Represents an AggregatedListNetworkAttachmentsRequest. + * @implements IAggregatedListNetworkAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListNetworkEndpointGroupsRequest(properties) { + function AggregatedListNetworkAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -639010,136 +639770,136 @@ } /** - * AggregatedListNetworkEndpointGroupsRequest filter. + * AggregatedListNetworkAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; + AggregatedListNetworkAttachmentsRequest.prototype.filter = null; /** - * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. + * AggregatedListNetworkAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEndpointGroupsRequest maxResults. + * AggregatedListNetworkAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; + AggregatedListNetworkAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEndpointGroupsRequest orderBy. + * AggregatedListNetworkAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; + AggregatedListNetworkAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEndpointGroupsRequest pageToken. + * AggregatedListNetworkAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; + AggregatedListNetworkAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEndpointGroupsRequest project. + * AggregatedListNetworkAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; + AggregatedListNetworkAttachmentsRequest.prototype.project = ""; /** - * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. + * AggregatedListNetworkAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber. + * AggregatedListNetworkAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.serviceProjectNumber = null; + AggregatedListNetworkAttachmentsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest instance */ - AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { - return new AggregatedListNetworkEndpointGroupsRequest(properties); + AggregatedListNetworkAttachmentsRequest.create = function create(properties) { + return new AggregatedListNetworkAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + AggregatedListNetworkAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -639162,33 +639922,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { + AggregatedListNetworkAttachmentsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -639235,30 +639995,30 @@ }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEndpointGroupsRequest message. + * Verifies an AggregatedListNetworkAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { + AggregatedListNetworkAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -639304,17 +640064,17 @@ }; /** - * Creates an AggregatedListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest */ - AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest) + AggregatedListNetworkAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -639342,15 +640102,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -639400,59 +640160,59 @@ }; /** - * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. + * Converts this AggregatedListNetworkAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkEndpointGroupsRequest + * Gets the default type url for AggregatedListNetworkAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest"; }; - return AggregatedListNetworkEndpointGroupsRequest; + return AggregatedListNetworkAttachmentsRequest; })(); - v1beta.AggregatedListNetworkFirewallPoliciesRequest = (function() { + v1beta.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { /** - * Properties of an AggregatedListNetworkFirewallPoliciesRequest. + * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNetworkFirewallPoliciesRequest - * @property {string|null} [filter] AggregatedListNetworkFirewallPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkFirewallPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkFirewallPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkFirewallPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkFirewallPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListNetworkFirewallPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber + * @interface IAggregatedListNetworkEdgeSecurityServicesRequest + * @property {string|null} [filter] AggregatedListNetworkEdgeSecurityServicesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkEdgeSecurityServicesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkEdgeSecurityServicesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkEdgeSecurityServicesRequest pageToken + * @property {string|null} [project] AggregatedListNetworkEdgeSecurityServicesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNetworkFirewallPoliciesRequest. + * Constructs a new AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNetworkFirewallPoliciesRequest. - * @implements IAggregatedListNetworkFirewallPoliciesRequest + * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. + * @implements IAggregatedListNetworkEdgeSecurityServicesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set */ - function AggregatedListNetworkFirewallPoliciesRequest(properties) { + function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -639460,136 +640220,136 @@ } /** - * AggregatedListNetworkFirewallPoliciesRequest filter. + * AggregatedListNetworkEdgeSecurityServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.filter = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; /** - * AggregatedListNetworkFirewallPoliciesRequest includeAllScopes. + * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkFirewallPoliciesRequest maxResults. + * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.maxResults = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; /** - * AggregatedListNetworkFirewallPoliciesRequest orderBy. + * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.orderBy = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; /** - * AggregatedListNetworkFirewallPoliciesRequest pageToken. + * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.pageToken = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; /** - * AggregatedListNetworkFirewallPoliciesRequest project. + * AggregatedListNetworkEdgeSecurityServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.project = ""; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; /** - * AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess. + * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber. + * AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkFirewallPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance */ - AggregatedListNetworkFirewallPoliciesRequest.create = function create(properties) { - return new AggregatedListNetworkFirewallPoliciesRequest(properties); + AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { + return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { + AggregatedListNetworkEdgeSecurityServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -639612,33 +640372,33 @@ }; /** - * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkFirewallPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListNetworkEdgeSecurityServicesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -639685,30 +640445,30 @@ }; /** - * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkEdgeSecurityServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkFirewallPoliciesRequest message. + * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkFirewallPoliciesRequest.verify = function verify(message) { + AggregatedListNetworkEdgeSecurityServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -639754,17 +640514,17 @@ }; /** - * Creates an AggregatedListNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkEdgeSecurityServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest */ - AggregatedListNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest) + AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -639792,15 +640552,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkEdgeSecurityServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest + * @param {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -639850,59 +640610,59 @@ }; /** - * Converts this AggregatedListNetworkFirewallPoliciesRequest to JSON. + * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkFirewallPoliciesRequest + * Gets the default type url for AggregatedListNetworkEdgeSecurityServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest"; }; - return AggregatedListNetworkFirewallPoliciesRequest; + return AggregatedListNetworkEdgeSecurityServicesRequest; })(); - v1beta.AggregatedListNodeGroupsRequest = (function() { + v1beta.AggregatedListNetworkEndpointGroupsRequest = (function() { /** - * Properties of an AggregatedListNodeGroupsRequest. + * Properties of an AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNodeGroupsRequest - * @property {string|null} [filter] AggregatedListNodeGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeGroupsRequest pageToken - * @property {string|null} [project] AggregatedListNodeGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeGroupsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeGroupsRequest serviceProjectNumber + * @interface IAggregatedListNetworkEndpointGroupsRequest + * @property {string|null} [filter] AggregatedListNetworkEndpointGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEndpointGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] AggregatedListNetworkEndpointGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNodeGroupsRequest. + * Constructs a new AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNodeGroupsRequest. - * @implements IAggregatedListNodeGroupsRequest + * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. + * @implements IAggregatedListNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function AggregatedListNodeGroupsRequest(properties) { + function AggregatedListNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -639910,136 +640670,136 @@ } /** - * AggregatedListNodeGroupsRequest filter. + * AggregatedListNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.filter = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; /** - * AggregatedListNodeGroupsRequest includeAllScopes. + * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeGroupsRequest maxResults. + * AggregatedListNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.maxResults = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNodeGroupsRequest orderBy. + * AggregatedListNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.orderBy = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNodeGroupsRequest pageToken. + * AggregatedListNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.pageToken = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNodeGroupsRequest project. + * AggregatedListNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.project = ""; + AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; /** - * AggregatedListNodeGroupsRequest returnPartialSuccess. + * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeGroupsRequest serviceProjectNumber. + * AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.serviceProjectNumber = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance */ - AggregatedListNodeGroupsRequest.create = function create(properties) { - return new AggregatedListNodeGroupsRequest(properties); + AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { + return new AggregatedListNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.encode = function encode(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -640062,33 +640822,33 @@ }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeGroupsRequest.decode = function decode(reader, length, error) { + AggregatedListNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -640135,30 +640895,30 @@ }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeGroupsRequest message. + * Verifies an AggregatedListNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeGroupsRequest.verify = function verify(message) { + AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -640204,17 +640964,17 @@ }; /** - * Creates an AggregatedListNodeGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest */ - AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest) + AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -640242,15 +641002,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest + * @param {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -640300,59 +641060,59 @@ }; /** - * Converts this AggregatedListNodeGroupsRequest to JSON. + * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeGroupsRequest + * Gets the default type url for AggregatedListNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest"; }; - return AggregatedListNodeGroupsRequest; + return AggregatedListNetworkEndpointGroupsRequest; })(); - v1beta.AggregatedListNodeTemplatesRequest = (function() { + v1beta.AggregatedListNetworkFirewallPoliciesRequest = (function() { /** - * Properties of an AggregatedListNodeTemplatesRequest. + * Properties of an AggregatedListNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNodeTemplatesRequest - * @property {string|null} [filter] AggregatedListNodeTemplatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeTemplatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeTemplatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeTemplatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeTemplatesRequest pageToken - * @property {string|null} [project] AggregatedListNodeTemplatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTemplatesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeTemplatesRequest serviceProjectNumber + * @interface IAggregatedListNetworkFirewallPoliciesRequest + * @property {string|null} [filter] AggregatedListNetworkFirewallPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkFirewallPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkFirewallPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkFirewallPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkFirewallPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListNetworkFirewallPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNodeTemplatesRequest. + * Constructs a new AggregatedListNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNodeTemplatesRequest. - * @implements IAggregatedListNodeTemplatesRequest + * @classdesc Represents an AggregatedListNetworkFirewallPoliciesRequest. + * @implements IAggregatedListNetworkFirewallPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set */ - function AggregatedListNodeTemplatesRequest(properties) { + function AggregatedListNetworkFirewallPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -640360,136 +641120,136 @@ } /** - * AggregatedListNodeTemplatesRequest filter. + * AggregatedListNetworkFirewallPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.filter = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.filter = null; /** - * AggregatedListNodeTemplatesRequest includeAllScopes. + * AggregatedListNetworkFirewallPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTemplatesRequest maxResults. + * AggregatedListNetworkFirewallPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.maxResults = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListNodeTemplatesRequest orderBy. + * AggregatedListNetworkFirewallPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.orderBy = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListNodeTemplatesRequest pageToken. + * AggregatedListNetworkFirewallPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.pageToken = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListNodeTemplatesRequest project. + * AggregatedListNetworkFirewallPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.project = ""; + AggregatedListNetworkFirewallPoliciesRequest.prototype.project = ""; /** - * AggregatedListNodeTemplatesRequest returnPartialSuccess. + * AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeTemplatesRequest serviceProjectNumber. + * AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.serviceProjectNumber = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. + * Creates a new AggregatedListNetworkFirewallPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest instance */ - AggregatedListNodeTemplatesRequest.create = function create(properties) { - return new AggregatedListNodeTemplatesRequest(properties); + AggregatedListNetworkFirewallPoliciesRequest.create = function create(properties) { + return new AggregatedListNetworkFirewallPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.encode = function encode(message, writer) { + AggregatedListNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -640512,33 +641272,33 @@ }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTemplatesRequest.decode = function decode(reader, length, error) { + AggregatedListNetworkFirewallPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -640585,30 +641345,30 @@ }; /** - * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTemplatesRequest message. + * Verifies an AggregatedListNetworkFirewallPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeTemplatesRequest.verify = function verify(message) { + AggregatedListNetworkFirewallPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -640654,17 +641414,17 @@ }; /** - * Creates an AggregatedListNodeTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest */ - AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest) + AggregatedListNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -640692,15 +641452,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTemplatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest + * @param {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { + AggregatedListNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -640750,59 +641510,59 @@ }; /** - * Converts this AggregatedListNodeTemplatesRequest to JSON. + * Converts this AggregatedListNetworkFirewallPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTemplatesRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeTemplatesRequest + * Gets the default type url for AggregatedListNetworkFirewallPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest"; }; - return AggregatedListNodeTemplatesRequest; + return AggregatedListNetworkFirewallPoliciesRequest; })(); - v1beta.AggregatedListNodeTypesRequest = (function() { + v1beta.AggregatedListNodeGroupsRequest = (function() { /** - * Properties of an AggregatedListNodeTypesRequest. + * Properties of an AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNodeTypesRequest - * @property {string|null} [filter] AggregatedListNodeTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeTypesRequest pageToken - * @property {string|null} [project] AggregatedListNodeTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTypesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeTypesRequest serviceProjectNumber + * @interface IAggregatedListNodeGroupsRequest + * @property {string|null} [filter] AggregatedListNodeGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeGroupsRequest pageToken + * @property {string|null} [project] AggregatedListNodeGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeGroupsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeGroupsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNodeTypesRequest. + * Constructs a new AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNodeTypesRequest. - * @implements IAggregatedListNodeTypesRequest + * @classdesc Represents an AggregatedListNodeGroupsRequest. + * @implements IAggregatedListNodeGroupsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest=} [properties] Properties to set */ - function AggregatedListNodeTypesRequest(properties) { + function AggregatedListNodeGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -640810,136 +641570,136 @@ } /** - * AggregatedListNodeTypesRequest filter. + * AggregatedListNodeGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.filter = null; + AggregatedListNodeGroupsRequest.prototype.filter = null; /** - * AggregatedListNodeTypesRequest includeAllScopes. + * AggregatedListNodeGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; + AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTypesRequest maxResults. + * AggregatedListNodeGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.maxResults = null; + AggregatedListNodeGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNodeTypesRequest orderBy. + * AggregatedListNodeGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.orderBy = null; + AggregatedListNodeGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNodeTypesRequest pageToken. + * AggregatedListNodeGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.pageToken = null; + AggregatedListNodeGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNodeTypesRequest project. + * AggregatedListNodeGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.project = ""; + AggregatedListNodeGroupsRequest.prototype.project = ""; /** - * AggregatedListNodeTypesRequest returnPartialSuccess. + * AggregatedListNodeGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeTypesRequest serviceProjectNumber. + * AggregatedListNodeGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.serviceProjectNumber = null; + AggregatedListNodeGroupsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. + * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance */ - AggregatedListNodeTypesRequest.create = function create(properties) { - return new AggregatedListNodeTypesRequest(properties); + AggregatedListNodeGroupsRequest.create = function create(properties) { + return new AggregatedListNodeGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.encode = function encode(message, writer) { + AggregatedListNodeGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -640962,33 +641722,33 @@ }; /** - * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTypesRequest.decode = function decode(reader, length, error) { + AggregatedListNodeGroupsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -641035,30 +641795,30 @@ }; /** - * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTypesRequest message. + * Verifies an AggregatedListNodeGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeTypesRequest.verify = function verify(message) { + AggregatedListNodeGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -641104,17 +641864,17 @@ }; /** - * Creates an AggregatedListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest */ - AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest) + AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -641142,15 +641902,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest + * @param {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { + AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -641200,59 +641960,59 @@ }; /** - * Converts this AggregatedListNodeTypesRequest to JSON. + * Converts this AggregatedListNodeGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeTypesRequest + * Gets the default type url for AggregatedListNodeGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest"; }; - return AggregatedListNodeTypesRequest; + return AggregatedListNodeGroupsRequest; })(); - v1beta.AggregatedListPacketMirroringsRequest = (function() { + v1beta.AggregatedListNodeTemplatesRequest = (function() { /** - * Properties of an AggregatedListPacketMirroringsRequest. + * Properties of an AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListPacketMirroringsRequest - * @property {string|null} [filter] AggregatedListPacketMirroringsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListPacketMirroringsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListPacketMirroringsRequest maxResults - * @property {string|null} [orderBy] AggregatedListPacketMirroringsRequest orderBy - * @property {string|null} [pageToken] AggregatedListPacketMirroringsRequest pageToken - * @property {string|null} [project] AggregatedListPacketMirroringsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListPacketMirroringsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListPacketMirroringsRequest serviceProjectNumber + * @interface IAggregatedListNodeTemplatesRequest + * @property {string|null} [filter] AggregatedListNodeTemplatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeTemplatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeTemplatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeTemplatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeTemplatesRequest pageToken + * @property {string|null} [project] AggregatedListNodeTemplatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTemplatesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeTemplatesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListPacketMirroringsRequest. + * Constructs a new AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListPacketMirroringsRequest. - * @implements IAggregatedListPacketMirroringsRequest + * @classdesc Represents an AggregatedListNodeTemplatesRequest. + * @implements IAggregatedListNodeTemplatesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set */ - function AggregatedListPacketMirroringsRequest(properties) { + function AggregatedListNodeTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -641260,136 +642020,136 @@ } /** - * AggregatedListPacketMirroringsRequest filter. + * AggregatedListNodeTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.filter = null; + AggregatedListNodeTemplatesRequest.prototype.filter = null; /** - * AggregatedListPacketMirroringsRequest includeAllScopes. + * AggregatedListNodeTemplatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; + AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListPacketMirroringsRequest maxResults. + * AggregatedListNodeTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.maxResults = null; + AggregatedListNodeTemplatesRequest.prototype.maxResults = null; /** - * AggregatedListPacketMirroringsRequest orderBy. + * AggregatedListNodeTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.orderBy = null; + AggregatedListNodeTemplatesRequest.prototype.orderBy = null; /** - * AggregatedListPacketMirroringsRequest pageToken. + * AggregatedListNodeTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.pageToken = null; + AggregatedListNodeTemplatesRequest.prototype.pageToken = null; /** - * AggregatedListPacketMirroringsRequest project. + * AggregatedListNodeTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.project = ""; + AggregatedListNodeTemplatesRequest.prototype.project = ""; /** - * AggregatedListPacketMirroringsRequest returnPartialSuccess. + * AggregatedListNodeTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListPacketMirroringsRequest serviceProjectNumber. + * AggregatedListNodeTemplatesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.serviceProjectNumber = null; + AggregatedListNodeTemplatesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. + * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance */ - AggregatedListPacketMirroringsRequest.create = function create(properties) { - return new AggregatedListPacketMirroringsRequest(properties); + AggregatedListNodeTemplatesRequest.create = function create(properties) { + return new AggregatedListNodeTemplatesRequest(properties); }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.encode = function encode(message, writer) { + AggregatedListNodeTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -641412,33 +642172,33 @@ }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPacketMirroringsRequest.decode = function decode(reader, length, error) { + AggregatedListNodeTemplatesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -641485,30 +642245,30 @@ }; /** - * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPacketMirroringsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPacketMirroringsRequest message. + * Verifies an AggregatedListNodeTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListPacketMirroringsRequest.verify = function verify(message) { + AggregatedListNodeTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -641554,17 +642314,17 @@ }; /** - * Creates an AggregatedListPacketMirroringsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest */ - AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest) + AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -641592,15 +642352,15 @@ }; /** - * Creates a plain object from an AggregatedListPacketMirroringsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest + * @param {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { + AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -641650,59 +642410,59 @@ }; /** - * Converts this AggregatedListPacketMirroringsRequest to JSON. + * Converts this AggregatedListNodeTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPacketMirroringsRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListPacketMirroringsRequest + * Gets the default type url for AggregatedListNodeTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest"; }; - return AggregatedListPacketMirroringsRequest; + return AggregatedListNodeTemplatesRequest; })(); - v1beta.AggregatedListPublicDelegatedPrefixesRequest = (function() { + v1beta.AggregatedListNodeTypesRequest = (function() { /** - * Properties of an AggregatedListPublicDelegatedPrefixesRequest. + * Properties of an AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListPublicDelegatedPrefixesRequest - * @property {string|null} [filter] AggregatedListPublicDelegatedPrefixesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListPublicDelegatedPrefixesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListPublicDelegatedPrefixesRequest maxResults - * @property {string|null} [orderBy] AggregatedListPublicDelegatedPrefixesRequest orderBy - * @property {string|null} [pageToken] AggregatedListPublicDelegatedPrefixesRequest pageToken - * @property {string|null} [project] AggregatedListPublicDelegatedPrefixesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber + * @interface IAggregatedListNodeTypesRequest + * @property {string|null} [filter] AggregatedListNodeTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeTypesRequest pageToken + * @property {string|null} [project] AggregatedListNodeTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTypesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeTypesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListPublicDelegatedPrefixesRequest. + * Constructs a new AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. - * @implements IAggregatedListPublicDelegatedPrefixesRequest + * @classdesc Represents an AggregatedListNodeTypesRequest. + * @implements IAggregatedListNodeTypesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest=} [properties] Properties to set */ - function AggregatedListPublicDelegatedPrefixesRequest(properties) { + function AggregatedListNodeTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -641710,136 +642470,136 @@ } /** - * AggregatedListPublicDelegatedPrefixesRequest filter. + * AggregatedListNodeTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; + AggregatedListNodeTypesRequest.prototype.filter = null; /** - * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. + * AggregatedListNodeTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; + AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListPublicDelegatedPrefixesRequest maxResults. + * AggregatedListNodeTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; + AggregatedListNodeTypesRequest.prototype.maxResults = null; /** - * AggregatedListPublicDelegatedPrefixesRequest orderBy. + * AggregatedListNodeTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; + AggregatedListNodeTypesRequest.prototype.orderBy = null; /** - * AggregatedListPublicDelegatedPrefixesRequest pageToken. + * AggregatedListNodeTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; + AggregatedListNodeTypesRequest.prototype.pageToken = null; /** - * AggregatedListPublicDelegatedPrefixesRequest project. + * AggregatedListNodeTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; + AggregatedListNodeTypesRequest.prototype.project = ""; /** - * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. + * AggregatedListNodeTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber. + * AggregatedListNodeTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.serviceProjectNumber = null; + AggregatedListNodeTypesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. + * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance */ - AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { - return new AggregatedListPublicDelegatedPrefixesRequest(properties); + AggregatedListNodeTypesRequest.create = function create(properties) { + return new AggregatedListNodeTypesRequest(properties); }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { + AggregatedListNodeTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -641862,33 +642622,33 @@ }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPublicDelegatedPrefixesRequest.decode = function decode(reader, length, error) { + AggregatedListNodeTypesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -641935,30 +642695,30 @@ }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. + * Verifies an AggregatedListNodeTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListPublicDelegatedPrefixesRequest.verify = function verify(message) { + AggregatedListNodeTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -642004,17 +642764,17 @@ }; /** - * Creates an AggregatedListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest */ - AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest) + AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -642042,15 +642802,15 @@ }; /** - * Creates a plain object from an AggregatedListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest + * @param {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { + AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -642100,59 +642860,59 @@ }; /** - * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. + * Converts this AggregatedListNodeTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListPublicDelegatedPrefixesRequest + * Gets the default type url for AggregatedListNodeTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeTypesRequest"; }; - return AggregatedListPublicDelegatedPrefixesRequest; + return AggregatedListNodeTypesRequest; })(); - v1beta.AggregatedListRegionCommitmentsRequest = (function() { + v1beta.AggregatedListPacketMirroringsRequest = (function() { /** - * Properties of an AggregatedListRegionCommitmentsRequest. + * Properties of an AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListRegionCommitmentsRequest - * @property {string|null} [filter] AggregatedListRegionCommitmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionCommitmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionCommitmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionCommitmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionCommitmentsRequest pageToken - * @property {string|null} [project] AggregatedListRegionCommitmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCommitmentsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionCommitmentsRequest serviceProjectNumber + * @interface IAggregatedListPacketMirroringsRequest + * @property {string|null} [filter] AggregatedListPacketMirroringsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListPacketMirroringsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListPacketMirroringsRequest maxResults + * @property {string|null} [orderBy] AggregatedListPacketMirroringsRequest orderBy + * @property {string|null} [pageToken] AggregatedListPacketMirroringsRequest pageToken + * @property {string|null} [project] AggregatedListPacketMirroringsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListPacketMirroringsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListPacketMirroringsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRegionCommitmentsRequest. + * Constructs a new AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListRegionCommitmentsRequest. - * @implements IAggregatedListRegionCommitmentsRequest + * @classdesc Represents an AggregatedListPacketMirroringsRequest. + * @implements IAggregatedListPacketMirroringsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set */ - function AggregatedListRegionCommitmentsRequest(properties) { + function AggregatedListPacketMirroringsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -642160,136 +642920,136 @@ } /** - * AggregatedListRegionCommitmentsRequest filter. + * AggregatedListPacketMirroringsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.filter = null; + AggregatedListPacketMirroringsRequest.prototype.filter = null; /** - * AggregatedListRegionCommitmentsRequest includeAllScopes. + * AggregatedListPacketMirroringsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; + AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionCommitmentsRequest maxResults. + * AggregatedListPacketMirroringsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; + AggregatedListPacketMirroringsRequest.prototype.maxResults = null; /** - * AggregatedListRegionCommitmentsRequest orderBy. + * AggregatedListPacketMirroringsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; + AggregatedListPacketMirroringsRequest.prototype.orderBy = null; /** - * AggregatedListRegionCommitmentsRequest pageToken. + * AggregatedListPacketMirroringsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; + AggregatedListPacketMirroringsRequest.prototype.pageToken = null; /** - * AggregatedListRegionCommitmentsRequest project. + * AggregatedListPacketMirroringsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.project = ""; + AggregatedListPacketMirroringsRequest.prototype.project = ""; /** - * AggregatedListRegionCommitmentsRequest returnPartialSuccess. + * AggregatedListPacketMirroringsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionCommitmentsRequest serviceProjectNumber. + * AggregatedListPacketMirroringsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.serviceProjectNumber = null; + AggregatedListPacketMirroringsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. + * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance */ - AggregatedListRegionCommitmentsRequest.create = function create(properties) { - return new AggregatedListRegionCommitmentsRequest(properties); + AggregatedListPacketMirroringsRequest.create = function create(properties) { + return new AggregatedListPacketMirroringsRequest(properties); }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.encode = function encode(message, writer) { + AggregatedListPacketMirroringsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -642312,33 +643072,33 @@ }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCommitmentsRequest.decode = function decode(reader, length, error) { + AggregatedListPacketMirroringsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -642385,30 +643145,30 @@ }; /** - * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListPacketMirroringsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionCommitmentsRequest message. + * Verifies an AggregatedListPacketMirroringsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionCommitmentsRequest.verify = function verify(message) { + AggregatedListPacketMirroringsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -642454,17 +643214,17 @@ }; /** - * Creates an AggregatedListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListPacketMirroringsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest */ - AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest) + AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -642492,15 +643252,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionCommitmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListPacketMirroringsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest + * @param {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { + AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -642550,59 +643310,59 @@ }; /** - * Converts this AggregatedListRegionCommitmentsRequest to JSON. + * Converts this AggregatedListPacketMirroringsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListPacketMirroringsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionCommitmentsRequest + * Gets the default type url for AggregatedListPacketMirroringsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest"; }; - return AggregatedListRegionCommitmentsRequest; + return AggregatedListPacketMirroringsRequest; })(); - v1beta.AggregatedListRegionHealthSourcesRequest = (function() { + v1beta.AggregatedListPublicDelegatedPrefixesRequest = (function() { /** - * Properties of an AggregatedListRegionHealthSourcesRequest. + * Properties of an AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListRegionHealthSourcesRequest - * @property {string|null} [filter] AggregatedListRegionHealthSourcesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthSourcesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionHealthSourcesRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionHealthSourcesRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionHealthSourcesRequest pageToken - * @property {string|null} [project] AggregatedListRegionHealthSourcesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthSourcesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthSourcesRequest serviceProjectNumber + * @interface IAggregatedListPublicDelegatedPrefixesRequest + * @property {string|null} [filter] AggregatedListPublicDelegatedPrefixesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListPublicDelegatedPrefixesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListPublicDelegatedPrefixesRequest maxResults + * @property {string|null} [orderBy] AggregatedListPublicDelegatedPrefixesRequest orderBy + * @property {string|null} [pageToken] AggregatedListPublicDelegatedPrefixesRequest pageToken + * @property {string|null} [project] AggregatedListPublicDelegatedPrefixesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRegionHealthSourcesRequest. + * Constructs a new AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListRegionHealthSourcesRequest. - * @implements IAggregatedListRegionHealthSourcesRequest + * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. + * @implements IAggregatedListPublicDelegatedPrefixesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set */ - function AggregatedListRegionHealthSourcesRequest(properties) { + function AggregatedListPublicDelegatedPrefixesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -642610,136 +643370,136 @@ } /** - * AggregatedListRegionHealthSourcesRequest filter. + * AggregatedListPublicDelegatedPrefixesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.filter = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; /** - * AggregatedListRegionHealthSourcesRequest includeAllScopes. + * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.includeAllScopes = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionHealthSourcesRequest maxResults. + * AggregatedListPublicDelegatedPrefixesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.maxResults = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; /** - * AggregatedListRegionHealthSourcesRequest orderBy. + * AggregatedListPublicDelegatedPrefixesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.orderBy = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; /** - * AggregatedListRegionHealthSourcesRequest pageToken. + * AggregatedListPublicDelegatedPrefixesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.pageToken = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; /** - * AggregatedListRegionHealthSourcesRequest project. + * AggregatedListPublicDelegatedPrefixesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.project = ""; + AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; /** - * AggregatedListRegionHealthSourcesRequest returnPartialSuccess. + * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.returnPartialSuccess = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionHealthSourcesRequest serviceProjectNumber. + * AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.serviceProjectNumber = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionHealthSourcesRequest instance using the specified properties. + * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance */ - AggregatedListRegionHealthSourcesRequest.create = function create(properties) { - return new AggregatedListRegionHealthSourcesRequest(properties); + AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { + return new AggregatedListPublicDelegatedPrefixesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthSourcesRequest.encode = function encode(message, writer) { + AggregatedListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -642762,33 +643522,33 @@ }; /** - * Encodes the specified AggregatedListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer. + * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthSourcesRequest.decode = function decode(reader, length, error) { + AggregatedListPublicDelegatedPrefixesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -642835,30 +643595,30 @@ }; /** - * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthSourcesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionHealthSourcesRequest message. + * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionHealthSourcesRequest.verify = function verify(message) { + AggregatedListPublicDelegatedPrefixesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -642904,17 +643664,17 @@ }; /** - * Creates an AggregatedListRegionHealthSourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest */ - AggregatedListRegionHealthSourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest) + AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -642942,15 +643702,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionHealthSourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest + * @param {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionHealthSourcesRequest.toObject = function toObject(message, options) { + AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -643000,59 +643760,59 @@ }; /** - * Converts this AggregatedListRegionHealthSourcesRequest to JSON. + * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionHealthSourcesRequest.prototype.toJSON = function toJSON() { + AggregatedListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionHealthSourcesRequest + * Gets the default type url for AggregatedListPublicDelegatedPrefixesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest"; }; - return AggregatedListRegionHealthSourcesRequest; + return AggregatedListPublicDelegatedPrefixesRequest; })(); - v1beta.AggregatedListRegionNetworkPoliciesRequest = (function() { + v1beta.AggregatedListRegionCommitmentsRequest = (function() { /** - * Properties of an AggregatedListRegionNetworkPoliciesRequest. + * Properties of an AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListRegionNetworkPoliciesRequest - * @property {string|null} [filter] AggregatedListRegionNetworkPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionNetworkPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionNetworkPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionNetworkPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionNetworkPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListRegionNetworkPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionNetworkPoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionNetworkPoliciesRequest serviceProjectNumber + * @interface IAggregatedListRegionCommitmentsRequest + * @property {string|null} [filter] AggregatedListRegionCommitmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionCommitmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionCommitmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionCommitmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionCommitmentsRequest pageToken + * @property {string|null} [project] AggregatedListRegionCommitmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCommitmentsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionCommitmentsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRegionNetworkPoliciesRequest. + * Constructs a new AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListRegionNetworkPoliciesRequest. - * @implements IAggregatedListRegionNetworkPoliciesRequest + * @classdesc Represents an AggregatedListRegionCommitmentsRequest. + * @implements IAggregatedListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set */ - function AggregatedListRegionNetworkPoliciesRequest(properties) { + function AggregatedListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -643060,136 +643820,136 @@ } /** - * AggregatedListRegionNetworkPoliciesRequest filter. + * AggregatedListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.filter = null; + AggregatedListRegionCommitmentsRequest.prototype.filter = null; /** - * AggregatedListRegionNetworkPoliciesRequest includeAllScopes. + * AggregatedListRegionCommitmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionNetworkPoliciesRequest maxResults. + * AggregatedListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.maxResults = null; + AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; /** - * AggregatedListRegionNetworkPoliciesRequest orderBy. + * AggregatedListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.orderBy = null; + AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; /** - * AggregatedListRegionNetworkPoliciesRequest pageToken. + * AggregatedListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.pageToken = null; + AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; /** - * AggregatedListRegionNetworkPoliciesRequest project. + * AggregatedListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.project = ""; + AggregatedListRegionCommitmentsRequest.prototype.project = ""; /** - * AggregatedListRegionNetworkPoliciesRequest returnPartialSuccess. + * AggregatedListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionNetworkPoliciesRequest serviceProjectNumber. + * AggregatedListRegionCommitmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionCommitmentsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionNetworkPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance */ - AggregatedListRegionNetworkPoliciesRequest.create = function create(properties) { - return new AggregatedListRegionNetworkPoliciesRequest(properties); + AggregatedListRegionCommitmentsRequest.create = function create(properties) { + return new AggregatedListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified AggregatedListRegionNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionNetworkPoliciesRequest.encode = function encode(message, writer) { + AggregatedListRegionCommitmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -643212,33 +643972,33 @@ }; /** - * Encodes the specified AggregatedListRegionNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionNetworkPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionNetworkPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListRegionCommitmentsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -643285,30 +644045,30 @@ }; /** - * Decodes an AggregatedListRegionNetworkPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionNetworkPoliciesRequest message. + * Verifies an AggregatedListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionNetworkPoliciesRequest.verify = function verify(message) { + AggregatedListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -643354,17 +644114,17 @@ }; /** - * Creates an AggregatedListRegionNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest */ - AggregatedListRegionNetworkPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest) + AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -643392,15 +644152,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionNetworkPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionCommitmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionNetworkPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -643450,59 +644210,59 @@ }; /** - * Converts this AggregatedListRegionNetworkPoliciesRequest to JSON. + * Converts this AggregatedListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionNetworkPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionNetworkPoliciesRequest + * Gets the default type url for AggregatedListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest"; }; - return AggregatedListRegionNetworkPoliciesRequest; + return AggregatedListRegionCommitmentsRequest; })(); - v1beta.AggregatedListReservationsRequest = (function() { + v1beta.AggregatedListRegionCompositeHealthChecksRequest = (function() { /** - * Properties of an AggregatedListReservationsRequest. + * Properties of an AggregatedListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListReservationsRequest - * @property {string|null} [filter] AggregatedListReservationsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListReservationsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListReservationsRequest maxResults - * @property {string|null} [orderBy] AggregatedListReservationsRequest orderBy - * @property {string|null} [pageToken] AggregatedListReservationsRequest pageToken - * @property {string|null} [project] AggregatedListReservationsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListReservationsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListReservationsRequest serviceProjectNumber + * @interface IAggregatedListRegionCompositeHealthChecksRequest + * @property {string|null} [filter] AggregatedListRegionCompositeHealthChecksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionCompositeHealthChecksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionCompositeHealthChecksRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionCompositeHealthChecksRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionCompositeHealthChecksRequest pageToken + * @property {string|null} [project] AggregatedListRegionCompositeHealthChecksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListReservationsRequest. + * Constructs a new AggregatedListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListReservationsRequest. - * @implements IAggregatedListReservationsRequest + * @classdesc Represents an AggregatedListRegionCompositeHealthChecksRequest. + * @implements IAggregatedListRegionCompositeHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set */ - function AggregatedListReservationsRequest(properties) { + function AggregatedListRegionCompositeHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -643510,136 +644270,136 @@ } /** - * AggregatedListReservationsRequest filter. + * AggregatedListRegionCompositeHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListReservationsRequest.prototype.filter = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.filter = null; /** - * AggregatedListReservationsRequest includeAllScopes. + * AggregatedListRegionCompositeHealthChecksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListReservationsRequest.prototype.includeAllScopes = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.includeAllScopes = null; /** - * AggregatedListReservationsRequest maxResults. + * AggregatedListRegionCompositeHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListReservationsRequest.prototype.maxResults = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.maxResults = null; /** - * AggregatedListReservationsRequest orderBy. + * AggregatedListRegionCompositeHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListReservationsRequest.prototype.orderBy = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.orderBy = null; /** - * AggregatedListReservationsRequest pageToken. + * AggregatedListRegionCompositeHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListReservationsRequest.prototype.pageToken = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.pageToken = null; /** - * AggregatedListReservationsRequest project. + * AggregatedListRegionCompositeHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListReservationsRequest.prototype.project = ""; + AggregatedListRegionCompositeHealthChecksRequest.prototype.project = ""; /** - * AggregatedListReservationsRequest returnPartialSuccess. + * AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListReservationsRequest serviceProjectNumber. + * AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListReservationsRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListReservationsRequest instance using the specified properties. + * Creates a new AggregatedListRegionCompositeHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest instance */ - AggregatedListReservationsRequest.create = function create(properties) { - return new AggregatedListReservationsRequest(properties); + AggregatedListRegionCompositeHealthChecksRequest.create = function create(properties) { + return new AggregatedListRegionCompositeHealthChecksRequest(properties); }; /** - * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encode = function encode(message, writer) { + AggregatedListRegionCompositeHealthChecksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -643662,33 +644422,33 @@ }; /** - * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListReservationsRequest.decode = function decode(reader, length, error) { + AggregatedListRegionCompositeHealthChecksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -643735,30 +644495,30 @@ }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionCompositeHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListReservationsRequest message. + * Verifies an AggregatedListRegionCompositeHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListReservationsRequest.verify = function verify(message) { + AggregatedListRegionCompositeHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -643804,17 +644564,17 @@ }; /** - * Creates an AggregatedListReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest */ - AggregatedListReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListReservationsRequest) + AggregatedListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListReservationsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -643842,15 +644602,15 @@ }; /** - * Creates a plain object from an AggregatedListReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListReservationsRequest} message AggregatedListReservationsRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListReservationsRequest.toObject = function toObject(message, options) { + AggregatedListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -643900,59 +644660,59 @@ }; /** - * Converts this AggregatedListReservationsRequest to JSON. + * Converts this AggregatedListRegionCompositeHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCompositeHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListReservationsRequest + * Gets the default type url for AggregatedListRegionCompositeHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest"; }; - return AggregatedListReservationsRequest; + return AggregatedListRegionCompositeHealthChecksRequest; })(); - v1beta.AggregatedListResourcePoliciesRequest = (function() { + v1beta.AggregatedListRegionHealthAggregationPoliciesRequest = (function() { /** - * Properties of an AggregatedListResourcePoliciesRequest. + * Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListResourcePoliciesRequest - * @property {string|null} [filter] AggregatedListResourcePoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListResourcePoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListResourcePoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListResourcePoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListResourcePoliciesRequest pageToken - * @property {string|null} [project] AggregatedListResourcePoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListResourcePoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListResourcePoliciesRequest serviceProjectNumber + * @interface IAggregatedListRegionHealthAggregationPoliciesRequest + * @property {string|null} [filter] AggregatedListRegionHealthAggregationPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionHealthAggregationPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionHealthAggregationPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionHealthAggregationPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListRegionHealthAggregationPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListResourcePoliciesRequest. + * Constructs a new AggregatedListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListResourcePoliciesRequest. - * @implements IAggregatedListResourcePoliciesRequest + * @classdesc Represents an AggregatedListRegionHealthAggregationPoliciesRequest. + * @implements IAggregatedListRegionHealthAggregationPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set */ - function AggregatedListResourcePoliciesRequest(properties) { + function AggregatedListRegionHealthAggregationPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -643960,136 +644720,136 @@ } /** - * AggregatedListResourcePoliciesRequest filter. + * AggregatedListRegionHealthAggregationPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.filter = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.filter = null; /** - * AggregatedListResourcePoliciesRequest includeAllScopes. + * AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListResourcePoliciesRequest maxResults. + * AggregatedListRegionHealthAggregationPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.maxResults = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListResourcePoliciesRequest orderBy. + * AggregatedListRegionHealthAggregationPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.orderBy = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListResourcePoliciesRequest pageToken. + * AggregatedListRegionHealthAggregationPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.pageToken = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListResourcePoliciesRequest project. + * AggregatedListRegionHealthAggregationPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.project = ""; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.project = ""; /** - * AggregatedListResourcePoliciesRequest returnPartialSuccess. + * AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListResourcePoliciesRequest serviceProjectNumber. + * AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthAggregationPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest instance */ - AggregatedListResourcePoliciesRequest.create = function create(properties) { - return new AggregatedListResourcePoliciesRequest(properties); + AggregatedListRegionHealthAggregationPoliciesRequest.create = function create(properties) { + return new AggregatedListRegionHealthAggregationPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encode = function encode(message, writer) { + AggregatedListRegionHealthAggregationPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -644112,33 +644872,33 @@ }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListResourcePoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListRegionHealthAggregationPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -644185,30 +644945,30 @@ }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionHealthAggregationPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListResourcePoliciesRequest message. + * Verifies an AggregatedListRegionHealthAggregationPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListResourcePoliciesRequest.verify = function verify(message) { + AggregatedListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -644254,17 +645014,17 @@ }; /** - * Creates an AggregatedListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest */ - AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest) + AggregatedListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -644292,15 +645052,15 @@ }; /** - * Creates a plain object from an AggregatedListResourcePoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -644350,59 +645110,59 @@ }; /** - * Converts this AggregatedListResourcePoliciesRequest to JSON. + * Converts this AggregatedListRegionHealthAggregationPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListResourcePoliciesRequest + * Gets the default type url for AggregatedListRegionHealthAggregationPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest"; }; - return AggregatedListResourcePoliciesRequest; + return AggregatedListRegionHealthAggregationPoliciesRequest; })(); - v1beta.AggregatedListRoutersRequest = (function() { + v1beta.AggregatedListRegionHealthSourcesRequest = (function() { /** - * Properties of an AggregatedListRoutersRequest. + * Properties of an AggregatedListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListRoutersRequest - * @property {string|null} [filter] AggregatedListRoutersRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRoutersRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRoutersRequest maxResults - * @property {string|null} [orderBy] AggregatedListRoutersRequest orderBy - * @property {string|null} [pageToken] AggregatedListRoutersRequest pageToken - * @property {string|null} [project] AggregatedListRoutersRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRoutersRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRoutersRequest serviceProjectNumber + * @interface IAggregatedListRegionHealthSourcesRequest + * @property {string|null} [filter] AggregatedListRegionHealthSourcesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthSourcesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionHealthSourcesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionHealthSourcesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionHealthSourcesRequest pageToken + * @property {string|null} [project] AggregatedListRegionHealthSourcesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthSourcesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthSourcesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRoutersRequest. + * Constructs a new AggregatedListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListRoutersRequest. - * @implements IAggregatedListRoutersRequest + * @classdesc Represents an AggregatedListRegionHealthSourcesRequest. + * @implements IAggregatedListRegionHealthSourcesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set */ - function AggregatedListRoutersRequest(properties) { + function AggregatedListRegionHealthSourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -644410,136 +645170,136 @@ } /** - * AggregatedListRoutersRequest filter. + * AggregatedListRegionHealthSourcesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.filter = null; + AggregatedListRegionHealthSourcesRequest.prototype.filter = null; /** - * AggregatedListRoutersRequest includeAllScopes. + * AggregatedListRegionHealthSourcesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthSourcesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRoutersRequest maxResults. + * AggregatedListRegionHealthSourcesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.maxResults = null; + AggregatedListRegionHealthSourcesRequest.prototype.maxResults = null; /** - * AggregatedListRoutersRequest orderBy. + * AggregatedListRegionHealthSourcesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.orderBy = null; + AggregatedListRegionHealthSourcesRequest.prototype.orderBy = null; /** - * AggregatedListRoutersRequest pageToken. + * AggregatedListRegionHealthSourcesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.pageToken = null; + AggregatedListRegionHealthSourcesRequest.prototype.pageToken = null; /** - * AggregatedListRoutersRequest project. + * AggregatedListRegionHealthSourcesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.project = ""; + AggregatedListRegionHealthSourcesRequest.prototype.project = ""; /** - * AggregatedListRoutersRequest returnPartialSuccess. + * AggregatedListRegionHealthSourcesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthSourcesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRoutersRequest serviceProjectNumber. + * AggregatedListRegionHealthSourcesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionHealthSourcesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRoutersRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthSourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest instance */ - AggregatedListRoutersRequest.create = function create(properties) { - return new AggregatedListRoutersRequest(properties); + AggregatedListRegionHealthSourcesRequest.create = function create(properties) { + return new AggregatedListRegionHealthSourcesRequest(properties); }; /** - * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encode = function encode(message, writer) { + AggregatedListRegionHealthSourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -644562,33 +645322,33 @@ }; /** - * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRoutersRequest.decode = function decode(reader, length, error) { + AggregatedListRegionHealthSourcesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRoutersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -644635,30 +645395,30 @@ }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionHealthSourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRoutersRequest message. + * Verifies an AggregatedListRegionHealthSourcesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRoutersRequest.verify = function verify(message) { + AggregatedListRegionHealthSourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -644704,17 +645464,17 @@ }; /** - * Creates an AggregatedListRoutersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionHealthSourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest */ - AggregatedListRoutersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRoutersRequest) + AggregatedListRegionHealthSourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListRoutersRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -644742,15 +645502,15 @@ }; /** - * Creates a plain object from an AggregatedListRoutersRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionHealthSourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListRoutersRequest} message AggregatedListRoutersRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRoutersRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthSourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -644800,59 +645560,59 @@ }; /** - * Converts this AggregatedListRoutersRequest to JSON. + * Converts this AggregatedListRegionHealthSourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthSourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRoutersRequest + * Gets the default type url for AggregatedListRegionHealthSourcesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRoutersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest"; }; - return AggregatedListRoutersRequest; + return AggregatedListRegionHealthSourcesRequest; })(); - v1beta.AggregatedListSecurityPoliciesRequest = (function() { + v1beta.AggregatedListRegionNetworkPoliciesRequest = (function() { /** - * Properties of an AggregatedListSecurityPoliciesRequest. + * Properties of an AggregatedListRegionNetworkPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListSecurityPoliciesRequest - * @property {string|null} [filter] AggregatedListSecurityPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSecurityPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSecurityPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListSecurityPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSecurityPoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListSecurityPoliciesRequest serviceProjectNumber + * @interface IAggregatedListRegionNetworkPoliciesRequest + * @property {string|null} [filter] AggregatedListRegionNetworkPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionNetworkPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionNetworkPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionNetworkPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionNetworkPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListRegionNetworkPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionNetworkPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionNetworkPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSecurityPoliciesRequest. + * Constructs a new AggregatedListRegionNetworkPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListSecurityPoliciesRequest. - * @implements IAggregatedListSecurityPoliciesRequest + * @classdesc Represents an AggregatedListRegionNetworkPoliciesRequest. + * @implements IAggregatedListRegionNetworkPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest=} [properties] Properties to set */ - function AggregatedListSecurityPoliciesRequest(properties) { + function AggregatedListRegionNetworkPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -644860,136 +645620,136 @@ } /** - * AggregatedListSecurityPoliciesRequest filter. + * AggregatedListRegionNetworkPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.filter = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.filter = null; /** - * AggregatedListSecurityPoliciesRequest includeAllScopes. + * AggregatedListRegionNetworkPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSecurityPoliciesRequest maxResults. + * AggregatedListRegionNetworkPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListSecurityPoliciesRequest orderBy. + * AggregatedListRegionNetworkPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListSecurityPoliciesRequest pageToken. + * AggregatedListRegionNetworkPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListSecurityPoliciesRequest project. + * AggregatedListRegionNetworkPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.project = ""; + AggregatedListRegionNetworkPoliciesRequest.prototype.project = ""; /** - * AggregatedListSecurityPoliciesRequest returnPartialSuccess. + * AggregatedListRegionNetworkPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSecurityPoliciesRequest serviceProjectNumber. + * AggregatedListRegionNetworkPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRegionNetworkPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest instance */ - AggregatedListSecurityPoliciesRequest.create = function create(properties) { - return new AggregatedListSecurityPoliciesRequest(properties); + AggregatedListRegionNetworkPoliciesRequest.create = function create(properties) { + return new AggregatedListRegionNetworkPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encode = function encode(message, writer) { + AggregatedListRegionNetworkPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -645012,33 +645772,33 @@ }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionNetworkPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSecurityPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListRegionNetworkPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -645085,30 +645845,30 @@ }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionNetworkPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSecurityPoliciesRequest message. + * Verifies an AggregatedListRegionNetworkPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSecurityPoliciesRequest.verify = function verify(message) { + AggregatedListRegionNetworkPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -645154,17 +645914,17 @@ }; /** - * Creates an AggregatedListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest */ - AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest) + AggregatedListRegionNetworkPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -645192,15 +645952,15 @@ }; /** - * Creates a plain object from an AggregatedListSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionNetworkPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRegionNetworkPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -645250,59 +646010,59 @@ }; /** - * Converts this AggregatedListSecurityPoliciesRequest to JSON. + * Converts this AggregatedListRegionNetworkPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionNetworkPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSecurityPoliciesRequest + * Gets the default type url for AggregatedListRegionNetworkPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest"; }; - return AggregatedListSecurityPoliciesRequest; + return AggregatedListRegionNetworkPoliciesRequest; })(); - v1beta.AggregatedListServiceAttachmentsRequest = (function() { + v1beta.AggregatedListReservationsRequest = (function() { /** - * Properties of an AggregatedListServiceAttachmentsRequest. + * Properties of an AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListServiceAttachmentsRequest - * @property {string|null} [filter] AggregatedListServiceAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListServiceAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListServiceAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListServiceAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListServiceAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListServiceAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListServiceAttachmentsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListServiceAttachmentsRequest serviceProjectNumber + * @interface IAggregatedListReservationsRequest + * @property {string|null} [filter] AggregatedListReservationsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListReservationsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListReservationsRequest maxResults + * @property {string|null} [orderBy] AggregatedListReservationsRequest orderBy + * @property {string|null} [pageToken] AggregatedListReservationsRequest pageToken + * @property {string|null} [project] AggregatedListReservationsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListReservationsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListReservationsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListServiceAttachmentsRequest. + * Constructs a new AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListServiceAttachmentsRequest. - * @implements IAggregatedListServiceAttachmentsRequest + * @classdesc Represents an AggregatedListReservationsRequest. + * @implements IAggregatedListReservationsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListReservationsRequest=} [properties] Properties to set */ - function AggregatedListServiceAttachmentsRequest(properties) { + function AggregatedListReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -645310,136 +646070,136 @@ } /** - * AggregatedListServiceAttachmentsRequest filter. + * AggregatedListReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.filter = null; + AggregatedListReservationsRequest.prototype.filter = null; /** - * AggregatedListServiceAttachmentsRequest includeAllScopes. + * AggregatedListReservationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListReservationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListServiceAttachmentsRequest maxResults. + * AggregatedListReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; + AggregatedListReservationsRequest.prototype.maxResults = null; /** - * AggregatedListServiceAttachmentsRequest orderBy. + * AggregatedListReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; + AggregatedListReservationsRequest.prototype.orderBy = null; /** - * AggregatedListServiceAttachmentsRequest pageToken. + * AggregatedListReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; + AggregatedListReservationsRequest.prototype.pageToken = null; /** - * AggregatedListServiceAttachmentsRequest project. + * AggregatedListReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.project = ""; + AggregatedListReservationsRequest.prototype.project = ""; /** - * AggregatedListServiceAttachmentsRequest returnPartialSuccess. + * AggregatedListReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListServiceAttachmentsRequest serviceProjectNumber. + * AggregatedListReservationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.serviceProjectNumber = null; + AggregatedListReservationsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance */ - AggregatedListServiceAttachmentsRequest.create = function create(properties) { - return new AggregatedListServiceAttachmentsRequest(properties); + AggregatedListReservationsRequest.create = function create(properties) { + return new AggregatedListReservationsRequest(properties); }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListReservationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -645462,33 +646222,33 @@ }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListServiceAttachmentsRequest.decode = function decode(reader, length, error) { + AggregatedListReservationsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -645535,30 +646295,30 @@ }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListServiceAttachmentsRequest message. + * Verifies an AggregatedListReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListServiceAttachmentsRequest.verify = function verify(message) { + AggregatedListReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -645604,17 +646364,17 @@ }; /** - * Creates an AggregatedListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListReservationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListReservationsRequest} AggregatedListReservationsRequest */ - AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest) + AggregatedListReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -645642,15 +646402,15 @@ }; /** - * Creates a plain object from an AggregatedListServiceAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListReservationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest + * @param {google.cloud.compute.v1beta.AggregatedListReservationsRequest} message AggregatedListReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -645700,59 +646460,59 @@ }; /** - * Converts this AggregatedListServiceAttachmentsRequest to JSON. + * Converts this AggregatedListReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListServiceAttachmentsRequest + * Gets the default type url for AggregatedListReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListReservationsRequest"; }; - return AggregatedListServiceAttachmentsRequest; + return AggregatedListReservationsRequest; })(); - v1beta.AggregatedListSnapshotsRequest = (function() { + v1beta.AggregatedListResourcePoliciesRequest = (function() { /** - * Properties of an AggregatedListSnapshotsRequest. + * Properties of an AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListSnapshotsRequest - * @property {string|null} [filter] AggregatedListSnapshotsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSnapshotsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSnapshotsRequest maxResults - * @property {string|null} [orderBy] AggregatedListSnapshotsRequest orderBy - * @property {string|null} [pageToken] AggregatedListSnapshotsRequest pageToken - * @property {string|null} [project] AggregatedListSnapshotsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSnapshotsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListSnapshotsRequest serviceProjectNumber + * @interface IAggregatedListResourcePoliciesRequest + * @property {string|null} [filter] AggregatedListResourcePoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListResourcePoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListResourcePoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListResourcePoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListResourcePoliciesRequest pageToken + * @property {string|null} [project] AggregatedListResourcePoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListResourcePoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListResourcePoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSnapshotsRequest. + * Constructs a new AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListSnapshotsRequest. - * @implements IAggregatedListSnapshotsRequest + * @classdesc Represents an AggregatedListResourcePoliciesRequest. + * @implements IAggregatedListResourcePoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set */ - function AggregatedListSnapshotsRequest(properties) { + function AggregatedListResourcePoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -645760,136 +646520,136 @@ } /** - * AggregatedListSnapshotsRequest filter. + * AggregatedListResourcePoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSnapshotsRequest.prototype.filter = null; + AggregatedListResourcePoliciesRequest.prototype.filter = null; /** - * AggregatedListSnapshotsRequest includeAllScopes. + * AggregatedListResourcePoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSnapshotsRequest.prototype.includeAllScopes = null; + AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSnapshotsRequest maxResults. + * AggregatedListResourcePoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSnapshotsRequest.prototype.maxResults = null; + AggregatedListResourcePoliciesRequest.prototype.maxResults = null; /** - * AggregatedListSnapshotsRequest orderBy. + * AggregatedListResourcePoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSnapshotsRequest.prototype.orderBy = null; + AggregatedListResourcePoliciesRequest.prototype.orderBy = null; /** - * AggregatedListSnapshotsRequest pageToken. + * AggregatedListResourcePoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSnapshotsRequest.prototype.pageToken = null; + AggregatedListResourcePoliciesRequest.prototype.pageToken = null; /** - * AggregatedListSnapshotsRequest project. + * AggregatedListResourcePoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSnapshotsRequest.prototype.project = ""; + AggregatedListResourcePoliciesRequest.prototype.project = ""; /** - * AggregatedListSnapshotsRequest returnPartialSuccess. + * AggregatedListResourcePoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSnapshotsRequest.prototype.returnPartialSuccess = null; + AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSnapshotsRequest serviceProjectNumber. + * AggregatedListResourcePoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSnapshotsRequest.prototype.serviceProjectNumber = null; + AggregatedListResourcePoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSnapshotsRequest instance using the specified properties. + * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} AggregatedListSnapshotsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance */ - AggregatedListSnapshotsRequest.create = function create(properties) { - return new AggregatedListSnapshotsRequest(properties); + AggregatedListResourcePoliciesRequest.create = function create(properties) { + return new AggregatedListResourcePoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSnapshotsRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSnapshotsRequest} message AggregatedListSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSnapshotsRequest.encode = function encode(message, writer) { + AggregatedListResourcePoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -645912,33 +646672,33 @@ }; /** - * Encodes the specified AggregatedListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSnapshotsRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSnapshotsRequest} message AggregatedListSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSnapshotsRequest message from the specified reader or buffer. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} AggregatedListSnapshotsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSnapshotsRequest.decode = function decode(reader, length, error) { + AggregatedListResourcePoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -645985,30 +646745,30 @@ }; /** - * Decodes an AggregatedListSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} AggregatedListSnapshotsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSnapshotsRequest message. + * Verifies an AggregatedListResourcePoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSnapshotsRequest.verify = function verify(message) { + AggregatedListResourcePoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -646054,17 +646814,17 @@ }; /** - * Creates an AggregatedListSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} AggregatedListSnapshotsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest */ - AggregatedListSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSnapshotsRequest) + AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListSnapshotsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -646092,15 +646852,15 @@ }; /** - * Creates a plain object from an AggregatedListSnapshotsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListResourcePoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} message AggregatedListSnapshotsRequest + * @param {google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSnapshotsRequest.toObject = function toObject(message, options) { + AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -646150,59 +646910,59 @@ }; /** - * Converts this AggregatedListSnapshotsRequest to JSON. + * Converts this AggregatedListResourcePoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSnapshotsRequest.prototype.toJSON = function toJSON() { + AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSnapshotsRequest + * Gets the default type url for AggregatedListResourcePoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListResourcePoliciesRequest"; }; - return AggregatedListSnapshotsRequest; + return AggregatedListResourcePoliciesRequest; })(); - v1beta.AggregatedListSslCertificatesRequest = (function() { + v1beta.AggregatedListRoutersRequest = (function() { /** - * Properties of an AggregatedListSslCertificatesRequest. + * Properties of an AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListSslCertificatesRequest - * @property {string|null} [filter] AggregatedListSslCertificatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSslCertificatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSslCertificatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSslCertificatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSslCertificatesRequest pageToken - * @property {string|null} [project] AggregatedListSslCertificatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSslCertificatesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListSslCertificatesRequest serviceProjectNumber + * @interface IAggregatedListRoutersRequest + * @property {string|null} [filter] AggregatedListRoutersRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRoutersRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRoutersRequest maxResults + * @property {string|null} [orderBy] AggregatedListRoutersRequest orderBy + * @property {string|null} [pageToken] AggregatedListRoutersRequest pageToken + * @property {string|null} [project] AggregatedListRoutersRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRoutersRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRoutersRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSslCertificatesRequest. + * Constructs a new AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListSslCertificatesRequest. - * @implements IAggregatedListSslCertificatesRequest + * @classdesc Represents an AggregatedListRoutersRequest. + * @implements IAggregatedListRoutersRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRoutersRequest=} [properties] Properties to set */ - function AggregatedListSslCertificatesRequest(properties) { + function AggregatedListRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -646210,136 +646970,136 @@ } /** - * AggregatedListSslCertificatesRequest filter. + * AggregatedListRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.filter = null; + AggregatedListRoutersRequest.prototype.filter = null; /** - * AggregatedListSslCertificatesRequest includeAllScopes. + * AggregatedListRoutersRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; + AggregatedListRoutersRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslCertificatesRequest maxResults. + * AggregatedListRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.maxResults = null; + AggregatedListRoutersRequest.prototype.maxResults = null; /** - * AggregatedListSslCertificatesRequest orderBy. + * AggregatedListRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.orderBy = null; + AggregatedListRoutersRequest.prototype.orderBy = null; /** - * AggregatedListSslCertificatesRequest pageToken. + * AggregatedListRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.pageToken = null; + AggregatedListRoutersRequest.prototype.pageToken = null; /** - * AggregatedListSslCertificatesRequest project. + * AggregatedListRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.project = ""; + AggregatedListRoutersRequest.prototype.project = ""; /** - * AggregatedListSslCertificatesRequest returnPartialSuccess. + * AggregatedListRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; + AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSslCertificatesRequest serviceProjectNumber. + * AggregatedListRoutersRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.serviceProjectNumber = null; + AggregatedListRoutersRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. + * Creates a new AggregatedListRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance */ - AggregatedListSslCertificatesRequest.create = function create(properties) { - return new AggregatedListSslCertificatesRequest(properties); + AggregatedListRoutersRequest.create = function create(properties) { + return new AggregatedListRoutersRequest(properties); }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRoutersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.encode = function encode(message, writer) { + AggregatedListRoutersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -646362,33 +647122,33 @@ }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRoutersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslCertificatesRequest.decode = function decode(reader, length, error) { + AggregatedListRoutersRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRoutersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -646435,30 +647195,30 @@ }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslCertificatesRequest message. + * Verifies an AggregatedListRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSslCertificatesRequest.verify = function verify(message) { + AggregatedListRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -646504,17 +647264,17 @@ }; /** - * Creates an AggregatedListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRoutersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRoutersRequest} AggregatedListRoutersRequest */ - AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest) + AggregatedListRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -646542,15 +647302,15 @@ }; /** - * Creates a plain object from an AggregatedListSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRoutersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest + * @param {google.cloud.compute.v1beta.AggregatedListRoutersRequest} message AggregatedListRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { + AggregatedListRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -646600,59 +647360,59 @@ }; /** - * Converts this AggregatedListSslCertificatesRequest to JSON. + * Converts this AggregatedListRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { + AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSslCertificatesRequest + * Gets the default type url for AggregatedListRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRoutersRequest"; }; - return AggregatedListSslCertificatesRequest; + return AggregatedListRoutersRequest; })(); - v1beta.AggregatedListSslPoliciesRequest = (function() { + v1beta.AggregatedListSecurityPoliciesRequest = (function() { /** - * Properties of an AggregatedListSslPoliciesRequest. + * Properties of an AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListSslPoliciesRequest - * @property {string|null} [filter] AggregatedListSslPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSslPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSslPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSslPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSslPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListSslPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSslPoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListSslPoliciesRequest serviceProjectNumber + * @interface IAggregatedListSecurityPoliciesRequest + * @property {string|null} [filter] AggregatedListSecurityPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSecurityPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSecurityPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListSecurityPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSecurityPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListSecurityPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSslPoliciesRequest. + * Constructs a new AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListSslPoliciesRequest. - * @implements IAggregatedListSslPoliciesRequest + * @classdesc Represents an AggregatedListSecurityPoliciesRequest. + * @implements IAggregatedListSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set */ - function AggregatedListSslPoliciesRequest(properties) { + function AggregatedListSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -646660,136 +647420,136 @@ } /** - * AggregatedListSslPoliciesRequest filter. + * AggregatedListSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.filter = null; + AggregatedListSecurityPoliciesRequest.prototype.filter = null; /** - * AggregatedListSslPoliciesRequest includeAllScopes. + * AggregatedListSecurityPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslPoliciesRequest maxResults. + * AggregatedListSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.maxResults = null; + AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListSslPoliciesRequest orderBy. + * AggregatedListSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.orderBy = null; + AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListSslPoliciesRequest pageToken. + * AggregatedListSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.pageToken = null; + AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListSslPoliciesRequest project. + * AggregatedListSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.project = ""; + AggregatedListSecurityPoliciesRequest.prototype.project = ""; /** - * AggregatedListSslPoliciesRequest returnPartialSuccess. + * AggregatedListSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSslPoliciesRequest serviceProjectNumber. + * AggregatedListSecurityPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListSecurityPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance */ - AggregatedListSslPoliciesRequest.create = function create(properties) { - return new AggregatedListSslPoliciesRequest(properties); + AggregatedListSecurityPoliciesRequest.create = function create(properties) { + return new AggregatedListSecurityPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.encode = function encode(message, writer) { + AggregatedListSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -646812,33 +647572,33 @@ }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListSecurityPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -646885,30 +647645,30 @@ }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslPoliciesRequest message. + * Verifies an AggregatedListSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSslPoliciesRequest.verify = function verify(message) { + AggregatedListSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -646954,17 +647714,17 @@ }; /** - * Creates an AggregatedListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest */ - AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest) + AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -646992,15 +647752,15 @@ }; /** - * Creates a plain object from an AggregatedListSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest + * @param {google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -647050,59 +647810,59 @@ }; /** - * Converts this AggregatedListSslPoliciesRequest to JSON. + * Converts this AggregatedListSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSslPoliciesRequest + * Gets the default type url for AggregatedListSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSecurityPoliciesRequest"; }; - return AggregatedListSslPoliciesRequest; + return AggregatedListSecurityPoliciesRequest; })(); - v1beta.AggregatedListStoragePoolTypesRequest = (function() { + v1beta.AggregatedListServiceAttachmentsRequest = (function() { /** - * Properties of an AggregatedListStoragePoolTypesRequest. + * Properties of an AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListStoragePoolTypesRequest - * @property {string|null} [filter] AggregatedListStoragePoolTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListStoragePoolTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListStoragePoolTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListStoragePoolTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListStoragePoolTypesRequest pageToken - * @property {string|null} [project] AggregatedListStoragePoolTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListStoragePoolTypesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListStoragePoolTypesRequest serviceProjectNumber + * @interface IAggregatedListServiceAttachmentsRequest + * @property {string|null} [filter] AggregatedListServiceAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListServiceAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListServiceAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListServiceAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListServiceAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListServiceAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListServiceAttachmentsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListServiceAttachmentsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListStoragePoolTypesRequest. + * Constructs a new AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListStoragePoolTypesRequest. - * @implements IAggregatedListStoragePoolTypesRequest + * @classdesc Represents an AggregatedListServiceAttachmentsRequest. + * @implements IAggregatedListServiceAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListStoragePoolTypesRequest(properties) { + function AggregatedListServiceAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -647110,136 +647870,136 @@ } /** - * AggregatedListStoragePoolTypesRequest filter. + * AggregatedListServiceAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.filter = null; + AggregatedListServiceAttachmentsRequest.prototype.filter = null; /** - * AggregatedListStoragePoolTypesRequest includeAllScopes. + * AggregatedListServiceAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.includeAllScopes = null; + AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListStoragePoolTypesRequest maxResults. + * AggregatedListServiceAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.maxResults = null; + AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListStoragePoolTypesRequest orderBy. + * AggregatedListServiceAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.orderBy = null; + AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListStoragePoolTypesRequest pageToken. + * AggregatedListServiceAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.pageToken = null; + AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListStoragePoolTypesRequest project. + * AggregatedListServiceAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.project = ""; + AggregatedListServiceAttachmentsRequest.prototype.project = ""; /** - * AggregatedListStoragePoolTypesRequest returnPartialSuccess. + * AggregatedListServiceAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListStoragePoolTypesRequest serviceProjectNumber. + * AggregatedListServiceAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.serviceProjectNumber = null; + AggregatedListServiceAttachmentsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListStoragePoolTypesRequest instance using the specified properties. + * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance */ - AggregatedListStoragePoolTypesRequest.create = function create(properties) { - return new AggregatedListStoragePoolTypesRequest(properties); + AggregatedListServiceAttachmentsRequest.create = function create(properties) { + return new AggregatedListServiceAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListStoragePoolTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolTypesRequest.encode = function encode(message, writer) { + AggregatedListServiceAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -647262,33 +648022,33 @@ }; /** - * Encodes the specified AggregatedListStoragePoolTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListStoragePoolTypesRequest.decode = function decode(reader, length, error) { + AggregatedListServiceAttachmentsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -647335,30 +648095,30 @@ }; /** - * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListStoragePoolTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListStoragePoolTypesRequest message. + * Verifies an AggregatedListServiceAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListStoragePoolTypesRequest.verify = function verify(message) { + AggregatedListServiceAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -647404,17 +648164,17 @@ }; /** - * Creates an AggregatedListStoragePoolTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest */ - AggregatedListStoragePoolTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest) + AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -647442,15 +648202,15 @@ }; /** - * Creates a plain object from an AggregatedListStoragePoolTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListServiceAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest + * @param {google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListStoragePoolTypesRequest.toObject = function toObject(message, options) { + AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -647500,59 +648260,59 @@ }; /** - * Converts this AggregatedListStoragePoolTypesRequest to JSON. + * Converts this AggregatedListServiceAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListStoragePoolTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListStoragePoolTypesRequest + * Gets the default type url for AggregatedListServiceAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListStoragePoolTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListServiceAttachmentsRequest"; }; - return AggregatedListStoragePoolTypesRequest; + return AggregatedListServiceAttachmentsRequest; })(); - v1beta.AggregatedListStoragePoolsRequest = (function() { + v1beta.AggregatedListSnapshotsRequest = (function() { /** - * Properties of an AggregatedListStoragePoolsRequest. + * Properties of an AggregatedListSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListStoragePoolsRequest - * @property {string|null} [filter] AggregatedListStoragePoolsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListStoragePoolsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListStoragePoolsRequest maxResults - * @property {string|null} [orderBy] AggregatedListStoragePoolsRequest orderBy - * @property {string|null} [pageToken] AggregatedListStoragePoolsRequest pageToken - * @property {string|null} [project] AggregatedListStoragePoolsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListStoragePoolsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListStoragePoolsRequest serviceProjectNumber + * @interface IAggregatedListSnapshotsRequest + * @property {string|null} [filter] AggregatedListSnapshotsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSnapshotsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSnapshotsRequest maxResults + * @property {string|null} [orderBy] AggregatedListSnapshotsRequest orderBy + * @property {string|null} [pageToken] AggregatedListSnapshotsRequest pageToken + * @property {string|null} [project] AggregatedListSnapshotsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSnapshotsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListSnapshotsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListStoragePoolsRequest. + * Constructs a new AggregatedListSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListStoragePoolsRequest. - * @implements IAggregatedListStoragePoolsRequest + * @classdesc Represents an AggregatedListSnapshotsRequest. + * @implements IAggregatedListSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListSnapshotsRequest=} [properties] Properties to set */ - function AggregatedListStoragePoolsRequest(properties) { + function AggregatedListSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -647560,136 +648320,136 @@ } /** - * AggregatedListStoragePoolsRequest filter. + * AggregatedListSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.filter = null; + AggregatedListSnapshotsRequest.prototype.filter = null; /** - * AggregatedListStoragePoolsRequest includeAllScopes. + * AggregatedListSnapshotsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.includeAllScopes = null; + AggregatedListSnapshotsRequest.prototype.includeAllScopes = null; /** - * AggregatedListStoragePoolsRequest maxResults. + * AggregatedListSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.maxResults = null; + AggregatedListSnapshotsRequest.prototype.maxResults = null; /** - * AggregatedListStoragePoolsRequest orderBy. + * AggregatedListSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.orderBy = null; + AggregatedListSnapshotsRequest.prototype.orderBy = null; /** - * AggregatedListStoragePoolsRequest pageToken. + * AggregatedListSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.pageToken = null; + AggregatedListSnapshotsRequest.prototype.pageToken = null; /** - * AggregatedListStoragePoolsRequest project. + * AggregatedListSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.project = ""; + AggregatedListSnapshotsRequest.prototype.project = ""; /** - * AggregatedListStoragePoolsRequest returnPartialSuccess. + * AggregatedListSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListSnapshotsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListStoragePoolsRequest serviceProjectNumber. + * AggregatedListSnapshotsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.serviceProjectNumber = null; + AggregatedListSnapshotsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSnapshotsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListStoragePoolsRequest instance using the specified properties. + * Creates a new AggregatedListSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} AggregatedListSnapshotsRequest instance */ - AggregatedListStoragePoolsRequest.create = function create(properties) { - return new AggregatedListStoragePoolsRequest(properties); + AggregatedListSnapshotsRequest.create = function create(properties) { + return new AggregatedListSnapshotsRequest(properties); }; /** - * Encodes the specified AggregatedListStoragePoolsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSnapshotsRequest} message AggregatedListSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolsRequest.encode = function encode(message, writer) { + AggregatedListSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -647712,33 +648472,33 @@ }; /** - * Encodes the specified AggregatedListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSnapshotsRequest} message AggregatedListSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} AggregatedListSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListStoragePoolsRequest.decode = function decode(reader, length, error) { + AggregatedListSnapshotsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -647785,30 +648545,30 @@ }; /** - * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} AggregatedListSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListStoragePoolsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListStoragePoolsRequest message. + * Verifies an AggregatedListSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListStoragePoolsRequest.verify = function verify(message) { + AggregatedListSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -647854,17 +648614,17 @@ }; /** - * Creates an AggregatedListStoragePoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} AggregatedListSnapshotsRequest */ - AggregatedListStoragePoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest) + AggregatedListSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -647892,15 +648652,15 @@ }; /** - * Creates a plain object from an AggregatedListStoragePoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest + * @param {google.cloud.compute.v1beta.AggregatedListSnapshotsRequest} message AggregatedListSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListStoragePoolsRequest.toObject = function toObject(message, options) { + AggregatedListSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -647950,59 +648710,59 @@ }; /** - * Converts this AggregatedListStoragePoolsRequest to JSON. + * Converts this AggregatedListSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListStoragePoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListStoragePoolsRequest + * Gets the default type url for AggregatedListSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSnapshotsRequest"; }; - return AggregatedListStoragePoolsRequest; + return AggregatedListSnapshotsRequest; })(); - v1beta.AggregatedListSubnetworksRequest = (function() { + v1beta.AggregatedListSslCertificatesRequest = (function() { /** - * Properties of an AggregatedListSubnetworksRequest. + * Properties of an AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListSubnetworksRequest - * @property {string|null} [filter] AggregatedListSubnetworksRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSubnetworksRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSubnetworksRequest maxResults - * @property {string|null} [orderBy] AggregatedListSubnetworksRequest orderBy - * @property {string|null} [pageToken] AggregatedListSubnetworksRequest pageToken - * @property {string|null} [project] AggregatedListSubnetworksRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSubnetworksRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListSubnetworksRequest serviceProjectNumber + * @interface IAggregatedListSslCertificatesRequest + * @property {string|null} [filter] AggregatedListSslCertificatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSslCertificatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSslCertificatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSslCertificatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSslCertificatesRequest pageToken + * @property {string|null} [project] AggregatedListSslCertificatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSslCertificatesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListSslCertificatesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSubnetworksRequest. + * Constructs a new AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListSubnetworksRequest. - * @implements IAggregatedListSubnetworksRequest + * @classdesc Represents an AggregatedListSslCertificatesRequest. + * @implements IAggregatedListSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListSslCertificatesRequest=} [properties] Properties to set */ - function AggregatedListSubnetworksRequest(properties) { + function AggregatedListSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -648010,136 +648770,136 @@ } /** - * AggregatedListSubnetworksRequest filter. + * AggregatedListSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.filter = null; + AggregatedListSslCertificatesRequest.prototype.filter = null; /** - * AggregatedListSubnetworksRequest includeAllScopes. + * AggregatedListSslCertificatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; + AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSubnetworksRequest maxResults. + * AggregatedListSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.maxResults = null; + AggregatedListSslCertificatesRequest.prototype.maxResults = null; /** - * AggregatedListSubnetworksRequest orderBy. + * AggregatedListSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.orderBy = null; + AggregatedListSslCertificatesRequest.prototype.orderBy = null; /** - * AggregatedListSubnetworksRequest pageToken. + * AggregatedListSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.pageToken = null; + AggregatedListSslCertificatesRequest.prototype.pageToken = null; /** - * AggregatedListSubnetworksRequest project. + * AggregatedListSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.project = ""; + AggregatedListSslCertificatesRequest.prototype.project = ""; /** - * AggregatedListSubnetworksRequest returnPartialSuccess. + * AggregatedListSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; + AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSubnetworksRequest serviceProjectNumber. + * AggregatedListSslCertificatesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.serviceProjectNumber = null; + AggregatedListSslCertificatesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. + * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSubnetworksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance */ - AggregatedListSubnetworksRequest.create = function create(properties) { - return new AggregatedListSubnetworksRequest(properties); + AggregatedListSslCertificatesRequest.create = function create(properties) { + return new AggregatedListSslCertificatesRequest(properties); }; /** - * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.encode = function encode(message, writer) { + AggregatedListSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -648162,33 +648922,33 @@ }; /** - * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSubnetworksRequest.decode = function decode(reader, length, error) { + AggregatedListSslCertificatesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSubnetworksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -648235,30 +648995,30 @@ }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSubnetworksRequest message. + * Verifies an AggregatedListSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSubnetworksRequest.verify = function verify(message) { + AggregatedListSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -648304,17 +649064,17 @@ }; /** - * Creates an AggregatedListSubnetworksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest */ - AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSubnetworksRequest) + AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListSubnetworksRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -648342,15 +649102,15 @@ }; /** - * Creates a plain object from an AggregatedListSubnetworksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest + * @param {google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { + AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -648400,59 +649160,59 @@ }; /** - * Converts this AggregatedListSubnetworksRequest to JSON. + * Converts this AggregatedListSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { + AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSubnetworksRequest + * Gets the default type url for AggregatedListSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSubnetworksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSslCertificatesRequest"; }; - return AggregatedListSubnetworksRequest; + return AggregatedListSslCertificatesRequest; })(); - v1beta.AggregatedListTargetHttpProxiesRequest = (function() { + v1beta.AggregatedListSslPoliciesRequest = (function() { /** - * Properties of an AggregatedListTargetHttpProxiesRequest. + * Properties of an AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListTargetHttpProxiesRequest - * @property {string|null} [filter] AggregatedListTargetHttpProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetHttpProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetHttpProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetHttpProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetHttpProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpProxiesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetHttpProxiesRequest serviceProjectNumber + * @interface IAggregatedListSslPoliciesRequest + * @property {string|null} [filter] AggregatedListSslPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSslPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSslPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSslPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSslPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListSslPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSslPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListSslPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetHttpProxiesRequest. + * Constructs a new AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. - * @implements IAggregatedListTargetHttpProxiesRequest + * @classdesc Represents an AggregatedListSslPoliciesRequest. + * @implements IAggregatedListSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListSslPoliciesRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpProxiesRequest(properties) { + function AggregatedListSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -648460,136 +649220,136 @@ } /** - * AggregatedListTargetHttpProxiesRequest filter. + * AggregatedListSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.filter = null; + AggregatedListSslPoliciesRequest.prototype.filter = null; /** - * AggregatedListTargetHttpProxiesRequest includeAllScopes. + * AggregatedListSslPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpProxiesRequest maxResults. + * AggregatedListSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; + AggregatedListSslPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpProxiesRequest orderBy. + * AggregatedListSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; + AggregatedListSslPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpProxiesRequest pageToken. + * AggregatedListSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; + AggregatedListSslPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpProxiesRequest project. + * AggregatedListSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.project = ""; + AggregatedListSslPoliciesRequest.prototype.project = ""; /** - * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. + * AggregatedListSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetHttpProxiesRequest serviceProjectNumber. + * AggregatedListSslPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.serviceProjectNumber = null; + AggregatedListSslPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance */ - AggregatedListTargetHttpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpProxiesRequest(properties); + AggregatedListSslPoliciesRequest.create = function create(properties) { + return new AggregatedListSslPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.encode = function encode(message, writer) { + AggregatedListSslPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -648612,33 +649372,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpProxiesRequest.decode = function decode(reader, length, error) { + AggregatedListSslPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -648685,30 +649445,30 @@ }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpProxiesRequest message. + * Verifies an AggregatedListSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { + AggregatedListSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -648754,17 +649514,17 @@ }; /** - * Creates an AggregatedListTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest */ - AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest) + AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -648792,15 +649552,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSslPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest + * @param {google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -648850,59 +649610,59 @@ }; /** - * Converts this AggregatedListTargetHttpProxiesRequest to JSON. + * Converts this AggregatedListSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetHttpProxiesRequest + * Gets the default type url for AggregatedListSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSslPoliciesRequest"; }; - return AggregatedListTargetHttpProxiesRequest; + return AggregatedListSslPoliciesRequest; })(); - v1beta.AggregatedListTargetHttpsProxiesRequest = (function() { + v1beta.AggregatedListStoragePoolTypesRequest = (function() { /** - * Properties of an AggregatedListTargetHttpsProxiesRequest. + * Properties of an AggregatedListStoragePoolTypesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListTargetHttpsProxiesRequest - * @property {string|null} [filter] AggregatedListTargetHttpsProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpsProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetHttpsProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetHttpsProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetHttpsProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetHttpsProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpsProxiesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetHttpsProxiesRequest serviceProjectNumber + * @interface IAggregatedListStoragePoolTypesRequest + * @property {string|null} [filter] AggregatedListStoragePoolTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListStoragePoolTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListStoragePoolTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListStoragePoolTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListStoragePoolTypesRequest pageToken + * @property {string|null} [project] AggregatedListStoragePoolTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListStoragePoolTypesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListStoragePoolTypesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetHttpsProxiesRequest. + * Constructs a new AggregatedListStoragePoolTypesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. - * @implements IAggregatedListTargetHttpsProxiesRequest + * @classdesc Represents an AggregatedListStoragePoolTypesRequest. + * @implements IAggregatedListStoragePoolTypesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpsProxiesRequest(properties) { + function AggregatedListStoragePoolTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -648910,136 +649670,136 @@ } /** - * AggregatedListTargetHttpsProxiesRequest filter. + * AggregatedListStoragePoolTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; + AggregatedListStoragePoolTypesRequest.prototype.filter = null; /** - * AggregatedListTargetHttpsProxiesRequest includeAllScopes. + * AggregatedListStoragePoolTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; + AggregatedListStoragePoolTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpsProxiesRequest maxResults. + * AggregatedListStoragePoolTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; + AggregatedListStoragePoolTypesRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpsProxiesRequest orderBy. + * AggregatedListStoragePoolTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; + AggregatedListStoragePoolTypesRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpsProxiesRequest pageToken. + * AggregatedListStoragePoolTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; + AggregatedListStoragePoolTypesRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpsProxiesRequest project. + * AggregatedListStoragePoolTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; + AggregatedListStoragePoolTypesRequest.prototype.project = ""; /** - * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. + * AggregatedListStoragePoolTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetHttpsProxiesRequest serviceProjectNumber. + * AggregatedListStoragePoolTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.serviceProjectNumber = null; + AggregatedListStoragePoolTypesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new AggregatedListStoragePoolTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest instance */ - AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpsProxiesRequest(properties); + AggregatedListStoragePoolTypesRequest.create = function create(properties) { + return new AggregatedListStoragePoolTypesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.encode = function encode(message, writer) { + AggregatedListStoragePoolTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -649062,33 +649822,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpsProxiesRequest.decode = function decode(reader, length, error) { + AggregatedListStoragePoolTypesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -649135,30 +649895,30 @@ }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListStoragePoolTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpsProxiesRequest message. + * Verifies an AggregatedListStoragePoolTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { + AggregatedListStoragePoolTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -649204,17 +649964,17 @@ }; /** - * Creates an AggregatedListTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListStoragePoolTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest */ - AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest) + AggregatedListStoragePoolTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -649242,15 +650002,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListStoragePoolTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + AggregatedListStoragePoolTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -649300,59 +650060,59 @@ }; /** - * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. + * Converts this AggregatedListStoragePoolTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListStoragePoolTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetHttpsProxiesRequest + * Gets the default type url for AggregatedListStoragePoolTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListStoragePoolTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListStoragePoolTypesRequest"; }; - return AggregatedListTargetHttpsProxiesRequest; + return AggregatedListStoragePoolTypesRequest; })(); - v1beta.AggregatedListTargetInstancesRequest = (function() { + v1beta.AggregatedListStoragePoolsRequest = (function() { /** - * Properties of an AggregatedListTargetInstancesRequest. + * Properties of an AggregatedListStoragePoolsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListTargetInstancesRequest - * @property {string|null} [filter] AggregatedListTargetInstancesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetInstancesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetInstancesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetInstancesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetInstancesRequest pageToken - * @property {string|null} [project] AggregatedListTargetInstancesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetInstancesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetInstancesRequest serviceProjectNumber + * @interface IAggregatedListStoragePoolsRequest + * @property {string|null} [filter] AggregatedListStoragePoolsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListStoragePoolsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListStoragePoolsRequest maxResults + * @property {string|null} [orderBy] AggregatedListStoragePoolsRequest orderBy + * @property {string|null} [pageToken] AggregatedListStoragePoolsRequest pageToken + * @property {string|null} [project] AggregatedListStoragePoolsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListStoragePoolsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListStoragePoolsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetInstancesRequest. + * Constructs a new AggregatedListStoragePoolsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListTargetInstancesRequest. - * @implements IAggregatedListTargetInstancesRequest + * @classdesc Represents an AggregatedListStoragePoolsRequest. + * @implements IAggregatedListStoragePoolsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolsRequest=} [properties] Properties to set */ - function AggregatedListTargetInstancesRequest(properties) { + function AggregatedListStoragePoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -649360,136 +650120,136 @@ } /** - * AggregatedListTargetInstancesRequest filter. + * AggregatedListStoragePoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.filter = null; + AggregatedListStoragePoolsRequest.prototype.filter = null; /** - * AggregatedListTargetInstancesRequest includeAllScopes. + * AggregatedListStoragePoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; + AggregatedListStoragePoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetInstancesRequest maxResults. + * AggregatedListStoragePoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.maxResults = null; + AggregatedListStoragePoolsRequest.prototype.maxResults = null; /** - * AggregatedListTargetInstancesRequest orderBy. + * AggregatedListStoragePoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.orderBy = null; + AggregatedListStoragePoolsRequest.prototype.orderBy = null; /** - * AggregatedListTargetInstancesRequest pageToken. + * AggregatedListStoragePoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.pageToken = null; + AggregatedListStoragePoolsRequest.prototype.pageToken = null; /** - * AggregatedListTargetInstancesRequest project. + * AggregatedListStoragePoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.project = ""; + AggregatedListStoragePoolsRequest.prototype.project = ""; /** - * AggregatedListTargetInstancesRequest returnPartialSuccess. + * AggregatedListStoragePoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListStoragePoolsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetInstancesRequest serviceProjectNumber. + * AggregatedListStoragePoolsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.serviceProjectNumber = null; + AggregatedListStoragePoolsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. + * Creates a new AggregatedListStoragePoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest instance */ - AggregatedListTargetInstancesRequest.create = function create(properties) { - return new AggregatedListTargetInstancesRequest(properties); + AggregatedListStoragePoolsRequest.create = function create(properties) { + return new AggregatedListStoragePoolsRequest(properties); }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.encode = function encode(message, writer) { + AggregatedListStoragePoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -649512,33 +650272,33 @@ }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetInstancesRequest.decode = function decode(reader, length, error) { + AggregatedListStoragePoolsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -649585,30 +650345,30 @@ }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListStoragePoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetInstancesRequest message. + * Verifies an AggregatedListStoragePoolsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetInstancesRequest.verify = function verify(message) { + AggregatedListStoragePoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -649654,17 +650414,17 @@ }; /** - * Creates an AggregatedListTargetInstancesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListStoragePoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest */ - AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest) + AggregatedListStoragePoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -649692,15 +650452,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetInstancesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListStoragePoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest + * @param {google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { + AggregatedListStoragePoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -649750,59 +650510,60 @@ }; /** - * Converts this AggregatedListTargetInstancesRequest to JSON. + * Converts this AggregatedListStoragePoolsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListStoragePoolsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetInstancesRequest + * Gets the default type url for AggregatedListStoragePoolsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListStoragePoolsRequest"; }; - return AggregatedListTargetInstancesRequest; + return AggregatedListStoragePoolsRequest; })(); - v1beta.AggregatedListTargetPoolsRequest = (function() { + v1beta.AggregatedListSubnetworksRequest = (function() { /** - * Properties of an AggregatedListTargetPoolsRequest. + * Properties of an AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListTargetPoolsRequest - * @property {string|null} [filter] AggregatedListTargetPoolsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetPoolsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetPoolsRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetPoolsRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetPoolsRequest pageToken - * @property {string|null} [project] AggregatedListTargetPoolsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetPoolsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetPoolsRequest serviceProjectNumber + * @interface IAggregatedListSubnetworksRequest + * @property {string|null} [filter] AggregatedListSubnetworksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSubnetworksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSubnetworksRequest maxResults + * @property {string|null} [orderBy] AggregatedListSubnetworksRequest orderBy + * @property {string|null} [pageToken] AggregatedListSubnetworksRequest pageToken + * @property {string|null} [project] AggregatedListSubnetworksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSubnetworksRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListSubnetworksRequest serviceProjectNumber + * @property {string|null} [views] AggregatedListSubnetworksRequest views */ /** - * Constructs a new AggregatedListTargetPoolsRequest. + * Constructs a new AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListTargetPoolsRequest. - * @implements IAggregatedListTargetPoolsRequest + * @classdesc Represents an AggregatedListSubnetworksRequest. + * @implements IAggregatedListSubnetworksRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListSubnetworksRequest=} [properties] Properties to set */ - function AggregatedListTargetPoolsRequest(properties) { + function AggregatedListSubnetworksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -649810,142 +650571,158 @@ } /** - * AggregatedListTargetPoolsRequest filter. + * AggregatedListSubnetworksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.filter = null; + AggregatedListSubnetworksRequest.prototype.filter = null; /** - * AggregatedListTargetPoolsRequest includeAllScopes. + * AggregatedListSubnetworksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; + AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetPoolsRequest maxResults. + * AggregatedListSubnetworksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.maxResults = null; + AggregatedListSubnetworksRequest.prototype.maxResults = null; /** - * AggregatedListTargetPoolsRequest orderBy. + * AggregatedListSubnetworksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.orderBy = null; + AggregatedListSubnetworksRequest.prototype.orderBy = null; /** - * AggregatedListTargetPoolsRequest pageToken. + * AggregatedListSubnetworksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.pageToken = null; + AggregatedListSubnetworksRequest.prototype.pageToken = null; /** - * AggregatedListTargetPoolsRequest project. + * AggregatedListSubnetworksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.project = ""; + AggregatedListSubnetworksRequest.prototype.project = ""; /** - * AggregatedListTargetPoolsRequest returnPartialSuccess. + * AggregatedListSubnetworksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetPoolsRequest serviceProjectNumber. + * AggregatedListSubnetworksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.serviceProjectNumber = null; + AggregatedListSubnetworksRequest.prototype.serviceProjectNumber = null; + + /** + * AggregatedListSubnetworksRequest views. + * @member {string|null|undefined} views + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest + * @instance + */ + AggregatedListSubnetworksRequest.prototype.views = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_views", { + get: $util.oneOfGetter($oneOfFields = ["views"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** - * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. + * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetPoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance */ - AggregatedListTargetPoolsRequest.create = function create(properties) { - return new AggregatedListTargetPoolsRequest(properties); + AggregatedListSubnetworksRequest.create = function create(properties) { + return new AggregatedListSubnetworksRequest(properties); }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.encode = function encode(message, writer) { + AggregatedListSubnetworksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.views != null && Object.hasOwnProperty.call(message, "views")) + writer.uint32(/* id 112204398, wireType 2 =*/897635186).string(message.views); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -649962,33 +650739,33 @@ }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetPoolsRequest.decode = function decode(reader, length, error) { + AggregatedListSubnetworksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListSubnetworksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -650026,6 +650803,10 @@ message.serviceProjectNumber = reader.int64(); break; } + case 112204398: { + message.views = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -650035,30 +650816,30 @@ }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetPoolsRequest message. + * Verifies an AggregatedListSubnetworksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetPoolsRequest.verify = function verify(message) { + AggregatedListSubnetworksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -650100,21 +650881,26 @@ if (!$util.isInteger(message.serviceProjectNumber) && !(message.serviceProjectNumber && $util.isInteger(message.serviceProjectNumber.low) && $util.isInteger(message.serviceProjectNumber.high))) return "serviceProjectNumber: integer|Long expected"; } + if (message.views != null && message.hasOwnProperty("views")) { + properties._views = 1; + if (!$util.isString(message.views)) + return "views: string expected"; + } return null; }; /** - * Creates an AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSubnetworksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest */ - AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest) + AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListSubnetworksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListSubnetworksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -650138,19 +650924,21 @@ message.serviceProjectNumber = object.serviceProjectNumber; else if (typeof object.serviceProjectNumber === "object") message.serviceProjectNumber = new $util.LongBits(object.serviceProjectNumber.low >>> 0, object.serviceProjectNumber.high >>> 0).toNumber(); + if (object.views != null) + message.views = String(object.views); return message; }; /** - * Creates a plain object from an AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSubnetworksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest + * @param {google.cloud.compute.v1beta.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { + AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -650166,6 +650954,11 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.views != null && message.hasOwnProperty("views")) { + object.views = message.views; + if (options.oneofs) + object._views = "views"; + } if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -650200,59 +650993,75 @@ }; /** - * Converts this AggregatedListTargetPoolsRequest to JSON. + * Converts this AggregatedListSubnetworksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetPoolsRequest + * Gets the default type url for AggregatedListSubnetworksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListSubnetworksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListSubnetworksRequest"; }; - return AggregatedListTargetPoolsRequest; + /** + * Views enum. + * @name google.cloud.compute.v1beta.AggregatedListSubnetworksRequest.Views + * @enum {number} + * @property {number} UNDEFINED_VIEWS=0 UNDEFINED_VIEWS value + * @property {number} DEFAULT=115302945 DEFAULT value + * @property {number} WITH_UTILIZATION=504090633 WITH_UTILIZATION value + */ + AggregatedListSubnetworksRequest.Views = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_VIEWS"] = 0; + values[valuesById[115302945] = "DEFAULT"] = 115302945; + values[valuesById[504090633] = "WITH_UTILIZATION"] = 504090633; + return values; + })(); + + return AggregatedListSubnetworksRequest; })(); - v1beta.AggregatedListTargetTcpProxiesRequest = (function() { + v1beta.AggregatedListTargetHttpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetTcpProxiesRequest. + * Properties of an AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListTargetTcpProxiesRequest - * @property {string|null} [filter] AggregatedListTargetTcpProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetTcpProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetTcpProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetTcpProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetTcpProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetTcpProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetTcpProxiesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetTcpProxiesRequest serviceProjectNumber + * @interface IAggregatedListTargetHttpProxiesRequest + * @property {string|null} [filter] AggregatedListTargetHttpProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetHttpProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetHttpProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetHttpProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetHttpProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpProxiesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetHttpProxiesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetTcpProxiesRequest. + * Constructs a new AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. - * @implements IAggregatedListTargetTcpProxiesRequest + * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. + * @implements IAggregatedListTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetTcpProxiesRequest(properties) { + function AggregatedListTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -650260,136 +651069,136 @@ } /** - * AggregatedListTargetTcpProxiesRequest filter. + * AggregatedListTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.filter = null; + AggregatedListTargetHttpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetTcpProxiesRequest includeAllScopes. + * AggregatedListTargetHttpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetTcpProxiesRequest maxResults. + * AggregatedListTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; + AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetTcpProxiesRequest orderBy. + * AggregatedListTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; + AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetTcpProxiesRequest pageToken. + * AggregatedListTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; + AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetTcpProxiesRequest project. + * AggregatedListTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.project = ""; + AggregatedListTargetHttpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. + * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetTcpProxiesRequest serviceProjectNumber. + * AggregatedListTargetHttpProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetHttpProxiesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance */ - AggregatedListTargetTcpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetTcpProxiesRequest(properties); + AggregatedListTargetHttpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.encode = function encode(message, writer) { + AggregatedListTargetHttpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -650412,33 +651221,33 @@ }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetTcpProxiesRequest.decode = function decode(reader, length, error) { + AggregatedListTargetHttpProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -650485,30 +651294,30 @@ }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetTcpProxiesRequest message. + * Verifies an AggregatedListTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { + AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -650554,17 +651363,17 @@ }; /** - * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest */ - AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest) + AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -650592,15 +651401,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetHttpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest + * @param {google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -650650,59 +651459,59 @@ }; /** - * Converts this AggregatedListTargetTcpProxiesRequest to JSON. + * Converts this AggregatedListTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetTcpProxiesRequest + * Gets the default type url for AggregatedListTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetHttpProxiesRequest"; }; - return AggregatedListTargetTcpProxiesRequest; + return AggregatedListTargetHttpProxiesRequest; })(); - v1beta.AggregatedListTargetVpnGatewaysRequest = (function() { + v1beta.AggregatedListTargetHttpsProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetVpnGatewaysRequest. + * Properties of an AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListTargetVpnGatewaysRequest - * @property {string|null} [filter] AggregatedListTargetVpnGatewaysRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetVpnGatewaysRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetVpnGatewaysRequest pageToken - * @property {string|null} [project] AggregatedListTargetVpnGatewaysRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetVpnGatewaysRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetVpnGatewaysRequest serviceProjectNumber + * @interface IAggregatedListTargetHttpsProxiesRequest + * @property {string|null} [filter] AggregatedListTargetHttpsProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpsProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetHttpsProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetHttpsProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetHttpsProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetHttpsProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpsProxiesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetHttpsProxiesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetVpnGatewaysRequest. + * Constructs a new AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. - * @implements IAggregatedListTargetVpnGatewaysRequest + * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. + * @implements IAggregatedListTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetVpnGatewaysRequest(properties) { + function AggregatedListTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -650710,136 +651519,136 @@ } /** - * AggregatedListTargetVpnGatewaysRequest filter. + * AggregatedListTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; + AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetVpnGatewaysRequest includeAllScopes. + * AggregatedListTargetHttpsProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetVpnGatewaysRequest maxResults. + * AggregatedListTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetVpnGatewaysRequest orderBy. + * AggregatedListTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetVpnGatewaysRequest pageToken. + * AggregatedListTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetVpnGatewaysRequest project. + * AggregatedListTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; + AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. + * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetVpnGatewaysRequest serviceProjectNumber. + * AggregatedListTargetHttpsProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetHttpsProxiesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance */ - AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListTargetVpnGatewaysRequest(properties); + AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -650862,33 +651671,33 @@ }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetVpnGatewaysRequest.decode = function decode(reader, length, error) { + AggregatedListTargetHttpsProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -650935,30 +651744,30 @@ }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetVpnGatewaysRequest message. + * Verifies an AggregatedListTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { + AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -651004,17 +651813,17 @@ }; /** - * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest */ - AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest) + AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -651042,15 +651851,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest + * @param {google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -651100,59 +651909,59 @@ }; /** - * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. + * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetVpnGatewaysRequest + * Gets the default type url for AggregatedListTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetHttpsProxiesRequest"; }; - return AggregatedListTargetVpnGatewaysRequest; + return AggregatedListTargetHttpsProxiesRequest; })(); - v1beta.AggregatedListUrlMapsRequest = (function() { + v1beta.AggregatedListTargetInstancesRequest = (function() { /** - * Properties of an AggregatedListUrlMapsRequest. + * Properties of an AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListUrlMapsRequest - * @property {string|null} [filter] AggregatedListUrlMapsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListUrlMapsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListUrlMapsRequest maxResults - * @property {string|null} [orderBy] AggregatedListUrlMapsRequest orderBy - * @property {string|null} [pageToken] AggregatedListUrlMapsRequest pageToken - * @property {string|null} [project] AggregatedListUrlMapsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListUrlMapsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListUrlMapsRequest serviceProjectNumber + * @interface IAggregatedListTargetInstancesRequest + * @property {string|null} [filter] AggregatedListTargetInstancesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetInstancesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetInstancesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetInstancesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetInstancesRequest pageToken + * @property {string|null} [project] AggregatedListTargetInstancesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetInstancesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetInstancesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListUrlMapsRequest. + * Constructs a new AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListUrlMapsRequest. - * @implements IAggregatedListUrlMapsRequest + * @classdesc Represents an AggregatedListTargetInstancesRequest. + * @implements IAggregatedListTargetInstancesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListTargetInstancesRequest=} [properties] Properties to set */ - function AggregatedListUrlMapsRequest(properties) { + function AggregatedListTargetInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -651160,136 +651969,136 @@ } /** - * AggregatedListUrlMapsRequest filter. + * AggregatedListTargetInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.filter = null; + AggregatedListTargetInstancesRequest.prototype.filter = null; /** - * AggregatedListUrlMapsRequest includeAllScopes. + * AggregatedListTargetInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; + AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListUrlMapsRequest maxResults. + * AggregatedListTargetInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.maxResults = null; + AggregatedListTargetInstancesRequest.prototype.maxResults = null; /** - * AggregatedListUrlMapsRequest orderBy. + * AggregatedListTargetInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.orderBy = null; + AggregatedListTargetInstancesRequest.prototype.orderBy = null; /** - * AggregatedListUrlMapsRequest pageToken. + * AggregatedListTargetInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.pageToken = null; + AggregatedListTargetInstancesRequest.prototype.pageToken = null; /** - * AggregatedListUrlMapsRequest project. + * AggregatedListTargetInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.project = ""; + AggregatedListTargetInstancesRequest.prototype.project = ""; /** - * AggregatedListUrlMapsRequest returnPartialSuccess. + * AggregatedListTargetInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListUrlMapsRequest serviceProjectNumber. + * AggregatedListTargetInstancesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetInstancesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. + * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance */ - AggregatedListUrlMapsRequest.create = function create(properties) { - return new AggregatedListUrlMapsRequest(properties); + AggregatedListTargetInstancesRequest.create = function create(properties) { + return new AggregatedListTargetInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encode = function encode(message, writer) { + AggregatedListTargetInstancesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -651312,33 +652121,33 @@ }; /** - * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListUrlMapsRequest.decode = function decode(reader, length, error) { + AggregatedListTargetInstancesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -651385,30 +652194,30 @@ }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListUrlMapsRequest message. + * Verifies an AggregatedListTargetInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListUrlMapsRequest.verify = function verify(message) { + AggregatedListTargetInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -651454,17 +652263,17 @@ }; /** - * Creates an AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetInstancesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest */ - AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListUrlMapsRequest) + AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -651492,15 +652301,15 @@ }; /** - * Creates a plain object from an AggregatedListUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetInstancesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { + AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -651550,59 +652359,59 @@ }; /** - * Converts this AggregatedListUrlMapsRequest to JSON. + * Converts this AggregatedListTargetInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListUrlMapsRequest + * Gets the default type url for AggregatedListTargetInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetInstancesRequest"; }; - return AggregatedListUrlMapsRequest; + return AggregatedListTargetInstancesRequest; })(); - v1beta.AggregatedListVpnGatewaysRequest = (function() { + v1beta.AggregatedListTargetPoolsRequest = (function() { /** - * Properties of an AggregatedListVpnGatewaysRequest. + * Properties of an AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListVpnGatewaysRequest - * @property {string|null} [filter] AggregatedListVpnGatewaysRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListVpnGatewaysRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] AggregatedListVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] AggregatedListVpnGatewaysRequest pageToken - * @property {string|null} [project] AggregatedListVpnGatewaysRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnGatewaysRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListVpnGatewaysRequest serviceProjectNumber + * @interface IAggregatedListTargetPoolsRequest + * @property {string|null} [filter] AggregatedListTargetPoolsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetPoolsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetPoolsRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetPoolsRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetPoolsRequest pageToken + * @property {string|null} [project] AggregatedListTargetPoolsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetPoolsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetPoolsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListVpnGatewaysRequest. + * Constructs a new AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListVpnGatewaysRequest. - * @implements IAggregatedListVpnGatewaysRequest + * @classdesc Represents an AggregatedListTargetPoolsRequest. + * @implements IAggregatedListTargetPoolsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListTargetPoolsRequest=} [properties] Properties to set */ - function AggregatedListVpnGatewaysRequest(properties) { + function AggregatedListTargetPoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -651610,136 +652419,1936 @@ } /** - * AggregatedListVpnGatewaysRequest filter. + * AggregatedListTargetPoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.filter = null; + AggregatedListTargetPoolsRequest.prototype.filter = null; /** - * AggregatedListVpnGatewaysRequest includeAllScopes. + * AggregatedListTargetPoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListVpnGatewaysRequest maxResults. + * AggregatedListTargetPoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListTargetPoolsRequest.prototype.maxResults = null; /** - * AggregatedListVpnGatewaysRequest orderBy. + * AggregatedListTargetPoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListTargetPoolsRequest.prototype.orderBy = null; /** - * AggregatedListVpnGatewaysRequest pageToken. + * AggregatedListTargetPoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListTargetPoolsRequest.prototype.pageToken = null; /** - * AggregatedListVpnGatewaysRequest project. + * AggregatedListTargetPoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.project = ""; + AggregatedListTargetPoolsRequest.prototype.project = ""; /** - * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * AggregatedListTargetPoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListVpnGatewaysRequest serviceProjectNumber. + * AggregatedListTargetPoolsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetPoolsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance */ - AggregatedListVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListVpnGatewaysRequest(properties); + AggregatedListTargetPoolsRequest.create = function create(properties) { + return new AggregatedListTargetPoolsRequest(properties); }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnGatewaysRequest.encode = function encode(message, writer) { + AggregatedListTargetPoolsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.serviceProjectNumber != null && Object.hasOwnProperty.call(message, "serviceProjectNumber")) + writer.uint32(/* id 316757497, wireType 0 =*/2534059976).int64(message.serviceProjectNumber); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.includeAllScopes != null && Object.hasOwnProperty.call(message, "includeAllScopes")) + writer.uint32(/* id 391327988, wireType 0 =*/3130623904).bool(message.includeAllScopes); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListTargetPoolsRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 391327988: { + message.includeAllScopes = reader.bool(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 316757497: { + message.serviceProjectNumber = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListTargetPoolsRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListTargetPoolsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + properties._includeAllScopes = 1; + if (typeof message.includeAllScopes !== "boolean") + return "includeAllScopes: boolean expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + properties._serviceProjectNumber = 1; + if (!$util.isInteger(message.serviceProjectNumber) && !(message.serviceProjectNumber && $util.isInteger(message.serviceProjectNumber.low) && $util.isInteger(message.serviceProjectNumber.high))) + return "serviceProjectNumber: integer|Long expected"; + } + return null; + }; + + /** + * Creates an AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + */ + AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.includeAllScopes != null) + message.includeAllScopes = Boolean(object.includeAllScopes); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.serviceProjectNumber != null) + if ($util.Long) + (message.serviceProjectNumber = $util.Long.fromValue(object.serviceProjectNumber)).unsigned = false; + else if (typeof object.serviceProjectNumber === "string") + message.serviceProjectNumber = parseInt(object.serviceProjectNumber, 10); + else if (typeof object.serviceProjectNumber === "number") + message.serviceProjectNumber = object.serviceProjectNumber; + else if (typeof object.serviceProjectNumber === "object") + message.serviceProjectNumber = new $util.LongBits(object.serviceProjectNumber.low >>> 0, object.serviceProjectNumber.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @static + * @param {google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + if (typeof message.serviceProjectNumber === "number") + object.serviceProjectNumber = options.longs === String ? String(message.serviceProjectNumber) : message.serviceProjectNumber; + else + object.serviceProjectNumber = options.longs === String ? $util.Long.prototype.toString.call(message.serviceProjectNumber) : options.longs === Number ? new $util.LongBits(message.serviceProjectNumber.low >>> 0, message.serviceProjectNumber.high >>> 0).toNumber() : message.serviceProjectNumber; + if (options.oneofs) + object._serviceProjectNumber = "serviceProjectNumber"; + } + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + object.includeAllScopes = message.includeAllScopes; + if (options.oneofs) + object._includeAllScopes = "includeAllScopes"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this AggregatedListTargetPoolsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListTargetPoolsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetPoolsRequest"; + }; + + return AggregatedListTargetPoolsRequest; + })(); + + v1beta.AggregatedListTargetTcpProxiesRequest = (function() { + + /** + * Properties of an AggregatedListTargetTcpProxiesRequest. + * @memberof google.cloud.compute.v1beta + * @interface IAggregatedListTargetTcpProxiesRequest + * @property {string|null} [filter] AggregatedListTargetTcpProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetTcpProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetTcpProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetTcpProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetTcpProxiesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetTcpProxiesRequest serviceProjectNumber + */ + + /** + * Constructs a new AggregatedListTargetTcpProxiesRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. + * @implements IAggregatedListTargetTcpProxiesRequest + * @constructor + * @param {google.cloud.compute.v1beta.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + */ + function AggregatedListTargetTcpProxiesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListTargetTcpProxiesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.filter = null; + + /** + * AggregatedListTargetTcpProxiesRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListTargetTcpProxiesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; + + /** + * AggregatedListTargetTcpProxiesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; + + /** + * AggregatedListTargetTcpProxiesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; + + /** + * AggregatedListTargetTcpProxiesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.project = ""; + + /** + * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListTargetTcpProxiesRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.serviceProjectNumber = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance + */ + AggregatedListTargetTcpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetTcpProxiesRequest(properties); + }; + + /** + * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListTargetTcpProxiesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.serviceProjectNumber != null && Object.hasOwnProperty.call(message, "serviceProjectNumber")) + writer.uint32(/* id 316757497, wireType 0 =*/2534059976).int64(message.serviceProjectNumber); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.includeAllScopes != null && Object.hasOwnProperty.call(message, "includeAllScopes")) + writer.uint32(/* id 391327988, wireType 0 =*/3130623904).bool(message.includeAllScopes); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListTargetTcpProxiesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 391327988: { + message.includeAllScopes = reader.bool(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 316757497: { + message.serviceProjectNumber = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListTargetTcpProxiesRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + properties._includeAllScopes = 1; + if (typeof message.includeAllScopes !== "boolean") + return "includeAllScopes: boolean expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + properties._serviceProjectNumber = 1; + if (!$util.isInteger(message.serviceProjectNumber) && !(message.serviceProjectNumber && $util.isInteger(message.serviceProjectNumber.low) && $util.isInteger(message.serviceProjectNumber.high))) + return "serviceProjectNumber: integer|Long expected"; + } + return null; + }; + + /** + * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + */ + AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.includeAllScopes != null) + message.includeAllScopes = Boolean(object.includeAllScopes); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.serviceProjectNumber != null) + if ($util.Long) + (message.serviceProjectNumber = $util.Long.fromValue(object.serviceProjectNumber)).unsigned = false; + else if (typeof object.serviceProjectNumber === "string") + message.serviceProjectNumber = parseInt(object.serviceProjectNumber, 10); + else if (typeof object.serviceProjectNumber === "number") + message.serviceProjectNumber = object.serviceProjectNumber; + else if (typeof object.serviceProjectNumber === "object") + message.serviceProjectNumber = new $util.LongBits(object.serviceProjectNumber.low >>> 0, object.serviceProjectNumber.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @static + * @param {google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + if (typeof message.serviceProjectNumber === "number") + object.serviceProjectNumber = options.longs === String ? String(message.serviceProjectNumber) : message.serviceProjectNumber; + else + object.serviceProjectNumber = options.longs === String ? $util.Long.prototype.toString.call(message.serviceProjectNumber) : options.longs === Number ? new $util.LongBits(message.serviceProjectNumber.low >>> 0, message.serviceProjectNumber.high >>> 0).toNumber() : message.serviceProjectNumber; + if (options.oneofs) + object._serviceProjectNumber = "serviceProjectNumber"; + } + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + object.includeAllScopes = message.includeAllScopes; + if (options.oneofs) + object._includeAllScopes = "includeAllScopes"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this AggregatedListTargetTcpProxiesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListTargetTcpProxiesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetTcpProxiesRequest"; + }; + + return AggregatedListTargetTcpProxiesRequest; + })(); + + v1beta.AggregatedListTargetVpnGatewaysRequest = (function() { + + /** + * Properties of an AggregatedListTargetVpnGatewaysRequest. + * @memberof google.cloud.compute.v1beta + * @interface IAggregatedListTargetVpnGatewaysRequest + * @property {string|null} [filter] AggregatedListTargetVpnGatewaysRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetVpnGatewaysRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetVpnGatewaysRequest pageToken + * @property {string|null} [project] AggregatedListTargetVpnGatewaysRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetVpnGatewaysRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetVpnGatewaysRequest serviceProjectNumber + */ + + /** + * Constructs a new AggregatedListTargetVpnGatewaysRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. + * @implements IAggregatedListTargetVpnGatewaysRequest + * @constructor + * @param {google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + */ + function AggregatedListTargetVpnGatewaysRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListTargetVpnGatewaysRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; + + /** + * AggregatedListTargetVpnGatewaysRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListTargetVpnGatewaysRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; + + /** + * AggregatedListTargetVpnGatewaysRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; + + /** + * AggregatedListTargetVpnGatewaysRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; + + /** + * AggregatedListTargetVpnGatewaysRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; + + /** + * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListTargetVpnGatewaysRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.serviceProjectNumber = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance + */ + AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListTargetVpnGatewaysRequest(properties); + }; + + /** + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.serviceProjectNumber != null && Object.hasOwnProperty.call(message, "serviceProjectNumber")) + writer.uint32(/* id 316757497, wireType 0 =*/2534059976).int64(message.serviceProjectNumber); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.includeAllScopes != null && Object.hasOwnProperty.call(message, "includeAllScopes")) + writer.uint32(/* id 391327988, wireType 0 =*/3130623904).bool(message.includeAllScopes); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListTargetVpnGatewaysRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 391327988: { + message.includeAllScopes = reader.bool(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 316757497: { + message.serviceProjectNumber = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListTargetVpnGatewaysRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + properties._includeAllScopes = 1; + if (typeof message.includeAllScopes !== "boolean") + return "includeAllScopes: boolean expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + properties._serviceProjectNumber = 1; + if (!$util.isInteger(message.serviceProjectNumber) && !(message.serviceProjectNumber && $util.isInteger(message.serviceProjectNumber.low) && $util.isInteger(message.serviceProjectNumber.high))) + return "serviceProjectNumber: integer|Long expected"; + } + return null; + }; + + /** + * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + */ + AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.includeAllScopes != null) + message.includeAllScopes = Boolean(object.includeAllScopes); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.serviceProjectNumber != null) + if ($util.Long) + (message.serviceProjectNumber = $util.Long.fromValue(object.serviceProjectNumber)).unsigned = false; + else if (typeof object.serviceProjectNumber === "string") + message.serviceProjectNumber = parseInt(object.serviceProjectNumber, 10); + else if (typeof object.serviceProjectNumber === "number") + message.serviceProjectNumber = object.serviceProjectNumber; + else if (typeof object.serviceProjectNumber === "object") + message.serviceProjectNumber = new $util.LongBits(object.serviceProjectNumber.low >>> 0, object.serviceProjectNumber.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + if (typeof message.serviceProjectNumber === "number") + object.serviceProjectNumber = options.longs === String ? String(message.serviceProjectNumber) : message.serviceProjectNumber; + else + object.serviceProjectNumber = options.longs === String ? $util.Long.prototype.toString.call(message.serviceProjectNumber) : options.longs === Number ? new $util.LongBits(message.serviceProjectNumber.low >>> 0, message.serviceProjectNumber.high >>> 0).toNumber() : message.serviceProjectNumber; + if (options.oneofs) + object._serviceProjectNumber = "serviceProjectNumber"; + } + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + object.includeAllScopes = message.includeAllScopes; + if (options.oneofs) + object._includeAllScopes = "includeAllScopes"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListTargetVpnGatewaysRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListTargetVpnGatewaysRequest"; + }; + + return AggregatedListTargetVpnGatewaysRequest; + })(); + + v1beta.AggregatedListUrlMapsRequest = (function() { + + /** + * Properties of an AggregatedListUrlMapsRequest. + * @memberof google.cloud.compute.v1beta + * @interface IAggregatedListUrlMapsRequest + * @property {string|null} [filter] AggregatedListUrlMapsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListUrlMapsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListUrlMapsRequest maxResults + * @property {string|null} [orderBy] AggregatedListUrlMapsRequest orderBy + * @property {string|null} [pageToken] AggregatedListUrlMapsRequest pageToken + * @property {string|null} [project] AggregatedListUrlMapsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListUrlMapsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListUrlMapsRequest serviceProjectNumber + */ + + /** + * Constructs a new AggregatedListUrlMapsRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an AggregatedListUrlMapsRequest. + * @implements IAggregatedListUrlMapsRequest + * @constructor + * @param {google.cloud.compute.v1beta.IAggregatedListUrlMapsRequest=} [properties] Properties to set + */ + function AggregatedListUrlMapsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListUrlMapsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.filter = null; + + /** + * AggregatedListUrlMapsRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListUrlMapsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.maxResults = null; + + /** + * AggregatedListUrlMapsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.orderBy = null; + + /** + * AggregatedListUrlMapsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.pageToken = null; + + /** + * AggregatedListUrlMapsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.project = ""; + + /** + * AggregatedListUrlMapsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListUrlMapsRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.serviceProjectNumber = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance + */ + AggregatedListUrlMapsRequest.create = function create(properties) { + return new AggregatedListUrlMapsRequest(properties); + }; + + /** + * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListUrlMapsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListUrlMapsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.serviceProjectNumber != null && Object.hasOwnProperty.call(message, "serviceProjectNumber")) + writer.uint32(/* id 316757497, wireType 0 =*/2534059976).int64(message.serviceProjectNumber); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.includeAllScopes != null && Object.hasOwnProperty.call(message, "includeAllScopes")) + writer.uint32(/* id 391327988, wireType 0 =*/3130623904).bool(message.includeAllScopes); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListUrlMapsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListUrlMapsRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListUrlMapsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 391327988: { + message.includeAllScopes = reader.bool(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 316757497: { + message.serviceProjectNumber = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListUrlMapsRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListUrlMapsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + properties._includeAllScopes = 1; + if (typeof message.includeAllScopes !== "boolean") + return "includeAllScopes: boolean expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + properties._serviceProjectNumber = 1; + if (!$util.isInteger(message.serviceProjectNumber) && !(message.serviceProjectNumber && $util.isInteger(message.serviceProjectNumber.low) && $util.isInteger(message.serviceProjectNumber.high))) + return "serviceProjectNumber: integer|Long expected"; + } + return null; + }; + + /** + * Creates an AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + */ + AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListUrlMapsRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.AggregatedListUrlMapsRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.includeAllScopes != null) + message.includeAllScopes = Boolean(object.includeAllScopes); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.serviceProjectNumber != null) + if ($util.Long) + (message.serviceProjectNumber = $util.Long.fromValue(object.serviceProjectNumber)).unsigned = false; + else if (typeof object.serviceProjectNumber === "string") + message.serviceProjectNumber = parseInt(object.serviceProjectNumber, 10); + else if (typeof object.serviceProjectNumber === "number") + message.serviceProjectNumber = object.serviceProjectNumber; + else if (typeof object.serviceProjectNumber === "object") + message.serviceProjectNumber = new $util.LongBits(object.serviceProjectNumber.low >>> 0, object.serviceProjectNumber.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an AggregatedListUrlMapsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1beta.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + if (typeof message.serviceProjectNumber === "number") + object.serviceProjectNumber = options.longs === String ? String(message.serviceProjectNumber) : message.serviceProjectNumber; + else + object.serviceProjectNumber = options.longs === String ? $util.Long.prototype.toString.call(message.serviceProjectNumber) : options.longs === Number ? new $util.LongBits(message.serviceProjectNumber.low >>> 0, message.serviceProjectNumber.high >>> 0).toNumber() : message.serviceProjectNumber; + if (options.oneofs) + object._serviceProjectNumber = "serviceProjectNumber"; + } + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + object.includeAllScopes = message.includeAllScopes; + if (options.oneofs) + object._includeAllScopes = "includeAllScopes"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this AggregatedListUrlMapsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListUrlMapsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.AggregatedListUrlMapsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListUrlMapsRequest"; + }; + + return AggregatedListUrlMapsRequest; + })(); + + v1beta.AggregatedListVpnGatewaysRequest = (function() { + + /** + * Properties of an AggregatedListVpnGatewaysRequest. + * @memberof google.cloud.compute.v1beta + * @interface IAggregatedListVpnGatewaysRequest + * @property {string|null} [filter] AggregatedListVpnGatewaysRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListVpnGatewaysRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] AggregatedListVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] AggregatedListVpnGatewaysRequest pageToken + * @property {string|null} [project] AggregatedListVpnGatewaysRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnGatewaysRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListVpnGatewaysRequest serviceProjectNumber + */ + + /** + * Constructs a new AggregatedListVpnGatewaysRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an AggregatedListVpnGatewaysRequest. + * @implements IAggregatedListVpnGatewaysRequest + * @constructor + * @param {google.cloud.compute.v1beta.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + */ + function AggregatedListVpnGatewaysRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListVpnGatewaysRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.filter = null; + + /** + * AggregatedListVpnGatewaysRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListVpnGatewaysRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + + /** + * AggregatedListVpnGatewaysRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + + /** + * AggregatedListVpnGatewaysRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + + /** + * AggregatedListVpnGatewaysRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.project = ""; + + /** + * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListVpnGatewaysRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.serviceProjectNumber = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + */ + AggregatedListVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListVpnGatewaysRequest(properties); + }; + + /** + * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListVpnGatewaysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -653178,6 +655787,7 @@ * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P=517384376 VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P value * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P=517384407 VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P value * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P=517384438 VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P value + * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X=485271888 VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X value */ AllocationAggregateReservation.VmFamily = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -653189,6 +655799,7 @@ values[valuesById[517384376] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P"] = 517384376; values[valuesById[517384407] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P"] = 517384407; values[valuesById[517384438] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P"] = 517384438; + values[valuesById[485271888] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X"] = 485271888; return values; })(); @@ -666672,6 +669283,7 @@ * @property {string|null} [loadBalancingScheme] BackendBucket loadBalancingScheme * @property {string|null} [name] BackendBucket name * @property {google.cloud.compute.v1beta.IBackendBucketParams|null} [params] BackendBucket params + * @property {string|null} [region] BackendBucket region * @property {string|null} [selfLink] BackendBucket selfLink * @property {Array.|null} [usedBy] BackendBucket usedBy */ @@ -666797,6 +669409,14 @@ */ BackendBucket.prototype.params = null; + /** + * BackendBucket region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1beta.BackendBucket + * @instance + */ + BackendBucket.prototype.region = null; + /** * BackendBucket selfLink. * @member {string|null|undefined} selfLink @@ -666888,6 +669508,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucket.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(BackendBucket.prototype, "_selfLink", { get: $util.oneOfGetter($oneOfFields = ["selfLink"]), @@ -666932,6 +669558,8 @@ $root.google.cloud.compute.v1beta.BackendBucketParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.compressionMode != null && Object.hasOwnProperty.call(message, "compressionMode")) writer.uint32(/* id 95520988, wireType 2 =*/764167906).string(message.compressionMode); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.cdnPolicy != null && Object.hasOwnProperty.call(message, "cdnPolicy")) $root.google.cloud.compute.v1beta.BackendBucketCdnPolicy.encode(message.cdnPolicy, writer.uint32(/* id 213976452, wireType 2 =*/1711811618).fork()).ldelim(); if (message.enableCdn != null && Object.hasOwnProperty.call(message, "enableCdn")) @@ -667040,6 +669668,10 @@ message.params = $root.google.cloud.compute.v1beta.BackendBucketParams.decode(reader, reader.uint32()); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 456214797: { message.selfLink = reader.string(); break; @@ -667159,6 +669791,11 @@ return "params." + error; } } + if (message.region != null && message.hasOwnProperty("region")) { + properties._region = 1; + if (!$util.isString(message.region)) + return "region: string expected"; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { properties._selfLink = 1; if (!$util.isString(message.selfLink)) @@ -667232,6 +669869,8 @@ throw TypeError(".google.cloud.compute.v1beta.BackendBucket.params: object expected"); message.params = $root.google.cloud.compute.v1beta.BackendBucketParams.fromObject(object.params); } + if (object.region != null) + message.region = String(object.region); if (object.selfLink != null) message.selfLink = String(object.selfLink); if (object.usedBy) { @@ -667302,6 +669941,11 @@ if (options.oneofs) object._compressionMode = "compressionMode"; } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } if (message.cdnPolicy != null && message.hasOwnProperty("cdnPolicy")) { object.cdnPolicy = $root.google.cloud.compute.v1beta.BackendBucketCdnPolicy.toObject(message.cdnPolicy, options); if (options.oneofs) @@ -667392,11 +670036,13 @@ * @name google.cloud.compute.v1beta.BackendBucket.LoadBalancingScheme * @enum {number} * @property {number} UNDEFINED_LOAD_BALANCING_SCHEME=0 UNDEFINED_LOAD_BALANCING_SCHEME value + * @property {number} EXTERNAL_MANAGED=512006923 EXTERNAL_MANAGED value * @property {number} INTERNAL_MANAGED=37350397 INTERNAL_MANAGED value */ BackendBucket.LoadBalancingScheme = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_LOAD_BALANCING_SCHEME"] = 0; + values[valuesById[512006923] = "EXTERNAL_MANAGED"] = 512006923; values[valuesById[37350397] = "INTERNAL_MANAGED"] = 37350397; return values; })(); @@ -667404,6 +670050,428 @@ return BackendBucket; })(); + v1beta.BackendBucketAggregatedList = (function() { + + /** + * Properties of a BackendBucketAggregatedList. + * @memberof google.cloud.compute.v1beta + * @interface IBackendBucketAggregatedList + * @property {string|null} [id] BackendBucketAggregatedList id + * @property {Object.|null} [items] BackendBucketAggregatedList items + * @property {string|null} [kind] BackendBucketAggregatedList kind + * @property {string|null} [nextPageToken] BackendBucketAggregatedList nextPageToken + * @property {string|null} [selfLink] BackendBucketAggregatedList selfLink + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] BackendBucketAggregatedList warning + */ + + /** + * Constructs a new BackendBucketAggregatedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a BackendBucketAggregatedList. + * @implements IBackendBucketAggregatedList + * @constructor + * @param {google.cloud.compute.v1beta.IBackendBucketAggregatedList=} [properties] Properties to set + */ + function BackendBucketAggregatedList(properties) { + this.items = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackendBucketAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.id = null; + + /** + * BackendBucketAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.items = $util.emptyObject; + + /** + * BackendBucketAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.kind = null; + + /** + * BackendBucketAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.nextPageToken = null; + + /** + * BackendBucketAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.selfLink = null; + + /** + * BackendBucketAggregatedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @instance + */ + BackendBucketAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendBucketAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @static + * @param {google.cloud.compute.v1beta.IBackendBucketAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.BackendBucketAggregatedList} BackendBucketAggregatedList instance + */ + BackendBucketAggregatedList.create = function create(properties) { + return new BackendBucketAggregatedList(properties); + }; + + /** + * Encodes the specified BackendBucketAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.BackendBucketAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @static + * @param {google.cloud.compute.v1beta.IBackendBucketAggregatedList} message BackendBucketAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketAggregatedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && Object.hasOwnProperty.call(message, "items")) + for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.BackendBucketsScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified BackendBucketAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendBucketAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @static + * @param {google.cloud.compute.v1beta.IBackendBucketAggregatedList} message BackendBucketAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendBucketAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.BackendBucketAggregatedList} BackendBucketAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketAggregatedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.BackendBucketAggregatedList(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (message.items === $util.emptyObject) + message.items = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1beta.BackendBucketsScopedList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendBucketAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.BackendBucketAggregatedList} BackendBucketAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendBucketAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendBucketAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.BackendBucketsScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a BackendBucketAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.BackendBucketAggregatedList} BackendBucketAggregatedList + */ + BackendBucketAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.BackendBucketAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1beta.BackendBucketAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1beta.BackendBucketAggregatedList.items: object expected"); + message.items = {}; + for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { + if (typeof object.items[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.BackendBucketAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1beta.BackendBucketsScopedList.fromObject(object.items[keys[i]]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.BackendBucketAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a BackendBucketAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @static + * @param {google.cloud.compute.v1beta.BackendBucketAggregatedList} message BackendBucketAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendBucketAggregatedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.items = {}; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1beta.BackendBucketsScopedList.toObject(message.items[keys2[j]], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this BackendBucketAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @instance + * @returns {Object.} JSON object + */ + BackendBucketAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendBucketAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.BackendBucketAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendBucketAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.BackendBucketAggregatedList"; + }; + + return BackendBucketAggregatedList; + })(); + v1beta.BackendBucketCdnPolicy = (function() { /** @@ -670041,6 +673109,275 @@ return BackendBucketUsedBy; })(); + v1beta.BackendBucketsScopedList = (function() { + + /** + * Properties of a BackendBucketsScopedList. + * @memberof google.cloud.compute.v1beta + * @interface IBackendBucketsScopedList + * @property {Array.|null} [backendBuckets] BackendBucketsScopedList backendBuckets + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] BackendBucketsScopedList warning + */ + + /** + * Constructs a new BackendBucketsScopedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a BackendBucketsScopedList. + * @implements IBackendBucketsScopedList + * @constructor + * @param {google.cloud.compute.v1beta.IBackendBucketsScopedList=} [properties] Properties to set + */ + function BackendBucketsScopedList(properties) { + this.backendBuckets = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackendBucketsScopedList backendBuckets. + * @member {Array.} backendBuckets + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @instance + */ + BackendBucketsScopedList.prototype.backendBuckets = $util.emptyArray; + + /** + * BackendBucketsScopedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @instance + */ + BackendBucketsScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBucketsScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendBucketsScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @static + * @param {google.cloud.compute.v1beta.IBackendBucketsScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.BackendBucketsScopedList} BackendBucketsScopedList instance + */ + BackendBucketsScopedList.create = function create(properties) { + return new BackendBucketsScopedList(properties); + }; + + /** + * Encodes the specified BackendBucketsScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.BackendBucketsScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @static + * @param {google.cloud.compute.v1beta.IBackendBucketsScopedList} message BackendBucketsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketsScopedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.backendBuckets != null && message.backendBuckets.length) + for (var i = 0; i < message.backendBuckets.length; ++i) + $root.google.cloud.compute.v1beta.BackendBucket.encode(message.backendBuckets[i], writer.uint32(/* id 158780702, wireType 2 =*/1270245618).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BackendBucketsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendBucketsScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @static + * @param {google.cloud.compute.v1beta.IBackendBucketsScopedList} message BackendBucketsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketsScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendBucketsScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.BackendBucketsScopedList} BackendBucketsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketsScopedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.BackendBucketsScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 158780702: { + if (!(message.backendBuckets && message.backendBuckets.length)) + message.backendBuckets = []; + message.backendBuckets.push($root.google.cloud.compute.v1beta.BackendBucket.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendBucketsScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.BackendBucketsScopedList} BackendBucketsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketsScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendBucketsScopedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendBucketsScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.backendBuckets != null && message.hasOwnProperty("backendBuckets")) { + if (!Array.isArray(message.backendBuckets)) + return "backendBuckets: array expected"; + for (var i = 0; i < message.backendBuckets.length; ++i) { + var error = $root.google.cloud.compute.v1beta.BackendBucket.verify(message.backendBuckets[i]); + if (error) + return "backendBuckets." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a BackendBucketsScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.BackendBucketsScopedList} BackendBucketsScopedList + */ + BackendBucketsScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.BackendBucketsScopedList) + return object; + var message = new $root.google.cloud.compute.v1beta.BackendBucketsScopedList(); + if (object.backendBuckets) { + if (!Array.isArray(object.backendBuckets)) + throw TypeError(".google.cloud.compute.v1beta.BackendBucketsScopedList.backendBuckets: array expected"); + message.backendBuckets = []; + for (var i = 0; i < object.backendBuckets.length; ++i) { + if (typeof object.backendBuckets[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.BackendBucketsScopedList.backendBuckets: object expected"); + message.backendBuckets[i] = $root.google.cloud.compute.v1beta.BackendBucket.fromObject(object.backendBuckets[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.BackendBucketsScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a BackendBucketsScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @static + * @param {google.cloud.compute.v1beta.BackendBucketsScopedList} message BackendBucketsScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendBucketsScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.backendBuckets = []; + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.backendBuckets && message.backendBuckets.length) { + object.backendBuckets = []; + for (var j = 0; j < message.backendBuckets.length; ++j) + object.backendBuckets[j] = $root.google.cloud.compute.v1beta.BackendBucket.toObject(message.backendBuckets[j], options); + } + return object; + }; + + /** + * Converts this BackendBucketsScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @instance + * @returns {Object.} JSON object + */ + BackendBucketsScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendBucketsScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.BackendBucketsScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendBucketsScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.BackendBucketsScopedList"; + }; + + return BackendBucketsScopedList; + })(); + v1beta.BackendCustomMetric = (function() { /** @@ -680061,6 +683398,7 @@ * @memberof google.cloud.compute.v1beta * @interface IBackendServiceTlsSettings * @property {string|null} [authenticationConfig] BackendServiceTlsSettings authenticationConfig + * @property {string|null} [identity] BackendServiceTlsSettings identity * @property {string|null} [sni] BackendServiceTlsSettings sni * @property {Array.|null} [subjectAltNames] BackendServiceTlsSettings subjectAltNames */ @@ -680089,6 +683427,14 @@ */ BackendServiceTlsSettings.prototype.authenticationConfig = null; + /** + * BackendServiceTlsSettings identity. + * @member {string|null|undefined} identity + * @memberof google.cloud.compute.v1beta.BackendServiceTlsSettings + * @instance + */ + BackendServiceTlsSettings.prototype.identity = null; + /** * BackendServiceTlsSettings sni. * @member {string|null|undefined} sni @@ -680114,6 +683460,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendServiceTlsSettings.prototype, "_identity", { + get: $util.oneOfGetter($oneOfFields = ["identity"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(BackendServiceTlsSettings.prototype, "_sni", { get: $util.oneOfGetter($oneOfFields = ["sni"]), @@ -680149,6 +683501,8 @@ if (message.subjectAltNames != null && message.subjectAltNames.length) for (var i = 0; i < message.subjectAltNames.length; ++i) $root.google.cloud.compute.v1beta.BackendServiceTlsSettingsSubjectAltName.encode(message.subjectAltNames[i], writer.uint32(/* id 330029535, wireType 2 =*/2640236282).fork()).ldelim(); + if (message.identity != null && Object.hasOwnProperty.call(message, "identity")) + writer.uint32(/* id 401109182, wireType 2 =*/3208873458).string(message.identity); if (message.authenticationConfig != null && Object.hasOwnProperty.call(message, "authenticationConfig")) writer.uint32(/* id 408053481, wireType 2 =*/3264427850).string(message.authenticationConfig); return writer; @@ -680191,6 +683545,10 @@ message.authenticationConfig = reader.string(); break; } + case 401109182: { + message.identity = reader.string(); + break; + } case 114030: { message.sni = reader.string(); break; @@ -680242,6 +683600,11 @@ if (!$util.isString(message.authenticationConfig)) return "authenticationConfig: string expected"; } + if (message.identity != null && message.hasOwnProperty("identity")) { + properties._identity = 1; + if (!$util.isString(message.identity)) + return "identity: string expected"; + } if (message.sni != null && message.hasOwnProperty("sni")) { properties._sni = 1; if (!$util.isString(message.sni)) @@ -680273,6 +683636,8 @@ var message = new $root.google.cloud.compute.v1beta.BackendServiceTlsSettings(); if (object.authenticationConfig != null) message.authenticationConfig = String(object.authenticationConfig); + if (object.identity != null) + message.identity = String(object.identity); if (object.sni != null) message.sni = String(object.sni); if (object.subjectAltNames) { @@ -680313,6 +683678,11 @@ for (var j = 0; j < message.subjectAltNames.length; ++j) object.subjectAltNames[j] = $root.google.cloud.compute.v1beta.BackendServiceTlsSettingsSubjectAltName.toObject(message.subjectAltNames[j], options); } + if (message.identity != null && message.hasOwnProperty("identity")) { + object.identity = message.identity; + if (options.oneofs) + object._identity = "identity"; + } if (message.authenticationConfig != null && message.hasOwnProperty("authenticationConfig")) { object.authenticationConfig = message.authenticationConfig; if (options.oneofs) @@ -694306,6 +697676,1703 @@ return CommitmentsScopedList; })(); + v1beta.CompositeHealthCheck = (function() { + + /** + * Properties of a CompositeHealthCheck. + * @memberof google.cloud.compute.v1beta + * @interface ICompositeHealthCheck + * @property {string|null} [creationTimestamp] CompositeHealthCheck creationTimestamp + * @property {string|null} [description] CompositeHealthCheck description + * @property {string|null} [fingerprint] CompositeHealthCheck fingerprint + * @property {string|null} [healthDestination] CompositeHealthCheck healthDestination + * @property {Array.|null} [healthSources] CompositeHealthCheck healthSources + * @property {number|Long|null} [id] CompositeHealthCheck id + * @property {string|null} [kind] CompositeHealthCheck kind + * @property {string|null} [name] CompositeHealthCheck name + * @property {string|null} [region] CompositeHealthCheck region + * @property {string|null} [selfLink] CompositeHealthCheck selfLink + * @property {string|null} [selfLinkWithId] CompositeHealthCheck selfLinkWithId + */ + + /** + * Constructs a new CompositeHealthCheck. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CompositeHealthCheck. + * @implements ICompositeHealthCheck + * @constructor + * @param {google.cloud.compute.v1beta.ICompositeHealthCheck=} [properties] Properties to set + */ + function CompositeHealthCheck(properties) { + this.healthSources = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompositeHealthCheck creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.creationTimestamp = null; + + /** + * CompositeHealthCheck description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.description = null; + + /** + * CompositeHealthCheck fingerprint. + * @member {string|null|undefined} fingerprint + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.fingerprint = null; + + /** + * CompositeHealthCheck healthDestination. + * @member {string|null|undefined} healthDestination + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.healthDestination = null; + + /** + * CompositeHealthCheck healthSources. + * @member {Array.} healthSources + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.healthSources = $util.emptyArray; + + /** + * CompositeHealthCheck id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.id = null; + + /** + * CompositeHealthCheck kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.kind = null; + + /** + * CompositeHealthCheck name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.name = null; + + /** + * CompositeHealthCheck region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.region = null; + + /** + * CompositeHealthCheck selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.selfLink = null; + + /** + * CompositeHealthCheck selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.selfLinkWithId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_fingerprint", { + get: $util.oneOfGetter($oneOfFields = ["fingerprint"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_healthDestination", { + get: $util.oneOfGetter($oneOfFields = ["healthDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthCheck instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheck=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CompositeHealthCheck} CompositeHealthCheck instance + */ + CompositeHealthCheck.create = function create(properties) { + return new CompositeHealthCheck(properties); + }; + + /** + * Encodes the specified CompositeHealthCheck message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheck.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheck} message CompositeHealthCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheck.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) + writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); + if (message.healthDestination != null && Object.hasOwnProperty.call(message, "healthDestination")) + writer.uint32(/* id 311098027, wireType 2 =*/2488784218).string(message.healthDestination); + if (message.healthSources != null && message.healthSources.length) + for (var i = 0; i < message.healthSources.length; ++i) + writer.uint32(/* id 397879509, wireType 2 =*/3183036074).string(message.healthSources[i]); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified CompositeHealthCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheck.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheck} message CompositeHealthCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheck.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthCheck message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.CompositeHealthCheck} CompositeHealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheck.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.CompositeHealthCheck(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 234678500: { + message.fingerprint = reader.string(); + break; + } + case 311098027: { + message.healthDestination = reader.string(); + break; + } + case 397879509: { + if (!(message.healthSources && message.healthSources.length)) + message.healthSources = []; + message.healthSources.push(reader.string()); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthCheck message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CompositeHealthCheck} CompositeHealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheck.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthCheck message. + * @function verify + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthCheck.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + properties._fingerprint = 1; + if (!$util.isString(message.fingerprint)) + return "fingerprint: string expected"; + } + if (message.healthDestination != null && message.hasOwnProperty("healthDestination")) { + properties._healthDestination = 1; + if (!$util.isString(message.healthDestination)) + return "healthDestination: string expected"; + } + if (message.healthSources != null && message.hasOwnProperty("healthSources")) { + if (!Array.isArray(message.healthSources)) + return "healthSources: array expected"; + for (var i = 0; i < message.healthSources.length; ++i) + if (!$util.isString(message.healthSources[i])) + return "healthSources: string[] expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.region != null && message.hasOwnProperty("region")) { + properties._region = 1; + if (!$util.isString(message.region)) + return "region: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + return null; + }; + + /** + * Creates a CompositeHealthCheck message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CompositeHealthCheck} CompositeHealthCheck + */ + CompositeHealthCheck.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CompositeHealthCheck) + return object; + var message = new $root.google.cloud.compute.v1beta.CompositeHealthCheck(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.fingerprint != null) + message.fingerprint = String(object.fingerprint); + if (object.healthDestination != null) + message.healthDestination = String(object.healthDestination); + if (object.healthSources) { + if (!Array.isArray(object.healthSources)) + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheck.healthSources: array expected"); + message.healthSources = []; + for (var i = 0; i < object.healthSources.length; ++i) + message.healthSources[i] = String(object.healthSources[i]); + } + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.kind != null) + message.kind = String(object.kind); + if (object.name != null) + message.name = String(object.name); + if (object.region != null) + message.region = String(object.region); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + return message; + }; + + /** + * Creates a plain object from a CompositeHealthCheck message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @static + * @param {google.cloud.compute.v1beta.CompositeHealthCheck} message CompositeHealthCheck + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthCheck.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.healthSources = []; + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; + if (options.oneofs) + object._selfLinkWithId = "selfLinkWithId"; + } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + object.fingerprint = message.fingerprint; + if (options.oneofs) + object._fingerprint = "fingerprint"; + } + if (message.healthDestination != null && message.hasOwnProperty("healthDestination")) { + object.healthDestination = message.healthDestination; + if (options.oneofs) + object._healthDestination = "healthDestination"; + } + if (message.healthSources && message.healthSources.length) { + object.healthSources = []; + for (var j = 0; j < message.healthSources.length; ++j) + object.healthSources[j] = message.healthSources[j]; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this CompositeHealthCheck to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthCheck.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthCheck + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CompositeHealthCheck + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CompositeHealthCheck"; + }; + + return CompositeHealthCheck; + })(); + + v1beta.CompositeHealthCheckAggregatedList = (function() { + + /** + * Properties of a CompositeHealthCheckAggregatedList. + * @memberof google.cloud.compute.v1beta + * @interface ICompositeHealthCheckAggregatedList + * @property {string|null} [id] CompositeHealthCheckAggregatedList id + * @property {Object.|null} [items] CompositeHealthCheckAggregatedList items + * @property {string|null} [kind] CompositeHealthCheckAggregatedList kind + * @property {string|null} [nextPageToken] CompositeHealthCheckAggregatedList nextPageToken + * @property {string|null} [selfLink] CompositeHealthCheckAggregatedList selfLink + * @property {Array.|null} [unreachables] CompositeHealthCheckAggregatedList unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] CompositeHealthCheckAggregatedList warning + */ + + /** + * Constructs a new CompositeHealthCheckAggregatedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CompositeHealthCheckAggregatedList. + * @implements ICompositeHealthCheckAggregatedList + * @constructor + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckAggregatedList=} [properties] Properties to set + */ + function CompositeHealthCheckAggregatedList(properties) { + this.items = {}; + this.unreachables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompositeHealthCheckAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.id = null; + + /** + * CompositeHealthCheckAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.items = $util.emptyObject; + + /** + * CompositeHealthCheckAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.kind = null; + + /** + * CompositeHealthCheckAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.nextPageToken = null; + + /** + * CompositeHealthCheckAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.selfLink = null; + + /** + * CompositeHealthCheckAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * CompositeHealthCheckAggregatedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthCheckAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList} CompositeHealthCheckAggregatedList instance + */ + CompositeHealthCheckAggregatedList.create = function create(properties) { + return new CompositeHealthCheckAggregatedList(properties); + }; + + /** + * Encodes the specified CompositeHealthCheckAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckAggregatedList} message CompositeHealthCheckAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckAggregatedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && Object.hasOwnProperty.call(message, "items")) + for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.CompositeHealthChecksScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified CompositeHealthCheckAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckAggregatedList} message CompositeHealthCheckAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthCheckAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList} CompositeHealthCheckAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckAggregatedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (message.items === $util.emptyObject) + message.items = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1beta.CompositeHealthChecksScopedList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthCheckAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList} CompositeHealthCheckAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthCheckAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthCheckAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.CompositeHealthChecksScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a CompositeHealthCheckAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList} CompositeHealthCheckAggregatedList + */ + CompositeHealthCheckAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList.items: object expected"); + message.items = {}; + for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { + if (typeof object.items[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1beta.CompositeHealthChecksScopedList.fromObject(object.items[keys[i]]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a CompositeHealthCheckAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @static + * @param {google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList} message CompositeHealthCheckAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthCheckAggregatedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.unreachables = []; + if (options.objects || options.defaults) + object.items = {}; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1beta.CompositeHealthChecksScopedList.toObject(message.items[keys2[j]], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this CompositeHealthCheckAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthCheckAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthCheckAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthCheckAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList"; + }; + + return CompositeHealthCheckAggregatedList; + })(); + + v1beta.CompositeHealthCheckList = (function() { + + /** + * Properties of a CompositeHealthCheckList. + * @memberof google.cloud.compute.v1beta + * @interface ICompositeHealthCheckList + * @property {string|null} [id] CompositeHealthCheckList id + * @property {Array.|null} [items] CompositeHealthCheckList items + * @property {string|null} [kind] CompositeHealthCheckList kind + * @property {string|null} [nextPageToken] CompositeHealthCheckList nextPageToken + * @property {string|null} [selfLink] CompositeHealthCheckList selfLink + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] CompositeHealthCheckList warning + */ + + /** + * Constructs a new CompositeHealthCheckList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CompositeHealthCheckList. + * @implements ICompositeHealthCheckList + * @constructor + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckList=} [properties] Properties to set + */ + function CompositeHealthCheckList(properties) { + this.items = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompositeHealthCheckList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.id = null; + + /** + * CompositeHealthCheckList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.items = $util.emptyArray; + + /** + * CompositeHealthCheckList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.kind = null; + + /** + * CompositeHealthCheckList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.nextPageToken = null; + + /** + * CompositeHealthCheckList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.selfLink = null; + + /** + * CompositeHealthCheckList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthCheckList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckList} CompositeHealthCheckList instance + */ + CompositeHealthCheckList.create = function create(properties) { + return new CompositeHealthCheckList(properties); + }; + + /** + * Encodes the specified CompositeHealthCheckList message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckList} message CompositeHealthCheckList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1beta.CompositeHealthCheck.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified CompositeHealthCheckList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthCheckList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthCheckList} message CompositeHealthCheckList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthCheckList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckList} CompositeHealthCheckList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.CompositeHealthCheckList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1beta.CompositeHealthCheck.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthCheckList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckList} CompositeHealthCheckList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthCheckList message. + * @function verify + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthCheckList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1beta.CompositeHealthCheck.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a CompositeHealthCheckList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CompositeHealthCheckList} CompositeHealthCheckList + */ + CompositeHealthCheckList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CompositeHealthCheckList) + return object; + var message = new $root.google.cloud.compute.v1beta.CompositeHealthCheckList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheckList.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheckList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1beta.CompositeHealthCheck.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthCheckList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a CompositeHealthCheckList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @static + * @param {google.cloud.compute.v1beta.CompositeHealthCheckList} message CompositeHealthCheckList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthCheckList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.items = []; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1beta.CompositeHealthCheck.toObject(message.items[j], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this CompositeHealthCheckList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthCheckList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthCheckList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CompositeHealthCheckList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthCheckList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CompositeHealthCheckList"; + }; + + return CompositeHealthCheckList; + })(); + + v1beta.CompositeHealthChecksScopedList = (function() { + + /** + * Properties of a CompositeHealthChecksScopedList. + * @memberof google.cloud.compute.v1beta + * @interface ICompositeHealthChecksScopedList + * @property {Array.|null} [compositeHealthChecks] CompositeHealthChecksScopedList compositeHealthChecks + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] CompositeHealthChecksScopedList warning + */ + + /** + * Constructs a new CompositeHealthChecksScopedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a CompositeHealthChecksScopedList. + * @implements ICompositeHealthChecksScopedList + * @constructor + * @param {google.cloud.compute.v1beta.ICompositeHealthChecksScopedList=} [properties] Properties to set + */ + function CompositeHealthChecksScopedList(properties) { + this.compositeHealthChecks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompositeHealthChecksScopedList compositeHealthChecks. + * @member {Array.} compositeHealthChecks + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @instance + */ + CompositeHealthChecksScopedList.prototype.compositeHealthChecks = $util.emptyArray; + + /** + * CompositeHealthChecksScopedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @instance + */ + CompositeHealthChecksScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthChecksScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthChecksScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthChecksScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.CompositeHealthChecksScopedList} CompositeHealthChecksScopedList instance + */ + CompositeHealthChecksScopedList.create = function create(properties) { + return new CompositeHealthChecksScopedList(properties); + }; + + /** + * Encodes the specified CompositeHealthChecksScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthChecksScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthChecksScopedList} message CompositeHealthChecksScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthChecksScopedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.compositeHealthChecks != null && message.compositeHealthChecks.length) + for (var i = 0; i < message.compositeHealthChecks.length; ++i) + $root.google.cloud.compute.v1beta.CompositeHealthCheck.encode(message.compositeHealthChecks[i], writer.uint32(/* id 517891062, wireType 2 =*/4143128498).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompositeHealthChecksScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.CompositeHealthChecksScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @static + * @param {google.cloud.compute.v1beta.ICompositeHealthChecksScopedList} message CompositeHealthChecksScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthChecksScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthChecksScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.CompositeHealthChecksScopedList} CompositeHealthChecksScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthChecksScopedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.CompositeHealthChecksScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 517891062: { + if (!(message.compositeHealthChecks && message.compositeHealthChecks.length)) + message.compositeHealthChecks = []; + message.compositeHealthChecks.push($root.google.cloud.compute.v1beta.CompositeHealthCheck.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthChecksScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.CompositeHealthChecksScopedList} CompositeHealthChecksScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthChecksScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthChecksScopedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthChecksScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.compositeHealthChecks != null && message.hasOwnProperty("compositeHealthChecks")) { + if (!Array.isArray(message.compositeHealthChecks)) + return "compositeHealthChecks: array expected"; + for (var i = 0; i < message.compositeHealthChecks.length; ++i) { + var error = $root.google.cloud.compute.v1beta.CompositeHealthCheck.verify(message.compositeHealthChecks[i]); + if (error) + return "compositeHealthChecks." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a CompositeHealthChecksScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.CompositeHealthChecksScopedList} CompositeHealthChecksScopedList + */ + CompositeHealthChecksScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.CompositeHealthChecksScopedList) + return object; + var message = new $root.google.cloud.compute.v1beta.CompositeHealthChecksScopedList(); + if (object.compositeHealthChecks) { + if (!Array.isArray(object.compositeHealthChecks)) + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthChecksScopedList.compositeHealthChecks: array expected"); + message.compositeHealthChecks = []; + for (var i = 0; i < object.compositeHealthChecks.length; ++i) { + if (typeof object.compositeHealthChecks[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthChecksScopedList.compositeHealthChecks: object expected"); + message.compositeHealthChecks[i] = $root.google.cloud.compute.v1beta.CompositeHealthCheck.fromObject(object.compositeHealthChecks[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.CompositeHealthChecksScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a CompositeHealthChecksScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @static + * @param {google.cloud.compute.v1beta.CompositeHealthChecksScopedList} message CompositeHealthChecksScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthChecksScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.compositeHealthChecks = []; + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.compositeHealthChecks && message.compositeHealthChecks.length) { + object.compositeHealthChecks = []; + for (var j = 0; j < message.compositeHealthChecks.length; ++j) + object.compositeHealthChecks[j] = $root.google.cloud.compute.v1beta.CompositeHealthCheck.toObject(message.compositeHealthChecks[j], options); + } + return object; + }; + + /** + * Converts this CompositeHealthChecksScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthChecksScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthChecksScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.CompositeHealthChecksScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthChecksScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.CompositeHealthChecksScopedList"; + }; + + return CompositeHealthChecksScopedList; + })(); + v1beta.ConfidentialInstanceConfig = (function() { /** @@ -714596,6 +719663,328 @@ return DeleteRegionAutoscalerRequest; })(); + v1beta.DeleteRegionBackendBucketRequest = (function() { + + /** + * Properties of a DeleteRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @interface IDeleteRegionBackendBucketRequest + * @property {string|null} [backendBucket] DeleteRegionBackendBucketRequest backendBucket + * @property {boolean|null} [forceDelete] DeleteRegionBackendBucketRequest forceDelete + * @property {string|null} [project] DeleteRegionBackendBucketRequest project + * @property {string|null} [region] DeleteRegionBackendBucketRequest region + * @property {string|null} [requestId] DeleteRegionBackendBucketRequest requestId + */ + + /** + * Constructs a new DeleteRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a DeleteRegionBackendBucketRequest. + * @implements IDeleteRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest=} [properties] Properties to set + */ + function DeleteRegionBackendBucketRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteRegionBackendBucketRequest backendBucket. + * @member {string} backendBucket + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @instance + */ + DeleteRegionBackendBucketRequest.prototype.backendBucket = ""; + + /** + * DeleteRegionBackendBucketRequest forceDelete. + * @member {boolean|null|undefined} forceDelete + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @instance + */ + DeleteRegionBackendBucketRequest.prototype.forceDelete = null; + + /** + * DeleteRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @instance + */ + DeleteRegionBackendBucketRequest.prototype.project = ""; + + /** + * DeleteRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @instance + */ + DeleteRegionBackendBucketRequest.prototype.region = ""; + + /** + * DeleteRegionBackendBucketRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @instance + */ + DeleteRegionBackendBucketRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionBackendBucketRequest.prototype, "_forceDelete", { + get: $util.oneOfGetter($oneOfFields = ["forceDelete"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionBackendBucketRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest} DeleteRegionBackendBucketRequest instance + */ + DeleteRegionBackendBucketRequest.create = function create(properties) { + return new DeleteRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest} message DeleteRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionBackendBucketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.backendBucket != null && Object.hasOwnProperty.call(message, "backendBucket")) + writer.uint32(/* id 91714037, wireType 2 =*/733712298).string(message.backendBucket); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.forceDelete != null && Object.hasOwnProperty.call(message, "forceDelete")) + writer.uint32(/* id 214559103, wireType 0 =*/1716472824).bool(message.forceDelete); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified DeleteRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest} message DeleteRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionBackendBucketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest} DeleteRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionBackendBucketRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 91714037: { + message.backendBucket = reader.string(); + break; + } + case 214559103: { + message.forceDelete = reader.bool(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest} DeleteRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionBackendBucketRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionBackendBucketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.backendBucket != null && message.hasOwnProperty("backendBucket")) + if (!$util.isString(message.backendBucket)) + return "backendBucket: string expected"; + if (message.forceDelete != null && message.hasOwnProperty("forceDelete")) { + properties._forceDelete = 1; + if (typeof message.forceDelete !== "boolean") + return "forceDelete: boolean expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a DeleteRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest} DeleteRegionBackendBucketRequest + */ + DeleteRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest(); + if (object.backendBucket != null) + message.backendBucket = String(object.backendBucket); + if (object.forceDelete != null) + message.forceDelete = Boolean(object.forceDelete); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteRegionBackendBucketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest} message DeleteRegionBackendBucketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionBackendBucketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.backendBucket = ""; + object.region = ""; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.backendBucket != null && message.hasOwnProperty("backendBucket")) + object.backendBucket = message.backendBucket; + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.forceDelete != null && message.hasOwnProperty("forceDelete")) { + object.forceDelete = message.forceDelete; + if (options.oneofs) + object._forceDelete = "forceDelete"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionBackendBucketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionBackendBucketRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest"; + }; + + return DeleteRegionBackendBucketRequest; + })(); + v1beta.DeleteRegionBackendServiceRequest = (function() { /** @@ -714885,6 +720274,295 @@ return DeleteRegionBackendServiceRequest; })(); + v1beta.DeleteRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of a DeleteRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1beta + * @interface IDeleteRegionCompositeHealthCheckRequest + * @property {string|null} [compositeHealthCheck] DeleteRegionCompositeHealthCheckRequest compositeHealthCheck + * @property {string|null} [project] DeleteRegionCompositeHealthCheckRequest project + * @property {string|null} [region] DeleteRegionCompositeHealthCheckRequest region + * @property {string|null} [requestId] DeleteRegionCompositeHealthCheckRequest requestId + */ + + /** + * Constructs a new DeleteRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a DeleteRegionCompositeHealthCheckRequest. + * @implements IDeleteRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function DeleteRegionCompositeHealthCheckRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteRegionCompositeHealthCheckRequest compositeHealthCheck. + * @member {string} compositeHealthCheck + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @instance + */ + DeleteRegionCompositeHealthCheckRequest.prototype.compositeHealthCheck = ""; + + /** + * DeleteRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @instance + */ + DeleteRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * DeleteRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @instance + */ + DeleteRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * DeleteRegionCompositeHealthCheckRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @instance + */ + DeleteRegionCompositeHealthCheckRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionCompositeHealthCheckRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest} DeleteRegionCompositeHealthCheckRequest instance + */ + DeleteRegionCompositeHealthCheckRequest.create = function create(properties) { + return new DeleteRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest} message DeleteRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionCompositeHealthCheckRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.compositeHealthCheck != null && Object.hasOwnProperty.call(message, "compositeHealthCheck")) + writer.uint32(/* id 466984989, wireType 2 =*/3735879914).string(message.compositeHealthCheck); + return writer; + }; + + /** + * Encodes the specified DeleteRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest} message DeleteRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest} DeleteRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionCompositeHealthCheckRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 466984989: { + message.compositeHealthCheck = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest} DeleteRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionCompositeHealthCheckRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + if (!$util.isString(message.compositeHealthCheck)) + return "compositeHealthCheck: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a DeleteRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest} DeleteRegionCompositeHealthCheckRequest + */ + DeleteRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest(); + if (object.compositeHealthCheck != null) + message.compositeHealthCheck = String(object.compositeHealthCheck); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest} message DeleteRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.compositeHealthCheck = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + object.compositeHealthCheck = message.compositeHealthCheck; + return object; + }; + + /** + * Converts this DeleteRegionCompositeHealthCheckRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionCompositeHealthCheckRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest"; + }; + + return DeleteRegionCompositeHealthCheckRequest; + })(); + v1beta.DeleteRegionDiskRequest = (function() { /** @@ -715174,6 +720852,295 @@ return DeleteRegionDiskRequest; })(); + v1beta.DeleteRegionHealthAggregationPolicyRequest = (function() { + + /** + * Properties of a DeleteRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IDeleteRegionHealthAggregationPolicyRequest + * @property {string|null} [healthAggregationPolicy] DeleteRegionHealthAggregationPolicyRequest healthAggregationPolicy + * @property {string|null} [project] DeleteRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] DeleteRegionHealthAggregationPolicyRequest region + * @property {string|null} [requestId] DeleteRegionHealthAggregationPolicyRequest requestId + */ + + /** + * Constructs a new DeleteRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a DeleteRegionHealthAggregationPolicyRequest. + * @implements IDeleteRegionHealthAggregationPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest=} [properties] Properties to set + */ + function DeleteRegionHealthAggregationPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteRegionHealthAggregationPolicyRequest healthAggregationPolicy. + * @member {string} healthAggregationPolicy + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @instance + */ + DeleteRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicy = ""; + + /** + * DeleteRegionHealthAggregationPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @instance + */ + DeleteRegionHealthAggregationPolicyRequest.prototype.project = ""; + + /** + * DeleteRegionHealthAggregationPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @instance + */ + DeleteRegionHealthAggregationPolicyRequest.prototype.region = ""; + + /** + * DeleteRegionHealthAggregationPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @instance + */ + DeleteRegionHealthAggregationPolicyRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionHealthAggregationPolicyRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionHealthAggregationPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest} DeleteRegionHealthAggregationPolicyRequest instance + */ + DeleteRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new DeleteRegionHealthAggregationPolicyRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest} message DeleteRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.healthAggregationPolicy != null && Object.hasOwnProperty.call(message, "healthAggregationPolicy")) + writer.uint32(/* id 240314354, wireType 2 =*/1922514834).string(message.healthAggregationPolicy); + return writer; + }; + + /** + * Encodes the specified DeleteRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest} message DeleteRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest} DeleteRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 240314354: { + message.healthAggregationPolicy = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest} DeleteRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionHealthAggregationPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionHealthAggregationPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + if (!$util.isString(message.healthAggregationPolicy)) + return "healthAggregationPolicy: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a DeleteRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest} DeleteRegionHealthAggregationPolicyRequest + */ + DeleteRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest(); + if (object.healthAggregationPolicy != null) + message.healthAggregationPolicy = String(object.healthAggregationPolicy); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest} message DeleteRegionHealthAggregationPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthAggregationPolicy = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + object.healthAggregationPolicy = message.healthAggregationPolicy; + return object; + }; + + /** + * Converts this DeleteRegionHealthAggregationPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionHealthAggregationPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest"; + }; + + return DeleteRegionHealthAggregationPolicyRequest; + })(); + v1beta.DeleteRegionHealthCheckRequest = (function() { /** @@ -729129,6 +735096,295 @@ return DeleteZoneOperationResponse; })(); + v1beta.DeleteZoneVmExtensionPolicyRequest = (function() { + + /** + * Properties of a DeleteZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IDeleteZoneVmExtensionPolicyRequest + * @property {string|null} [project] DeleteZoneVmExtensionPolicyRequest project + * @property {string|null} [requestId] DeleteZoneVmExtensionPolicyRequest requestId + * @property {string|null} [vmExtensionPolicy] DeleteZoneVmExtensionPolicyRequest vmExtensionPolicy + * @property {string|null} [zone] DeleteZoneVmExtensionPolicyRequest zone + */ + + /** + * Constructs a new DeleteZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a DeleteZoneVmExtensionPolicyRequest. + * @implements IDeleteZoneVmExtensionPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest=} [properties] Properties to set + */ + function DeleteZoneVmExtensionPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteZoneVmExtensionPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @instance + */ + DeleteZoneVmExtensionPolicyRequest.prototype.project = ""; + + /** + * DeleteZoneVmExtensionPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @instance + */ + DeleteZoneVmExtensionPolicyRequest.prototype.requestId = null; + + /** + * DeleteZoneVmExtensionPolicyRequest vmExtensionPolicy. + * @member {string} vmExtensionPolicy + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @instance + */ + DeleteZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicy = ""; + + /** + * DeleteZoneVmExtensionPolicyRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @instance + */ + DeleteZoneVmExtensionPolicyRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteZoneVmExtensionPolicyRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteZoneVmExtensionPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest} DeleteZoneVmExtensionPolicyRequest instance + */ + DeleteZoneVmExtensionPolicyRequest.create = function create(properties) { + return new DeleteZoneVmExtensionPolicyRequest(properties); + }; + + /** + * Encodes the specified DeleteZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest} message DeleteZoneVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteZoneVmExtensionPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.vmExtensionPolicy != null && Object.hasOwnProperty.call(message, "vmExtensionPolicy")) + writer.uint32(/* id 331532730, wireType 2 =*/2652261842).string(message.vmExtensionPolicy); + return writer; + }; + + /** + * Encodes the specified DeleteZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest} message DeleteZoneVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteZoneVmExtensionPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteZoneVmExtensionPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest} DeleteZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteZoneVmExtensionPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 331532730: { + message.vmExtensionPolicy = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteZoneVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest} DeleteZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteZoneVmExtensionPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteZoneVmExtensionPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteZoneVmExtensionPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.vmExtensionPolicy != null && message.hasOwnProperty("vmExtensionPolicy")) + if (!$util.isString(message.vmExtensionPolicy)) + return "vmExtensionPolicy: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a DeleteZoneVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest} DeleteZoneVmExtensionPolicyRequest + */ + DeleteZoneVmExtensionPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.vmExtensionPolicy != null) + message.vmExtensionPolicy = String(object.vmExtensionPolicy); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a DeleteZoneVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest} message DeleteZoneVmExtensionPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteZoneVmExtensionPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.vmExtensionPolicy = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.vmExtensionPolicy != null && message.hasOwnProperty("vmExtensionPolicy")) + object.vmExtensionPolicy = message.vmExtensionPolicy; + return object; + }; + + /** + * Converts this DeleteZoneVmExtensionPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteZoneVmExtensionPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteZoneVmExtensionPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteZoneVmExtensionPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest"; + }; + + return DeleteZoneVmExtensionPolicyRequest; + })(); + v1beta.Denied = (function() { /** @@ -763126,6 +769382,7 @@ * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P=517384376 VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P value * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P=517384407 VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P value * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P=517384438 VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P value + * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X=485271888 VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X value */ FutureResourcesSpecAggregateResources.VmFamily = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -763137,6 +769394,7 @@ values[valuesById[517384376] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P"] = 517384376; values[valuesById[517384407] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P"] = 517384407; values[valuesById[517384438] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P"] = 517384438; + values[valuesById[485271888] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X"] = 485271888; return values; })(); @@ -767211,6 +773469,258 @@ return GetAutoscalerRequest; })(); + v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest = (function() { + + /** + * Properties of a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @property {string|null} [project] GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest project + * @property {string|null} [resourceId] GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest resourceId + * @property {string|null} [zone] GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest zone + */ + + /** + * Constructs a new GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest. + * @implements IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest=} [properties] Properties to set + */ + function GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.prototype.project = ""; + + /** + * GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest resourceId. + * @member {string} resourceId + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.prototype.resourceId = ""; + + /** + * GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.prototype.zone = ""; + + /** + * Creates a new GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest} GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest instance + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.create = function create(properties) { + return new GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest(properties); + }; + + /** + * Encodes the specified GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest} message GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.resourceId != null && Object.hasOwnProperty.call(message, "resourceId")) + writer.uint32(/* id 160795372, wireType 2 =*/1286362978).string(message.resourceId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest} message GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest} GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 160795372: { + message.resourceId = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest} GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resourceId != null && message.hasOwnProperty("resourceId")) + if (!$util.isString(message.resourceId)) + return "resourceId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest} GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.resourceId != null) + message.resourceId = String(object.resourceId); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest} message GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.resourceId = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.resourceId != null && message.hasOwnProperty("resourceId")) + object.resourceId = message.resourceId; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @instance + * @returns {Object.} JSON object + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest"; + }; + + return GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest; + })(); + v1beta.GetBackendBucketRequest = (function() { /** @@ -772628,6 +779138,235 @@ return GetGlobalPublicDelegatedPrefixeRequest; })(); + v1beta.GetGlobalVmExtensionPolicyRequest = (function() { + + /** + * Properties of a GetGlobalVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetGlobalVmExtensionPolicyRequest + * @property {string|null} [globalVmExtensionPolicy] GetGlobalVmExtensionPolicyRequest globalVmExtensionPolicy + * @property {string|null} [project] GetGlobalVmExtensionPolicyRequest project + */ + + /** + * Constructs a new GetGlobalVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetGlobalVmExtensionPolicyRequest. + * @implements IGetGlobalVmExtensionPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest=} [properties] Properties to set + */ + function GetGlobalVmExtensionPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetGlobalVmExtensionPolicyRequest globalVmExtensionPolicy. + * @member {string} globalVmExtensionPolicy + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @instance + */ + GetGlobalVmExtensionPolicyRequest.prototype.globalVmExtensionPolicy = ""; + + /** + * GetGlobalVmExtensionPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @instance + */ + GetGlobalVmExtensionPolicyRequest.prototype.project = ""; + + /** + * Creates a new GetGlobalVmExtensionPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest} GetGlobalVmExtensionPolicyRequest instance + */ + GetGlobalVmExtensionPolicyRequest.create = function create(properties) { + return new GetGlobalVmExtensionPolicyRequest(properties); + }; + + /** + * Encodes the specified GetGlobalVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest} message GetGlobalVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetGlobalVmExtensionPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.globalVmExtensionPolicy != null && Object.hasOwnProperty.call(message, "globalVmExtensionPolicy")) + writer.uint32(/* id 8334110, wireType 2 =*/66672882).string(message.globalVmExtensionPolicy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetGlobalVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest} message GetGlobalVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetGlobalVmExtensionPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetGlobalVmExtensionPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest} GetGlobalVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetGlobalVmExtensionPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 8334110: { + message.globalVmExtensionPolicy = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetGlobalVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest} GetGlobalVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetGlobalVmExtensionPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetGlobalVmExtensionPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetGlobalVmExtensionPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.globalVmExtensionPolicy != null && message.hasOwnProperty("globalVmExtensionPolicy")) + if (!$util.isString(message.globalVmExtensionPolicy)) + return "globalVmExtensionPolicy: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + return null; + }; + + /** + * Creates a GetGlobalVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest} GetGlobalVmExtensionPolicyRequest + */ + GetGlobalVmExtensionPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest(); + if (object.globalVmExtensionPolicy != null) + message.globalVmExtensionPolicy = String(object.globalVmExtensionPolicy); + if (object.project != null) + message.project = String(object.project); + return message; + }; + + /** + * Creates a plain object from a GetGlobalVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest} message GetGlobalVmExtensionPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetGlobalVmExtensionPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.globalVmExtensionPolicy = ""; + object.project = ""; + } + if (message.globalVmExtensionPolicy != null && message.hasOwnProperty("globalVmExtensionPolicy")) + object.globalVmExtensionPolicy = message.globalVmExtensionPolicy; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetGlobalVmExtensionPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + GetGlobalVmExtensionPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetGlobalVmExtensionPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetGlobalVmExtensionPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest"; + }; + + return GetGlobalVmExtensionPolicyRequest; + })(); + v1beta.GetGuestAttributesInstanceRequest = (function() { /** @@ -778366,27 +785105,27 @@ return GetIamPolicyNodeTemplateRequest; })(); - v1beta.GetIamPolicyRegionBackendServiceRequest = (function() { + v1beta.GetIamPolicyRegionBackendBucketRequest = (function() { /** - * Properties of a GetIamPolicyRegionBackendServiceRequest. + * Properties of a GetIamPolicyRegionBackendBucketRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicyRegionBackendServiceRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionBackendServiceRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyRegionBackendServiceRequest project - * @property {string|null} [region] GetIamPolicyRegionBackendServiceRequest region - * @property {string|null} [resource] GetIamPolicyRegionBackendServiceRequest resource + * @interface IGetIamPolicyRegionBackendBucketRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionBackendBucketRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionBackendBucketRequest project + * @property {string|null} [region] GetIamPolicyRegionBackendBucketRequest region + * @property {string|null} [resource] GetIamPolicyRegionBackendBucketRequest resource */ /** - * Constructs a new GetIamPolicyRegionBackendServiceRequest. + * Constructs a new GetIamPolicyRegionBackendBucketRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicyRegionBackendServiceRequest. - * @implements IGetIamPolicyRegionBackendServiceRequest + * @classdesc Represents a GetIamPolicyRegionBackendBucketRequest. + * @implements IGetIamPolicyRegionBackendBucketRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set */ - function GetIamPolicyRegionBackendServiceRequest(properties) { + function GetIamPolicyRegionBackendBucketRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -778394,68 +785133,68 @@ } /** - * GetIamPolicyRegionBackendServiceRequest optionsRequestedPolicyVersion. + * GetIamPolicyRegionBackendBucketRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @instance */ - GetIamPolicyRegionBackendServiceRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyRegionBackendBucketRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyRegionBackendServiceRequest project. + * GetIamPolicyRegionBackendBucketRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @instance */ - GetIamPolicyRegionBackendServiceRequest.prototype.project = ""; + GetIamPolicyRegionBackendBucketRequest.prototype.project = ""; /** - * GetIamPolicyRegionBackendServiceRequest region. + * GetIamPolicyRegionBackendBucketRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @instance */ - GetIamPolicyRegionBackendServiceRequest.prototype.region = ""; + GetIamPolicyRegionBackendBucketRequest.prototype.region = ""; /** - * GetIamPolicyRegionBackendServiceRequest resource. + * GetIamPolicyRegionBackendBucketRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @instance */ - GetIamPolicyRegionBackendServiceRequest.prototype.resource = ""; + GetIamPolicyRegionBackendBucketRequest.prototype.resource = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicyRegionBackendServiceRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyRegionBackendBucketRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyRegionBackendServiceRequest instance using the specified properties. + * Creates a new GetIamPolicyRegionBackendBucketRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} GetIamPolicyRegionBackendServiceRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest} GetIamPolicyRegionBackendBucketRequest instance */ - GetIamPolicyRegionBackendServiceRequest.create = function create(properties) { - return new GetIamPolicyRegionBackendServiceRequest(properties); + GetIamPolicyRegionBackendBucketRequest.create = function create(properties) { + return new GetIamPolicyRegionBackendBucketRequest(properties); }; /** - * Encodes the specified GetIamPolicyRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendServiceRequest} message GetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest} message GetIamPolicyRegionBackendBucketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionBackendServiceRequest.encode = function encode(message, writer) { + GetIamPolicyRegionBackendBucketRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -778470,33 +785209,33 @@ }; /** - * Encodes the specified GetIamPolicyRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendServiceRequest} message GetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest} message GetIamPolicyRegionBackendBucketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} GetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest} GetIamPolicyRegionBackendBucketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyRegionBackendServiceRequest.decode = function decode(reader, length, error) { + GetIamPolicyRegionBackendBucketRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -778527,30 +785266,30 @@ }; /** - * Decodes a GetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} GetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest} GetIamPolicyRegionBackendBucketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + GetIamPolicyRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIamPolicyRegionBackendServiceRequest message. + * Verifies a GetIamPolicyRegionBackendBucketRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIamPolicyRegionBackendServiceRequest.verify = function verify(message) { + GetIamPolicyRegionBackendBucketRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -778572,17 +785311,17 @@ }; /** - * Creates a GetIamPolicyRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIamPolicyRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} GetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest} GetIamPolicyRegionBackendBucketRequest */ - GetIamPolicyRegionBackendServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest) + GetIamPolicyRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest) return object; - var message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest(); + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest(); if (object.optionsRequestedPolicyVersion != null) message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; if (object.project != null) @@ -778595,15 +785334,15 @@ }; /** - * Creates a plain object from a GetIamPolicyRegionBackendServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIamPolicyRegionBackendBucketRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @static - * @param {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} message GetIamPolicyRegionBackendServiceRequest + * @param {google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest} message GetIamPolicyRegionBackendBucketRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIamPolicyRegionBackendServiceRequest.toObject = function toObject(message, options) { + GetIamPolicyRegionBackendBucketRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -778627,55 +785366,55 @@ }; /** - * Converts this GetIamPolicyRegionBackendServiceRequest to JSON. + * Converts this GetIamPolicyRegionBackendBucketRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @instance * @returns {Object.} JSON object */ - GetIamPolicyRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + GetIamPolicyRegionBackendBucketRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIamPolicyRegionBackendServiceRequest + * Gets the default type url for GetIamPolicyRegionBackendBucketRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIamPolicyRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIamPolicyRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest"; }; - return GetIamPolicyRegionBackendServiceRequest; + return GetIamPolicyRegionBackendBucketRequest; })(); - v1beta.GetIamPolicyRegionDiskRequest = (function() { + v1beta.GetIamPolicyRegionBackendServiceRequest = (function() { /** - * Properties of a GetIamPolicyRegionDiskRequest. + * Properties of a GetIamPolicyRegionBackendServiceRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicyRegionDiskRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionDiskRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyRegionDiskRequest project - * @property {string|null} [region] GetIamPolicyRegionDiskRequest region - * @property {string|null} [resource] GetIamPolicyRegionDiskRequest resource + * @interface IGetIamPolicyRegionBackendServiceRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionBackendServiceRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionBackendServiceRequest project + * @property {string|null} [region] GetIamPolicyRegionBackendServiceRequest region + * @property {string|null} [resource] GetIamPolicyRegionBackendServiceRequest resource */ /** - * Constructs a new GetIamPolicyRegionDiskRequest. + * Constructs a new GetIamPolicyRegionBackendServiceRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicyRegionDiskRequest. - * @implements IGetIamPolicyRegionDiskRequest + * @classdesc Represents a GetIamPolicyRegionBackendServiceRequest. + * @implements IGetIamPolicyRegionBackendServiceRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionDiskRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set */ - function GetIamPolicyRegionDiskRequest(properties) { + function GetIamPolicyRegionBackendServiceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -778683,68 +785422,68 @@ } /** - * GetIamPolicyRegionDiskRequest optionsRequestedPolicyVersion. + * GetIamPolicyRegionBackendServiceRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @instance */ - GetIamPolicyRegionDiskRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyRegionBackendServiceRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyRegionDiskRequest project. + * GetIamPolicyRegionBackendServiceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @instance */ - GetIamPolicyRegionDiskRequest.prototype.project = ""; + GetIamPolicyRegionBackendServiceRequest.prototype.project = ""; /** - * GetIamPolicyRegionDiskRequest region. + * GetIamPolicyRegionBackendServiceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @instance */ - GetIamPolicyRegionDiskRequest.prototype.region = ""; + GetIamPolicyRegionBackendServiceRequest.prototype.region = ""; /** - * GetIamPolicyRegionDiskRequest resource. + * GetIamPolicyRegionBackendServiceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @instance */ - GetIamPolicyRegionDiskRequest.prototype.resource = ""; + GetIamPolicyRegionBackendServiceRequest.prototype.resource = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicyRegionDiskRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyRegionBackendServiceRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyRegionDiskRequest instance using the specified properties. + * Creates a new GetIamPolicyRegionBackendServiceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionDiskRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} GetIamPolicyRegionDiskRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} GetIamPolicyRegionBackendServiceRequest instance */ - GetIamPolicyRegionDiskRequest.create = function create(properties) { - return new GetIamPolicyRegionDiskRequest(properties); + GetIamPolicyRegionBackendServiceRequest.create = function create(properties) { + return new GetIamPolicyRegionBackendServiceRequest(properties); }; /** - * Encodes the specified GetIamPolicyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionDiskRequest} message GetIamPolicyRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendServiceRequest} message GetIamPolicyRegionBackendServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionDiskRequest.encode = function encode(message, writer) { + GetIamPolicyRegionBackendServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -778759,33 +785498,33 @@ }; /** - * Encodes the specified GetIamPolicyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionDiskRequest} message GetIamPolicyRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendServiceRequest} message GetIamPolicyRegionBackendServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyRegionDiskRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} GetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} GetIamPolicyRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyRegionDiskRequest.decode = function decode(reader, length, error) { + GetIamPolicyRegionBackendServiceRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -778816,30 +785555,30 @@ }; /** - * Decodes a GetIamPolicyRegionDiskRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} GetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} GetIamPolicyRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + GetIamPolicyRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIamPolicyRegionDiskRequest message. + * Verifies a GetIamPolicyRegionBackendServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIamPolicyRegionDiskRequest.verify = function verify(message) { + GetIamPolicyRegionBackendServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -778861,17 +785600,17 @@ }; /** - * Creates a GetIamPolicyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIamPolicyRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} GetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} GetIamPolicyRegionBackendServiceRequest */ - GetIamPolicyRegionDiskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest) + GetIamPolicyRegionBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest) return object; - var message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest(); + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest(); if (object.optionsRequestedPolicyVersion != null) message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; if (object.project != null) @@ -778884,15 +785623,15 @@ }; /** - * Creates a plain object from a GetIamPolicyRegionDiskRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIamPolicyRegionBackendServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} message GetIamPolicyRegionDiskRequest + * @param {google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest} message GetIamPolicyRegionBackendServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIamPolicyRegionDiskRequest.toObject = function toObject(message, options) { + GetIamPolicyRegionBackendServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -778916,55 +785655,55 @@ }; /** - * Converts this GetIamPolicyRegionDiskRequest to JSON. + * Converts this GetIamPolicyRegionBackendServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @instance * @returns {Object.} JSON object */ - GetIamPolicyRegionDiskRequest.prototype.toJSON = function toJSON() { + GetIamPolicyRegionBackendServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIamPolicyRegionDiskRequest + * Gets the default type url for GetIamPolicyRegionBackendServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIamPolicyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIamPolicyRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyRegionBackendServiceRequest"; }; - return GetIamPolicyRegionDiskRequest; + return GetIamPolicyRegionBackendServiceRequest; })(); - v1beta.GetIamPolicyRegionInstantSnapshotRequest = (function() { + v1beta.GetIamPolicyRegionDiskRequest = (function() { /** - * Properties of a GetIamPolicyRegionInstantSnapshotRequest. + * Properties of a GetIamPolicyRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicyRegionInstantSnapshotRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionInstantSnapshotRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyRegionInstantSnapshotRequest project - * @property {string|null} [region] GetIamPolicyRegionInstantSnapshotRequest region - * @property {string|null} [resource] GetIamPolicyRegionInstantSnapshotRequest resource + * @interface IGetIamPolicyRegionDiskRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionDiskRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionDiskRequest project + * @property {string|null} [region] GetIamPolicyRegionDiskRequest region + * @property {string|null} [resource] GetIamPolicyRegionDiskRequest resource */ /** - * Constructs a new GetIamPolicyRegionInstantSnapshotRequest. + * Constructs a new GetIamPolicyRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicyRegionInstantSnapshotRequest. - * @implements IGetIamPolicyRegionInstantSnapshotRequest + * @classdesc Represents a GetIamPolicyRegionDiskRequest. + * @implements IGetIamPolicyRegionDiskRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionDiskRequest=} [properties] Properties to set */ - function GetIamPolicyRegionInstantSnapshotRequest(properties) { + function GetIamPolicyRegionDiskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -778972,68 +785711,68 @@ } /** - * GetIamPolicyRegionInstantSnapshotRequest optionsRequestedPolicyVersion. + * GetIamPolicyRegionDiskRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @instance */ - GetIamPolicyRegionInstantSnapshotRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyRegionDiskRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyRegionInstantSnapshotRequest project. + * GetIamPolicyRegionDiskRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @instance */ - GetIamPolicyRegionInstantSnapshotRequest.prototype.project = ""; + GetIamPolicyRegionDiskRequest.prototype.project = ""; /** - * GetIamPolicyRegionInstantSnapshotRequest region. + * GetIamPolicyRegionDiskRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @instance */ - GetIamPolicyRegionInstantSnapshotRequest.prototype.region = ""; + GetIamPolicyRegionDiskRequest.prototype.region = ""; /** - * GetIamPolicyRegionInstantSnapshotRequest resource. + * GetIamPolicyRegionDiskRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @instance */ - GetIamPolicyRegionInstantSnapshotRequest.prototype.resource = ""; + GetIamPolicyRegionDiskRequest.prototype.resource = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicyRegionInstantSnapshotRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyRegionDiskRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. + * Creates a new GetIamPolicyRegionDiskRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} GetIamPolicyRegionDiskRequest instance */ - GetIamPolicyRegionInstantSnapshotRequest.create = function create(properties) { - return new GetIamPolicyRegionInstantSnapshotRequest(properties); + GetIamPolicyRegionDiskRequest.create = function create(properties) { + return new GetIamPolicyRegionDiskRequest(properties); }; /** - * Encodes the specified GetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotRequest} message GetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionDiskRequest} message GetIamPolicyRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionInstantSnapshotRequest.encode = function encode(message, writer) { + GetIamPolicyRegionDiskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -779048,33 +785787,33 @@ }; /** - * Encodes the specified GetIamPolicyRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotRequest} message GetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionDiskRequest} message GetIamPolicyRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyRegionDiskRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} GetIamPolicyRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyRegionInstantSnapshotRequest.decode = function decode(reader, length, error) { + GetIamPolicyRegionDiskRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -779105,30 +785844,30 @@ }; /** - * Decodes a GetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIamPolicyRegionDiskRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} GetIamPolicyRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + GetIamPolicyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIamPolicyRegionInstantSnapshotRequest message. + * Verifies a GetIamPolicyRegionDiskRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIamPolicyRegionInstantSnapshotRequest.verify = function verify(message) { + GetIamPolicyRegionDiskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -779150,17 +785889,17 @@ }; /** - * Creates a GetIamPolicyRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIamPolicyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} GetIamPolicyRegionDiskRequest */ - GetIamPolicyRegionInstantSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest) + GetIamPolicyRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest) return object; - var message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest(); + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest(); if (object.optionsRequestedPolicyVersion != null) message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; if (object.project != null) @@ -779173,15 +785912,15 @@ }; /** - * Creates a plain object from a GetIamPolicyRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIamPolicyRegionDiskRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} message GetIamPolicyRegionInstantSnapshotRequest + * @param {google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest} message GetIamPolicyRegionDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIamPolicyRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + GetIamPolicyRegionDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -779205,55 +785944,55 @@ }; /** - * Converts this GetIamPolicyRegionInstantSnapshotRequest to JSON. + * Converts this GetIamPolicyRegionDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @instance * @returns {Object.} JSON object */ - GetIamPolicyRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + GetIamPolicyRegionDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIamPolicyRegionInstantSnapshotRequest + * Gets the default type url for GetIamPolicyRegionDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIamPolicyRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIamPolicyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyRegionDiskRequest"; }; - return GetIamPolicyRegionInstantSnapshotRequest; + return GetIamPolicyRegionDiskRequest; })(); - v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest = (function() { + v1beta.GetIamPolicyRegionInstantSnapshotRequest = (function() { /** - * Properties of a GetIamPolicyRegionNetworkFirewallPolicyRequest. + * Properties of a GetIamPolicyRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @interface IGetIamPolicyRegionNetworkFirewallPolicyRequest - * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionNetworkFirewallPolicyRequest optionsRequestedPolicyVersion - * @property {string|null} [project] GetIamPolicyRegionNetworkFirewallPolicyRequest project - * @property {string|null} [region] GetIamPolicyRegionNetworkFirewallPolicyRequest region - * @property {string|null} [resource] GetIamPolicyRegionNetworkFirewallPolicyRequest resource + * @interface IGetIamPolicyRegionInstantSnapshotRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionInstantSnapshotRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionInstantSnapshotRequest project + * @property {string|null} [region] GetIamPolicyRegionInstantSnapshotRequest region + * @property {string|null} [resource] GetIamPolicyRegionInstantSnapshotRequest resource */ /** - * Constructs a new GetIamPolicyRegionNetworkFirewallPolicyRequest. + * Constructs a new GetIamPolicyRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a GetIamPolicyRegionNetworkFirewallPolicyRequest. - * @implements IGetIamPolicyRegionNetworkFirewallPolicyRequest + * @classdesc Represents a GetIamPolicyRegionInstantSnapshotRequest. + * @implements IGetIamPolicyRegionInstantSnapshotRequest * @constructor - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set */ - function GetIamPolicyRegionNetworkFirewallPolicyRequest(properties) { + function GetIamPolicyRegionInstantSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -779261,68 +786000,68 @@ } /** - * GetIamPolicyRegionNetworkFirewallPolicyRequest optionsRequestedPolicyVersion. + * GetIamPolicyRegionInstantSnapshotRequest optionsRequestedPolicyVersion. * @member {number|null|undefined} optionsRequestedPolicyVersion - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest * @instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.optionsRequestedPolicyVersion = null; + GetIamPolicyRegionInstantSnapshotRequest.prototype.optionsRequestedPolicyVersion = null; /** - * GetIamPolicyRegionNetworkFirewallPolicyRequest project. + * GetIamPolicyRegionInstantSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest * @instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.project = ""; + GetIamPolicyRegionInstantSnapshotRequest.prototype.project = ""; /** - * GetIamPolicyRegionNetworkFirewallPolicyRequest region. + * GetIamPolicyRegionInstantSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest * @instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.region = ""; + GetIamPolicyRegionInstantSnapshotRequest.prototype.region = ""; /** - * GetIamPolicyRegionNetworkFirewallPolicyRequest resource. + * GetIamPolicyRegionInstantSnapshotRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest * @instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.resource = ""; + GetIamPolicyRegionInstantSnapshotRequest.prototype.resource = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype, "_optionsRequestedPolicyVersion", { + Object.defineProperty(GetIamPolicyRegionInstantSnapshotRequest.prototype, "_optionsRequestedPolicyVersion", { get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GetIamPolicyRegionNetworkFirewallPolicyRequest instance using the specified properties. + * Creates a new GetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest} GetIamPolicyRegionNetworkFirewallPolicyRequest instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest instance */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.create = function create(properties) { - return new GetIamPolicyRegionNetworkFirewallPolicyRequest(properties); + GetIamPolicyRegionInstantSnapshotRequest.create = function create(properties) { + return new GetIamPolicyRegionInstantSnapshotRequest(properties); }; /** - * Encodes the specified GetIamPolicyRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionNetworkFirewallPolicyRequest} message GetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotRequest} message GetIamPolicyRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.encode = function encode(message, writer) { + GetIamPolicyRegionInstantSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -779337,33 +786076,322 @@ }; /** - * Encodes the specified GetIamPolicyRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified GetIamPolicyRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionNetworkFirewallPolicyRequest} message GetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionInstantSnapshotRequest} message GetIamPolicyRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIamPolicyRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIamPolicyRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. + * Decodes a GetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest} GetIamPolicyRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIamPolicyRegionNetworkFirewallPolicyRequest.decode = function decode(reader, length, error) { + GetIamPolicyRegionInstantSnapshotRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 499220029: { + message.optionsRequestedPolicyVersion = reader.int32(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyRegionInstantSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyRegionInstantSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + properties._optionsRequestedPolicyVersion = 1; + if (!$util.isInteger(message.optionsRequestedPolicyVersion)) + return "optionsRequestedPolicyVersion: integer expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a GetIamPolicyRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} GetIamPolicyRegionInstantSnapshotRequest + */ + GetIamPolicyRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a GetIamPolicyRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest} message GetIamPolicyRegionInstantSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + object.optionsRequestedPolicyVersion = message.optionsRequestedPolicyVersion; + if (options.oneofs) + object._optionsRequestedPolicyVersion = "optionsRequestedPolicyVersion"; + } + return object; + }; + + /** + * Converts this GetIamPolicyRegionInstantSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyRegionInstantSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyRegionInstantSnapshotRequest"; + }; + + return GetIamPolicyRegionInstantSnapshotRequest; + })(); + + v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest = (function() { + + /** + * Properties of a GetIamPolicyRegionNetworkFirewallPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetIamPolicyRegionNetworkFirewallPolicyRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyRegionNetworkFirewallPolicyRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyRegionNetworkFirewallPolicyRequest project + * @property {string|null} [region] GetIamPolicyRegionNetworkFirewallPolicyRequest region + * @property {string|null} [resource] GetIamPolicyRegionNetworkFirewallPolicyRequest resource + */ + + /** + * Constructs a new GetIamPolicyRegionNetworkFirewallPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetIamPolicyRegionNetworkFirewallPolicyRequest. + * @implements IGetIamPolicyRegionNetworkFirewallPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + */ + function GetIamPolicyRegionNetworkFirewallPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetIamPolicyRegionNetworkFirewallPolicyRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyRegionNetworkFirewallPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.project = ""; + + /** + * GetIamPolicyRegionNetworkFirewallPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.region = ""; + + /** + * GetIamPolicyRegionNetworkFirewallPolicyRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicyRegionNetworkFirewallPolicyRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyRegionNetworkFirewallPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest} GetIamPolicyRegionNetworkFirewallPolicyRequest instance + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.create = function create(properties) { + return new GetIamPolicyRegionNetworkFirewallPolicyRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionNetworkFirewallPolicyRequest} message GetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.optionsRequestedPolicyVersion != null && Object.hasOwnProperty.call(message, "optionsRequestedPolicyVersion")) + writer.uint32(/* id 499220029, wireType 0 =*/3993760232).int32(message.optionsRequestedPolicyVersion); + return writer; + }; + + /** + * Encodes the specified GetIamPolicyRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionNetworkFirewallPolicyRequest} message GetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest} GetIamPolicyRegionNetworkFirewallPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyRegionNetworkFirewallPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyRegionNetworkFirewallPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -779811,6 +786839,318 @@ return GetIamPolicyRegionSnapshotRequest; })(); + v1beta.GetIamPolicyReservationBlockRequest = (function() { + + /** + * Properties of a GetIamPolicyReservationBlockRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetIamPolicyReservationBlockRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyReservationBlockRequest optionsRequestedPolicyVersion + * @property {string|null} [parentResource] GetIamPolicyReservationBlockRequest parentResource + * @property {string|null} [project] GetIamPolicyReservationBlockRequest project + * @property {string|null} [resource] GetIamPolicyReservationBlockRequest resource + * @property {string|null} [zone] GetIamPolicyReservationBlockRequest zone + */ + + /** + * Constructs a new GetIamPolicyReservationBlockRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetIamPolicyReservationBlockRequest. + * @implements IGetIamPolicyReservationBlockRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest=} [properties] Properties to set + */ + function GetIamPolicyReservationBlockRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetIamPolicyReservationBlockRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @instance + */ + GetIamPolicyReservationBlockRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyReservationBlockRequest parentResource. + * @member {string} parentResource + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @instance + */ + GetIamPolicyReservationBlockRequest.prototype.parentResource = ""; + + /** + * GetIamPolicyReservationBlockRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @instance + */ + GetIamPolicyReservationBlockRequest.prototype.project = ""; + + /** + * GetIamPolicyReservationBlockRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @instance + */ + GetIamPolicyReservationBlockRequest.prototype.resource = ""; + + /** + * GetIamPolicyReservationBlockRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @instance + */ + GetIamPolicyReservationBlockRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicyReservationBlockRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyReservationBlockRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest} GetIamPolicyReservationBlockRequest instance + */ + GetIamPolicyReservationBlockRequest.create = function create(properties) { + return new GetIamPolicyReservationBlockRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyReservationBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest} message GetIamPolicyReservationBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyReservationBlockRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.parentResource != null && Object.hasOwnProperty.call(message, "parentResource")) + writer.uint32(/* id 18091011, wireType 2 =*/144728090).string(message.parentResource); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.optionsRequestedPolicyVersion != null && Object.hasOwnProperty.call(message, "optionsRequestedPolicyVersion")) + writer.uint32(/* id 499220029, wireType 0 =*/3993760232).int32(message.optionsRequestedPolicyVersion); + return writer; + }; + + /** + * Encodes the specified GetIamPolicyReservationBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest} message GetIamPolicyReservationBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyReservationBlockRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyReservationBlockRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest} GetIamPolicyReservationBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyReservationBlockRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 499220029: { + message.optionsRequestedPolicyVersion = reader.int32(); + break; + } + case 18091011: { + message.parentResource = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicyReservationBlockRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest} GetIamPolicyReservationBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyReservationBlockRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyReservationBlockRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyReservationBlockRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + properties._optionsRequestedPolicyVersion = 1; + if (!$util.isInteger(message.optionsRequestedPolicyVersion)) + return "optionsRequestedPolicyVersion: integer expected"; + } + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + if (!$util.isString(message.parentResource)) + return "parentResource: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetIamPolicyReservationBlockRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest} GetIamPolicyReservationBlockRequest + */ + GetIamPolicyReservationBlockRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + if (object.parentResource != null) + message.parentResource = String(object.parentResource); + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetIamPolicyReservationBlockRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @static + * @param {google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest} message GetIamPolicyReservationBlockRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyReservationBlockRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.parentResource = ""; + object.resource = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + object.parentResource = message.parentResource; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + object.optionsRequestedPolicyVersion = message.optionsRequestedPolicyVersion; + if (options.oneofs) + object._optionsRequestedPolicyVersion = "optionsRequestedPolicyVersion"; + } + return object; + }; + + /** + * Converts this GetIamPolicyReservationBlockRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyReservationBlockRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyReservationBlockRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyReservationBlockRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest"; + }; + + return GetIamPolicyReservationBlockRequest; + })(); + v1beta.GetIamPolicyReservationRequest = (function() { /** @@ -780100,6 +787440,318 @@ return GetIamPolicyReservationRequest; })(); + v1beta.GetIamPolicyReservationSubBlockRequest = (function() { + + /** + * Properties of a GetIamPolicyReservationSubBlockRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetIamPolicyReservationSubBlockRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyReservationSubBlockRequest optionsRequestedPolicyVersion + * @property {string|null} [parentResource] GetIamPolicyReservationSubBlockRequest parentResource + * @property {string|null} [project] GetIamPolicyReservationSubBlockRequest project + * @property {string|null} [resource] GetIamPolicyReservationSubBlockRequest resource + * @property {string|null} [zone] GetIamPolicyReservationSubBlockRequest zone + */ + + /** + * Constructs a new GetIamPolicyReservationSubBlockRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetIamPolicyReservationSubBlockRequest. + * @implements IGetIamPolicyReservationSubBlockRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest=} [properties] Properties to set + */ + function GetIamPolicyReservationSubBlockRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetIamPolicyReservationSubBlockRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @instance + */ + GetIamPolicyReservationSubBlockRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyReservationSubBlockRequest parentResource. + * @member {string} parentResource + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @instance + */ + GetIamPolicyReservationSubBlockRequest.prototype.parentResource = ""; + + /** + * GetIamPolicyReservationSubBlockRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @instance + */ + GetIamPolicyReservationSubBlockRequest.prototype.project = ""; + + /** + * GetIamPolicyReservationSubBlockRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @instance + */ + GetIamPolicyReservationSubBlockRequest.prototype.resource = ""; + + /** + * GetIamPolicyReservationSubBlockRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @instance + */ + GetIamPolicyReservationSubBlockRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetIamPolicyReservationSubBlockRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyReservationSubBlockRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest} GetIamPolicyReservationSubBlockRequest instance + */ + GetIamPolicyReservationSubBlockRequest.create = function create(properties) { + return new GetIamPolicyReservationSubBlockRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest} message GetIamPolicyReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyReservationSubBlockRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.parentResource != null && Object.hasOwnProperty.call(message, "parentResource")) + writer.uint32(/* id 18091011, wireType 2 =*/144728090).string(message.parentResource); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.optionsRequestedPolicyVersion != null && Object.hasOwnProperty.call(message, "optionsRequestedPolicyVersion")) + writer.uint32(/* id 499220029, wireType 0 =*/3993760232).int32(message.optionsRequestedPolicyVersion); + return writer; + }; + + /** + * Encodes the specified GetIamPolicyReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest} message GetIamPolicyReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyReservationSubBlockRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyReservationSubBlockRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest} GetIamPolicyReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyReservationSubBlockRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 499220029: { + message.optionsRequestedPolicyVersion = reader.int32(); + break; + } + case 18091011: { + message.parentResource = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicyReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest} GetIamPolicyReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyReservationSubBlockRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyReservationSubBlockRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyReservationSubBlockRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + properties._optionsRequestedPolicyVersion = 1; + if (!$util.isInteger(message.optionsRequestedPolicyVersion)) + return "optionsRequestedPolicyVersion: integer expected"; + } + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + if (!$util.isString(message.parentResource)) + return "parentResource: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetIamPolicyReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest} GetIamPolicyReservationSubBlockRequest + */ + GetIamPolicyReservationSubBlockRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + if (object.parentResource != null) + message.parentResource = String(object.parentResource); + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetIamPolicyReservationSubBlockRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest} message GetIamPolicyReservationSubBlockRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyReservationSubBlockRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.parentResource = ""; + object.resource = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + object.parentResource = message.parentResource; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + object.optionsRequestedPolicyVersion = message.optionsRequestedPolicyVersion; + if (options.oneofs) + object._optionsRequestedPolicyVersion = "optionsRequestedPolicyVersion"; + } + return object; + }; + + /** + * Converts this GetIamPolicyReservationSubBlockRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyReservationSubBlockRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyReservationSubBlockRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyReservationSubBlockRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest"; + }; + + return GetIamPolicyReservationSubBlockRequest; + })(); + v1beta.GetIamPolicyResourcePolicyRequest = (function() { /** @@ -792240,6 +799892,258 @@ return GetRegionAutoscalerRequest; })(); + v1beta.GetRegionBackendBucketRequest = (function() { + + /** + * Properties of a GetRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetRegionBackendBucketRequest + * @property {string|null} [backendBucket] GetRegionBackendBucketRequest backendBucket + * @property {string|null} [project] GetRegionBackendBucketRequest project + * @property {string|null} [region] GetRegionBackendBucketRequest region + */ + + /** + * Constructs a new GetRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetRegionBackendBucketRequest. + * @implements IGetRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetRegionBackendBucketRequest=} [properties] Properties to set + */ + function GetRegionBackendBucketRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRegionBackendBucketRequest backendBucket. + * @member {string} backendBucket + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @instance + */ + GetRegionBackendBucketRequest.prototype.backendBucket = ""; + + /** + * GetRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @instance + */ + GetRegionBackendBucketRequest.prototype.project = ""; + + /** + * GetRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @instance + */ + GetRegionBackendBucketRequest.prototype.region = ""; + + /** + * Creates a new GetRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetRegionBackendBucketRequest} GetRegionBackendBucketRequest instance + */ + GetRegionBackendBucketRequest.create = function create(properties) { + return new GetRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified GetRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionBackendBucketRequest} message GetRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionBackendBucketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.backendBucket != null && Object.hasOwnProperty.call(message, "backendBucket")) + writer.uint32(/* id 91714037, wireType 2 =*/733712298).string(message.backendBucket); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionBackendBucketRequest} message GetRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionBackendBucketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetRegionBackendBucketRequest} GetRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionBackendBucketRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetRegionBackendBucketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 91714037: { + message.backendBucket = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetRegionBackendBucketRequest} GetRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionBackendBucketRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionBackendBucketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.backendBucket != null && message.hasOwnProperty("backendBucket")) + if (!$util.isString(message.backendBucket)) + return "backendBucket: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + return null; + }; + + /** + * Creates a GetRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetRegionBackendBucketRequest} GetRegionBackendBucketRequest + */ + GetRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetRegionBackendBucketRequest(); + if (object.backendBucket != null) + message.backendBucket = String(object.backendBucket); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + return message; + }; + + /** + * Creates a plain object from a GetRegionBackendBucketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.GetRegionBackendBucketRequest} message GetRegionBackendBucketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionBackendBucketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.backendBucket = ""; + object.region = ""; + object.project = ""; + } + if (message.backendBucket != null && message.hasOwnProperty("backendBucket")) + object.backendBucket = message.backendBucket; + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionBackendBucketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionBackendBucketRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetRegionBackendBucketRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetRegionBackendBucketRequest"; + }; + + return GetRegionBackendBucketRequest; + })(); + v1beta.GetRegionBackendServiceRequest = (function() { /** @@ -792744,6 +800648,258 @@ return GetRegionCommitmentRequest; })(); + v1beta.GetRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of a GetRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetRegionCompositeHealthCheckRequest + * @property {string|null} [compositeHealthCheck] GetRegionCompositeHealthCheckRequest compositeHealthCheck + * @property {string|null} [project] GetRegionCompositeHealthCheckRequest project + * @property {string|null} [region] GetRegionCompositeHealthCheckRequest region + */ + + /** + * Constructs a new GetRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetRegionCompositeHealthCheckRequest. + * @implements IGetRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function GetRegionCompositeHealthCheckRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRegionCompositeHealthCheckRequest compositeHealthCheck. + * @member {string} compositeHealthCheck + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @instance + */ + GetRegionCompositeHealthCheckRequest.prototype.compositeHealthCheck = ""; + + /** + * GetRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @instance + */ + GetRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * GetRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @instance + */ + GetRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * Creates a new GetRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest} GetRegionCompositeHealthCheckRequest instance + */ + GetRegionCompositeHealthCheckRequest.create = function create(properties) { + return new GetRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified GetRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest} message GetRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionCompositeHealthCheckRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.compositeHealthCheck != null && Object.hasOwnProperty.call(message, "compositeHealthCheck")) + writer.uint32(/* id 466984989, wireType 2 =*/3735879914).string(message.compositeHealthCheck); + return writer; + }; + + /** + * Encodes the specified GetRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest} message GetRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest} GetRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionCompositeHealthCheckRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 466984989: { + message.compositeHealthCheck = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest} GetRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionCompositeHealthCheckRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + if (!$util.isString(message.compositeHealthCheck)) + return "compositeHealthCheck: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + return null; + }; + + /** + * Creates a GetRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest} GetRegionCompositeHealthCheckRequest + */ + GetRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest(); + if (object.compositeHealthCheck != null) + message.compositeHealthCheck = String(object.compositeHealthCheck); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + return message; + }; + + /** + * Creates a plain object from a GetRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest} message GetRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.compositeHealthCheck = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + object.compositeHealthCheck = message.compositeHealthCheck; + return object; + }; + + /** + * Converts this GetRegionCompositeHealthCheckRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionCompositeHealthCheckRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest"; + }; + + return GetRegionCompositeHealthCheckRequest; + })(); + v1beta.GetRegionDiskRequest = (function() { /** @@ -793477,6 +801633,258 @@ return GetRegionDiskTypeRequest; })(); + v1beta.GetRegionHealthAggregationPolicyRequest = (function() { + + /** + * Properties of a GetRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetRegionHealthAggregationPolicyRequest + * @property {string|null} [healthAggregationPolicy] GetRegionHealthAggregationPolicyRequest healthAggregationPolicy + * @property {string|null} [project] GetRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] GetRegionHealthAggregationPolicyRequest region + */ + + /** + * Constructs a new GetRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetRegionHealthAggregationPolicyRequest. + * @implements IGetRegionHealthAggregationPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest=} [properties] Properties to set + */ + function GetRegionHealthAggregationPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRegionHealthAggregationPolicyRequest healthAggregationPolicy. + * @member {string} healthAggregationPolicy + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @instance + */ + GetRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicy = ""; + + /** + * GetRegionHealthAggregationPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @instance + */ + GetRegionHealthAggregationPolicyRequest.prototype.project = ""; + + /** + * GetRegionHealthAggregationPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @instance + */ + GetRegionHealthAggregationPolicyRequest.prototype.region = ""; + + /** + * Creates a new GetRegionHealthAggregationPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest} GetRegionHealthAggregationPolicyRequest instance + */ + GetRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new GetRegionHealthAggregationPolicyRequest(properties); + }; + + /** + * Encodes the specified GetRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest} message GetRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.healthAggregationPolicy != null && Object.hasOwnProperty.call(message, "healthAggregationPolicy")) + writer.uint32(/* id 240314354, wireType 2 =*/1922514834).string(message.healthAggregationPolicy); + return writer; + }; + + /** + * Encodes the specified GetRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest} message GetRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest} GetRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 240314354: { + message.healthAggregationPolicy = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest} GetRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionHealthAggregationPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionHealthAggregationPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + if (!$util.isString(message.healthAggregationPolicy)) + return "healthAggregationPolicy: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + return null; + }; + + /** + * Creates a GetRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest} GetRegionHealthAggregationPolicyRequest + */ + GetRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest(); + if (object.healthAggregationPolicy != null) + message.healthAggregationPolicy = String(object.healthAggregationPolicy); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + return message; + }; + + /** + * Creates a plain object from a GetRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest} message GetRegionHealthAggregationPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthAggregationPolicy = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + object.healthAggregationPolicy = message.healthAggregationPolicy; + return object; + }; + + /** + * Converts this GetRegionHealthAggregationPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionHealthAggregationPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest"; + }; + + return GetRegionHealthAggregationPolicyRequest; + })(); + v1beta.GetRegionHealthCheckRequest = (function() { /** @@ -800148,6 +808556,7 @@ * @property {string|null} [parentName] GetReservationSubBlockRequest parentName * @property {string|null} [project] GetReservationSubBlockRequest project * @property {string|null} [reservationSubBlock] GetReservationSubBlockRequest reservationSubBlock + * @property {string|null} [view] GetReservationSubBlockRequest view * @property {string|null} [zone] GetReservationSubBlockRequest zone */ @@ -800190,6 +808599,14 @@ */ GetReservationSubBlockRequest.prototype.reservationSubBlock = ""; + /** + * GetReservationSubBlockRequest view. + * @member {string|null|undefined} view + * @memberof google.cloud.compute.v1beta.GetReservationSubBlockRequest + * @instance + */ + GetReservationSubBlockRequest.prototype.view = null; + /** * GetReservationSubBlockRequest zone. * @member {string} zone @@ -800198,6 +808615,15 @@ */ GetReservationSubBlockRequest.prototype.zone = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetReservationSubBlockRequest.prototype, "_view", { + get: $util.oneOfGetter($oneOfFields = ["view"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new GetReservationSubBlockRequest instance using the specified properties. * @function create @@ -800222,6 +808648,8 @@ GetReservationSubBlockRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 3619493, wireType 2 =*/28955946).string(message.view); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.reservationSubBlock != null && Object.hasOwnProperty.call(message, "reservationSubBlock")) @@ -800278,6 +808706,10 @@ message.reservationSubBlock = reader.string(); break; } + case 3619493: { + message.view = reader.string(); + break; + } case 3744684: { message.zone = reader.string(); break; @@ -800317,6 +808749,7 @@ GetReservationSubBlockRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.parentName != null && message.hasOwnProperty("parentName")) if (!$util.isString(message.parentName)) return "parentName: string expected"; @@ -800326,6 +808759,11 @@ if (message.reservationSubBlock != null && message.hasOwnProperty("reservationSubBlock")) if (!$util.isString(message.reservationSubBlock)) return "reservationSubBlock: string expected"; + if (message.view != null && message.hasOwnProperty("view")) { + properties._view = 1; + if (!$util.isString(message.view)) + return "view: string expected"; + } if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; @@ -800350,6 +808788,8 @@ message.project = String(object.project); if (object.reservationSubBlock != null) message.reservationSubBlock = String(object.reservationSubBlock); + if (object.view != null) + message.view = String(object.view); if (object.zone != null) message.zone = String(object.zone); return message; @@ -800374,6 +808814,11 @@ object.project = ""; object.parentName = ""; } + if (message.view != null && message.hasOwnProperty("view")) { + object.view = message.view; + if (options.oneofs) + object._view = "view"; + } if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; if (message.reservationSubBlock != null && message.hasOwnProperty("reservationSubBlock")) @@ -800411,6 +808856,24 @@ return typeUrlPrefix + "/google.cloud.compute.v1beta.GetReservationSubBlockRequest"; }; + /** + * View enum. + * @name google.cloud.compute.v1beta.GetReservationSubBlockRequest.View + * @enum {number} + * @property {number} UNDEFINED_VIEW=0 UNDEFINED_VIEW value + * @property {number} SUB_BLOCK_VIEW_BASIC=236009797 SUB_BLOCK_VIEW_BASIC value + * @property {number} SUB_BLOCK_VIEW_FULL=440711800 SUB_BLOCK_VIEW_FULL value + * @property {number} SUB_BLOCK_VIEW_UNSPECIFIED=246642446 SUB_BLOCK_VIEW_UNSPECIFIED value + */ + GetReservationSubBlockRequest.View = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_VIEW"] = 0; + values[valuesById[236009797] = "SUB_BLOCK_VIEW_BASIC"] = 236009797; + values[valuesById[440711800] = "SUB_BLOCK_VIEW_FULL"] = 440711800; + values[valuesById[246642446] = "SUB_BLOCK_VIEW_UNSPECIFIED"] = 246642446; + return values; + })(); + return GetReservationSubBlockRequest; })(); @@ -811076,6 +819539,258 @@ return GetZoneRequest; })(); + v1beta.GetZoneVmExtensionPolicyRequest = (function() { + + /** + * Properties of a GetZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetZoneVmExtensionPolicyRequest + * @property {string|null} [project] GetZoneVmExtensionPolicyRequest project + * @property {string|null} [vmExtensionPolicy] GetZoneVmExtensionPolicyRequest vmExtensionPolicy + * @property {string|null} [zone] GetZoneVmExtensionPolicyRequest zone + */ + + /** + * Constructs a new GetZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetZoneVmExtensionPolicyRequest. + * @implements IGetZoneVmExtensionPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest=} [properties] Properties to set + */ + function GetZoneVmExtensionPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetZoneVmExtensionPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @instance + */ + GetZoneVmExtensionPolicyRequest.prototype.project = ""; + + /** + * GetZoneVmExtensionPolicyRequest vmExtensionPolicy. + * @member {string} vmExtensionPolicy + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @instance + */ + GetZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicy = ""; + + /** + * GetZoneVmExtensionPolicyRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @instance + */ + GetZoneVmExtensionPolicyRequest.prototype.zone = ""; + + /** + * Creates a new GetZoneVmExtensionPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest} GetZoneVmExtensionPolicyRequest instance + */ + GetZoneVmExtensionPolicyRequest.create = function create(properties) { + return new GetZoneVmExtensionPolicyRequest(properties); + }; + + /** + * Encodes the specified GetZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest} message GetZoneVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetZoneVmExtensionPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.vmExtensionPolicy != null && Object.hasOwnProperty.call(message, "vmExtensionPolicy")) + writer.uint32(/* id 331532730, wireType 2 =*/2652261842).string(message.vmExtensionPolicy); + return writer; + }; + + /** + * Encodes the specified GetZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest} message GetZoneVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetZoneVmExtensionPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetZoneVmExtensionPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest} GetZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetZoneVmExtensionPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 331532730: { + message.vmExtensionPolicy = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetZoneVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest} GetZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetZoneVmExtensionPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetZoneVmExtensionPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetZoneVmExtensionPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.vmExtensionPolicy != null && message.hasOwnProperty("vmExtensionPolicy")) + if (!$util.isString(message.vmExtensionPolicy)) + return "vmExtensionPolicy: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetZoneVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest} GetZoneVmExtensionPolicyRequest + */ + GetZoneVmExtensionPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.vmExtensionPolicy != null) + message.vmExtensionPolicy = String(object.vmExtensionPolicy); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetZoneVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest} message GetZoneVmExtensionPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetZoneVmExtensionPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.vmExtensionPolicy = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.vmExtensionPolicy != null && message.hasOwnProperty("vmExtensionPolicy")) + object.vmExtensionPolicy = message.vmExtensionPolicy; + return object; + }; + + /** + * Converts this GetZoneVmExtensionPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + GetZoneVmExtensionPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetZoneVmExtensionPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetZoneVmExtensionPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest"; + }; + + return GetZoneVmExtensionPolicyRequest; + })(); + v1beta.GlobalAddressesMoveRequest = (function() { /** @@ -812660,6 +821375,2589 @@ return GlobalSetPolicyRequest; })(); + v1beta.GlobalVmExtensionPolicy = (function() { + + /** + * Properties of a GlobalVmExtensionPolicy. + * @memberof google.cloud.compute.v1beta + * @interface IGlobalVmExtensionPolicy + * @property {string|null} [creationTimestamp] GlobalVmExtensionPolicy creationTimestamp + * @property {string|null} [description] GlobalVmExtensionPolicy description + * @property {Object.|null} [extensionPolicies] GlobalVmExtensionPolicy extensionPolicies + * @property {number|Long|null} [id] GlobalVmExtensionPolicy id + * @property {Array.|null} [instanceSelectors] GlobalVmExtensionPolicy instanceSelectors + * @property {string|null} [kind] GlobalVmExtensionPolicy kind + * @property {string|null} [name] GlobalVmExtensionPolicy name + * @property {number|null} [priority] GlobalVmExtensionPolicy priority + * @property {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation|null} [rolloutOperation] GlobalVmExtensionPolicy rolloutOperation + * @property {string|null} [scopedResourceStatus] GlobalVmExtensionPolicy scopedResourceStatus + * @property {string|null} [selfLink] GlobalVmExtensionPolicy selfLink + * @property {string|null} [selfLinkWithId] GlobalVmExtensionPolicy selfLinkWithId + * @property {string|null} [updateTimestamp] GlobalVmExtensionPolicy updateTimestamp + */ + + /** + * Constructs a new GlobalVmExtensionPolicy. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicy. + * @implements IGlobalVmExtensionPolicy + * @constructor + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicy=} [properties] Properties to set + */ + function GlobalVmExtensionPolicy(properties) { + this.extensionPolicies = {}; + this.instanceSelectors = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GlobalVmExtensionPolicy creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.creationTimestamp = null; + + /** + * GlobalVmExtensionPolicy description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.description = null; + + /** + * GlobalVmExtensionPolicy extensionPolicies. + * @member {Object.} extensionPolicies + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.extensionPolicies = $util.emptyObject; + + /** + * GlobalVmExtensionPolicy id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.id = null; + + /** + * GlobalVmExtensionPolicy instanceSelectors. + * @member {Array.} instanceSelectors + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.instanceSelectors = $util.emptyArray; + + /** + * GlobalVmExtensionPolicy kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.kind = null; + + /** + * GlobalVmExtensionPolicy name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.name = null; + + /** + * GlobalVmExtensionPolicy priority. + * @member {number|null|undefined} priority + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.priority = null; + + /** + * GlobalVmExtensionPolicy rolloutOperation. + * @member {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation|null|undefined} rolloutOperation + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.rolloutOperation = null; + + /** + * GlobalVmExtensionPolicy scopedResourceStatus. + * @member {string|null|undefined} scopedResourceStatus + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.scopedResourceStatus = null; + + /** + * GlobalVmExtensionPolicy selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.selfLink = null; + + /** + * GlobalVmExtensionPolicy selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.selfLinkWithId = null; + + /** + * GlobalVmExtensionPolicy updateTimestamp. + * @member {string|null|undefined} updateTimestamp + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicy.prototype.updateTimestamp = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_priority", { + get: $util.oneOfGetter($oneOfFields = ["priority"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_rolloutOperation", { + get: $util.oneOfGetter($oneOfFields = ["rolloutOperation"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_scopedResourceStatus", { + get: $util.oneOfGetter($oneOfFields = ["scopedResourceStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicy.prototype, "_updateTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["updateTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GlobalVmExtensionPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicy} GlobalVmExtensionPolicy instance + */ + GlobalVmExtensionPolicy.create = function create(properties) { + return new GlobalVmExtensionPolicy(properties); + }; + + /** + * Encodes the specified GlobalVmExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicy} message GlobalVmExtensionPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.updateTimestamp != null && Object.hasOwnProperty.call(message, "updateTimestamp")) + writer.uint32(/* id 120894752, wireType 2 =*/967158018).string(message.updateTimestamp); + if (message.scopedResourceStatus != null && Object.hasOwnProperty.call(message, "scopedResourceStatus")) + writer.uint32(/* id 181976980, wireType 2 =*/1455815842).string(message.scopedResourceStatus); + if (message.extensionPolicies != null && Object.hasOwnProperty.call(message, "extensionPolicies")) + for (var keys = Object.keys(message.extensionPolicies), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 227761488, wireType 2 =*/1822091906).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy.encode(message.extensionPolicies[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 445151652, wireType 0 =*/3561213216).int32(message.priority); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.rolloutOperation != null && Object.hasOwnProperty.call(message, "rolloutOperation")) + $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.encode(message.rolloutOperation, writer.uint32(/* id 486746201, wireType 2 =*/3893969610).fork()).ldelim(); + if (message.instanceSelectors != null && message.instanceSelectors.length) + for (var i = 0; i < message.instanceSelectors.length; ++i) + $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.encode(message.instanceSelectors[i], writer.uint32(/* id 520298826, wireType 2 =*/4162390610).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GlobalVmExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicy} message GlobalVmExtensionPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalVmExtensionPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicy} GlobalVmExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicy.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicy(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 227761488: { + if (message.extensionPolicies === $util.emptyObject) + message.extensionPolicies = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.extensionPolicies[key] = value; + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 520298826: { + if (!(message.instanceSelectors && message.instanceSelectors.length)) + message.instanceSelectors = []; + message.instanceSelectors.push($root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 445151652: { + message.priority = reader.int32(); + break; + } + case 486746201: { + message.rolloutOperation = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.decode(reader, reader.uint32()); + break; + } + case 181976980: { + message.scopedResourceStatus = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 120894752: { + message.updateTimestamp = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalVmExtensionPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicy} GlobalVmExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalVmExtensionPolicy message. + * @function verify + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalVmExtensionPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.extensionPolicies != null && message.hasOwnProperty("extensionPolicies")) { + if (!$util.isObject(message.extensionPolicies)) + return "extensionPolicies: object expected"; + var key = Object.keys(message.extensionPolicies); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy.verify(message.extensionPolicies[key[i]]); + if (error) + return "extensionPolicies." + error; + } + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + } + if (message.instanceSelectors != null && message.hasOwnProperty("instanceSelectors")) { + if (!Array.isArray(message.instanceSelectors)) + return "instanceSelectors: array expected"; + for (var i = 0; i < message.instanceSelectors.length; ++i) { + var error = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.verify(message.instanceSelectors[i]); + if (error) + return "instanceSelectors." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.priority != null && message.hasOwnProperty("priority")) { + properties._priority = 1; + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + } + if (message.rolloutOperation != null && message.hasOwnProperty("rolloutOperation")) { + properties._rolloutOperation = 1; + { + var error = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.verify(message.rolloutOperation); + if (error) + return "rolloutOperation." + error; + } + } + if (message.scopedResourceStatus != null && message.hasOwnProperty("scopedResourceStatus")) { + properties._scopedResourceStatus = 1; + if (!$util.isString(message.scopedResourceStatus)) + return "scopedResourceStatus: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + if (message.updateTimestamp != null && message.hasOwnProperty("updateTimestamp")) { + properties._updateTimestamp = 1; + if (!$util.isString(message.updateTimestamp)) + return "updateTimestamp: string expected"; + } + return null; + }; + + /** + * Creates a GlobalVmExtensionPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicy} GlobalVmExtensionPolicy + */ + GlobalVmExtensionPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicy) + return object; + var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicy(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.extensionPolicies) { + if (typeof object.extensionPolicies !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicy.extensionPolicies: object expected"); + message.extensionPolicies = {}; + for (var keys = Object.keys(object.extensionPolicies), i = 0; i < keys.length; ++i) { + if (typeof object.extensionPolicies[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicy.extensionPolicies: object expected"); + message.extensionPolicies[keys[i]] = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy.fromObject(object.extensionPolicies[keys[i]]); + } + } + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.instanceSelectors) { + if (!Array.isArray(object.instanceSelectors)) + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicy.instanceSelectors: array expected"); + message.instanceSelectors = []; + for (var i = 0; i < object.instanceSelectors.length; ++i) { + if (typeof object.instanceSelectors[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicy.instanceSelectors: object expected"); + message.instanceSelectors[i] = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.fromObject(object.instanceSelectors[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.name != null) + message.name = String(object.name); + if (object.priority != null) + message.priority = object.priority | 0; + if (object.rolloutOperation != null) { + if (typeof object.rolloutOperation !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicy.rolloutOperation: object expected"); + message.rolloutOperation = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.fromObject(object.rolloutOperation); + } + if (object.scopedResourceStatus != null) + message.scopedResourceStatus = String(object.scopedResourceStatus); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.updateTimestamp != null) + message.updateTimestamp = String(object.updateTimestamp); + return message; + }; + + /** + * Creates a plain object from a GlobalVmExtensionPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicy} message GlobalVmExtensionPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalVmExtensionPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instanceSelectors = []; + if (options.objects || options.defaults) + object.extensionPolicies = {}; + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; + if (options.oneofs) + object._selfLinkWithId = "selfLinkWithId"; + } + if (message.updateTimestamp != null && message.hasOwnProperty("updateTimestamp")) { + object.updateTimestamp = message.updateTimestamp; + if (options.oneofs) + object._updateTimestamp = "updateTimestamp"; + } + if (message.scopedResourceStatus != null && message.hasOwnProperty("scopedResourceStatus")) { + object.scopedResourceStatus = message.scopedResourceStatus; + if (options.oneofs) + object._scopedResourceStatus = "scopedResourceStatus"; + } + var keys2; + if (message.extensionPolicies && (keys2 = Object.keys(message.extensionPolicies)).length) { + object.extensionPolicies = {}; + for (var j = 0; j < keys2.length; ++j) + object.extensionPolicies[keys2[j]] = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy.toObject(message.extensionPolicies[keys2[j]], options); + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.priority != null && message.hasOwnProperty("priority")) { + object.priority = message.priority; + if (options.oneofs) + object._priority = "priority"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + if (message.rolloutOperation != null && message.hasOwnProperty("rolloutOperation")) { + object.rolloutOperation = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.toObject(message.rolloutOperation, options); + if (options.oneofs) + object._rolloutOperation = "rolloutOperation"; + } + if (message.instanceSelectors && message.instanceSelectors.length) { + object.instanceSelectors = []; + for (var j = 0; j < message.instanceSelectors.length; ++j) + object.instanceSelectors[j] = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.toObject(message.instanceSelectors[j], options); + } + return object; + }; + + /** + * Converts this GlobalVmExtensionPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @instance + * @returns {Object.} JSON object + */ + GlobalVmExtensionPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalVmExtensionPolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalVmExtensionPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GlobalVmExtensionPolicy"; + }; + + /** + * ScopedResourceStatus enum. + * @name google.cloud.compute.v1beta.GlobalVmExtensionPolicy.ScopedResourceStatus + * @enum {number} + * @property {number} UNDEFINED_SCOPED_RESOURCE_STATUS=0 UNDEFINED_SCOPED_RESOURCE_STATUS value + * @property {number} SCOPED_RESOURCE_STATUS_DELETING=404198387 SCOPED_RESOURCE_STATUS_DELETING value + * @property {number} SCOPED_RESOURCE_STATUS_UNSPECIFIED=437941996 SCOPED_RESOURCE_STATUS_UNSPECIFIED value + */ + GlobalVmExtensionPolicy.ScopedResourceStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_SCOPED_RESOURCE_STATUS"] = 0; + values[valuesById[404198387] = "SCOPED_RESOURCE_STATUS_DELETING"] = 404198387; + values[valuesById[437941996] = "SCOPED_RESOURCE_STATUS_UNSPECIFIED"] = 437941996; + return values; + })(); + + return GlobalVmExtensionPolicy; + })(); + + v1beta.GlobalVmExtensionPolicyExtensionPolicy = (function() { + + /** + * Properties of a GlobalVmExtensionPolicyExtensionPolicy. + * @memberof google.cloud.compute.v1beta + * @interface IGlobalVmExtensionPolicyExtensionPolicy + * @property {string|null} [pinnedVersion] GlobalVmExtensionPolicyExtensionPolicy pinnedVersion + * @property {string|null} [stringConfig] GlobalVmExtensionPolicyExtensionPolicy stringConfig + */ + + /** + * Constructs a new GlobalVmExtensionPolicyExtensionPolicy. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicyExtensionPolicy. + * @implements IGlobalVmExtensionPolicyExtensionPolicy + * @constructor + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy=} [properties] Properties to set + */ + function GlobalVmExtensionPolicyExtensionPolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GlobalVmExtensionPolicyExtensionPolicy pinnedVersion. + * @member {string|null|undefined} pinnedVersion + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicyExtensionPolicy.prototype.pinnedVersion = null; + + /** + * GlobalVmExtensionPolicyExtensionPolicy stringConfig. + * @member {string|null|undefined} stringConfig + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @instance + */ + GlobalVmExtensionPolicyExtensionPolicy.prototype.stringConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyExtensionPolicy.prototype, "_pinnedVersion", { + get: $util.oneOfGetter($oneOfFields = ["pinnedVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyExtensionPolicy.prototype, "_stringConfig", { + get: $util.oneOfGetter($oneOfFields = ["stringConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GlobalVmExtensionPolicyExtensionPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy} GlobalVmExtensionPolicyExtensionPolicy instance + */ + GlobalVmExtensionPolicyExtensionPolicy.create = function create(properties) { + return new GlobalVmExtensionPolicyExtensionPolicy(properties); + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy} message GlobalVmExtensionPolicyExtensionPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyExtensionPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stringConfig != null && Object.hasOwnProperty.call(message, "stringConfig")) + writer.uint32(/* id 318905136, wireType 2 =*/2551241090).string(message.stringConfig); + if (message.pinnedVersion != null && Object.hasOwnProperty.call(message, "pinnedVersion")) + writer.uint32(/* id 446267249, wireType 2 =*/3570137994).string(message.pinnedVersion); + return writer; + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyExtensionPolicy} message GlobalVmExtensionPolicyExtensionPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyExtensionPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalVmExtensionPolicyExtensionPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy} GlobalVmExtensionPolicyExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyExtensionPolicy.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 446267249: { + message.pinnedVersion = reader.string(); + break; + } + case 318905136: { + message.stringConfig = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalVmExtensionPolicyExtensionPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy} GlobalVmExtensionPolicyExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyExtensionPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalVmExtensionPolicyExtensionPolicy message. + * @function verify + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalVmExtensionPolicyExtensionPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.pinnedVersion != null && message.hasOwnProperty("pinnedVersion")) { + properties._pinnedVersion = 1; + if (!$util.isString(message.pinnedVersion)) + return "pinnedVersion: string expected"; + } + if (message.stringConfig != null && message.hasOwnProperty("stringConfig")) { + properties._stringConfig = 1; + if (!$util.isString(message.stringConfig)) + return "stringConfig: string expected"; + } + return null; + }; + + /** + * Creates a GlobalVmExtensionPolicyExtensionPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy} GlobalVmExtensionPolicyExtensionPolicy + */ + GlobalVmExtensionPolicyExtensionPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy) + return object; + var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy(); + if (object.pinnedVersion != null) + message.pinnedVersion = String(object.pinnedVersion); + if (object.stringConfig != null) + message.stringConfig = String(object.stringConfig); + return message; + }; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyExtensionPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy} message GlobalVmExtensionPolicyExtensionPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalVmExtensionPolicyExtensionPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.stringConfig != null && message.hasOwnProperty("stringConfig")) { + object.stringConfig = message.stringConfig; + if (options.oneofs) + object._stringConfig = "stringConfig"; + } + if (message.pinnedVersion != null && message.hasOwnProperty("pinnedVersion")) { + object.pinnedVersion = message.pinnedVersion; + if (options.oneofs) + object._pinnedVersion = "pinnedVersion"; + } + return object; + }; + + /** + * Converts this GlobalVmExtensionPolicyExtensionPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @instance + * @returns {Object.} JSON object + */ + GlobalVmExtensionPolicyExtensionPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyExtensionPolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalVmExtensionPolicyExtensionPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GlobalVmExtensionPolicyExtensionPolicy"; + }; + + return GlobalVmExtensionPolicyExtensionPolicy; + })(); + + v1beta.GlobalVmExtensionPolicyInstanceSelector = (function() { + + /** + * Properties of a GlobalVmExtensionPolicyInstanceSelector. + * @memberof google.cloud.compute.v1beta + * @interface IGlobalVmExtensionPolicyInstanceSelector + * @property {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector|null} [labelSelector] GlobalVmExtensionPolicyInstanceSelector labelSelector + */ + + /** + * Constructs a new GlobalVmExtensionPolicyInstanceSelector. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicyInstanceSelector. + * @implements IGlobalVmExtensionPolicyInstanceSelector + * @constructor + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector=} [properties] Properties to set + */ + function GlobalVmExtensionPolicyInstanceSelector(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GlobalVmExtensionPolicyInstanceSelector labelSelector. + * @member {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector|null|undefined} labelSelector + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @instance + */ + GlobalVmExtensionPolicyInstanceSelector.prototype.labelSelector = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyInstanceSelector.prototype, "_labelSelector", { + get: $util.oneOfGetter($oneOfFields = ["labelSelector"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GlobalVmExtensionPolicyInstanceSelector instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector} GlobalVmExtensionPolicyInstanceSelector instance + */ + GlobalVmExtensionPolicyInstanceSelector.create = function create(properties) { + return new GlobalVmExtensionPolicyInstanceSelector(properties); + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyInstanceSelector message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector} message GlobalVmExtensionPolicyInstanceSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyInstanceSelector.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.labelSelector != null && Object.hasOwnProperty.call(message, "labelSelector")) + $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.encode(message.labelSelector, writer.uint32(/* id 349780170, wireType 2 =*/2798241362).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyInstanceSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyInstanceSelector} message GlobalVmExtensionPolicyInstanceSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyInstanceSelector.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalVmExtensionPolicyInstanceSelector message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector} GlobalVmExtensionPolicyInstanceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyInstanceSelector.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 349780170: { + message.labelSelector = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalVmExtensionPolicyInstanceSelector message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector} GlobalVmExtensionPolicyInstanceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyInstanceSelector.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalVmExtensionPolicyInstanceSelector message. + * @function verify + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalVmExtensionPolicyInstanceSelector.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.labelSelector != null && message.hasOwnProperty("labelSelector")) { + properties._labelSelector = 1; + { + var error = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.verify(message.labelSelector); + if (error) + return "labelSelector." + error; + } + } + return null; + }; + + /** + * Creates a GlobalVmExtensionPolicyInstanceSelector message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector} GlobalVmExtensionPolicyInstanceSelector + */ + GlobalVmExtensionPolicyInstanceSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector) + return object; + var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector(); + if (object.labelSelector != null) { + if (typeof object.labelSelector !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector.labelSelector: object expected"); + message.labelSelector = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.fromObject(object.labelSelector); + } + return message; + }; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyInstanceSelector message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector} message GlobalVmExtensionPolicyInstanceSelector + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalVmExtensionPolicyInstanceSelector.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.labelSelector != null && message.hasOwnProperty("labelSelector")) { + object.labelSelector = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.toObject(message.labelSelector, options); + if (options.oneofs) + object._labelSelector = "labelSelector"; + } + return object; + }; + + /** + * Converts this GlobalVmExtensionPolicyInstanceSelector to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @instance + * @returns {Object.} JSON object + */ + GlobalVmExtensionPolicyInstanceSelector.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyInstanceSelector + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalVmExtensionPolicyInstanceSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GlobalVmExtensionPolicyInstanceSelector"; + }; + + return GlobalVmExtensionPolicyInstanceSelector; + })(); + + v1beta.GlobalVmExtensionPolicyLabelSelector = (function() { + + /** + * Properties of a GlobalVmExtensionPolicyLabelSelector. + * @memberof google.cloud.compute.v1beta + * @interface IGlobalVmExtensionPolicyLabelSelector + * @property {Object.|null} [inclusionLabels] GlobalVmExtensionPolicyLabelSelector inclusionLabels + */ + + /** + * Constructs a new GlobalVmExtensionPolicyLabelSelector. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicyLabelSelector. + * @implements IGlobalVmExtensionPolicyLabelSelector + * @constructor + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector=} [properties] Properties to set + */ + function GlobalVmExtensionPolicyLabelSelector(properties) { + this.inclusionLabels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GlobalVmExtensionPolicyLabelSelector inclusionLabels. + * @member {Object.} inclusionLabels + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @instance + */ + GlobalVmExtensionPolicyLabelSelector.prototype.inclusionLabels = $util.emptyObject; + + /** + * Creates a new GlobalVmExtensionPolicyLabelSelector instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector} GlobalVmExtensionPolicyLabelSelector instance + */ + GlobalVmExtensionPolicyLabelSelector.create = function create(properties) { + return new GlobalVmExtensionPolicyLabelSelector(properties); + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyLabelSelector message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector} message GlobalVmExtensionPolicyLabelSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyLabelSelector.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inclusionLabels != null && Object.hasOwnProperty.call(message, "inclusionLabels")) + for (var keys = Object.keys(message.inclusionLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 501312642, wireType 2 =*/4010501138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.inclusionLabels[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyLabelSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyLabelSelector} message GlobalVmExtensionPolicyLabelSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyLabelSelector.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalVmExtensionPolicyLabelSelector message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector} GlobalVmExtensionPolicyLabelSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyLabelSelector.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 501312642: { + if (message.inclusionLabels === $util.emptyObject) + message.inclusionLabels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inclusionLabels[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalVmExtensionPolicyLabelSelector message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector} GlobalVmExtensionPolicyLabelSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyLabelSelector.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalVmExtensionPolicyLabelSelector message. + * @function verify + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalVmExtensionPolicyLabelSelector.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inclusionLabels != null && message.hasOwnProperty("inclusionLabels")) { + if (!$util.isObject(message.inclusionLabels)) + return "inclusionLabels: object expected"; + var key = Object.keys(message.inclusionLabels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.inclusionLabels[key[i]])) + return "inclusionLabels: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a GlobalVmExtensionPolicyLabelSelector message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector} GlobalVmExtensionPolicyLabelSelector + */ + GlobalVmExtensionPolicyLabelSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector) + return object; + var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector(); + if (object.inclusionLabels) { + if (typeof object.inclusionLabels !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector.inclusionLabels: object expected"); + message.inclusionLabels = {}; + for (var keys = Object.keys(object.inclusionLabels), i = 0; i < keys.length; ++i) + message.inclusionLabels[keys[i]] = String(object.inclusionLabels[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyLabelSelector message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector} message GlobalVmExtensionPolicyLabelSelector + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalVmExtensionPolicyLabelSelector.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.inclusionLabels = {}; + var keys2; + if (message.inclusionLabels && (keys2 = Object.keys(message.inclusionLabels)).length) { + object.inclusionLabels = {}; + for (var j = 0; j < keys2.length; ++j) + object.inclusionLabels[keys2[j]] = message.inclusionLabels[keys2[j]]; + } + return object; + }; + + /** + * Converts this GlobalVmExtensionPolicyLabelSelector to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @instance + * @returns {Object.} JSON object + */ + GlobalVmExtensionPolicyLabelSelector.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyLabelSelector + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalVmExtensionPolicyLabelSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GlobalVmExtensionPolicyLabelSelector"; + }; + + return GlobalVmExtensionPolicyLabelSelector; + })(); + + v1beta.GlobalVmExtensionPolicyRolloutOperation = (function() { + + /** + * Properties of a GlobalVmExtensionPolicyRolloutOperation. + * @memberof google.cloud.compute.v1beta + * @interface IGlobalVmExtensionPolicyRolloutOperation + * @property {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput|null} [rolloutInput] GlobalVmExtensionPolicyRolloutOperation rolloutInput + * @property {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus|null} [rolloutStatus] GlobalVmExtensionPolicyRolloutOperation rolloutStatus + */ + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperation. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicyRolloutOperation. + * @implements IGlobalVmExtensionPolicyRolloutOperation + * @constructor + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation=} [properties] Properties to set + */ + function GlobalVmExtensionPolicyRolloutOperation(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GlobalVmExtensionPolicyRolloutOperation rolloutInput. + * @member {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput|null|undefined} rolloutInput + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @instance + */ + GlobalVmExtensionPolicyRolloutOperation.prototype.rolloutInput = null; + + /** + * GlobalVmExtensionPolicyRolloutOperation rolloutStatus. + * @member {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus|null|undefined} rolloutStatus + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @instance + */ + GlobalVmExtensionPolicyRolloutOperation.prototype.rolloutStatus = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperation.prototype, "_rolloutInput", { + get: $util.oneOfGetter($oneOfFields = ["rolloutInput"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperation.prototype, "_rolloutStatus", { + get: $util.oneOfGetter($oneOfFields = ["rolloutStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperation instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation} GlobalVmExtensionPolicyRolloutOperation instance + */ + GlobalVmExtensionPolicyRolloutOperation.create = function create(properties) { + return new GlobalVmExtensionPolicyRolloutOperation(properties); + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperation message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation} message GlobalVmExtensionPolicyRolloutOperation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rolloutInput != null && Object.hasOwnProperty.call(message, "rolloutInput")) + $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.encode(message.rolloutInput, writer.uint32(/* id 265745340, wireType 2 =*/2125962722).fork()).ldelim(); + if (message.rolloutStatus != null && Object.hasOwnProperty.call(message, "rolloutStatus")) + $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.encode(message.rolloutStatus, writer.uint32(/* id 476426816, wireType 2 =*/3811414530).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperation message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperation} message GlobalVmExtensionPolicyRolloutOperation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation} GlobalVmExtensionPolicyRolloutOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperation.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 265745340: { + message.rolloutInput = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.decode(reader, reader.uint32()); + break; + } + case 476426816: { + message.rolloutStatus = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation} GlobalVmExtensionPolicyRolloutOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperation message. + * @function verify + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalVmExtensionPolicyRolloutOperation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.rolloutInput != null && message.hasOwnProperty("rolloutInput")) { + properties._rolloutInput = 1; + { + var error = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.verify(message.rolloutInput); + if (error) + return "rolloutInput." + error; + } + } + if (message.rolloutStatus != null && message.hasOwnProperty("rolloutStatus")) { + properties._rolloutStatus = 1; + { + var error = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.verify(message.rolloutStatus); + if (error) + return "rolloutStatus." + error; + } + } + return null; + }; + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation} GlobalVmExtensionPolicyRolloutOperation + */ + GlobalVmExtensionPolicyRolloutOperation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation) + return object; + var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation(); + if (object.rolloutInput != null) { + if (typeof object.rolloutInput !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.rolloutInput: object expected"); + message.rolloutInput = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.fromObject(object.rolloutInput); + } + if (object.rolloutStatus != null) { + if (typeof object.rolloutStatus !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation.rolloutStatus: object expected"); + message.rolloutStatus = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.fromObject(object.rolloutStatus); + } + return message; + }; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @static + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation} message GlobalVmExtensionPolicyRolloutOperation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalVmExtensionPolicyRolloutOperation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.rolloutInput != null && message.hasOwnProperty("rolloutInput")) { + object.rolloutInput = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.toObject(message.rolloutInput, options); + if (options.oneofs) + object._rolloutInput = "rolloutInput"; + } + if (message.rolloutStatus != null && message.hasOwnProperty("rolloutStatus")) { + object.rolloutStatus = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.toObject(message.rolloutStatus, options); + if (options.oneofs) + object._rolloutStatus = "rolloutStatus"; + } + return object; + }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperation to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @instance + * @returns {Object.} JSON object + */ + GlobalVmExtensionPolicyRolloutOperation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperation + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalVmExtensionPolicyRolloutOperation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperation"; + }; + + return GlobalVmExtensionPolicyRolloutOperation; + })(); + + v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput = (function() { + + /** + * Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutInput. + * @memberof google.cloud.compute.v1beta + * @interface IGlobalVmExtensionPolicyRolloutOperationRolloutInput + * @property {string|null} [conflictBehavior] GlobalVmExtensionPolicyRolloutOperationRolloutInput conflictBehavior + * @property {string|null} [name] GlobalVmExtensionPolicyRolloutOperationRolloutInput name + * @property {string|null} [predefinedRolloutPlan] GlobalVmExtensionPolicyRolloutOperationRolloutInput predefinedRolloutPlan + * @property {string|null} [retryUuid] GlobalVmExtensionPolicyRolloutOperationRolloutInput retryUuid + */ + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperationRolloutInput. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicyRolloutOperationRolloutInput. + * @implements IGlobalVmExtensionPolicyRolloutOperationRolloutInput + * @constructor + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput=} [properties] Properties to set + */ + function GlobalVmExtensionPolicyRolloutOperationRolloutInput(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutInput conflictBehavior. + * @member {string|null|undefined} conflictBehavior + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.prototype.conflictBehavior = null; + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutInput name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.prototype.name = null; + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutInput predefinedRolloutPlan. + * @member {string|null|undefined} predefinedRolloutPlan + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.prototype.predefinedRolloutPlan = null; + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutInput retryUuid. + * @member {string|null|undefined} retryUuid + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.prototype.retryUuid = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperationRolloutInput.prototype, "_conflictBehavior", { + get: $util.oneOfGetter($oneOfFields = ["conflictBehavior"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperationRolloutInput.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperationRolloutInput.prototype, "_predefinedRolloutPlan", { + get: $util.oneOfGetter($oneOfFields = ["predefinedRolloutPlan"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperationRolloutInput.prototype, "_retryUuid", { + get: $util.oneOfGetter($oneOfFields = ["retryUuid"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperationRolloutInput instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput} GlobalVmExtensionPolicyRolloutOperationRolloutInput instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.create = function create(properties) { + return new GlobalVmExtensionPolicyRolloutOperationRolloutInput(properties); + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutInput message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput} message GlobalVmExtensionPolicyRolloutOperationRolloutInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.conflictBehavior != null && Object.hasOwnProperty.call(message, "conflictBehavior")) + writer.uint32(/* id 115729439, wireType 2 =*/925835514).string(message.conflictBehavior); + if (message.predefinedRolloutPlan != null && Object.hasOwnProperty.call(message, "predefinedRolloutPlan")) + writer.uint32(/* id 364023440, wireType 2 =*/2912187522).string(message.predefinedRolloutPlan); + if (message.retryUuid != null && Object.hasOwnProperty.call(message, "retryUuid")) + writer.uint32(/* id 472838898, wireType 2 =*/3782711186).string(message.retryUuid); + return writer; + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutInput message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutInput} message GlobalVmExtensionPolicyRolloutOperationRolloutInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput} GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 115729439: { + message.conflictBehavior = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 364023440: { + message.predefinedRolloutPlan = reader.string(); + break; + } + case 472838898: { + message.retryUuid = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput} GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperationRolloutInput message. + * @function verify + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.conflictBehavior != null && message.hasOwnProperty("conflictBehavior")) { + properties._conflictBehavior = 1; + if (!$util.isString(message.conflictBehavior)) + return "conflictBehavior: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.predefinedRolloutPlan != null && message.hasOwnProperty("predefinedRolloutPlan")) { + properties._predefinedRolloutPlan = 1; + if (!$util.isString(message.predefinedRolloutPlan)) + return "predefinedRolloutPlan: string expected"; + } + if (message.retryUuid != null && message.hasOwnProperty("retryUuid")) { + properties._retryUuid = 1; + if (!$util.isString(message.retryUuid)) + return "retryUuid: string expected"; + } + return null; + }; + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperationRolloutInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput} GlobalVmExtensionPolicyRolloutOperationRolloutInput + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput) + return object; + var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput(); + if (object.conflictBehavior != null) + message.conflictBehavior = String(object.conflictBehavior); + if (object.name != null) + message.name = String(object.name); + if (object.predefinedRolloutPlan != null) + message.predefinedRolloutPlan = String(object.predefinedRolloutPlan); + if (object.retryUuid != null) + message.retryUuid = String(object.retryUuid); + return message; + }; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperationRolloutInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @static + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput} message GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.conflictBehavior != null && message.hasOwnProperty("conflictBehavior")) { + object.conflictBehavior = message.conflictBehavior; + if (options.oneofs) + object._conflictBehavior = "conflictBehavior"; + } + if (message.predefinedRolloutPlan != null && message.hasOwnProperty("predefinedRolloutPlan")) { + object.predefinedRolloutPlan = message.predefinedRolloutPlan; + if (options.oneofs) + object._predefinedRolloutPlan = "predefinedRolloutPlan"; + } + if (message.retryUuid != null && message.hasOwnProperty("retryUuid")) { + object.retryUuid = message.retryUuid; + if (options.oneofs) + object._retryUuid = "retryUuid"; + } + return object; + }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperationRolloutInput to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @instance + * @returns {Object.} JSON object + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput"; + }; + + /** + * PredefinedRolloutPlan enum. + * @name google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput.PredefinedRolloutPlan + * @enum {number} + * @property {number} UNDEFINED_PREDEFINED_ROLLOUT_PLAN=0 UNDEFINED_PREDEFINED_ROLLOUT_PLAN value + * @property {number} FAST_ROLLOUT=207153326 FAST_ROLLOUT value + * @property {number} ROLLOUT_PLAN_UNSPECIFIED=144511983 ROLLOUT_PLAN_UNSPECIFIED value + * @property {number} SLOW_ROLLOUT=31032659 SLOW_ROLLOUT value + */ + GlobalVmExtensionPolicyRolloutOperationRolloutInput.PredefinedRolloutPlan = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_PREDEFINED_ROLLOUT_PLAN"] = 0; + values[valuesById[207153326] = "FAST_ROLLOUT"] = 207153326; + values[valuesById[144511983] = "ROLLOUT_PLAN_UNSPECIFIED"] = 144511983; + values[valuesById[31032659] = "SLOW_ROLLOUT"] = 31032659; + return values; + })(); + + return GlobalVmExtensionPolicyRolloutOperationRolloutInput; + })(); + + v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus = (function() { + + /** + * Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutStatus. + * @memberof google.cloud.compute.v1beta + * @interface IGlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @property {Array.|null} [currentRollouts] GlobalVmExtensionPolicyRolloutOperationRolloutStatus currentRollouts + * @property {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata|null} [previousRollout] GlobalVmExtensionPolicyRolloutOperationRolloutStatus previousRollout + */ + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperationRolloutStatus. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicyRolloutOperationRolloutStatus. + * @implements IGlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @constructor + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus=} [properties] Properties to set + */ + function GlobalVmExtensionPolicyRolloutOperationRolloutStatus(properties) { + this.currentRollouts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutStatus currentRollouts. + * @member {Array.} currentRollouts + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.prototype.currentRollouts = $util.emptyArray; + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutStatus previousRollout. + * @member {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata|null|undefined} previousRollout + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.prototype.previousRollout = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperationRolloutStatus.prototype, "_previousRollout", { + get: $util.oneOfGetter($oneOfFields = ["previousRollout"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperationRolloutStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus} GlobalVmExtensionPolicyRolloutOperationRolloutStatus instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.create = function create(properties) { + return new GlobalVmExtensionPolicyRolloutOperationRolloutStatus(properties); + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatus message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus} message GlobalVmExtensionPolicyRolloutOperationRolloutStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.currentRollouts != null && message.currentRollouts.length) + for (var i = 0; i < message.currentRollouts.length; ++i) + $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.encode(message.currentRollouts[i], writer.uint32(/* id 39829736, wireType 2 =*/318637890).fork()).ldelim(); + if (message.previousRollout != null && Object.hasOwnProperty.call(message, "previousRollout")) + $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.encode(message.previousRollout, writer.uint32(/* id 375749737, wireType 2 =*/3005997898).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatus} message GlobalVmExtensionPolicyRolloutOperationRolloutStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus} GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 39829736: { + if (!(message.currentRollouts && message.currentRollouts.length)) + message.currentRollouts = []; + message.currentRollouts.push($root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.decode(reader, reader.uint32())); + break; + } + case 375749737: { + message.previousRollout = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus} GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message. + * @function verify + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.currentRollouts != null && message.hasOwnProperty("currentRollouts")) { + if (!Array.isArray(message.currentRollouts)) + return "currentRollouts: array expected"; + for (var i = 0; i < message.currentRollouts.length; ++i) { + var error = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.verify(message.currentRollouts[i]); + if (error) + return "currentRollouts." + error; + } + } + if (message.previousRollout != null && message.hasOwnProperty("previousRollout")) { + properties._previousRollout = 1; + { + var error = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.verify(message.previousRollout); + if (error) + return "previousRollout." + error; + } + } + return null; + }; + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus} GlobalVmExtensionPolicyRolloutOperationRolloutStatus + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus) + return object; + var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus(); + if (object.currentRollouts) { + if (!Array.isArray(object.currentRollouts)) + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.currentRollouts: array expected"); + message.currentRollouts = []; + for (var i = 0; i < object.currentRollouts.length; ++i) { + if (typeof object.currentRollouts[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.currentRollouts: object expected"); + message.currentRollouts[i] = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.fromObject(object.currentRollouts[i]); + } + } + if (object.previousRollout != null) { + if (typeof object.previousRollout !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus.previousRollout: object expected"); + message.previousRollout = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.fromObject(object.previousRollout); + } + return message; + }; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperationRolloutStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @static + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus} message GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.currentRollouts = []; + if (message.currentRollouts && message.currentRollouts.length) { + object.currentRollouts = []; + for (var j = 0; j < message.currentRollouts.length; ++j) + object.currentRollouts[j] = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.toObject(message.currentRollouts[j], options); + } + if (message.previousRollout != null && message.hasOwnProperty("previousRollout")) { + object.previousRollout = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.toObject(message.previousRollout, options); + if (options.oneofs) + object._previousRollout = "previousRollout"; + } + return object; + }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperationRolloutStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @instance + * @returns {Object.} JSON object + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatus"; + }; + + return GlobalVmExtensionPolicyRolloutOperationRolloutStatus; + })(); + + v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata = (function() { + + /** + * Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. + * @memberof google.cloud.compute.v1beta + * @interface IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @property {string|null} [rollout] GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rollout + * @property {string|null} [rolloutPlan] GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rolloutPlan + * @property {string|null} [state] GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata state + */ + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. + * @implements IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @constructor + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata=} [properties] Properties to set + */ + function GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rollout. + * @member {string|null|undefined} rollout + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.prototype.rollout = null; + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rolloutPlan. + * @member {string|null|undefined} rolloutPlan + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.prototype.rolloutPlan = null; + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.prototype.state = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.prototype, "_rollout", { + get: $util.oneOfGetter($oneOfFields = ["rollout"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.prototype, "_rolloutPlan", { + get: $util.oneOfGetter($oneOfFields = ["rolloutPlan"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata} GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.create = function create(properties) { + return new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata(properties); + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata} message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); + if (message.rollout != null && Object.hasOwnProperty.call(message, "rollout")) + writer.uint32(/* id 303366577, wireType 2 =*/2426932618).string(message.rollout); + if (message.rolloutPlan != null && Object.hasOwnProperty.call(message, "rolloutPlan")) + writer.uint32(/* id 459057399, wireType 2 =*/3672459194).string(message.rolloutPlan); + return writer; + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata} message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata} GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 303366577: { + message.rollout = reader.string(); + break; + } + case 459057399: { + message.rolloutPlan = reader.string(); + break; + } + case 109757585: { + message.state = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata} GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message. + * @function verify + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.rollout != null && message.hasOwnProperty("rollout")) { + properties._rollout = 1; + if (!$util.isString(message.rollout)) + return "rollout: string expected"; + } + if (message.rolloutPlan != null && message.hasOwnProperty("rolloutPlan")) { + properties._rolloutPlan = 1; + if (!$util.isString(message.rolloutPlan)) + return "rolloutPlan: string expected"; + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } + return null; + }; + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata} GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata) + return object; + var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata(); + if (object.rollout != null) + message.rollout = String(object.rollout); + if (object.rolloutPlan != null) + message.rolloutPlan = String(object.rolloutPlan); + if (object.state != null) + message.state = String(object.state); + return message; + }; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @static + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata} message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.state != null && message.hasOwnProperty("state")) { + object.state = message.state; + if (options.oneofs) + object._state = "state"; + } + if (message.rollout != null && message.hasOwnProperty("rollout")) { + object.rollout = message.rollout; + if (options.oneofs) + object._rollout = "rollout"; + } + if (message.rolloutPlan != null && message.hasOwnProperty("rolloutPlan")) { + object.rolloutPlan = message.rolloutPlan; + if (options.oneofs) + object._rolloutPlan = "rolloutPlan"; + } + return object; + }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @instance + * @returns {Object.} JSON object + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} STATE_CANCELLED=534636259 STATE_CANCELLED value + * @property {number} STATE_COMPLETED=265728989 STATE_COMPLETED value + * @property {number} STATE_FAILED=50857931 STATE_FAILED value + * @property {number} STATE_PAUSED=337513660 STATE_PAUSED value + * @property {number} STATE_PROCESSING=74195873 STATE_PROCESSING value + * @property {number} STATE_UNKNOWN=230861404 STATE_UNKNOWN value + * @property {number} STATE_UNSPECIFIED=470755401 STATE_UNSPECIFIED value + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[534636259] = "STATE_CANCELLED"] = 534636259; + values[valuesById[265728989] = "STATE_COMPLETED"] = 265728989; + values[valuesById[50857931] = "STATE_FAILED"] = 50857931; + values[valuesById[337513660] = "STATE_PAUSED"] = 337513660; + values[valuesById[74195873] = "STATE_PROCESSING"] = 74195873; + values[valuesById[230861404] = "STATE_UNKNOWN"] = 230861404; + values[valuesById[470755401] = "STATE_UNSPECIFIED"] = 470755401; + return values; + })(); + + return GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata; + })(); + v1beta.GroupMaintenanceInfo = (function() { /** @@ -815130,41 +826428,491 @@ }; /** - * Converts this HTTPHealthCheck to JSON. + * Converts this HTTPHealthCheck to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.HTTPHealthCheck + * @instance + * @returns {Object.} JSON object + */ + HTTPHealthCheck.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HTTPHealthCheck + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.HTTPHealthCheck + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HTTPHealthCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.HTTPHealthCheck"; + }; + + /** + * PortSpecification enum. + * @name google.cloud.compute.v1beta.HTTPHealthCheck.PortSpecification + * @enum {number} + * @property {number} UNDEFINED_PORT_SPECIFICATION=0 UNDEFINED_PORT_SPECIFICATION value + * @property {number} USE_FIXED_PORT=190235748 USE_FIXED_PORT value + * @property {number} USE_NAMED_PORT=349300671 USE_NAMED_PORT value + * @property {number} USE_SERVING_PORT=362637516 USE_SERVING_PORT value + */ + HTTPHealthCheck.PortSpecification = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_PORT_SPECIFICATION"] = 0; + values[valuesById[190235748] = "USE_FIXED_PORT"] = 190235748; + values[valuesById[349300671] = "USE_NAMED_PORT"] = 349300671; + values[valuesById[362637516] = "USE_SERVING_PORT"] = 362637516; + return values; + })(); + + /** + * ProxyHeader enum. + * @name google.cloud.compute.v1beta.HTTPHealthCheck.ProxyHeader + * @enum {number} + * @property {number} UNDEFINED_PROXY_HEADER=0 UNDEFINED_PROXY_HEADER value + * @property {number} NONE=2402104 NONE value + * @property {number} PROXY_V1=334352940 PROXY_V1 value + */ + HTTPHealthCheck.ProxyHeader = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_PROXY_HEADER"] = 0; + values[valuesById[2402104] = "NONE"] = 2402104; + values[valuesById[334352940] = "PROXY_V1"] = 334352940; + return values; + })(); + + return HTTPHealthCheck; + })(); + + v1beta.HTTPSHealthCheck = (function() { + + /** + * Properties of a HTTPSHealthCheck. + * @memberof google.cloud.compute.v1beta + * @interface IHTTPSHealthCheck + * @property {string|null} [host] HTTPSHealthCheck host + * @property {number|null} [port] HTTPSHealthCheck port + * @property {string|null} [portName] HTTPSHealthCheck portName + * @property {string|null} [portSpecification] HTTPSHealthCheck portSpecification + * @property {string|null} [proxyHeader] HTTPSHealthCheck proxyHeader + * @property {string|null} [requestPath] HTTPSHealthCheck requestPath + * @property {string|null} [response] HTTPSHealthCheck response + */ + + /** + * Constructs a new HTTPSHealthCheck. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a HTTPSHealthCheck. + * @implements IHTTPSHealthCheck + * @constructor + * @param {google.cloud.compute.v1beta.IHTTPSHealthCheck=} [properties] Properties to set + */ + function HTTPSHealthCheck(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HTTPSHealthCheck host. + * @member {string|null|undefined} host + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @instance + */ + HTTPSHealthCheck.prototype.host = null; + + /** + * HTTPSHealthCheck port. + * @member {number|null|undefined} port + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @instance + */ + HTTPSHealthCheck.prototype.port = null; + + /** + * HTTPSHealthCheck portName. + * @member {string|null|undefined} portName + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @instance + */ + HTTPSHealthCheck.prototype.portName = null; + + /** + * HTTPSHealthCheck portSpecification. + * @member {string|null|undefined} portSpecification + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @instance + */ + HTTPSHealthCheck.prototype.portSpecification = null; + + /** + * HTTPSHealthCheck proxyHeader. + * @member {string|null|undefined} proxyHeader + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @instance + */ + HTTPSHealthCheck.prototype.proxyHeader = null; + + /** + * HTTPSHealthCheck requestPath. + * @member {string|null|undefined} requestPath + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @instance + */ + HTTPSHealthCheck.prototype.requestPath = null; + + /** + * HTTPSHealthCheck response. + * @member {string|null|undefined} response + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @instance + */ + HTTPSHealthCheck.prototype.response = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HTTPSHealthCheck.prototype, "_host", { + get: $util.oneOfGetter($oneOfFields = ["host"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HTTPSHealthCheck.prototype, "_port", { + get: $util.oneOfGetter($oneOfFields = ["port"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HTTPSHealthCheck.prototype, "_portName", { + get: $util.oneOfGetter($oneOfFields = ["portName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HTTPSHealthCheck.prototype, "_portSpecification", { + get: $util.oneOfGetter($oneOfFields = ["portSpecification"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HTTPSHealthCheck.prototype, "_proxyHeader", { + get: $util.oneOfGetter($oneOfFields = ["proxyHeader"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HTTPSHealthCheck.prototype, "_requestPath", { + get: $util.oneOfGetter($oneOfFields = ["requestPath"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HTTPSHealthCheck.prototype, "_response", { + get: $util.oneOfGetter($oneOfFields = ["response"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HTTPSHealthCheck instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @static + * @param {google.cloud.compute.v1beta.IHTTPSHealthCheck=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HTTPSHealthCheck} HTTPSHealthCheck instance + */ + HTTPSHealthCheck.create = function create(properties) { + return new HTTPSHealthCheck(properties); + }; + + /** + * Encodes the specified HTTPSHealthCheck message. Does not implicitly {@link google.cloud.compute.v1beta.HTTPSHealthCheck.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @static + * @param {google.cloud.compute.v1beta.IHTTPSHealthCheck} message HTTPSHealthCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HTTPSHealthCheck.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.host != null && Object.hasOwnProperty.call(message, "host")) + writer.uint32(/* id 3208616, wireType 2 =*/25668930).string(message.host); + if (message.port != null && Object.hasOwnProperty.call(message, "port")) + writer.uint32(/* id 3446913, wireType 0 =*/27575304).int32(message.port); + if (message.portName != null && Object.hasOwnProperty.call(message, "portName")) + writer.uint32(/* id 41534345, wireType 2 =*/332274762).string(message.portName); + if (message.portSpecification != null && Object.hasOwnProperty.call(message, "portSpecification")) + writer.uint32(/* id 51590597, wireType 2 =*/412724778).string(message.portSpecification); + if (message.proxyHeader != null && Object.hasOwnProperty.call(message, "proxyHeader")) + writer.uint32(/* id 160374142, wireType 2 =*/1282993138).string(message.proxyHeader); + if (message.response != null && Object.hasOwnProperty.call(message, "response")) + writer.uint32(/* id 196547649, wireType 2 =*/1572381194).string(message.response); + if (message.requestPath != null && Object.hasOwnProperty.call(message, "requestPath")) + writer.uint32(/* id 229403605, wireType 2 =*/1835228842).string(message.requestPath); + return writer; + }; + + /** + * Encodes the specified HTTPSHealthCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HTTPSHealthCheck.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @static + * @param {google.cloud.compute.v1beta.IHTTPSHealthCheck} message HTTPSHealthCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HTTPSHealthCheck.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HTTPSHealthCheck message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.HTTPSHealthCheck} HTTPSHealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HTTPSHealthCheck.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.HTTPSHealthCheck(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3208616: { + message.host = reader.string(); + break; + } + case 3446913: { + message.port = reader.int32(); + break; + } + case 41534345: { + message.portName = reader.string(); + break; + } + case 51590597: { + message.portSpecification = reader.string(); + break; + } + case 160374142: { + message.proxyHeader = reader.string(); + break; + } + case 229403605: { + message.requestPath = reader.string(); + break; + } + case 196547649: { + message.response = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HTTPSHealthCheck message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.HTTPSHealthCheck} HTTPSHealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HTTPSHealthCheck.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HTTPSHealthCheck message. + * @function verify + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HTTPSHealthCheck.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.host != null && message.hasOwnProperty("host")) { + properties._host = 1; + if (!$util.isString(message.host)) + return "host: string expected"; + } + if (message.port != null && message.hasOwnProperty("port")) { + properties._port = 1; + if (!$util.isInteger(message.port)) + return "port: integer expected"; + } + if (message.portName != null && message.hasOwnProperty("portName")) { + properties._portName = 1; + if (!$util.isString(message.portName)) + return "portName: string expected"; + } + if (message.portSpecification != null && message.hasOwnProperty("portSpecification")) { + properties._portSpecification = 1; + if (!$util.isString(message.portSpecification)) + return "portSpecification: string expected"; + } + if (message.proxyHeader != null && message.hasOwnProperty("proxyHeader")) { + properties._proxyHeader = 1; + if (!$util.isString(message.proxyHeader)) + return "proxyHeader: string expected"; + } + if (message.requestPath != null && message.hasOwnProperty("requestPath")) { + properties._requestPath = 1; + if (!$util.isString(message.requestPath)) + return "requestPath: string expected"; + } + if (message.response != null && message.hasOwnProperty("response")) { + properties._response = 1; + if (!$util.isString(message.response)) + return "response: string expected"; + } + return null; + }; + + /** + * Creates a HTTPSHealthCheck message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.HTTPSHealthCheck} HTTPSHealthCheck + */ + HTTPSHealthCheck.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HTTPSHealthCheck) + return object; + var message = new $root.google.cloud.compute.v1beta.HTTPSHealthCheck(); + if (object.host != null) + message.host = String(object.host); + if (object.port != null) + message.port = object.port | 0; + if (object.portName != null) + message.portName = String(object.portName); + if (object.portSpecification != null) + message.portSpecification = String(object.portSpecification); + if (object.proxyHeader != null) + message.proxyHeader = String(object.proxyHeader); + if (object.requestPath != null) + message.requestPath = String(object.requestPath); + if (object.response != null) + message.response = String(object.response); + return message; + }; + + /** + * Creates a plain object from a HTTPSHealthCheck message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @static + * @param {google.cloud.compute.v1beta.HTTPSHealthCheck} message HTTPSHealthCheck + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HTTPSHealthCheck.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.host != null && message.hasOwnProperty("host")) { + object.host = message.host; + if (options.oneofs) + object._host = "host"; + } + if (message.port != null && message.hasOwnProperty("port")) { + object.port = message.port; + if (options.oneofs) + object._port = "port"; + } + if (message.portName != null && message.hasOwnProperty("portName")) { + object.portName = message.portName; + if (options.oneofs) + object._portName = "portName"; + } + if (message.portSpecification != null && message.hasOwnProperty("portSpecification")) { + object.portSpecification = message.portSpecification; + if (options.oneofs) + object._portSpecification = "portSpecification"; + } + if (message.proxyHeader != null && message.hasOwnProperty("proxyHeader")) { + object.proxyHeader = message.proxyHeader; + if (options.oneofs) + object._proxyHeader = "proxyHeader"; + } + if (message.response != null && message.hasOwnProperty("response")) { + object.response = message.response; + if (options.oneofs) + object._response = "response"; + } + if (message.requestPath != null && message.hasOwnProperty("requestPath")) { + object.requestPath = message.requestPath; + if (options.oneofs) + object._requestPath = "requestPath"; + } + return object; + }; + + /** + * Converts this HTTPSHealthCheck to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.HTTPHealthCheck + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck * @instance * @returns {Object.} JSON object */ - HTTPHealthCheck.prototype.toJSON = function toJSON() { + HTTPSHealthCheck.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HTTPHealthCheck + * Gets the default type url for HTTPSHealthCheck * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.HTTPHealthCheck + * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HTTPHealthCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HTTPSHealthCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.HTTPHealthCheck"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.HTTPSHealthCheck"; }; /** * PortSpecification enum. - * @name google.cloud.compute.v1beta.HTTPHealthCheck.PortSpecification + * @name google.cloud.compute.v1beta.HTTPSHealthCheck.PortSpecification * @enum {number} * @property {number} UNDEFINED_PORT_SPECIFICATION=0 UNDEFINED_PORT_SPECIFICATION value * @property {number} USE_FIXED_PORT=190235748 USE_FIXED_PORT value * @property {number} USE_NAMED_PORT=349300671 USE_NAMED_PORT value * @property {number} USE_SERVING_PORT=362637516 USE_SERVING_PORT value */ - HTTPHealthCheck.PortSpecification = (function() { + HTTPSHealthCheck.PortSpecification = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_PORT_SPECIFICATION"] = 0; values[valuesById[190235748] = "USE_FIXED_PORT"] = 190235748; @@ -815175,13 +826923,13 @@ /** * ProxyHeader enum. - * @name google.cloud.compute.v1beta.HTTPHealthCheck.ProxyHeader + * @name google.cloud.compute.v1beta.HTTPSHealthCheck.ProxyHeader * @enum {number} * @property {number} UNDEFINED_PROXY_HEADER=0 UNDEFINED_PROXY_HEADER value * @property {number} NONE=2402104 NONE value * @property {number} PROXY_V1=334352940 PROXY_V1 value */ - HTTPHealthCheck.ProxyHeader = (function() { + HTTPSHealthCheck.ProxyHeader = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_PROXY_HEADER"] = 0; values[valuesById[2402104] = "NONE"] = 2402104; @@ -815189,33 +826937,29 @@ return values; })(); - return HTTPHealthCheck; + return HTTPSHealthCheck; })(); - v1beta.HTTPSHealthCheck = (function() { + v1beta.HealthAggregationPoliciesScopedList = (function() { /** - * Properties of a HTTPSHealthCheck. + * Properties of a HealthAggregationPoliciesScopedList. * @memberof google.cloud.compute.v1beta - * @interface IHTTPSHealthCheck - * @property {string|null} [host] HTTPSHealthCheck host - * @property {number|null} [port] HTTPSHealthCheck port - * @property {string|null} [portName] HTTPSHealthCheck portName - * @property {string|null} [portSpecification] HTTPSHealthCheck portSpecification - * @property {string|null} [proxyHeader] HTTPSHealthCheck proxyHeader - * @property {string|null} [requestPath] HTTPSHealthCheck requestPath - * @property {string|null} [response] HTTPSHealthCheck response + * @interface IHealthAggregationPoliciesScopedList + * @property {Array.|null} [healthAggregationPolicies] HealthAggregationPoliciesScopedList healthAggregationPolicies + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] HealthAggregationPoliciesScopedList warning */ /** - * Constructs a new HTTPSHealthCheck. + * Constructs a new HealthAggregationPoliciesScopedList. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a HTTPSHealthCheck. - * @implements IHTTPSHealthCheck + * @classdesc Represents a HealthAggregationPoliciesScopedList. + * @implements IHealthAggregationPoliciesScopedList * @constructor - * @param {google.cloud.compute.v1beta.IHTTPSHealthCheck=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList=} [properties] Properties to set */ - function HTTPSHealthCheck(properties) { + function HealthAggregationPoliciesScopedList(properties) { + this.healthAggregationPolicies = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -815223,206 +826967,584 @@ } /** - * HTTPSHealthCheck host. - * @member {string|null|undefined} host - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * HealthAggregationPoliciesScopedList healthAggregationPolicies. + * @member {Array.} healthAggregationPolicies + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList * @instance */ - HTTPSHealthCheck.prototype.host = null; + HealthAggregationPoliciesScopedList.prototype.healthAggregationPolicies = $util.emptyArray; /** - * HTTPSHealthCheck port. - * @member {number|null|undefined} port - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * HealthAggregationPoliciesScopedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList * @instance */ - HTTPSHealthCheck.prototype.port = null; + HealthAggregationPoliciesScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPoliciesScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * HTTPSHealthCheck portName. - * @member {string|null|undefined} portName - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * Creates a new HealthAggregationPoliciesScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList + * @static + * @param {google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList} HealthAggregationPoliciesScopedList instance + */ + HealthAggregationPoliciesScopedList.create = function create(properties) { + return new HealthAggregationPoliciesScopedList(properties); + }; + + /** + * Encodes the specified HealthAggregationPoliciesScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList + * @static + * @param {google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList} message HealthAggregationPoliciesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthAggregationPoliciesScopedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.healthAggregationPolicies != null && message.healthAggregationPolicies.length) + for (var i = 0; i < message.healthAggregationPolicies.length; ++i) + $root.google.cloud.compute.v1beta.HealthAggregationPolicy.encode(message.healthAggregationPolicies[i], writer.uint32(/* id 87589904, wireType 2 =*/700719234).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HealthAggregationPoliciesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList + * @static + * @param {google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList} message HealthAggregationPoliciesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthAggregationPoliciesScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthAggregationPoliciesScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList} HealthAggregationPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthAggregationPoliciesScopedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 87589904: { + if (!(message.healthAggregationPolicies && message.healthAggregationPolicies.length)) + message.healthAggregationPolicies = []; + message.healthAggregationPolicies.push($root.google.cloud.compute.v1beta.HealthAggregationPolicy.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthAggregationPoliciesScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList} HealthAggregationPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthAggregationPoliciesScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthAggregationPoliciesScopedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthAggregationPoliciesScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthAggregationPolicies != null && message.hasOwnProperty("healthAggregationPolicies")) { + if (!Array.isArray(message.healthAggregationPolicies)) + return "healthAggregationPolicies: array expected"; + for (var i = 0; i < message.healthAggregationPolicies.length; ++i) { + var error = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.verify(message.healthAggregationPolicies[i]); + if (error) + return "healthAggregationPolicies." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a HealthAggregationPoliciesScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList} HealthAggregationPoliciesScopedList + */ + HealthAggregationPoliciesScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList) + return object; + var message = new $root.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList(); + if (object.healthAggregationPolicies) { + if (!Array.isArray(object.healthAggregationPolicies)) + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.healthAggregationPolicies: array expected"); + message.healthAggregationPolicies = []; + for (var i = 0; i < object.healthAggregationPolicies.length; ++i) { + if (typeof object.healthAggregationPolicies[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.healthAggregationPolicies: object expected"); + message.healthAggregationPolicies[i] = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.fromObject(object.healthAggregationPolicies[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthAggregationPoliciesScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList + * @static + * @param {google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList} message HealthAggregationPoliciesScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthAggregationPoliciesScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.healthAggregationPolicies = []; + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.healthAggregationPolicies && message.healthAggregationPolicies.length) { + object.healthAggregationPolicies = []; + for (var j = 0; j < message.healthAggregationPolicies.length; ++j) + object.healthAggregationPolicies[j] = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.toObject(message.healthAggregationPolicies[j], options); + } + return object; + }; + + /** + * Converts this HealthAggregationPoliciesScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList * @instance + * @returns {Object.} JSON object */ - HTTPSHealthCheck.prototype.portName = null; + HealthAggregationPoliciesScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * HTTPSHealthCheck portSpecification. - * @member {string|null|undefined} portSpecification - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * Gets the default type url for HealthAggregationPoliciesScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthAggregationPoliciesScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList"; + }; + + return HealthAggregationPoliciesScopedList; + })(); + + v1beta.HealthAggregationPolicy = (function() { + + /** + * Properties of a HealthAggregationPolicy. + * @memberof google.cloud.compute.v1beta + * @interface IHealthAggregationPolicy + * @property {string|null} [creationTimestamp] HealthAggregationPolicy creationTimestamp + * @property {string|null} [description] HealthAggregationPolicy description + * @property {string|null} [fingerprint] HealthAggregationPolicy fingerprint + * @property {number|null} [healthyPercentThreshold] HealthAggregationPolicy healthyPercentThreshold + * @property {number|Long|null} [id] HealthAggregationPolicy id + * @property {string|null} [kind] HealthAggregationPolicy kind + * @property {number|null} [minHealthyThreshold] HealthAggregationPolicy minHealthyThreshold + * @property {string|null} [name] HealthAggregationPolicy name + * @property {string|null} [policyType] HealthAggregationPolicy policyType + * @property {string|null} [region] HealthAggregationPolicy region + * @property {string|null} [selfLink] HealthAggregationPolicy selfLink + * @property {string|null} [selfLinkWithId] HealthAggregationPolicy selfLinkWithId + */ + + /** + * Constructs a new HealthAggregationPolicy. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a HealthAggregationPolicy. + * @implements IHealthAggregationPolicy + * @constructor + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicy=} [properties] Properties to set + */ + function HealthAggregationPolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthAggregationPolicy creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @instance */ - HTTPSHealthCheck.prototype.portSpecification = null; + HealthAggregationPolicy.prototype.creationTimestamp = null; /** - * HTTPSHealthCheck proxyHeader. - * @member {string|null|undefined} proxyHeader - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * HealthAggregationPolicy description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @instance */ - HTTPSHealthCheck.prototype.proxyHeader = null; + HealthAggregationPolicy.prototype.description = null; /** - * HTTPSHealthCheck requestPath. - * @member {string|null|undefined} requestPath - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * HealthAggregationPolicy fingerprint. + * @member {string|null|undefined} fingerprint + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @instance */ - HTTPSHealthCheck.prototype.requestPath = null; + HealthAggregationPolicy.prototype.fingerprint = null; /** - * HTTPSHealthCheck response. - * @member {string|null|undefined} response - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * HealthAggregationPolicy healthyPercentThreshold. + * @member {number|null|undefined} healthyPercentThreshold + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @instance */ - HTTPSHealthCheck.prototype.response = null; + HealthAggregationPolicy.prototype.healthyPercentThreshold = null; + + /** + * HealthAggregationPolicy id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy + * @instance + */ + HealthAggregationPolicy.prototype.id = null; + + /** + * HealthAggregationPolicy kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy + * @instance + */ + HealthAggregationPolicy.prototype.kind = null; + + /** + * HealthAggregationPolicy minHealthyThreshold. + * @member {number|null|undefined} minHealthyThreshold + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy + * @instance + */ + HealthAggregationPolicy.prototype.minHealthyThreshold = null; + + /** + * HealthAggregationPolicy name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy + * @instance + */ + HealthAggregationPolicy.prototype.name = null; + + /** + * HealthAggregationPolicy policyType. + * @member {string|null|undefined} policyType + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy + * @instance + */ + HealthAggregationPolicy.prototype.policyType = null; + + /** + * HealthAggregationPolicy region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy + * @instance + */ + HealthAggregationPolicy.prototype.region = null; + + /** + * HealthAggregationPolicy selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy + * @instance + */ + HealthAggregationPolicy.prototype.selfLink = null; + + /** + * HealthAggregationPolicy selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy + * @instance + */ + HealthAggregationPolicy.prototype.selfLinkWithId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(HTTPSHealthCheck.prototype, "_host", { - get: $util.oneOfGetter($oneOfFields = ["host"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HTTPSHealthCheck.prototype, "_port", { - get: $util.oneOfGetter($oneOfFields = ["port"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HTTPSHealthCheck.prototype, "_portName", { - get: $util.oneOfGetter($oneOfFields = ["portName"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_fingerprint", { + get: $util.oneOfGetter($oneOfFields = ["fingerprint"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HTTPSHealthCheck.prototype, "_portSpecification", { - get: $util.oneOfGetter($oneOfFields = ["portSpecification"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_healthyPercentThreshold", { + get: $util.oneOfGetter($oneOfFields = ["healthyPercentThreshold"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HTTPSHealthCheck.prototype, "_proxyHeader", { - get: $util.oneOfGetter($oneOfFields = ["proxyHeader"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HTTPSHealthCheck.prototype, "_requestPath", { - get: $util.oneOfGetter($oneOfFields = ["requestPath"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HTTPSHealthCheck.prototype, "_response", { - get: $util.oneOfGetter($oneOfFields = ["response"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_minHealthyThreshold", { + get: $util.oneOfGetter($oneOfFields = ["minHealthyThreshold"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicy.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicy.prototype, "_policyType", { + get: $util.oneOfGetter($oneOfFields = ["policyType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicy.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicy.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicy.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new HTTPSHealthCheck instance using the specified properties. + * Creates a new HealthAggregationPolicy instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @static - * @param {google.cloud.compute.v1beta.IHTTPSHealthCheck=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.HTTPSHealthCheck} HTTPSHealthCheck instance + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicy} HealthAggregationPolicy instance */ - HTTPSHealthCheck.create = function create(properties) { - return new HTTPSHealthCheck(properties); + HealthAggregationPolicy.create = function create(properties) { + return new HealthAggregationPolicy(properties); }; /** - * Encodes the specified HTTPSHealthCheck message. Does not implicitly {@link google.cloud.compute.v1beta.HTTPSHealthCheck.verify|verify} messages. + * Encodes the specified HealthAggregationPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @static - * @param {google.cloud.compute.v1beta.IHTTPSHealthCheck} message HTTPSHealthCheck message or plain object to encode + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicy} message HealthAggregationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HTTPSHealthCheck.encode = function encode(message, writer) { + HealthAggregationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.host != null && Object.hasOwnProperty.call(message, "host")) - writer.uint32(/* id 3208616, wireType 2 =*/25668930).string(message.host); - if (message.port != null && Object.hasOwnProperty.call(message, "port")) - writer.uint32(/* id 3446913, wireType 0 =*/27575304).int32(message.port); - if (message.portName != null && Object.hasOwnProperty.call(message, "portName")) - writer.uint32(/* id 41534345, wireType 2 =*/332274762).string(message.portName); - if (message.portSpecification != null && Object.hasOwnProperty.call(message, "portSpecification")) - writer.uint32(/* id 51590597, wireType 2 =*/412724778).string(message.portSpecification); - if (message.proxyHeader != null && Object.hasOwnProperty.call(message, "proxyHeader")) - writer.uint32(/* id 160374142, wireType 2 =*/1282993138).string(message.proxyHeader); - if (message.response != null && Object.hasOwnProperty.call(message, "response")) - writer.uint32(/* id 196547649, wireType 2 =*/1572381194).string(message.response); - if (message.requestPath != null && Object.hasOwnProperty.call(message, "requestPath")) - writer.uint32(/* id 229403605, wireType 2 =*/1835228842).string(message.requestPath); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.policyType != null && Object.hasOwnProperty.call(message, "policyType")) + writer.uint32(/* id 18158119, wireType 2 =*/145264954).string(message.policyType); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.healthyPercentThreshold != null && Object.hasOwnProperty.call(message, "healthyPercentThreshold")) + writer.uint32(/* id 72242895, wireType 0 =*/577943160).uint32(message.healthyPercentThreshold); + if (message.minHealthyThreshold != null && Object.hasOwnProperty.call(message, "minHealthyThreshold")) + writer.uint32(/* id 132310940, wireType 0 =*/1058487520).uint32(message.minHealthyThreshold); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) + writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); return writer; }; /** - * Encodes the specified HTTPSHealthCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HTTPSHealthCheck.verify|verify} messages. + * Encodes the specified HealthAggregationPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @static - * @param {google.cloud.compute.v1beta.IHTTPSHealthCheck} message HTTPSHealthCheck message or plain object to encode + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicy} message HealthAggregationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HTTPSHealthCheck.encodeDelimited = function encodeDelimited(message, writer) { + HealthAggregationPolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HTTPSHealthCheck message from the specified reader or buffer. + * Decodes a HealthAggregationPolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.HTTPSHealthCheck} HTTPSHealthCheck + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicy} HealthAggregationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HTTPSHealthCheck.decode = function decode(reader, length, error) { + HealthAggregationPolicy.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.HTTPSHealthCheck(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.HealthAggregationPolicy(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 3208616: { - message.host = reader.string(); + case 30525366: { + message.creationTimestamp = reader.string(); break; } - case 3446913: { - message.port = reader.int32(); + case 422937596: { + message.description = reader.string(); break; } - case 41534345: { - message.portName = reader.string(); + case 234678500: { + message.fingerprint = reader.string(); break; } - case 51590597: { - message.portSpecification = reader.string(); + case 72242895: { + message.healthyPercentThreshold = reader.uint32(); break; } - case 160374142: { - message.proxyHeader = reader.string(); + case 3355: { + message.id = reader.uint64(); break; } - case 229403605: { - message.requestPath = reader.string(); + case 3292052: { + message.kind = reader.string(); break; } - case 196547649: { - message.response = reader.string(); + case 132310940: { + message.minHealthyThreshold = reader.uint32(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 18158119: { + message.policyType = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); break; } default: @@ -815434,212 +827556,1127 @@ }; /** - * Decodes a HTTPSHealthCheck message from the specified reader or buffer, length delimited. + * Decodes a HealthAggregationPolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.HTTPSHealthCheck} HTTPSHealthCheck + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicy} HealthAggregationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HTTPSHealthCheck.decodeDelimited = function decodeDelimited(reader) { + HealthAggregationPolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HTTPSHealthCheck message. + * Verifies a HealthAggregationPolicy message. * @function verify - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HTTPSHealthCheck.verify = function verify(message) { + HealthAggregationPolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.host != null && message.hasOwnProperty("host")) { - properties._host = 1; - if (!$util.isString(message.host)) - return "host: string expected"; + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; } - if (message.port != null && message.hasOwnProperty("port")) { - properties._port = 1; - if (!$util.isInteger(message.port)) - return "port: integer expected"; + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; } - if (message.portName != null && message.hasOwnProperty("portName")) { - properties._portName = 1; - if (!$util.isString(message.portName)) - return "portName: string expected"; + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + properties._fingerprint = 1; + if (!$util.isString(message.fingerprint)) + return "fingerprint: string expected"; } - if (message.portSpecification != null && message.hasOwnProperty("portSpecification")) { - properties._portSpecification = 1; - if (!$util.isString(message.portSpecification)) - return "portSpecification: string expected"; + if (message.healthyPercentThreshold != null && message.hasOwnProperty("healthyPercentThreshold")) { + properties._healthyPercentThreshold = 1; + if (!$util.isInteger(message.healthyPercentThreshold)) + return "healthyPercentThreshold: integer expected"; } - if (message.proxyHeader != null && message.hasOwnProperty("proxyHeader")) { - properties._proxyHeader = 1; - if (!$util.isString(message.proxyHeader)) - return "proxyHeader: string expected"; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; } - if (message.requestPath != null && message.hasOwnProperty("requestPath")) { - properties._requestPath = 1; - if (!$util.isString(message.requestPath)) - return "requestPath: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; } - if (message.response != null && message.hasOwnProperty("response")) { - properties._response = 1; - if (!$util.isString(message.response)) - return "response: string expected"; + if (message.minHealthyThreshold != null && message.hasOwnProperty("minHealthyThreshold")) { + properties._minHealthyThreshold = 1; + if (!$util.isInteger(message.minHealthyThreshold)) + return "minHealthyThreshold: integer expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.policyType != null && message.hasOwnProperty("policyType")) { + properties._policyType = 1; + if (!$util.isString(message.policyType)) + return "policyType: string expected"; + } + if (message.region != null && message.hasOwnProperty("region")) { + properties._region = 1; + if (!$util.isString(message.region)) + return "region: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; } return null; }; /** - * Creates a HTTPSHealthCheck message from a plain object. Also converts values to their respective internal types. + * Creates a HealthAggregationPolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.HTTPSHealthCheck} HTTPSHealthCheck + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicy} HealthAggregationPolicy */ - HTTPSHealthCheck.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.HTTPSHealthCheck) + HealthAggregationPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HealthAggregationPolicy) return object; - var message = new $root.google.cloud.compute.v1beta.HTTPSHealthCheck(); - if (object.host != null) - message.host = String(object.host); - if (object.port != null) - message.port = object.port | 0; - if (object.portName != null) - message.portName = String(object.portName); - if (object.portSpecification != null) - message.portSpecification = String(object.portSpecification); - if (object.proxyHeader != null) - message.proxyHeader = String(object.proxyHeader); - if (object.requestPath != null) - message.requestPath = String(object.requestPath); - if (object.response != null) - message.response = String(object.response); + var message = new $root.google.cloud.compute.v1beta.HealthAggregationPolicy(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.fingerprint != null) + message.fingerprint = String(object.fingerprint); + if (object.healthyPercentThreshold != null) + message.healthyPercentThreshold = object.healthyPercentThreshold >>> 0; + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.kind != null) + message.kind = String(object.kind); + if (object.minHealthyThreshold != null) + message.minHealthyThreshold = object.minHealthyThreshold >>> 0; + if (object.name != null) + message.name = String(object.name); + if (object.policyType != null) + message.policyType = String(object.policyType); + if (object.region != null) + message.region = String(object.region); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); return message; }; /** - * Creates a plain object from a HTTPSHealthCheck message. Also converts values to other types if specified. + * Creates a plain object from a HealthAggregationPolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @static - * @param {google.cloud.compute.v1beta.HTTPSHealthCheck} message HTTPSHealthCheck + * @param {google.cloud.compute.v1beta.HealthAggregationPolicy} message HealthAggregationPolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HTTPSHealthCheck.toObject = function toObject(message, options) { + HealthAggregationPolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.host != null && message.hasOwnProperty("host")) { - object.host = message.host; + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; if (options.oneofs) - object._host = "host"; + object._id = "id"; } - if (message.port != null && message.hasOwnProperty("port")) { - object.port = message.port; + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; if (options.oneofs) - object._port = "port"; + object._kind = "kind"; } - if (message.portName != null && message.hasOwnProperty("portName")) { - object.portName = message.portName; + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; if (options.oneofs) - object._portName = "portName"; + object._name = "name"; } - if (message.portSpecification != null && message.hasOwnProperty("portSpecification")) { - object.portSpecification = message.portSpecification; + if (message.policyType != null && message.hasOwnProperty("policyType")) { + object.policyType = message.policyType; if (options.oneofs) - object._portSpecification = "portSpecification"; + object._policyType = "policyType"; } - if (message.proxyHeader != null && message.hasOwnProperty("proxyHeader")) { - object.proxyHeader = message.proxyHeader; + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; if (options.oneofs) - object._proxyHeader = "proxyHeader"; + object._creationTimestamp = "creationTimestamp"; } - if (message.response != null && message.hasOwnProperty("response")) { - object.response = message.response; + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; if (options.oneofs) - object._response = "response"; + object._selfLinkWithId = "selfLinkWithId"; } - if (message.requestPath != null && message.hasOwnProperty("requestPath")) { - object.requestPath = message.requestPath; + if (message.healthyPercentThreshold != null && message.hasOwnProperty("healthyPercentThreshold")) { + object.healthyPercentThreshold = message.healthyPercentThreshold; if (options.oneofs) - object._requestPath = "requestPath"; + object._healthyPercentThreshold = "healthyPercentThreshold"; + } + if (message.minHealthyThreshold != null && message.hasOwnProperty("minHealthyThreshold")) { + object.minHealthyThreshold = message.minHealthyThreshold; + if (options.oneofs) + object._minHealthyThreshold = "minHealthyThreshold"; + } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + object.fingerprint = message.fingerprint; + if (options.oneofs) + object._fingerprint = "fingerprint"; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; } return object; }; /** - * Converts this HTTPSHealthCheck to JSON. + * Converts this HealthAggregationPolicy to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @instance * @returns {Object.} JSON object */ - HTTPSHealthCheck.prototype.toJSON = function toJSON() { + HealthAggregationPolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HTTPSHealthCheck + * Gets the default type url for HealthAggregationPolicy * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.HTTPSHealthCheck + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicy * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HTTPSHealthCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HealthAggregationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.HTTPSHealthCheck"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.HealthAggregationPolicy"; }; /** - * PortSpecification enum. - * @name google.cloud.compute.v1beta.HTTPSHealthCheck.PortSpecification + * PolicyType enum. + * @name google.cloud.compute.v1beta.HealthAggregationPolicy.PolicyType * @enum {number} - * @property {number} UNDEFINED_PORT_SPECIFICATION=0 UNDEFINED_PORT_SPECIFICATION value - * @property {number} USE_FIXED_PORT=190235748 USE_FIXED_PORT value - * @property {number} USE_NAMED_PORT=349300671 USE_NAMED_PORT value - * @property {number} USE_SERVING_PORT=362637516 USE_SERVING_PORT value + * @property {number} UNDEFINED_POLICY_TYPE=0 UNDEFINED_POLICY_TYPE value + * @property {number} BACKEND_SERVICE_POLICY=415582023 BACKEND_SERVICE_POLICY value + * @property {number} DNS_PUBLIC_IP_POLICY=366354794 DNS_PUBLIC_IP_POLICY value */ - HTTPSHealthCheck.PortSpecification = (function() { + HealthAggregationPolicy.PolicyType = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_PORT_SPECIFICATION"] = 0; - values[valuesById[190235748] = "USE_FIXED_PORT"] = 190235748; - values[valuesById[349300671] = "USE_NAMED_PORT"] = 349300671; - values[valuesById[362637516] = "USE_SERVING_PORT"] = 362637516; + values[valuesById[0] = "UNDEFINED_POLICY_TYPE"] = 0; + values[valuesById[415582023] = "BACKEND_SERVICE_POLICY"] = 415582023; + values[valuesById[366354794] = "DNS_PUBLIC_IP_POLICY"] = 366354794; return values; })(); + return HealthAggregationPolicy; + })(); + + v1beta.HealthAggregationPolicyAggregatedList = (function() { + /** - * ProxyHeader enum. - * @name google.cloud.compute.v1beta.HTTPSHealthCheck.ProxyHeader - * @enum {number} - * @property {number} UNDEFINED_PROXY_HEADER=0 UNDEFINED_PROXY_HEADER value - * @property {number} NONE=2402104 NONE value - * @property {number} PROXY_V1=334352940 PROXY_V1 value + * Properties of a HealthAggregationPolicyAggregatedList. + * @memberof google.cloud.compute.v1beta + * @interface IHealthAggregationPolicyAggregatedList + * @property {string|null} [id] HealthAggregationPolicyAggregatedList id + * @property {Object.|null} [items] HealthAggregationPolicyAggregatedList items + * @property {string|null} [kind] HealthAggregationPolicyAggregatedList kind + * @property {string|null} [nextPageToken] HealthAggregationPolicyAggregatedList nextPageToken + * @property {string|null} [selfLink] HealthAggregationPolicyAggregatedList selfLink + * @property {Array.|null} [unreachables] HealthAggregationPolicyAggregatedList unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] HealthAggregationPolicyAggregatedList warning */ - HTTPSHealthCheck.ProxyHeader = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_PROXY_HEADER"] = 0; - values[valuesById[2402104] = "NONE"] = 2402104; - values[valuesById[334352940] = "PROXY_V1"] = 334352940; - return values; - })(); - return HTTPSHealthCheck; + /** + * Constructs a new HealthAggregationPolicyAggregatedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a HealthAggregationPolicyAggregatedList. + * @implements IHealthAggregationPolicyAggregatedList + * @constructor + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicyAggregatedList=} [properties] Properties to set + */ + function HealthAggregationPolicyAggregatedList(properties) { + this.items = {}; + this.unreachables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthAggregationPolicyAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.id = null; + + /** + * HealthAggregationPolicyAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.items = $util.emptyObject; + + /** + * HealthAggregationPolicyAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.kind = null; + + /** + * HealthAggregationPolicyAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.nextPageToken = null; + + /** + * HealthAggregationPolicyAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.selfLink = null; + + /** + * HealthAggregationPolicyAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * HealthAggregationPolicyAggregatedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthAggregationPolicyAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @static + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicyAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList} HealthAggregationPolicyAggregatedList instance + */ + HealthAggregationPolicyAggregatedList.create = function create(properties) { + return new HealthAggregationPolicyAggregatedList(properties); + }; + + /** + * Encodes the specified HealthAggregationPolicyAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @static + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicyAggregatedList} message HealthAggregationPolicyAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthAggregationPolicyAggregatedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && Object.hasOwnProperty.call(message, "items")) + for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified HealthAggregationPolicyAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @static + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicyAggregatedList} message HealthAggregationPolicyAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthAggregationPolicyAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthAggregationPolicyAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList} HealthAggregationPolicyAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthAggregationPolicyAggregatedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (message.items === $util.emptyObject) + message.items = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthAggregationPolicyAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList} HealthAggregationPolicyAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthAggregationPolicyAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthAggregationPolicyAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthAggregationPolicyAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a HealthAggregationPolicyAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList} HealthAggregationPolicyAggregatedList + */ + HealthAggregationPolicyAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList.items: object expected"); + message.items = {}; + for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { + if (typeof object.items[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.fromObject(object.items[keys[i]]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthAggregationPolicyAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @static + * @param {google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList} message HealthAggregationPolicyAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthAggregationPolicyAggregatedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.unreachables = []; + if (options.objects || options.defaults) + object.items = {}; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList.toObject(message.items[keys2[j]], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this HealthAggregationPolicyAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @instance + * @returns {Object.} JSON object + */ + HealthAggregationPolicyAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthAggregationPolicyAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthAggregationPolicyAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList"; + }; + + return HealthAggregationPolicyAggregatedList; + })(); + + v1beta.HealthAggregationPolicyList = (function() { + + /** + * Properties of a HealthAggregationPolicyList. + * @memberof google.cloud.compute.v1beta + * @interface IHealthAggregationPolicyList + * @property {string|null} [id] HealthAggregationPolicyList id + * @property {Array.|null} [items] HealthAggregationPolicyList items + * @property {string|null} [kind] HealthAggregationPolicyList kind + * @property {string|null} [nextPageToken] HealthAggregationPolicyList nextPageToken + * @property {string|null} [selfLink] HealthAggregationPolicyList selfLink + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] HealthAggregationPolicyList warning + */ + + /** + * Constructs a new HealthAggregationPolicyList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a HealthAggregationPolicyList. + * @implements IHealthAggregationPolicyList + * @constructor + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicyList=} [properties] Properties to set + */ + function HealthAggregationPolicyList(properties) { + this.items = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthAggregationPolicyList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @instance + */ + HealthAggregationPolicyList.prototype.id = null; + + /** + * HealthAggregationPolicyList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @instance + */ + HealthAggregationPolicyList.prototype.items = $util.emptyArray; + + /** + * HealthAggregationPolicyList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @instance + */ + HealthAggregationPolicyList.prototype.kind = null; + + /** + * HealthAggregationPolicyList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @instance + */ + HealthAggregationPolicyList.prototype.nextPageToken = null; + + /** + * HealthAggregationPolicyList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @instance + */ + HealthAggregationPolicyList.prototype.selfLink = null; + + /** + * HealthAggregationPolicyList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @instance + */ + HealthAggregationPolicyList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthAggregationPolicyList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @static + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicyList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicyList} HealthAggregationPolicyList instance + */ + HealthAggregationPolicyList.create = function create(properties) { + return new HealthAggregationPolicyList(properties); + }; + + /** + * Encodes the specified HealthAggregationPolicyList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicyList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @static + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicyList} message HealthAggregationPolicyList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthAggregationPolicyList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1beta.HealthAggregationPolicy.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified HealthAggregationPolicyList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthAggregationPolicyList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @static + * @param {google.cloud.compute.v1beta.IHealthAggregationPolicyList} message HealthAggregationPolicyList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthAggregationPolicyList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthAggregationPolicyList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicyList} HealthAggregationPolicyList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthAggregationPolicyList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.HealthAggregationPolicyList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1beta.HealthAggregationPolicy.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthAggregationPolicyList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicyList} HealthAggregationPolicyList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthAggregationPolicyList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthAggregationPolicyList message. + * @function verify + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthAggregationPolicyList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a HealthAggregationPolicyList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.HealthAggregationPolicyList} HealthAggregationPolicyList + */ + HealthAggregationPolicyList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HealthAggregationPolicyList) + return object; + var message = new $root.google.cloud.compute.v1beta.HealthAggregationPolicyList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPolicyList.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPolicyList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthAggregationPolicyList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthAggregationPolicyList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @static + * @param {google.cloud.compute.v1beta.HealthAggregationPolicyList} message HealthAggregationPolicyList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthAggregationPolicyList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.items = []; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.toObject(message.items[j], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this HealthAggregationPolicyList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @instance + * @returns {Object.} JSON object + */ + HealthAggregationPolicyList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthAggregationPolicyList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.HealthAggregationPolicyList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthAggregationPolicyList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.HealthAggregationPolicyList"; + }; + + return HealthAggregationPolicyList; })(); v1beta.HealthCheck = (function() { @@ -820095,6 +833132,7 @@ * @property {string|null} [kind] HealthSourceAggregatedList kind * @property {string|null} [nextPageToken] HealthSourceAggregatedList nextPageToken * @property {string|null} [selfLink] HealthSourceAggregatedList selfLink + * @property {Array.|null} [unreachables] HealthSourceAggregatedList unreachables * @property {google.cloud.compute.v1beta.IWarning|null} [warning] HealthSourceAggregatedList warning */ @@ -820108,6 +833146,7 @@ */ function HealthSourceAggregatedList(properties) { this.items = {}; + this.unreachables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -820154,6 +833193,14 @@ */ HealthSourceAggregatedList.prototype.selfLink = null; + /** + * HealthSourceAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.HealthSourceAggregatedList + * @instance + */ + HealthSourceAggregatedList.prototype.unreachables = $util.emptyArray; + /** * HealthSourceAggregatedList warning. * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning @@ -820232,6 +833279,9 @@ writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); $root.google.cloud.compute.v1beta.HealthSourcesScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); return writer; @@ -820309,6 +833359,12 @@ message.selfLink = reader.string(); break; } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } case 50704284: { message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); break; @@ -820379,6 +833435,13 @@ if (!$util.isString(message.selfLink)) return "selfLink: string expected"; } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } if (message.warning != null && message.hasOwnProperty("warning")) { properties._warning = 1; { @@ -820420,6 +833483,13 @@ message.nextPageToken = String(object.nextPageToken); if (object.selfLink != null) message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1beta.HealthSourceAggregatedList.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } if (object.warning != null) { if (typeof object.warning !== "object") throw TypeError(".google.cloud.compute.v1beta.HealthSourceAggregatedList.warning: object expected"); @@ -820441,6 +833511,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.unreachables = []; if (options.objects || options.defaults) object.items = {}; if (message.id != null && message.hasOwnProperty("id")) { @@ -820469,6 +833541,11 @@ for (var j = 0; j < keys2.length; ++j) object.items[keys2[j]] = $root.google.cloud.compute.v1beta.HealthSourcesScopedList.toObject(message.items[keys2[j]], options); } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { object.selfLink = message.selfLink; if (options.oneofs) @@ -842341,37 +855418,625 @@ }; /** - * Decodes an InsertRegionAutoscalerRequest message from the specified reader or buffer, length delimited. + * Decodes an InsertRegionAutoscalerRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InsertRegionAutoscalerRequest} InsertRegionAutoscalerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionAutoscalerRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionAutoscalerRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionAutoscalerRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.autoscalerResource != null && message.hasOwnProperty("autoscalerResource")) { + var error = $root.google.cloud.compute.v1beta.Autoscaler.verify(message.autoscalerResource); + if (error) + return "autoscalerResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates an InsertRegionAutoscalerRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InsertRegionAutoscalerRequest} InsertRegionAutoscalerRequest + */ + InsertRegionAutoscalerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionAutoscalerRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.InsertRegionAutoscalerRequest(); + if (object.autoscalerResource != null) { + if (typeof object.autoscalerResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertRegionAutoscalerRequest.autoscalerResource: object expected"); + message.autoscalerResource = $root.google.cloud.compute.v1beta.Autoscaler.fromObject(object.autoscalerResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an InsertRegionAutoscalerRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1beta.InsertRegionAutoscalerRequest} message InsertRegionAutoscalerRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionAutoscalerRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.autoscalerResource = null; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.autoscalerResource != null && message.hasOwnProperty("autoscalerResource")) + object.autoscalerResource = $root.google.cloud.compute.v1beta.Autoscaler.toObject(message.autoscalerResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this InsertRegionAutoscalerRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionAutoscalerRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionAutoscalerRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionAutoscalerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionAutoscalerRequest"; + }; + + return InsertRegionAutoscalerRequest; + })(); + + v1beta.InsertRegionBackendBucketRequest = (function() { + + /** + * Properties of an InsertRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @interface IInsertRegionBackendBucketRequest + * @property {google.cloud.compute.v1beta.IBackendBucket|null} [backendBucketResource] InsertRegionBackendBucketRequest backendBucketResource + * @property {string|null} [project] InsertRegionBackendBucketRequest project + * @property {string|null} [region] InsertRegionBackendBucketRequest region + * @property {string|null} [requestId] InsertRegionBackendBucketRequest requestId + */ + + /** + * Constructs a new InsertRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InsertRegionBackendBucketRequest. + * @implements IInsertRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest=} [properties] Properties to set + */ + function InsertRegionBackendBucketRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertRegionBackendBucketRequest backendBucketResource. + * @member {google.cloud.compute.v1beta.IBackendBucket|null|undefined} backendBucketResource + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @instance + */ + InsertRegionBackendBucketRequest.prototype.backendBucketResource = null; + + /** + * InsertRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @instance + */ + InsertRegionBackendBucketRequest.prototype.project = ""; + + /** + * InsertRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @instance + */ + InsertRegionBackendBucketRequest.prototype.region = ""; + + /** + * InsertRegionBackendBucketRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @instance + */ + InsertRegionBackendBucketRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionBackendBucketRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertRegionBackendBucketRequest} InsertRegionBackendBucketRequest instance + */ + InsertRegionBackendBucketRequest.create = function create(properties) { + return new InsertRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified InsertRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest} message InsertRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionBackendBucketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.backendBucketResource != null && Object.hasOwnProperty.call(message, "backendBucketResource")) + $root.google.cloud.compute.v1beta.BackendBucket.encode(message.backendBucketResource, writer.uint32(/* id 380757784, wireType 2 =*/3046062274).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest} message InsertRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionBackendBucketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InsertRegionBackendBucketRequest} InsertRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionBackendBucketRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 380757784: { + message.backendBucketResource = $root.google.cloud.compute.v1beta.BackendBucket.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InsertRegionBackendBucketRequest} InsertRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionBackendBucketRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionBackendBucketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.backendBucketResource != null && message.hasOwnProperty("backendBucketResource")) { + var error = $root.google.cloud.compute.v1beta.BackendBucket.verify(message.backendBucketResource); + if (error) + return "backendBucketResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates an InsertRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InsertRegionBackendBucketRequest} InsertRegionBackendBucketRequest + */ + InsertRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest(); + if (object.backendBucketResource != null) { + if (typeof object.backendBucketResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertRegionBackendBucketRequest.backendBucketResource: object expected"); + message.backendBucketResource = $root.google.cloud.compute.v1beta.BackendBucket.fromObject(object.backendBucketResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an InsertRegionBackendBucketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.InsertRegionBackendBucketRequest} message InsertRegionBackendBucketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionBackendBucketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.backendBucketResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.backendBucketResource != null && message.hasOwnProperty("backendBucketResource")) + object.backendBucketResource = $root.google.cloud.compute.v1beta.BackendBucket.toObject(message.backendBucketResource, options); + return object; + }; + + /** + * Converts this InsertRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionBackendBucketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionBackendBucketRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InsertRegionBackendBucketRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionBackendBucketRequest"; + }; + + return InsertRegionBackendBucketRequest; + })(); + + v1beta.InsertRegionBackendServiceRequest = (function() { + + /** + * Properties of an InsertRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1beta + * @interface IInsertRegionBackendServiceRequest + * @property {google.cloud.compute.v1beta.IBackendService|null} [backendServiceResource] InsertRegionBackendServiceRequest backendServiceResource + * @property {string|null} [project] InsertRegionBackendServiceRequest project + * @property {string|null} [region] InsertRegionBackendServiceRequest region + * @property {string|null} [requestId] InsertRegionBackendServiceRequest requestId + */ + + /** + * Constructs a new InsertRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InsertRegionBackendServiceRequest. + * @implements IInsertRegionBackendServiceRequest + * @constructor + * @param {google.cloud.compute.v1beta.IInsertRegionBackendServiceRequest=} [properties] Properties to set + */ + function InsertRegionBackendServiceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertRegionBackendServiceRequest backendServiceResource. + * @member {google.cloud.compute.v1beta.IBackendService|null|undefined} backendServiceResource + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @instance + */ + InsertRegionBackendServiceRequest.prototype.backendServiceResource = null; + + /** + * InsertRegionBackendServiceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @instance + */ + InsertRegionBackendServiceRequest.prototype.project = ""; + + /** + * InsertRegionBackendServiceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @instance + */ + InsertRegionBackendServiceRequest.prototype.region = ""; + + /** + * InsertRegionBackendServiceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @instance + */ + InsertRegionBackendServiceRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionBackendServiceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionBackendServiceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} InsertRegionBackendServiceRequest instance + */ + InsertRegionBackendServiceRequest.create = function create(properties) { + return new InsertRegionBackendServiceRequest(properties); + }; + + /** + * Encodes the specified InsertRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionBackendServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionBackendServiceRequest} message InsertRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionBackendServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.backendServiceResource != null && Object.hasOwnProperty.call(message, "backendServiceResource")) + $root.google.cloud.compute.v1beta.BackendService.encode(message.backendServiceResource, writer.uint32(/* id 347586723, wireType 2 =*/2780693786).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionBackendServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionBackendServiceRequest} message InsertRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionBackendServiceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} InsertRegionBackendServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionBackendServiceRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionBackendServiceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 347586723: { + message.backendServiceResource = $root.google.cloud.compute.v1beta.BackendService.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertRegionBackendServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.InsertRegionAutoscalerRequest} InsertRegionAutoscalerRequest + * @returns {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} InsertRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionAutoscalerRequest.decodeDelimited = function decodeDelimited(reader) { + InsertRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InsertRegionAutoscalerRequest message. + * Verifies an InsertRegionBackendServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InsertRegionAutoscalerRequest.verify = function verify(message) { + InsertRegionBackendServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.autoscalerResource != null && message.hasOwnProperty("autoscalerResource")) { - var error = $root.google.cloud.compute.v1beta.Autoscaler.verify(message.autoscalerResource); + if (message.backendServiceResource != null && message.hasOwnProperty("backendServiceResource")) { + var error = $root.google.cloud.compute.v1beta.BackendService.verify(message.backendServiceResource); if (error) - return "autoscalerResource." + error; + return "backendServiceResource." + error; } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) @@ -842388,21 +856053,21 @@ }; /** - * Creates an InsertRegionAutoscalerRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InsertRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.InsertRegionAutoscalerRequest} InsertRegionAutoscalerRequest + * @returns {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} InsertRegionBackendServiceRequest */ - InsertRegionAutoscalerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionAutoscalerRequest) + InsertRegionBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionBackendServiceRequest) return object; - var message = new $root.google.cloud.compute.v1beta.InsertRegionAutoscalerRequest(); - if (object.autoscalerResource != null) { - if (typeof object.autoscalerResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.InsertRegionAutoscalerRequest.autoscalerResource: object expected"); - message.autoscalerResource = $root.google.cloud.compute.v1beta.Autoscaler.fromObject(object.autoscalerResource); + var message = new $root.google.cloud.compute.v1beta.InsertRegionBackendServiceRequest(); + if (object.backendServiceResource != null) { + if (typeof object.backendServiceResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertRegionBackendServiceRequest.backendServiceResource: object expected"); + message.backendServiceResource = $root.google.cloud.compute.v1beta.BackendService.fromObject(object.backendServiceResource); } if (object.project != null) message.project = String(object.project); @@ -842414,22 +856079,22 @@ }; /** - * Creates a plain object from an InsertRegionAutoscalerRequest message. Also converts values to other types if specified. + * Creates a plain object from an InsertRegionBackendServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1beta.InsertRegionAutoscalerRequest} message InsertRegionAutoscalerRequest + * @param {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} message InsertRegionBackendServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InsertRegionAutoscalerRequest.toObject = function toObject(message, options) { + InsertRegionBackendServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.region = ""; - object.autoscalerResource = null; object.project = ""; + object.backendServiceResource = null; } if (message.requestId != null && message.hasOwnProperty("requestId")) { object.requestId = message.requestId; @@ -842438,63 +856103,63 @@ } if (message.region != null && message.hasOwnProperty("region")) object.region = message.region; - if (message.autoscalerResource != null && message.hasOwnProperty("autoscalerResource")) - object.autoscalerResource = $root.google.cloud.compute.v1beta.Autoscaler.toObject(message.autoscalerResource, options); if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; + if (message.backendServiceResource != null && message.hasOwnProperty("backendServiceResource")) + object.backendServiceResource = $root.google.cloud.compute.v1beta.BackendService.toObject(message.backendServiceResource, options); return object; }; /** - * Converts this InsertRegionAutoscalerRequest to JSON. + * Converts this InsertRegionBackendServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest * @instance * @returns {Object.} JSON object */ - InsertRegionAutoscalerRequest.prototype.toJSON = function toJSON() { + InsertRegionBackendServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InsertRegionAutoscalerRequest + * Gets the default type url for InsertRegionBackendServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.InsertRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InsertRegionAutoscalerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InsertRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionAutoscalerRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionBackendServiceRequest"; }; - return InsertRegionAutoscalerRequest; + return InsertRegionBackendServiceRequest; })(); - v1beta.InsertRegionBackendServiceRequest = (function() { + v1beta.InsertRegionCommitmentRequest = (function() { /** - * Properties of an InsertRegionBackendServiceRequest. + * Properties of an InsertRegionCommitmentRequest. * @memberof google.cloud.compute.v1beta - * @interface IInsertRegionBackendServiceRequest - * @property {google.cloud.compute.v1beta.IBackendService|null} [backendServiceResource] InsertRegionBackendServiceRequest backendServiceResource - * @property {string|null} [project] InsertRegionBackendServiceRequest project - * @property {string|null} [region] InsertRegionBackendServiceRequest region - * @property {string|null} [requestId] InsertRegionBackendServiceRequest requestId + * @interface IInsertRegionCommitmentRequest + * @property {google.cloud.compute.v1beta.ICommitment|null} [commitmentResource] InsertRegionCommitmentRequest commitmentResource + * @property {string|null} [project] InsertRegionCommitmentRequest project + * @property {string|null} [region] InsertRegionCommitmentRequest region + * @property {string|null} [requestId] InsertRegionCommitmentRequest requestId */ /** - * Constructs a new InsertRegionBackendServiceRequest. + * Constructs a new InsertRegionCommitmentRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an InsertRegionBackendServiceRequest. - * @implements IInsertRegionBackendServiceRequest + * @classdesc Represents an InsertRegionCommitmentRequest. + * @implements IInsertRegionCommitmentRequest * @constructor - * @param {google.cloud.compute.v1beta.IInsertRegionBackendServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IInsertRegionCommitmentRequest=} [properties] Properties to set */ - function InsertRegionBackendServiceRequest(properties) { + function InsertRegionCommitmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -842502,68 +856167,68 @@ } /** - * InsertRegionBackendServiceRequest backendServiceResource. - * @member {google.cloud.compute.v1beta.IBackendService|null|undefined} backendServiceResource - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * InsertRegionCommitmentRequest commitmentResource. + * @member {google.cloud.compute.v1beta.ICommitment|null|undefined} commitmentResource + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @instance */ - InsertRegionBackendServiceRequest.prototype.backendServiceResource = null; + InsertRegionCommitmentRequest.prototype.commitmentResource = null; /** - * InsertRegionBackendServiceRequest project. + * InsertRegionCommitmentRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @instance */ - InsertRegionBackendServiceRequest.prototype.project = ""; + InsertRegionCommitmentRequest.prototype.project = ""; /** - * InsertRegionBackendServiceRequest region. + * InsertRegionCommitmentRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @instance */ - InsertRegionBackendServiceRequest.prototype.region = ""; + InsertRegionCommitmentRequest.prototype.region = ""; /** - * InsertRegionBackendServiceRequest requestId. + * InsertRegionCommitmentRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @instance */ - InsertRegionBackendServiceRequest.prototype.requestId = null; + InsertRegionCommitmentRequest.prototype.requestId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(InsertRegionBackendServiceRequest.prototype, "_requestId", { + Object.defineProperty(InsertRegionCommitmentRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new InsertRegionBackendServiceRequest instance using the specified properties. + * Creates a new InsertRegionCommitmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionBackendServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} InsertRegionBackendServiceRequest instance + * @param {google.cloud.compute.v1beta.IInsertRegionCommitmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} InsertRegionCommitmentRequest instance */ - InsertRegionBackendServiceRequest.create = function create(properties) { - return new InsertRegionBackendServiceRequest(properties); + InsertRegionCommitmentRequest.create = function create(properties) { + return new InsertRegionCommitmentRequest(properties); }; /** - * Encodes the specified InsertRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified InsertRegionCommitmentRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionCommitmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionBackendServiceRequest} message InsertRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IInsertRegionCommitmentRequest} message InsertRegionCommitmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionBackendServiceRequest.encode = function encode(message, writer) { + InsertRegionCommitmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) @@ -842572,46 +856237,46 @@ writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); - if (message.backendServiceResource != null && Object.hasOwnProperty.call(message, "backendServiceResource")) - $root.google.cloud.compute.v1beta.BackendService.encode(message.backendServiceResource, writer.uint32(/* id 347586723, wireType 2 =*/2780693786).fork()).ldelim(); + if (message.commitmentResource != null && Object.hasOwnProperty.call(message, "commitmentResource")) + $root.google.cloud.compute.v1beta.Commitment.encode(message.commitmentResource, writer.uint32(/* id 244240888, wireType 2 =*/1953927106).fork()).ldelim(); return writer; }; /** - * Encodes the specified InsertRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified InsertRegionCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionCommitmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionBackendServiceRequest} message InsertRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IInsertRegionCommitmentRequest} message InsertRegionCommitmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + InsertRegionCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InsertRegionBackendServiceRequest message from the specified reader or buffer. + * Decodes an InsertRegionCommitmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} InsertRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} InsertRegionCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionBackendServiceRequest.decode = function decode(reader, length, error) { + InsertRegionCommitmentRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionBackendServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionCommitmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 347586723: { - message.backendServiceResource = $root.google.cloud.compute.v1beta.BackendService.decode(reader, reader.uint32()); + case 244240888: { + message.commitmentResource = $root.google.cloud.compute.v1beta.Commitment.decode(reader, reader.uint32()); break; } case 227560217: { @@ -842635,37 +856300,37 @@ }; /** - * Decodes an InsertRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * Decodes an InsertRegionCommitmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} InsertRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} InsertRegionCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + InsertRegionCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InsertRegionBackendServiceRequest message. + * Verifies an InsertRegionCommitmentRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InsertRegionBackendServiceRequest.verify = function verify(message) { + InsertRegionCommitmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.backendServiceResource != null && message.hasOwnProperty("backendServiceResource")) { - var error = $root.google.cloud.compute.v1beta.BackendService.verify(message.backendServiceResource); + if (message.commitmentResource != null && message.hasOwnProperty("commitmentResource")) { + var error = $root.google.cloud.compute.v1beta.Commitment.verify(message.commitmentResource); if (error) - return "backendServiceResource." + error; + return "commitmentResource." + error; } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) @@ -842682,21 +856347,21 @@ }; /** - * Creates an InsertRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InsertRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} InsertRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} InsertRegionCommitmentRequest */ - InsertRegionBackendServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionBackendServiceRequest) + InsertRegionCommitmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionCommitmentRequest) return object; - var message = new $root.google.cloud.compute.v1beta.InsertRegionBackendServiceRequest(); - if (object.backendServiceResource != null) { - if (typeof object.backendServiceResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.InsertRegionBackendServiceRequest.backendServiceResource: object expected"); - message.backendServiceResource = $root.google.cloud.compute.v1beta.BackendService.fromObject(object.backendServiceResource); + var message = new $root.google.cloud.compute.v1beta.InsertRegionCommitmentRequest(); + if (object.commitmentResource != null) { + if (typeof object.commitmentResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertRegionCommitmentRequest.commitmentResource: object expected"); + message.commitmentResource = $root.google.cloud.compute.v1beta.Commitment.fromObject(object.commitmentResource); } if (object.project != null) message.project = String(object.project); @@ -842708,22 +856373,22 @@ }; /** - * Creates a plain object from an InsertRegionBackendServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from an InsertRegionCommitmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @static - * @param {google.cloud.compute.v1beta.InsertRegionBackendServiceRequest} message InsertRegionBackendServiceRequest + * @param {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} message InsertRegionCommitmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InsertRegionBackendServiceRequest.toObject = function toObject(message, options) { + InsertRegionCommitmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.region = ""; object.project = ""; - object.backendServiceResource = null; + object.commitmentResource = null; } if (message.requestId != null && message.hasOwnProperty("requestId")) { object.requestId = message.requestId; @@ -842734,61 +856399,61 @@ object.region = message.region; if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.backendServiceResource != null && message.hasOwnProperty("backendServiceResource")) - object.backendServiceResource = $root.google.cloud.compute.v1beta.BackendService.toObject(message.backendServiceResource, options); + if (message.commitmentResource != null && message.hasOwnProperty("commitmentResource")) + object.commitmentResource = $root.google.cloud.compute.v1beta.Commitment.toObject(message.commitmentResource, options); return object; }; /** - * Converts this InsertRegionBackendServiceRequest to JSON. + * Converts this InsertRegionCommitmentRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @instance * @returns {Object.} JSON object */ - InsertRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + InsertRegionCommitmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InsertRegionBackendServiceRequest + * Gets the default type url for InsertRegionCommitmentRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.InsertRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InsertRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InsertRegionCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionCommitmentRequest"; }; - return InsertRegionBackendServiceRequest; + return InsertRegionCommitmentRequest; })(); - v1beta.InsertRegionCommitmentRequest = (function() { + v1beta.InsertRegionCompositeHealthCheckRequest = (function() { /** - * Properties of an InsertRegionCommitmentRequest. + * Properties of an InsertRegionCompositeHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @interface IInsertRegionCommitmentRequest - * @property {google.cloud.compute.v1beta.ICommitment|null} [commitmentResource] InsertRegionCommitmentRequest commitmentResource - * @property {string|null} [project] InsertRegionCommitmentRequest project - * @property {string|null} [region] InsertRegionCommitmentRequest region - * @property {string|null} [requestId] InsertRegionCommitmentRequest requestId + * @interface IInsertRegionCompositeHealthCheckRequest + * @property {google.cloud.compute.v1beta.ICompositeHealthCheck|null} [compositeHealthCheckResource] InsertRegionCompositeHealthCheckRequest compositeHealthCheckResource + * @property {string|null} [project] InsertRegionCompositeHealthCheckRequest project + * @property {string|null} [region] InsertRegionCompositeHealthCheckRequest region + * @property {string|null} [requestId] InsertRegionCompositeHealthCheckRequest requestId */ /** - * Constructs a new InsertRegionCommitmentRequest. + * Constructs a new InsertRegionCompositeHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an InsertRegionCommitmentRequest. - * @implements IInsertRegionCommitmentRequest + * @classdesc Represents an InsertRegionCompositeHealthCheckRequest. + * @implements IInsertRegionCompositeHealthCheckRequest * @constructor - * @param {google.cloud.compute.v1beta.IInsertRegionCommitmentRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest=} [properties] Properties to set */ - function InsertRegionCommitmentRequest(properties) { + function InsertRegionCompositeHealthCheckRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -842796,116 +856461,116 @@ } /** - * InsertRegionCommitmentRequest commitmentResource. - * @member {google.cloud.compute.v1beta.ICommitment|null|undefined} commitmentResource - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * InsertRegionCompositeHealthCheckRequest compositeHealthCheckResource. + * @member {google.cloud.compute.v1beta.ICompositeHealthCheck|null|undefined} compositeHealthCheckResource + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @instance */ - InsertRegionCommitmentRequest.prototype.commitmentResource = null; + InsertRegionCompositeHealthCheckRequest.prototype.compositeHealthCheckResource = null; /** - * InsertRegionCommitmentRequest project. + * InsertRegionCompositeHealthCheckRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @instance */ - InsertRegionCommitmentRequest.prototype.project = ""; + InsertRegionCompositeHealthCheckRequest.prototype.project = ""; /** - * InsertRegionCommitmentRequest region. + * InsertRegionCompositeHealthCheckRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @instance */ - InsertRegionCommitmentRequest.prototype.region = ""; + InsertRegionCompositeHealthCheckRequest.prototype.region = ""; /** - * InsertRegionCommitmentRequest requestId. + * InsertRegionCompositeHealthCheckRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @instance */ - InsertRegionCommitmentRequest.prototype.requestId = null; + InsertRegionCompositeHealthCheckRequest.prototype.requestId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(InsertRegionCommitmentRequest.prototype, "_requestId", { + Object.defineProperty(InsertRegionCompositeHealthCheckRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new InsertRegionCommitmentRequest instance using the specified properties. + * Creates a new InsertRegionCompositeHealthCheckRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionCommitmentRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} InsertRegionCommitmentRequest instance + * @param {google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest} InsertRegionCompositeHealthCheckRequest instance */ - InsertRegionCommitmentRequest.create = function create(properties) { - return new InsertRegionCommitmentRequest(properties); + InsertRegionCompositeHealthCheckRequest.create = function create(properties) { + return new InsertRegionCompositeHealthCheckRequest(properties); }; /** - * Encodes the specified InsertRegionCommitmentRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionCommitmentRequest.verify|verify} messages. + * Encodes the specified InsertRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionCommitmentRequest} message InsertRegionCommitmentRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest} message InsertRegionCompositeHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionCommitmentRequest.encode = function encode(message, writer) { + InsertRegionCompositeHealthCheckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.compositeHealthCheckResource != null && Object.hasOwnProperty.call(message, "compositeHealthCheckResource")) + $root.google.cloud.compute.v1beta.CompositeHealthCheck.encode(message.compositeHealthCheckResource, writer.uint32(/* id 132195824, wireType 2 =*/1057566594).fork()).ldelim(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); - if (message.commitmentResource != null && Object.hasOwnProperty.call(message, "commitmentResource")) - $root.google.cloud.compute.v1beta.Commitment.encode(message.commitmentResource, writer.uint32(/* id 244240888, wireType 2 =*/1953927106).fork()).ldelim(); return writer; }; /** - * Encodes the specified InsertRegionCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionCommitmentRequest.verify|verify} messages. + * Encodes the specified InsertRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.IInsertRegionCommitmentRequest} message InsertRegionCommitmentRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest} message InsertRegionCompositeHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InsertRegionCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + InsertRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InsertRegionCommitmentRequest message from the specified reader or buffer. + * Decodes an InsertRegionCompositeHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} InsertRegionCommitmentRequest + * @returns {google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest} InsertRegionCompositeHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionCommitmentRequest.decode = function decode(reader, length, error) { + InsertRegionCompositeHealthCheckRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionCommitmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 244240888: { - message.commitmentResource = $root.google.cloud.compute.v1beta.Commitment.decode(reader, reader.uint32()); + case 132195824: { + message.compositeHealthCheckResource = $root.google.cloud.compute.v1beta.CompositeHealthCheck.decode(reader, reader.uint32()); break; } case 227560217: { @@ -842929,37 +856594,37 @@ }; /** - * Decodes an InsertRegionCommitmentRequest message from the specified reader or buffer, length delimited. + * Decodes an InsertRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} InsertRegionCommitmentRequest + * @returns {google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest} InsertRegionCompositeHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InsertRegionCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { + InsertRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InsertRegionCommitmentRequest message. + * Verifies an InsertRegionCompositeHealthCheckRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InsertRegionCommitmentRequest.verify = function verify(message) { + InsertRegionCompositeHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.commitmentResource != null && message.hasOwnProperty("commitmentResource")) { - var error = $root.google.cloud.compute.v1beta.Commitment.verify(message.commitmentResource); + if (message.compositeHealthCheckResource != null && message.hasOwnProperty("compositeHealthCheckResource")) { + var error = $root.google.cloud.compute.v1beta.CompositeHealthCheck.verify(message.compositeHealthCheckResource); if (error) - return "commitmentResource." + error; + return "compositeHealthCheckResource." + error; } if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) @@ -842976,21 +856641,21 @@ }; /** - * Creates an InsertRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InsertRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} InsertRegionCommitmentRequest + * @returns {google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest} InsertRegionCompositeHealthCheckRequest */ - InsertRegionCommitmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionCommitmentRequest) + InsertRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest) return object; - var message = new $root.google.cloud.compute.v1beta.InsertRegionCommitmentRequest(); - if (object.commitmentResource != null) { - if (typeof object.commitmentResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.InsertRegionCommitmentRequest.commitmentResource: object expected"); - message.commitmentResource = $root.google.cloud.compute.v1beta.Commitment.fromObject(object.commitmentResource); + var message = new $root.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest(); + if (object.compositeHealthCheckResource != null) { + if (typeof object.compositeHealthCheckResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest.compositeHealthCheckResource: object expected"); + message.compositeHealthCheckResource = $root.google.cloud.compute.v1beta.CompositeHealthCheck.fromObject(object.compositeHealthCheckResource); } if (object.project != null) message.project = String(object.project); @@ -843002,64 +856667,64 @@ }; /** - * Creates a plain object from an InsertRegionCommitmentRequest message. Also converts values to other types if specified. + * Creates a plain object from an InsertRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.InsertRegionCommitmentRequest} message InsertRegionCommitmentRequest + * @param {google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest} message InsertRegionCompositeHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InsertRegionCommitmentRequest.toObject = function toObject(message, options) { + InsertRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.compositeHealthCheckResource = null; object.region = ""; object.project = ""; - object.commitmentResource = null; } if (message.requestId != null && message.hasOwnProperty("requestId")) { object.requestId = message.requestId; if (options.oneofs) object._requestId = "requestId"; } + if (message.compositeHealthCheckResource != null && message.hasOwnProperty("compositeHealthCheckResource")) + object.compositeHealthCheckResource = $root.google.cloud.compute.v1beta.CompositeHealthCheck.toObject(message.compositeHealthCheckResource, options); if (message.region != null && message.hasOwnProperty("region")) object.region = message.region; if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.commitmentResource != null && message.hasOwnProperty("commitmentResource")) - object.commitmentResource = $root.google.cloud.compute.v1beta.Commitment.toObject(message.commitmentResource, options); return object; }; /** - * Converts this InsertRegionCommitmentRequest to JSON. + * Converts this InsertRegionCompositeHealthCheckRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @instance * @returns {Object.} JSON object */ - InsertRegionCommitmentRequest.prototype.toJSON = function toJSON() { + InsertRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InsertRegionCommitmentRequest + * Gets the default type url for InsertRegionCompositeHealthCheckRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.InsertRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InsertRegionCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InsertRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionCommitmentRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest"; }; - return InsertRegionCommitmentRequest; + return InsertRegionCompositeHealthCheckRequest; })(); v1beta.InsertRegionDiskRequest = (function() { @@ -843389,6 +857054,300 @@ return InsertRegionDiskRequest; })(); + v1beta.InsertRegionHealthAggregationPolicyRequest = (function() { + + /** + * Properties of an InsertRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IInsertRegionHealthAggregationPolicyRequest + * @property {google.cloud.compute.v1beta.IHealthAggregationPolicy|null} [healthAggregationPolicyResource] InsertRegionHealthAggregationPolicyRequest healthAggregationPolicyResource + * @property {string|null} [project] InsertRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] InsertRegionHealthAggregationPolicyRequest region + * @property {string|null} [requestId] InsertRegionHealthAggregationPolicyRequest requestId + */ + + /** + * Constructs a new InsertRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InsertRegionHealthAggregationPolicyRequest. + * @implements IInsertRegionHealthAggregationPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest=} [properties] Properties to set + */ + function InsertRegionHealthAggregationPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertRegionHealthAggregationPolicyRequest healthAggregationPolicyResource. + * @member {google.cloud.compute.v1beta.IHealthAggregationPolicy|null|undefined} healthAggregationPolicyResource + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @instance + */ + InsertRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicyResource = null; + + /** + * InsertRegionHealthAggregationPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @instance + */ + InsertRegionHealthAggregationPolicyRequest.prototype.project = ""; + + /** + * InsertRegionHealthAggregationPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @instance + */ + InsertRegionHealthAggregationPolicyRequest.prototype.region = ""; + + /** + * InsertRegionHealthAggregationPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @instance + */ + InsertRegionHealthAggregationPolicyRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionHealthAggregationPolicyRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionHealthAggregationPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest} InsertRegionHealthAggregationPolicyRequest instance + */ + InsertRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new InsertRegionHealthAggregationPolicyRequest(properties); + }; + + /** + * Encodes the specified InsertRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest} message InsertRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.healthAggregationPolicyResource != null && Object.hasOwnProperty.call(message, "healthAggregationPolicyResource")) + $root.google.cloud.compute.v1beta.HealthAggregationPolicy.encode(message.healthAggregationPolicyResource, writer.uint32(/* id 293526971, wireType 2 =*/2348215770).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest} message InsertRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest} InsertRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 293526971: { + message.healthAggregationPolicyResource = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest} InsertRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionHealthAggregationPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionHealthAggregationPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthAggregationPolicyResource != null && message.hasOwnProperty("healthAggregationPolicyResource")) { + var error = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.verify(message.healthAggregationPolicyResource); + if (error) + return "healthAggregationPolicyResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates an InsertRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest} InsertRegionHealthAggregationPolicyRequest + */ + InsertRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest(); + if (object.healthAggregationPolicyResource != null) { + if (typeof object.healthAggregationPolicyResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest.healthAggregationPolicyResource: object expected"); + message.healthAggregationPolicyResource = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.fromObject(object.healthAggregationPolicyResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an InsertRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest} message InsertRegionHealthAggregationPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthAggregationPolicyResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthAggregationPolicyResource != null && message.hasOwnProperty("healthAggregationPolicyResource")) + object.healthAggregationPolicyResource = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.toObject(message.healthAggregationPolicyResource, options); + return object; + }; + + /** + * Converts this InsertRegionHealthAggregationPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionHealthAggregationPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest"; + }; + + return InsertRegionHealthAggregationPolicyRequest; + })(); + v1beta.InsertRegionHealthCheckRequest = (function() { /** @@ -855900,6 +869859,300 @@ return InsertWireGroupRequest; })(); + v1beta.InsertZoneVmExtensionPolicyRequest = (function() { + + /** + * Properties of an InsertZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IInsertZoneVmExtensionPolicyRequest + * @property {string|null} [project] InsertZoneVmExtensionPolicyRequest project + * @property {string|null} [requestId] InsertZoneVmExtensionPolicyRequest requestId + * @property {google.cloud.compute.v1beta.IVmExtensionPolicy|null} [vmExtensionPolicyResource] InsertZoneVmExtensionPolicyRequest vmExtensionPolicyResource + * @property {string|null} [zone] InsertZoneVmExtensionPolicyRequest zone + */ + + /** + * Constructs a new InsertZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InsertZoneVmExtensionPolicyRequest. + * @implements IInsertZoneVmExtensionPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest=} [properties] Properties to set + */ + function InsertZoneVmExtensionPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertZoneVmExtensionPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @instance + */ + InsertZoneVmExtensionPolicyRequest.prototype.project = ""; + + /** + * InsertZoneVmExtensionPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @instance + */ + InsertZoneVmExtensionPolicyRequest.prototype.requestId = null; + + /** + * InsertZoneVmExtensionPolicyRequest vmExtensionPolicyResource. + * @member {google.cloud.compute.v1beta.IVmExtensionPolicy|null|undefined} vmExtensionPolicyResource + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @instance + */ + InsertZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicyResource = null; + + /** + * InsertZoneVmExtensionPolicyRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @instance + */ + InsertZoneVmExtensionPolicyRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertZoneVmExtensionPolicyRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertZoneVmExtensionPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest} InsertZoneVmExtensionPolicyRequest instance + */ + InsertZoneVmExtensionPolicyRequest.create = function create(properties) { + return new InsertZoneVmExtensionPolicyRequest(properties); + }; + + /** + * Encodes the specified InsertZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest} message InsertZoneVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertZoneVmExtensionPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.vmExtensionPolicyResource != null && Object.hasOwnProperty.call(message, "vmExtensionPolicyResource")) + $root.google.cloud.compute.v1beta.VmExtensionPolicy.encode(message.vmExtensionPolicyResource, writer.uint32(/* id 515669235, wireType 2 =*/4125353882).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest} message InsertZoneVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertZoneVmExtensionPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertZoneVmExtensionPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest} InsertZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertZoneVmExtensionPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 515669235: { + message.vmExtensionPolicyResource = $root.google.cloud.compute.v1beta.VmExtensionPolicy.decode(reader, reader.uint32()); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertZoneVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest} InsertZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertZoneVmExtensionPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertZoneVmExtensionPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertZoneVmExtensionPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.vmExtensionPolicyResource != null && message.hasOwnProperty("vmExtensionPolicyResource")) { + var error = $root.google.cloud.compute.v1beta.VmExtensionPolicy.verify(message.vmExtensionPolicyResource); + if (error) + return "vmExtensionPolicyResource." + error; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an InsertZoneVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest} InsertZoneVmExtensionPolicyRequest + */ + InsertZoneVmExtensionPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.vmExtensionPolicyResource != null) { + if (typeof object.vmExtensionPolicyResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest.vmExtensionPolicyResource: object expected"); + message.vmExtensionPolicyResource = $root.google.cloud.compute.v1beta.VmExtensionPolicy.fromObject(object.vmExtensionPolicyResource); + } + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an InsertZoneVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest} message InsertZoneVmExtensionPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertZoneVmExtensionPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.vmExtensionPolicyResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.vmExtensionPolicyResource != null && message.hasOwnProperty("vmExtensionPolicyResource")) + object.vmExtensionPolicyResource = $root.google.cloud.compute.v1beta.VmExtensionPolicy.toObject(message.vmExtensionPolicyResource, options); + return object; + }; + + /** + * Converts this InsertZoneVmExtensionPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + InsertZoneVmExtensionPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertZoneVmExtensionPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertZoneVmExtensionPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest"; + }; + + return InsertZoneVmExtensionPolicyRequest; + })(); + v1beta.Instance = (function() { /** @@ -872104,6 +886357,522 @@ return InstanceGroupManagersDeletePerInstanceConfigsReq; })(); + v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse = (function() { + + /** + * Properties of an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse. + * @memberof google.cloud.compute.v1beta + * @interface IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @property {Object.|null} [acceleratorTopologiesInfo] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse acceleratorTopologiesInfo + */ + + /** + * Constructs a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse. + * @implements IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @constructor + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse=} [properties] Properties to set + */ + function InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse(properties) { + this.acceleratorTopologiesInfo = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse acceleratorTopologiesInfo. + * @member {Object.} acceleratorTopologiesInfo + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.prototype.acceleratorTopologiesInfo = $util.emptyObject; + + /** + * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.create = function create(properties) { + return new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse(properties); + }; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse} message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.acceleratorTopologiesInfo != null && Object.hasOwnProperty.call(message, "acceleratorTopologiesInfo")) + for (var keys = Object.keys(message.acceleratorTopologiesInfo), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 84833420, wireType 2 =*/678667362).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.encode(message.acceleratorTopologiesInfo[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse} message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 84833420: { + if (message.acceleratorTopologiesInfo === $util.emptyObject) + message.acceleratorTopologiesInfo = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.acceleratorTopologiesInfo[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.acceleratorTopologiesInfo != null && message.hasOwnProperty("acceleratorTopologiesInfo")) { + if (!$util.isObject(message.acceleratorTopologiesInfo)) + return "acceleratorTopologiesInfo: object expected"; + var key = Object.keys(message.acceleratorTopologiesInfo); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.verify(message.acceleratorTopologiesInfo[key[i]]); + if (error) + return "acceleratorTopologiesInfo." + error; + } + } + return null; + }; + + /** + * Creates an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse) + return object; + var message = new $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse(); + if (object.acceleratorTopologiesInfo) { + if (typeof object.acceleratorTopologiesInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.acceleratorTopologiesInfo: object expected"); + message.acceleratorTopologiesInfo = {}; + for (var keys = Object.keys(object.acceleratorTopologiesInfo), i = 0; i < keys.length; ++i) { + if (typeof object.acceleratorTopologiesInfo[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.acceleratorTopologiesInfo: object expected"); + message.acceleratorTopologiesInfo[keys[i]] = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.fromObject(object.acceleratorTopologiesInfo[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @static + * @param {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse} message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.acceleratorTopologiesInfo = {}; + var keys2; + if (message.acceleratorTopologiesInfo && (keys2 = Object.keys(message.acceleratorTopologiesInfo)).length) { + object.acceleratorTopologiesInfo = {}; + for (var j = 0; j < keys2.length; ++j) + object.acceleratorTopologiesInfo[keys2[j]] = $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.toObject(message.acceleratorTopologiesInfo[keys2[j]], options); + } + return object; + }; + + /** + * Converts this InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse"; + }; + + return InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse; + })(); + + v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo = (function() { + + /** + * Properties of an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo. + * @memberof google.cloud.compute.v1beta + * @interface IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @property {string|null} [acceleratorTopology] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopology + * @property {string|null} [acceleratorTopologyHealth] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyHealth + */ + + /** + * Constructs a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo. + * @implements IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @constructor + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo=} [properties] Properties to set + */ + function InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopology. + * @member {string|null|undefined} acceleratorTopology + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype.acceleratorTopology = null; + + /** + * InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo acceleratorTopologyHealth. + * @member {string|null|undefined} acceleratorTopologyHealth + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype.acceleratorTopologyHealth = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype, "_acceleratorTopology", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopology"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype, "_acceleratorTopologyHealth", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologyHealth"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo instance + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.create = function create(properties) { + return new InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo(properties); + }; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo} message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.acceleratorTopologyHealth != null && Object.hasOwnProperty.call(message, "acceleratorTopologyHealth")) + writer.uint32(/* id 323449944, wireType 2 =*/2587599554).string(message.acceleratorTopologyHealth); + if (message.acceleratorTopology != null && Object.hasOwnProperty.call(message, "acceleratorTopology")) + writer.uint32(/* id 389323203, wireType 2 =*/3114585626).string(message.acceleratorTopology); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo} message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 389323203: { + message.acceleratorTopology = reader.string(); + break; + } + case 323449944: { + message.acceleratorTopologyHealth = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { + properties._acceleratorTopology = 1; + if (!$util.isString(message.acceleratorTopology)) + return "acceleratorTopology: string expected"; + } + if (message.acceleratorTopologyHealth != null && message.hasOwnProperty("acceleratorTopologyHealth")) { + properties._acceleratorTopologyHealth = 1; + if (!$util.isString(message.acceleratorTopologyHealth)) + return "acceleratorTopologyHealth: string expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo} InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo(); + if (object.acceleratorTopology != null) + message.acceleratorTopology = String(object.acceleratorTopology); + if (object.acceleratorTopologyHealth != null) + message.acceleratorTopologyHealth = String(object.acceleratorTopologyHealth); + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @static + * @param {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo} message InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.acceleratorTopologyHealth != null && message.hasOwnProperty("acceleratorTopologyHealth")) { + object.acceleratorTopologyHealth = message.acceleratorTopologyHealth; + if (options.oneofs) + object._acceleratorTopologyHealth = "acceleratorTopologyHealth"; + } + if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { + object.acceleratorTopology = message.acceleratorTopology; + if (options.oneofs) + object._acceleratorTopology = "acceleratorTopology"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo"; + }; + + /** + * AcceleratorTopologyHealth enum. + * @name google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.AcceleratorTopologyHealth + * @enum {number} + * @property {number} UNDEFINED_ACCELERATOR_TOPOLOGY_HEALTH=0 UNDEFINED_ACCELERATOR_TOPOLOGY_HEALTH value + * @property {number} DEGRADED=396890926 DEGRADED value + * @property {number} HEALTHY=439801213 HEALTHY value + * @property {number} UNHEALTHY=462118084 UNHEALTHY value + */ + InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.AcceleratorTopologyHealth = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ACCELERATOR_TOPOLOGY_HEALTH"] = 0; + values[valuesById[396890926] = "DEGRADED"] = 396890926; + values[valuesById[439801213] = "HEALTHY"] = 439801213; + values[valuesById[462118084] = "UNHEALTHY"] = 462118084; + return values; + })(); + + return InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo; + })(); + v1beta.InstanceGroupManagersListErrorsResponse = (function() { /** @@ -891279,6 +906048,7 @@ * @property {string|null} [name] Interconnect name * @property {string|null} [nocContactEmail] Interconnect nocContactEmail * @property {string|null} [operationalStatus] Interconnect operationalStatus + * @property {google.cloud.compute.v1beta.IInterconnectParams|null} [params] Interconnect params * @property {string|null} [peerIpAddress] Interconnect peerIpAddress * @property {number|null} [provisionedLinkCount] Interconnect provisionedLinkCount * @property {string|null} [remoteLocation] Interconnect remoteLocation @@ -891514,6 +906284,14 @@ */ Interconnect.prototype.operationalStatus = null; + /** + * Interconnect params. + * @member {google.cloud.compute.v1beta.IInterconnectParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.Interconnect + * @instance + */ + Interconnect.prototype.params = null; + /** * Interconnect peerIpAddress. * @member {string|null|undefined} peerIpAddress @@ -891711,6 +906489,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Interconnect.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Interconnect.prototype, "_peerIpAddress", { get: $util.oneOfGetter($oneOfFields = ["peerIpAddress"]), @@ -891800,6 +906584,8 @@ writer.uint32(/* id 40662734, wireType 2 =*/325301874).string(message.wireGroups[i]); if (message.requestedLinkCount != null && Object.hasOwnProperty.call(message, "requestedLinkCount")) writer.uint32(/* id 45051387, wireType 0 =*/360411096).int32(message.requestedLinkCount); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.InterconnectParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); if (message.circuitInfos != null && message.circuitInfos.length) @@ -892026,6 +906812,10 @@ message.operationalStatus = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.InterconnectParams.decode(reader, reader.uint32()); + break; + } case 207735769: { message.peerIpAddress = reader.string(); break; @@ -892254,6 +907044,14 @@ if (!$util.isString(message.operationalStatus)) return "operationalStatus: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.InterconnectParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.peerIpAddress != null && message.hasOwnProperty("peerIpAddress")) { properties._peerIpAddress = 1; if (!$util.isString(message.peerIpAddress)) @@ -892422,6 +907220,11 @@ message.nocContactEmail = String(object.nocContactEmail); if (object.operationalStatus != null) message.operationalStatus = String(object.operationalStatus); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.Interconnect.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.InterconnectParams.fromObject(object.params); + } if (object.peerIpAddress != null) message.peerIpAddress = String(object.peerIpAddress); if (object.provisionedLinkCount != null) @@ -892522,6 +907325,11 @@ if (options.oneofs) object._requestedLinkCount = "requestedLinkCount"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.InterconnectParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.state != null && message.hasOwnProperty("state")) { object.state = message.state; if (options.oneofs) @@ -893849,12 +908657,14 @@ * @property {string|null} [interconnect] InterconnectAttachment interconnect * @property {Array.|null} [ipsecInternalAddresses] InterconnectAttachment ipsecInternalAddresses * @property {string|null} [kind] InterconnectAttachment kind + * @property {google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding|null} [l2Forwarding] InterconnectAttachment l2Forwarding * @property {string|null} [labelFingerprint] InterconnectAttachment labelFingerprint * @property {Object.|null} [labels] InterconnectAttachment labels * @property {number|null} [mtu] InterconnectAttachment mtu * @property {string|null} [name] InterconnectAttachment name * @property {string|null} [operationalStatus] InterconnectAttachment operationalStatus * @property {string|null} [pairingKey] InterconnectAttachment pairingKey + * @property {google.cloud.compute.v1beta.IInterconnectAttachmentParams|null} [params] InterconnectAttachment params * @property {number|Long|null} [partnerAsn] InterconnectAttachment partnerAsn * @property {google.cloud.compute.v1beta.IInterconnectAttachmentPartnerMetadata|null} [partnerMetadata] InterconnectAttachment partnerMetadata * @property {google.cloud.compute.v1beta.IInterconnectAttachmentPrivateInfo|null} [privateInterconnectInfo] InterconnectAttachment privateInterconnectInfo @@ -894097,6 +908907,14 @@ */ InterconnectAttachment.prototype.kind = null; + /** + * InterconnectAttachment l2Forwarding. + * @member {google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding|null|undefined} l2Forwarding + * @memberof google.cloud.compute.v1beta.InterconnectAttachment + * @instance + */ + InterconnectAttachment.prototype.l2Forwarding = null; + /** * InterconnectAttachment labelFingerprint. * @member {string|null|undefined} labelFingerprint @@ -894145,6 +908963,14 @@ */ InterconnectAttachment.prototype.pairingKey = null; + /** + * InterconnectAttachment params. + * @member {google.cloud.compute.v1beta.IInterconnectAttachmentParams|null|undefined} params + * @memberof google.cloud.compute.v1beta.InterconnectAttachment + * @instance + */ + InterconnectAttachment.prototype.params = null; + /** * InterconnectAttachment partnerAsn. * @member {number|Long|null|undefined} partnerAsn @@ -894390,6 +909216,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachment.prototype, "_l2Forwarding", { + get: $util.oneOfGetter($oneOfFields = ["l2Forwarding"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InterconnectAttachment.prototype, "_labelFingerprint", { get: $util.oneOfGetter($oneOfFields = ["labelFingerprint"]), @@ -894420,6 +909252,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachment.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InterconnectAttachment.prototype, "_partnerAsn", { get: $util.oneOfGetter($oneOfFields = ["partnerAsn"]), @@ -894545,6 +909383,10 @@ writer.uint32(/* id 70682522, wireType 2 =*/565460178).string(message.candidateIpv6Subnets[i]); if (message.edgeAvailabilityDomain != null && Object.hasOwnProperty.call(message, "edgeAvailabilityDomain")) writer.uint32(/* id 71289510, wireType 2 =*/570316082).string(message.edgeAvailabilityDomain); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1beta.InterconnectAttachmentParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); + if (message.l2Forwarding != null && Object.hasOwnProperty.call(message, "l2Forwarding")) + $root.google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.encode(message.l2Forwarding, writer.uint32(/* id 84784022, wireType 2 =*/678272178).fork()).ldelim(); if (message.encryption != null && Object.hasOwnProperty.call(message, "encryption")) writer.uint32(/* id 97980291, wireType 2 =*/783842330).string(message.encryption); if (message.state != null && Object.hasOwnProperty.call(message, "state")) @@ -894762,6 +909604,10 @@ message.kind = reader.string(); break; } + case 84784022: { + message.l2Forwarding = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.decode(reader, reader.uint32()); + break; + } case 178124825: { message.labelFingerprint = reader.string(); break; @@ -894805,6 +909651,10 @@ message.pairingKey = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1beta.InterconnectAttachmentParams.decode(reader, reader.uint32()); + break; + } case 438166149: { message.partnerAsn = reader.int64(); break; @@ -895032,6 +909882,14 @@ if (!$util.isString(message.kind)) return "kind: string expected"; } + if (message.l2Forwarding != null && message.hasOwnProperty("l2Forwarding")) { + properties._l2Forwarding = 1; + { + var error = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.verify(message.l2Forwarding); + if (error) + return "l2Forwarding." + error; + } + } if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { properties._labelFingerprint = 1; if (!$util.isString(message.labelFingerprint)) @@ -895065,6 +909923,14 @@ if (!$util.isString(message.pairingKey)) return "pairingKey: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1beta.InterconnectAttachmentParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.partnerAsn != null && message.hasOwnProperty("partnerAsn")) { properties._partnerAsn = 1; if (!$util.isInteger(message.partnerAsn) && !(message.partnerAsn && $util.isInteger(message.partnerAsn.low) && $util.isInteger(message.partnerAsn.high))) @@ -895228,6 +910094,11 @@ } if (object.kind != null) message.kind = String(object.kind); + if (object.l2Forwarding != null) { + if (typeof object.l2Forwarding !== "object") + throw TypeError(".google.cloud.compute.v1beta.InterconnectAttachment.l2Forwarding: object expected"); + message.l2Forwarding = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.fromObject(object.l2Forwarding); + } if (object.labelFingerprint != null) message.labelFingerprint = String(object.labelFingerprint); if (object.labels) { @@ -895245,6 +910116,11 @@ message.operationalStatus = String(object.operationalStatus); if (object.pairingKey != null) message.pairingKey = String(object.pairingKey); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1beta.InterconnectAttachment.params: object expected"); + message.params = $root.google.cloud.compute.v1beta.InterconnectAttachmentParams.fromObject(object.params); + } if (object.partnerAsn != null) if ($util.Long) (message.partnerAsn = $util.Long.fromValue(object.partnerAsn)).unsigned = false; @@ -895365,6 +910241,16 @@ if (options.oneofs) object._edgeAvailabilityDomain = "edgeAvailabilityDomain"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1beta.InterconnectAttachmentParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } + if (message.l2Forwarding != null && message.hasOwnProperty("l2Forwarding")) { + object.l2Forwarding = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.toObject(message.l2Forwarding, options); + if (options.oneofs) + object._l2Forwarding = "l2Forwarding"; + } if (message.encryption != null && message.hasOwnProperty("encryption")) { object.encryption = message.encryption; if (options.oneofs) @@ -895704,6 +910590,7 @@ * @enum {number} * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value * @property {number} DEDICATED=258411983 DEDICATED value + * @property {number} L2_DEDICATED=336595510 L2_DEDICATED value * @property {number} PARTNER=461924520 PARTNER value * @property {number} PARTNER_PROVIDER=483261352 PARTNER_PROVIDER value */ @@ -895711,6 +910598,7 @@ var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_TYPE"] = 0; values[valuesById[258411983] = "DEDICATED"] = 258411983; + values[valuesById[336595510] = "L2_DEDICATED"] = 336595510; values[valuesById[461924520] = "PARTNER"] = 461924520; values[valuesById[483261352] = "PARTNER_PROVIDER"] = 483261352; return values; @@ -901567,6 +916455,1167 @@ return InterconnectAttachmentGroupsOperationalStatusAttachmentStatus; })(); + v1beta.InterconnectAttachmentL2Forwarding = (function() { + + /** + * Properties of an InterconnectAttachmentL2Forwarding. + * @memberof google.cloud.compute.v1beta + * @interface IInterconnectAttachmentL2Forwarding + * @property {Object.|null} [applianceMappings] InterconnectAttachmentL2Forwarding applianceMappings + * @property {string|null} [defaultApplianceIpAddress] InterconnectAttachmentL2Forwarding defaultApplianceIpAddress + * @property {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader|null} [geneveHeader] InterconnectAttachmentL2Forwarding geneveHeader + * @property {string|null} [network] InterconnectAttachmentL2Forwarding network + * @property {string|null} [tunnelEndpointIpAddress] InterconnectAttachmentL2Forwarding tunnelEndpointIpAddress + */ + + /** + * Constructs a new InterconnectAttachmentL2Forwarding. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InterconnectAttachmentL2Forwarding. + * @implements IInterconnectAttachmentL2Forwarding + * @constructor + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding=} [properties] Properties to set + */ + function InterconnectAttachmentL2Forwarding(properties) { + this.applianceMappings = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InterconnectAttachmentL2Forwarding applianceMappings. + * @member {Object.} applianceMappings + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @instance + */ + InterconnectAttachmentL2Forwarding.prototype.applianceMappings = $util.emptyObject; + + /** + * InterconnectAttachmentL2Forwarding defaultApplianceIpAddress. + * @member {string|null|undefined} defaultApplianceIpAddress + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @instance + */ + InterconnectAttachmentL2Forwarding.prototype.defaultApplianceIpAddress = null; + + /** + * InterconnectAttachmentL2Forwarding geneveHeader. + * @member {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader|null|undefined} geneveHeader + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @instance + */ + InterconnectAttachmentL2Forwarding.prototype.geneveHeader = null; + + /** + * InterconnectAttachmentL2Forwarding network. + * @member {string|null|undefined} network + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @instance + */ + InterconnectAttachmentL2Forwarding.prototype.network = null; + + /** + * InterconnectAttachmentL2Forwarding tunnelEndpointIpAddress. + * @member {string|null|undefined} tunnelEndpointIpAddress + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @instance + */ + InterconnectAttachmentL2Forwarding.prototype.tunnelEndpointIpAddress = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachmentL2Forwarding.prototype, "_defaultApplianceIpAddress", { + get: $util.oneOfGetter($oneOfFields = ["defaultApplianceIpAddress"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachmentL2Forwarding.prototype, "_geneveHeader", { + get: $util.oneOfGetter($oneOfFields = ["geneveHeader"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachmentL2Forwarding.prototype, "_network", { + get: $util.oneOfGetter($oneOfFields = ["network"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachmentL2Forwarding.prototype, "_tunnelEndpointIpAddress", { + get: $util.oneOfGetter($oneOfFields = ["tunnelEndpointIpAddress"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InterconnectAttachmentL2Forwarding instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding} InterconnectAttachmentL2Forwarding instance + */ + InterconnectAttachmentL2Forwarding.create = function create(properties) { + return new InterconnectAttachmentL2Forwarding(properties); + }; + + /** + * Encodes the specified InterconnectAttachmentL2Forwarding message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding} message InterconnectAttachmentL2Forwarding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentL2Forwarding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.geneveHeader != null && Object.hasOwnProperty.call(message, "geneveHeader")) + $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader.encode(message.geneveHeader, writer.uint32(/* id 118688424, wireType 2 =*/949507394).fork()).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 232872494, wireType 2 =*/1862979954).string(message.network); + if (message.applianceMappings != null && Object.hasOwnProperty.call(message, "applianceMappings")) + for (var keys = Object.keys(message.applianceMappings), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 374529975, wireType 2 =*/2996239802).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.encode(message.applianceMappings[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.tunnelEndpointIpAddress != null && Object.hasOwnProperty.call(message, "tunnelEndpointIpAddress")) + writer.uint32(/* id 468740975, wireType 2 =*/3749927802).string(message.tunnelEndpointIpAddress); + if (message.defaultApplianceIpAddress != null && Object.hasOwnProperty.call(message, "defaultApplianceIpAddress")) + writer.uint32(/* id 536490476, wireType 2 =*/4291923810).string(message.defaultApplianceIpAddress); + return writer; + }; + + /** + * Encodes the specified InterconnectAttachmentL2Forwarding message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2Forwarding} message InterconnectAttachmentL2Forwarding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentL2Forwarding.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InterconnectAttachmentL2Forwarding message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding} InterconnectAttachmentL2Forwarding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentL2Forwarding.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 374529975: { + if (message.applianceMappings === $util.emptyObject) + message.applianceMappings = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.applianceMappings[key] = value; + break; + } + case 536490476: { + message.defaultApplianceIpAddress = reader.string(); + break; + } + case 118688424: { + message.geneveHeader = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader.decode(reader, reader.uint32()); + break; + } + case 232872494: { + message.network = reader.string(); + break; + } + case 468740975: { + message.tunnelEndpointIpAddress = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InterconnectAttachmentL2Forwarding message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding} InterconnectAttachmentL2Forwarding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentL2Forwarding.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InterconnectAttachmentL2Forwarding message. + * @function verify + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InterconnectAttachmentL2Forwarding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.applianceMappings != null && message.hasOwnProperty("applianceMappings")) { + if (!$util.isObject(message.applianceMappings)) + return "applianceMappings: object expected"; + var key = Object.keys(message.applianceMappings); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.verify(message.applianceMappings[key[i]]); + if (error) + return "applianceMappings." + error; + } + } + if (message.defaultApplianceIpAddress != null && message.hasOwnProperty("defaultApplianceIpAddress")) { + properties._defaultApplianceIpAddress = 1; + if (!$util.isString(message.defaultApplianceIpAddress)) + return "defaultApplianceIpAddress: string expected"; + } + if (message.geneveHeader != null && message.hasOwnProperty("geneveHeader")) { + properties._geneveHeader = 1; + { + var error = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader.verify(message.geneveHeader); + if (error) + return "geneveHeader." + error; + } + } + if (message.network != null && message.hasOwnProperty("network")) { + properties._network = 1; + if (!$util.isString(message.network)) + return "network: string expected"; + } + if (message.tunnelEndpointIpAddress != null && message.hasOwnProperty("tunnelEndpointIpAddress")) { + properties._tunnelEndpointIpAddress = 1; + if (!$util.isString(message.tunnelEndpointIpAddress)) + return "tunnelEndpointIpAddress: string expected"; + } + return null; + }; + + /** + * Creates an InterconnectAttachmentL2Forwarding message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding} InterconnectAttachmentL2Forwarding + */ + InterconnectAttachmentL2Forwarding.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding) + return object; + var message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding(); + if (object.applianceMappings) { + if (typeof object.applianceMappings !== "object") + throw TypeError(".google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.applianceMappings: object expected"); + message.applianceMappings = {}; + for (var keys = Object.keys(object.applianceMappings), i = 0; i < keys.length; ++i) { + if (typeof object.applianceMappings[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.applianceMappings: object expected"); + message.applianceMappings[keys[i]] = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.fromObject(object.applianceMappings[keys[i]]); + } + } + if (object.defaultApplianceIpAddress != null) + message.defaultApplianceIpAddress = String(object.defaultApplianceIpAddress); + if (object.geneveHeader != null) { + if (typeof object.geneveHeader !== "object") + throw TypeError(".google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding.geneveHeader: object expected"); + message.geneveHeader = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader.fromObject(object.geneveHeader); + } + if (object.network != null) + message.network = String(object.network); + if (object.tunnelEndpointIpAddress != null) + message.tunnelEndpointIpAddress = String(object.tunnelEndpointIpAddress); + return message; + }; + + /** + * Creates a plain object from an InterconnectAttachmentL2Forwarding message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @static + * @param {google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding} message InterconnectAttachmentL2Forwarding + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InterconnectAttachmentL2Forwarding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.applianceMappings = {}; + if (message.geneveHeader != null && message.hasOwnProperty("geneveHeader")) { + object.geneveHeader = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader.toObject(message.geneveHeader, options); + if (options.oneofs) + object._geneveHeader = "geneveHeader"; + } + if (message.network != null && message.hasOwnProperty("network")) { + object.network = message.network; + if (options.oneofs) + object._network = "network"; + } + var keys2; + if (message.applianceMappings && (keys2 = Object.keys(message.applianceMappings)).length) { + object.applianceMappings = {}; + for (var j = 0; j < keys2.length; ++j) + object.applianceMappings[keys2[j]] = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.toObject(message.applianceMappings[keys2[j]], options); + } + if (message.tunnelEndpointIpAddress != null && message.hasOwnProperty("tunnelEndpointIpAddress")) { + object.tunnelEndpointIpAddress = message.tunnelEndpointIpAddress; + if (options.oneofs) + object._tunnelEndpointIpAddress = "tunnelEndpointIpAddress"; + } + if (message.defaultApplianceIpAddress != null && message.hasOwnProperty("defaultApplianceIpAddress")) { + object.defaultApplianceIpAddress = message.defaultApplianceIpAddress; + if (options.oneofs) + object._defaultApplianceIpAddress = "defaultApplianceIpAddress"; + } + return object; + }; + + /** + * Converts this InterconnectAttachmentL2Forwarding to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @instance + * @returns {Object.} JSON object + */ + InterconnectAttachmentL2Forwarding.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InterconnectAttachmentL2Forwarding + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InterconnectAttachmentL2Forwarding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InterconnectAttachmentL2Forwarding"; + }; + + return InterconnectAttachmentL2Forwarding; + })(); + + v1beta.InterconnectAttachmentL2ForwardingApplianceMapping = (function() { + + /** + * Properties of an InterconnectAttachmentL2ForwardingApplianceMapping. + * @memberof google.cloud.compute.v1beta + * @interface IInterconnectAttachmentL2ForwardingApplianceMapping + * @property {string|null} [applianceIpAddress] InterconnectAttachmentL2ForwardingApplianceMapping applianceIpAddress + * @property {Array.|null} [innerVlanToApplianceMappings] InterconnectAttachmentL2ForwardingApplianceMapping innerVlanToApplianceMappings + * @property {string|null} [name] InterconnectAttachmentL2ForwardingApplianceMapping name + */ + + /** + * Constructs a new InterconnectAttachmentL2ForwardingApplianceMapping. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InterconnectAttachmentL2ForwardingApplianceMapping. + * @implements IInterconnectAttachmentL2ForwardingApplianceMapping + * @constructor + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping=} [properties] Properties to set + */ + function InterconnectAttachmentL2ForwardingApplianceMapping(properties) { + this.innerVlanToApplianceMappings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InterconnectAttachmentL2ForwardingApplianceMapping applianceIpAddress. + * @member {string|null|undefined} applianceIpAddress + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @instance + */ + InterconnectAttachmentL2ForwardingApplianceMapping.prototype.applianceIpAddress = null; + + /** + * InterconnectAttachmentL2ForwardingApplianceMapping innerVlanToApplianceMappings. + * @member {Array.} innerVlanToApplianceMappings + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @instance + */ + InterconnectAttachmentL2ForwardingApplianceMapping.prototype.innerVlanToApplianceMappings = $util.emptyArray; + + /** + * InterconnectAttachmentL2ForwardingApplianceMapping name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @instance + */ + InterconnectAttachmentL2ForwardingApplianceMapping.prototype.name = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachmentL2ForwardingApplianceMapping.prototype, "_applianceIpAddress", { + get: $util.oneOfGetter($oneOfFields = ["applianceIpAddress"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachmentL2ForwardingApplianceMapping.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InterconnectAttachmentL2ForwardingApplianceMapping instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping} InterconnectAttachmentL2ForwardingApplianceMapping instance + */ + InterconnectAttachmentL2ForwardingApplianceMapping.create = function create(properties) { + return new InterconnectAttachmentL2ForwardingApplianceMapping(properties); + }; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingApplianceMapping message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping} message InterconnectAttachmentL2ForwardingApplianceMapping message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentL2ForwardingApplianceMapping.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.applianceIpAddress != null && Object.hasOwnProperty.call(message, "applianceIpAddress")) + writer.uint32(/* id 57985710, wireType 2 =*/463885682).string(message.applianceIpAddress); + if (message.innerVlanToApplianceMappings != null && message.innerVlanToApplianceMappings.length) + for (var i = 0; i < message.innerVlanToApplianceMappings.length; ++i) + $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.encode(message.innerVlanToApplianceMappings[i], writer.uint32(/* id 97387944, wireType 2 =*/779103554).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingApplianceMapping message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMapping} message InterconnectAttachmentL2ForwardingApplianceMapping message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentL2ForwardingApplianceMapping.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InterconnectAttachmentL2ForwardingApplianceMapping message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping} InterconnectAttachmentL2ForwardingApplianceMapping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentL2ForwardingApplianceMapping.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 57985710: { + message.applianceIpAddress = reader.string(); + break; + } + case 97387944: { + if (!(message.innerVlanToApplianceMappings && message.innerVlanToApplianceMappings.length)) + message.innerVlanToApplianceMappings = []; + message.innerVlanToApplianceMappings.push($root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.decode(reader, reader.uint32())); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InterconnectAttachmentL2ForwardingApplianceMapping message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping} InterconnectAttachmentL2ForwardingApplianceMapping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentL2ForwardingApplianceMapping.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InterconnectAttachmentL2ForwardingApplianceMapping message. + * @function verify + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InterconnectAttachmentL2ForwardingApplianceMapping.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.applianceIpAddress != null && message.hasOwnProperty("applianceIpAddress")) { + properties._applianceIpAddress = 1; + if (!$util.isString(message.applianceIpAddress)) + return "applianceIpAddress: string expected"; + } + if (message.innerVlanToApplianceMappings != null && message.hasOwnProperty("innerVlanToApplianceMappings")) { + if (!Array.isArray(message.innerVlanToApplianceMappings)) + return "innerVlanToApplianceMappings: array expected"; + for (var i = 0; i < message.innerVlanToApplianceMappings.length; ++i) { + var error = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.verify(message.innerVlanToApplianceMappings[i]); + if (error) + return "innerVlanToApplianceMappings." + error; + } + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + return null; + }; + + /** + * Creates an InterconnectAttachmentL2ForwardingApplianceMapping message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping} InterconnectAttachmentL2ForwardingApplianceMapping + */ + InterconnectAttachmentL2ForwardingApplianceMapping.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping) + return object; + var message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping(); + if (object.applianceIpAddress != null) + message.applianceIpAddress = String(object.applianceIpAddress); + if (object.innerVlanToApplianceMappings) { + if (!Array.isArray(object.innerVlanToApplianceMappings)) + throw TypeError(".google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.innerVlanToApplianceMappings: array expected"); + message.innerVlanToApplianceMappings = []; + for (var i = 0; i < object.innerVlanToApplianceMappings.length; ++i) { + if (typeof object.innerVlanToApplianceMappings[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping.innerVlanToApplianceMappings: object expected"); + message.innerVlanToApplianceMappings[i] = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.fromObject(object.innerVlanToApplianceMappings[i]); + } + } + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an InterconnectAttachmentL2ForwardingApplianceMapping message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @static + * @param {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping} message InterconnectAttachmentL2ForwardingApplianceMapping + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InterconnectAttachmentL2ForwardingApplianceMapping.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.innerVlanToApplianceMappings = []; + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.applianceIpAddress != null && message.hasOwnProperty("applianceIpAddress")) { + object.applianceIpAddress = message.applianceIpAddress; + if (options.oneofs) + object._applianceIpAddress = "applianceIpAddress"; + } + if (message.innerVlanToApplianceMappings && message.innerVlanToApplianceMappings.length) { + object.innerVlanToApplianceMappings = []; + for (var j = 0; j < message.innerVlanToApplianceMappings.length; ++j) + object.innerVlanToApplianceMappings[j] = $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.toObject(message.innerVlanToApplianceMappings[j], options); + } + return object; + }; + + /** + * Converts this InterconnectAttachmentL2ForwardingApplianceMapping to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @instance + * @returns {Object.} JSON object + */ + InterconnectAttachmentL2ForwardingApplianceMapping.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InterconnectAttachmentL2ForwardingApplianceMapping + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InterconnectAttachmentL2ForwardingApplianceMapping.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMapping"; + }; + + return InterconnectAttachmentL2ForwardingApplianceMapping; + })(); + + v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping = (function() { + + /** + * Properties of an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping. + * @memberof google.cloud.compute.v1beta + * @interface IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @property {string|null} [innerApplianceIpAddress] InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping innerApplianceIpAddress + * @property {Array.|null} [innerVlanTags] InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping innerVlanTags + */ + + /** + * Constructs a new InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping. + * @implements IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @constructor + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping=} [properties] Properties to set + */ + function InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping(properties) { + this.innerVlanTags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping innerApplianceIpAddress. + * @member {string|null|undefined} innerApplianceIpAddress + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @instance + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.prototype.innerApplianceIpAddress = null; + + /** + * InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping innerVlanTags. + * @member {Array.} innerVlanTags + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @instance + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.prototype.innerVlanTags = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.prototype, "_innerApplianceIpAddress", { + get: $util.oneOfGetter($oneOfFields = ["innerApplianceIpAddress"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping} InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping instance + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.create = function create(properties) { + return new InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping(properties); + }; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping} message InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.innerApplianceIpAddress != null && Object.hasOwnProperty.call(message, "innerApplianceIpAddress")) + writer.uint32(/* id 350619895, wireType 2 =*/2804959162).string(message.innerApplianceIpAddress); + if (message.innerVlanTags != null && message.innerVlanTags.length) + for (var i = 0; i < message.innerVlanTags.length; ++i) + writer.uint32(/* id 431186636, wireType 2 =*/3449493090).string(message.innerVlanTags[i]); + return writer; + }; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping} message InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping} InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 350619895: { + message.innerApplianceIpAddress = reader.string(); + break; + } + case 431186636: { + if (!(message.innerVlanTags && message.innerVlanTags.length)) + message.innerVlanTags = []; + message.innerVlanTags.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping} InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message. + * @function verify + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.innerApplianceIpAddress != null && message.hasOwnProperty("innerApplianceIpAddress")) { + properties._innerApplianceIpAddress = 1; + if (!$util.isString(message.innerApplianceIpAddress)) + return "innerApplianceIpAddress: string expected"; + } + if (message.innerVlanTags != null && message.hasOwnProperty("innerVlanTags")) { + if (!Array.isArray(message.innerVlanTags)) + return "innerVlanTags: array expected"; + for (var i = 0; i < message.innerVlanTags.length; ++i) + if (!$util.isString(message.innerVlanTags[i])) + return "innerVlanTags: string[] expected"; + } + return null; + }; + + /** + * Creates an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping} InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping) + return object; + var message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping(); + if (object.innerApplianceIpAddress != null) + message.innerApplianceIpAddress = String(object.innerApplianceIpAddress); + if (object.innerVlanTags) { + if (!Array.isArray(object.innerVlanTags)) + throw TypeError(".google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.innerVlanTags: array expected"); + message.innerVlanTags = []; + for (var i = 0; i < object.innerVlanTags.length; ++i) + message.innerVlanTags[i] = String(object.innerVlanTags[i]); + } + return message; + }; + + /** + * Creates a plain object from an InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @static + * @param {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping} message InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.innerVlanTags = []; + if (message.innerApplianceIpAddress != null && message.hasOwnProperty("innerApplianceIpAddress")) { + object.innerApplianceIpAddress = message.innerApplianceIpAddress; + if (options.oneofs) + object._innerApplianceIpAddress = "innerApplianceIpAddress"; + } + if (message.innerVlanTags && message.innerVlanTags.length) { + object.innerVlanTags = []; + for (var j = 0; j < message.innerVlanTags.length; ++j) + object.innerVlanTags[j] = message.innerVlanTags[j]; + } + return object; + }; + + /** + * Converts this InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @instance + * @returns {Object.} JSON object + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping"; + }; + + return InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping; + })(); + + v1beta.InterconnectAttachmentL2ForwardingGeneveHeader = (function() { + + /** + * Properties of an InterconnectAttachmentL2ForwardingGeneveHeader. + * @memberof google.cloud.compute.v1beta + * @interface IInterconnectAttachmentL2ForwardingGeneveHeader + * @property {number|null} [vni] InterconnectAttachmentL2ForwardingGeneveHeader vni + */ + + /** + * Constructs a new InterconnectAttachmentL2ForwardingGeneveHeader. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InterconnectAttachmentL2ForwardingGeneveHeader. + * @implements IInterconnectAttachmentL2ForwardingGeneveHeader + * @constructor + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader=} [properties] Properties to set + */ + function InterconnectAttachmentL2ForwardingGeneveHeader(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InterconnectAttachmentL2ForwardingGeneveHeader vni. + * @member {number|null|undefined} vni + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @instance + */ + InterconnectAttachmentL2ForwardingGeneveHeader.prototype.vni = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectAttachmentL2ForwardingGeneveHeader.prototype, "_vni", { + get: $util.oneOfGetter($oneOfFields = ["vni"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InterconnectAttachmentL2ForwardingGeneveHeader instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader} InterconnectAttachmentL2ForwardingGeneveHeader instance + */ + InterconnectAttachmentL2ForwardingGeneveHeader.create = function create(properties) { + return new InterconnectAttachmentL2ForwardingGeneveHeader(properties); + }; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingGeneveHeader message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader} message InterconnectAttachmentL2ForwardingGeneveHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentL2ForwardingGeneveHeader.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vni != null && Object.hasOwnProperty.call(message, "vni")) + writer.uint32(/* id 116913, wireType 0 =*/935304).uint32(message.vni); + return writer; + }; + + /** + * Encodes the specified InterconnectAttachmentL2ForwardingGeneveHeader message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentL2ForwardingGeneveHeader} message InterconnectAttachmentL2ForwardingGeneveHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentL2ForwardingGeneveHeader.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InterconnectAttachmentL2ForwardingGeneveHeader message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader} InterconnectAttachmentL2ForwardingGeneveHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentL2ForwardingGeneveHeader.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 116913: { + message.vni = reader.uint32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InterconnectAttachmentL2ForwardingGeneveHeader message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader} InterconnectAttachmentL2ForwardingGeneveHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentL2ForwardingGeneveHeader.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InterconnectAttachmentL2ForwardingGeneveHeader message. + * @function verify + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InterconnectAttachmentL2ForwardingGeneveHeader.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.vni != null && message.hasOwnProperty("vni")) { + properties._vni = 1; + if (!$util.isInteger(message.vni)) + return "vni: integer expected"; + } + return null; + }; + + /** + * Creates an InterconnectAttachmentL2ForwardingGeneveHeader message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader} InterconnectAttachmentL2ForwardingGeneveHeader + */ + InterconnectAttachmentL2ForwardingGeneveHeader.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader) + return object; + var message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader(); + if (object.vni != null) + message.vni = object.vni >>> 0; + return message; + }; + + /** + * Creates a plain object from an InterconnectAttachmentL2ForwardingGeneveHeader message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @static + * @param {google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader} message InterconnectAttachmentL2ForwardingGeneveHeader + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InterconnectAttachmentL2ForwardingGeneveHeader.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.vni != null && message.hasOwnProperty("vni")) { + object.vni = message.vni; + if (options.oneofs) + object._vni = "vni"; + } + return object; + }; + + /** + * Converts this InterconnectAttachmentL2ForwardingGeneveHeader to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @instance + * @returns {Object.} JSON object + */ + InterconnectAttachmentL2ForwardingGeneveHeader.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InterconnectAttachmentL2ForwardingGeneveHeader + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InterconnectAttachmentL2ForwardingGeneveHeader.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InterconnectAttachmentL2ForwardingGeneveHeader"; + }; + + return InterconnectAttachmentL2ForwardingGeneveHeader; + })(); + v1beta.InterconnectAttachmentList = (function() { /** @@ -901968,6 +918017,246 @@ return InterconnectAttachmentList; })(); + v1beta.InterconnectAttachmentParams = (function() { + + /** + * Properties of an InterconnectAttachmentParams. + * @memberof google.cloud.compute.v1beta + * @interface IInterconnectAttachmentParams + * @property {Object.|null} [resourceManagerTags] InterconnectAttachmentParams resourceManagerTags + */ + + /** + * Constructs a new InterconnectAttachmentParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InterconnectAttachmentParams. + * @implements IInterconnectAttachmentParams + * @constructor + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentParams=} [properties] Properties to set + */ + function InterconnectAttachmentParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InterconnectAttachmentParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @instance + */ + InterconnectAttachmentParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new InterconnectAttachmentParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentParams} InterconnectAttachmentParams instance + */ + InterconnectAttachmentParams.create = function create(properties) { + return new InterconnectAttachmentParams(properties); + }; + + /** + * Encodes the specified InterconnectAttachmentParams message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentParams} message InterconnectAttachmentParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified InterconnectAttachmentParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectAttachmentParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @static + * @param {google.cloud.compute.v1beta.IInterconnectAttachmentParams} message InterconnectAttachmentParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectAttachmentParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InterconnectAttachmentParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentParams} InterconnectAttachmentParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InterconnectAttachmentParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentParams} InterconnectAttachmentParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectAttachmentParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InterconnectAttachmentParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InterconnectAttachmentParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates an InterconnectAttachmentParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InterconnectAttachmentParams} InterconnectAttachmentParams + */ + InterconnectAttachmentParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InterconnectAttachmentParams) + return object; + var message = new $root.google.cloud.compute.v1beta.InterconnectAttachmentParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.InterconnectAttachmentParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from an InterconnectAttachmentParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @static + * @param {google.cloud.compute.v1beta.InterconnectAttachmentParams} message InterconnectAttachmentParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InterconnectAttachmentParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this InterconnectAttachmentParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @instance + * @returns {Object.} JSON object + */ + InterconnectAttachmentParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InterconnectAttachmentParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InterconnectAttachmentParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InterconnectAttachmentParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InterconnectAttachmentParams"; + }; + + return InterconnectAttachmentParams; + })(); + v1beta.InterconnectAttachmentPartnerMetadata = (function() { /** @@ -908967,12 +925256,14 @@ * @enum {number} * @property {number} UNDEFINED_REQUESTED_FEATURES=0 UNDEFINED_REQUESTED_FEATURES value * @property {number} IF_CROSS_SITE_NETWORK=469111095 IF_CROSS_SITE_NETWORK value + * @property {number} IF_L2_FORWARDING=125563860 IF_L2_FORWARDING value * @property {number} IF_MACSEC=396279300 IF_MACSEC value */ InterconnectGroupsCreateMembersInterconnectInput.RequestedFeatures = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_REQUESTED_FEATURES"] = 0; values[valuesById[469111095] = "IF_CROSS_SITE_NETWORK"] = 469111095; + values[valuesById[125563860] = "IF_L2_FORWARDING"] = 125563860; values[valuesById[396279300] = "IF_MACSEC"] = 396279300; return values; })(); @@ -911977,12 +928268,14 @@ * @enum {number} * @property {number} UNDEFINED_AVAILABLE_FEATURES=0 UNDEFINED_AVAILABLE_FEATURES value * @property {number} IF_CROSS_SITE_NETWORK=469111095 IF_CROSS_SITE_NETWORK value + * @property {number} IF_L2_FORWARDING=125563860 IF_L2_FORWARDING value * @property {number} IF_MACSEC=396279300 IF_MACSEC value */ InterconnectLocation.AvailableFeatures = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_AVAILABLE_FEATURES"] = 0; values[valuesById[469111095] = "IF_CROSS_SITE_NETWORK"] = 469111095; + values[valuesById[125563860] = "IF_L2_FORWARDING"] = 125563860; values[valuesById[396279300] = "IF_MACSEC"] = 396279300; return values; })(); @@ -912682,6 +928975,7 @@ * @memberof google.cloud.compute.v1beta * @interface IInterconnectLocationRegionInfo * @property {number|Long|null} [expectedRttMs] InterconnectLocationRegionInfo expectedRttMs + * @property {boolean|null} [l2ForwardingEnabled] InterconnectLocationRegionInfo l2ForwardingEnabled * @property {string|null} [locationPresence] InterconnectLocationRegionInfo locationPresence * @property {string|null} [region] InterconnectLocationRegionInfo region */ @@ -912709,6 +929003,14 @@ */ InterconnectLocationRegionInfo.prototype.expectedRttMs = null; + /** + * InterconnectLocationRegionInfo l2ForwardingEnabled. + * @member {boolean|null|undefined} l2ForwardingEnabled + * @memberof google.cloud.compute.v1beta.InterconnectLocationRegionInfo + * @instance + */ + InterconnectLocationRegionInfo.prototype.l2ForwardingEnabled = null; + /** * InterconnectLocationRegionInfo locationPresence. * @member {string|null|undefined} locationPresence @@ -912734,6 +929036,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InterconnectLocationRegionInfo.prototype, "_l2ForwardingEnabled", { + get: $util.oneOfGetter($oneOfFields = ["l2ForwardingEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InterconnectLocationRegionInfo.prototype, "_locationPresence", { get: $util.oneOfGetter($oneOfFields = ["locationPresence"]), @@ -912774,6 +929082,8 @@ writer.uint32(/* id 101517893, wireType 2 =*/812143146).string(message.locationPresence); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.l2ForwardingEnabled != null && Object.hasOwnProperty.call(message, "l2ForwardingEnabled")) + writer.uint32(/* id 241364888, wireType 0 =*/1930919104).bool(message.l2ForwardingEnabled); if (message.expectedRttMs != null && Object.hasOwnProperty.call(message, "expectedRttMs")) writer.uint32(/* id 422543866, wireType 0 =*/3380350928).int64(message.expectedRttMs); return writer; @@ -912816,6 +929126,10 @@ message.expectedRttMs = reader.int64(); break; } + case 241364888: { + message.l2ForwardingEnabled = reader.bool(); + break; + } case 101517893: { message.locationPresence = reader.string(); break; @@ -912865,6 +929179,11 @@ if (!$util.isInteger(message.expectedRttMs) && !(message.expectedRttMs && $util.isInteger(message.expectedRttMs.low) && $util.isInteger(message.expectedRttMs.high))) return "expectedRttMs: integer|Long expected"; } + if (message.l2ForwardingEnabled != null && message.hasOwnProperty("l2ForwardingEnabled")) { + properties._l2ForwardingEnabled = 1; + if (typeof message.l2ForwardingEnabled !== "boolean") + return "l2ForwardingEnabled: boolean expected"; + } if (message.locationPresence != null && message.hasOwnProperty("locationPresence")) { properties._locationPresence = 1; if (!$util.isString(message.locationPresence)) @@ -912899,6 +929218,8 @@ message.expectedRttMs = object.expectedRttMs; else if (typeof object.expectedRttMs === "object") message.expectedRttMs = new $util.LongBits(object.expectedRttMs.low >>> 0, object.expectedRttMs.high >>> 0).toNumber(); + if (object.l2ForwardingEnabled != null) + message.l2ForwardingEnabled = Boolean(object.l2ForwardingEnabled); if (object.locationPresence != null) message.locationPresence = String(object.locationPresence); if (object.region != null) @@ -912929,6 +929250,11 @@ if (options.oneofs) object._region = "region"; } + if (message.l2ForwardingEnabled != null && message.hasOwnProperty("l2ForwardingEnabled")) { + object.l2ForwardingEnabled = message.l2ForwardingEnabled; + if (options.oneofs) + object._l2ForwardingEnabled = "l2ForwardingEnabled"; + } if (message.expectedRttMs != null && message.hasOwnProperty("expectedRttMs")) { if (typeof message.expectedRttMs === "number") object.expectedRttMs = options.longs === String ? String(message.expectedRttMs) : message.expectedRttMs; @@ -914580,6 +930906,246 @@ return InterconnectOutageNotification; })(); + v1beta.InterconnectParams = (function() { + + /** + * Properties of an InterconnectParams. + * @memberof google.cloud.compute.v1beta + * @interface IInterconnectParams + * @property {Object.|null} [resourceManagerTags] InterconnectParams resourceManagerTags + */ + + /** + * Constructs a new InterconnectParams. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InterconnectParams. + * @implements IInterconnectParams + * @constructor + * @param {google.cloud.compute.v1beta.IInterconnectParams=} [properties] Properties to set + */ + function InterconnectParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InterconnectParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @instance + */ + InterconnectParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new InterconnectParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @static + * @param {google.cloud.compute.v1beta.IInterconnectParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InterconnectParams} InterconnectParams instance + */ + InterconnectParams.create = function create(properties) { + return new InterconnectParams(properties); + }; + + /** + * Encodes the specified InterconnectParams message. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @static + * @param {google.cloud.compute.v1beta.IInterconnectParams} message InterconnectParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified InterconnectParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InterconnectParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @static + * @param {google.cloud.compute.v1beta.IInterconnectParams} message InterconnectParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterconnectParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InterconnectParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InterconnectParams} InterconnectParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.InterconnectParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InterconnectParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InterconnectParams} InterconnectParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterconnectParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InterconnectParams message. + * @function verify + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InterconnectParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates an InterconnectParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InterconnectParams} InterconnectParams + */ + InterconnectParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InterconnectParams) + return object; + var message = new $root.google.cloud.compute.v1beta.InterconnectParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1beta.InterconnectParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from an InterconnectParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @static + * @param {google.cloud.compute.v1beta.InterconnectParams} message InterconnectParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InterconnectParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this InterconnectParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @instance + * @returns {Object.} JSON object + */ + InterconnectParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InterconnectParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InterconnectParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InterconnectParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InterconnectParams"; + }; + + return InterconnectParams; + })(); + v1beta.InterconnectRemoteLocation = (function() { /** @@ -921503,6 +938069,7 @@ * Properties of a ListAssociationsFirewallPolicyRequest. * @memberof google.cloud.compute.v1beta * @interface IListAssociationsFirewallPolicyRequest + * @property {boolean|null} [includeInheritedPolicies] ListAssociationsFirewallPolicyRequest includeInheritedPolicies * @property {string|null} [targetResource] ListAssociationsFirewallPolicyRequest targetResource */ @@ -921521,6 +938088,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ListAssociationsFirewallPolicyRequest includeInheritedPolicies. + * @member {boolean|null|undefined} includeInheritedPolicies + * @memberof google.cloud.compute.v1beta.ListAssociationsFirewallPolicyRequest + * @instance + */ + ListAssociationsFirewallPolicyRequest.prototype.includeInheritedPolicies = null; + /** * ListAssociationsFirewallPolicyRequest targetResource. * @member {string|null|undefined} targetResource @@ -921532,6 +938107,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListAssociationsFirewallPolicyRequest.prototype, "_includeInheritedPolicies", { + get: $util.oneOfGetter($oneOfFields = ["includeInheritedPolicies"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ListAssociationsFirewallPolicyRequest.prototype, "_targetResource", { get: $util.oneOfGetter($oneOfFields = ["targetResource"]), @@ -921562,6 +938143,8 @@ ListAssociationsFirewallPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.includeInheritedPolicies != null && Object.hasOwnProperty.call(message, "includeInheritedPolicies")) + writer.uint32(/* id 32280076, wireType 0 =*/258240608).bool(message.includeInheritedPolicies); if (message.targetResource != null && Object.hasOwnProperty.call(message, "targetResource")) writer.uint32(/* id 467318524, wireType 2 =*/3738548194).string(message.targetResource); return writer; @@ -921600,6 +938183,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 32280076: { + message.includeInheritedPolicies = reader.bool(); + break; + } case 467318524: { message.targetResource = reader.string(); break; @@ -921640,6 +938227,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.includeInheritedPolicies != null && message.hasOwnProperty("includeInheritedPolicies")) { + properties._includeInheritedPolicies = 1; + if (typeof message.includeInheritedPolicies !== "boolean") + return "includeInheritedPolicies: boolean expected"; + } if (message.targetResource != null && message.hasOwnProperty("targetResource")) { properties._targetResource = 1; if (!$util.isString(message.targetResource)) @@ -921660,6 +938252,8 @@ if (object instanceof $root.google.cloud.compute.v1beta.ListAssociationsFirewallPolicyRequest) return object; var message = new $root.google.cloud.compute.v1beta.ListAssociationsFirewallPolicyRequest(); + if (object.includeInheritedPolicies != null) + message.includeInheritedPolicies = Boolean(object.includeInheritedPolicies); if (object.targetResource != null) message.targetResource = String(object.targetResource); return message; @@ -921678,6 +938272,11 @@ if (!options) options = {}; var object = {}; + if (message.includeInheritedPolicies != null && message.hasOwnProperty("includeInheritedPolicies")) { + object.includeInheritedPolicies = message.includeInheritedPolicies; + if (options.oneofs) + object._includeInheritedPolicies = "includeInheritedPolicies"; + } if (message.targetResource != null && message.hasOwnProperty("targetResource")) { object.targetResource = message.targetResource; if (options.oneofs) @@ -947550,57 +964149,1251 @@ }; /** - * Converts this ListPreviewFeaturesRequest to JSON. + * Converts this ListPreviewFeaturesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListPreviewFeaturesRequest + * @instance + * @returns {Object.} JSON object + */ + ListPreviewFeaturesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPreviewFeaturesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListPreviewFeaturesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPreviewFeaturesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListPreviewFeaturesRequest"; + }; + + return ListPreviewFeaturesRequest; + })(); + + v1beta.ListPublicAdvertisedPrefixesRequest = (function() { + + /** + * Properties of a ListPublicAdvertisedPrefixesRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListPublicAdvertisedPrefixesRequest + * @property {string|null} [filter] ListPublicAdvertisedPrefixesRequest filter + * @property {number|null} [maxResults] ListPublicAdvertisedPrefixesRequest maxResults + * @property {string|null} [orderBy] ListPublicAdvertisedPrefixesRequest orderBy + * @property {string|null} [pageToken] ListPublicAdvertisedPrefixesRequest pageToken + * @property {string|null} [project] ListPublicAdvertisedPrefixesRequest project + * @property {boolean|null} [returnPartialSuccess] ListPublicAdvertisedPrefixesRequest returnPartialSuccess + */ + + /** + * Constructs a new ListPublicAdvertisedPrefixesRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListPublicAdvertisedPrefixesRequest. + * @implements IListPublicAdvertisedPrefixesRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListPublicAdvertisedPrefixesRequest=} [properties] Properties to set + */ + function ListPublicAdvertisedPrefixesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListPublicAdvertisedPrefixesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @instance + */ + ListPublicAdvertisedPrefixesRequest.prototype.filter = null; + + /** + * ListPublicAdvertisedPrefixesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @instance + */ + ListPublicAdvertisedPrefixesRequest.prototype.maxResults = null; + + /** + * ListPublicAdvertisedPrefixesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @instance + */ + ListPublicAdvertisedPrefixesRequest.prototype.orderBy = null; + + /** + * ListPublicAdvertisedPrefixesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @instance + */ + ListPublicAdvertisedPrefixesRequest.prototype.pageToken = null; + + /** + * ListPublicAdvertisedPrefixesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @instance + */ + ListPublicAdvertisedPrefixesRequest.prototype.project = ""; + + /** + * ListPublicAdvertisedPrefixesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @instance + */ + ListPublicAdvertisedPrefixesRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListPublicAdvertisedPrefixesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @static + * @param {google.cloud.compute.v1beta.IListPublicAdvertisedPrefixesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} ListPublicAdvertisedPrefixesRequest instance + */ + ListPublicAdvertisedPrefixesRequest.create = function create(properties) { + return new ListPublicAdvertisedPrefixesRequest(properties); + }; + + /** + * Encodes the specified ListPublicAdvertisedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @static + * @param {google.cloud.compute.v1beta.IListPublicAdvertisedPrefixesRequest} message ListPublicAdvertisedPrefixesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPublicAdvertisedPrefixesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListPublicAdvertisedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @static + * @param {google.cloud.compute.v1beta.IListPublicAdvertisedPrefixesRequest} message ListPublicAdvertisedPrefixesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPublicAdvertisedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPublicAdvertisedPrefixesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} ListPublicAdvertisedPrefixesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPublicAdvertisedPrefixesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPublicAdvertisedPrefixesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} ListPublicAdvertisedPrefixesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPublicAdvertisedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPublicAdvertisedPrefixesRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPublicAdvertisedPrefixesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListPublicAdvertisedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} ListPublicAdvertisedPrefixesRequest + */ + ListPublicAdvertisedPrefixesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListPublicAdvertisedPrefixesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @static + * @param {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} message ListPublicAdvertisedPrefixesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPublicAdvertisedPrefixesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListPublicAdvertisedPrefixesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @instance + * @returns {Object.} JSON object + */ + ListPublicAdvertisedPrefixesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPublicAdvertisedPrefixesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPublicAdvertisedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest"; + }; + + return ListPublicAdvertisedPrefixesRequest; + })(); + + v1beta.ListPublicDelegatedPrefixesRequest = (function() { + + /** + * Properties of a ListPublicDelegatedPrefixesRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListPublicDelegatedPrefixesRequest + * @property {string|null} [filter] ListPublicDelegatedPrefixesRequest filter + * @property {number|null} [maxResults] ListPublicDelegatedPrefixesRequest maxResults + * @property {string|null} [orderBy] ListPublicDelegatedPrefixesRequest orderBy + * @property {string|null} [pageToken] ListPublicDelegatedPrefixesRequest pageToken + * @property {string|null} [project] ListPublicDelegatedPrefixesRequest project + * @property {string|null} [region] ListPublicDelegatedPrefixesRequest region + * @property {boolean|null} [returnPartialSuccess] ListPublicDelegatedPrefixesRequest returnPartialSuccess + */ + + /** + * Constructs a new ListPublicDelegatedPrefixesRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListPublicDelegatedPrefixesRequest. + * @implements IListPublicDelegatedPrefixesRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListPublicDelegatedPrefixesRequest=} [properties] Properties to set + */ + function ListPublicDelegatedPrefixesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListPublicDelegatedPrefixesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @instance + */ + ListPublicDelegatedPrefixesRequest.prototype.filter = null; + + /** + * ListPublicDelegatedPrefixesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @instance + */ + ListPublicDelegatedPrefixesRequest.prototype.maxResults = null; + + /** + * ListPublicDelegatedPrefixesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @instance + */ + ListPublicDelegatedPrefixesRequest.prototype.orderBy = null; + + /** + * ListPublicDelegatedPrefixesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @instance + */ + ListPublicDelegatedPrefixesRequest.prototype.pageToken = null; + + /** + * ListPublicDelegatedPrefixesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @instance + */ + ListPublicDelegatedPrefixesRequest.prototype.project = ""; + + /** + * ListPublicDelegatedPrefixesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @instance + */ + ListPublicDelegatedPrefixesRequest.prototype.region = ""; + + /** + * ListPublicDelegatedPrefixesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @instance + */ + ListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListPublicDelegatedPrefixesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @static + * @param {google.cloud.compute.v1beta.IListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest instance + */ + ListPublicDelegatedPrefixesRequest.create = function create(properties) { + return new ListPublicDelegatedPrefixesRequest(properties); + }; + + /** + * Encodes the specified ListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @static + * @param {google.cloud.compute.v1beta.IListPublicDelegatedPrefixesRequest} message ListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @static + * @param {google.cloud.compute.v1beta.IListPublicDelegatedPrefixesRequest} message ListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPublicDelegatedPrefixesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPublicDelegatedPrefixesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPublicDelegatedPrefixesRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPublicDelegatedPrefixesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + */ + ListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @static + * @param {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} message ListPublicDelegatedPrefixesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListPublicDelegatedPrefixesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @instance + * @returns {Object.} JSON object + */ + ListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPublicDelegatedPrefixesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest"; + }; + + return ListPublicDelegatedPrefixesRequest; + })(); + + v1beta.ListReferrersInstancesRequest = (function() { + + /** + * Properties of a ListReferrersInstancesRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListReferrersInstancesRequest + * @property {string|null} [filter] ListReferrersInstancesRequest filter + * @property {string|null} [instance] ListReferrersInstancesRequest instance + * @property {number|null} [maxResults] ListReferrersInstancesRequest maxResults + * @property {string|null} [orderBy] ListReferrersInstancesRequest orderBy + * @property {string|null} [pageToken] ListReferrersInstancesRequest pageToken + * @property {string|null} [project] ListReferrersInstancesRequest project + * @property {boolean|null} [returnPartialSuccess] ListReferrersInstancesRequest returnPartialSuccess + * @property {string|null} [zone] ListReferrersInstancesRequest zone + */ + + /** + * Constructs a new ListReferrersInstancesRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListReferrersInstancesRequest. + * @implements IListReferrersInstancesRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListReferrersInstancesRequest=} [properties] Properties to set + */ + function ListReferrersInstancesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListReferrersInstancesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.filter = null; + + /** + * ListReferrersInstancesRequest instance. + * @member {string} instance + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.instance = ""; + + /** + * ListReferrersInstancesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.maxResults = null; + + /** + * ListReferrersInstancesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.orderBy = null; + + /** + * ListReferrersInstancesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.pageToken = null; + + /** + * ListReferrersInstancesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.project = ""; + + /** + * ListReferrersInstancesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.returnPartialSuccess = null; + + /** + * ListReferrersInstancesRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListReferrersInstancesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @static + * @param {google.cloud.compute.v1beta.IListReferrersInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListReferrersInstancesRequest} ListReferrersInstancesRequest instance + */ + ListReferrersInstancesRequest.create = function create(properties) { + return new ListReferrersInstancesRequest(properties); + }; + + /** + * Encodes the specified ListReferrersInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReferrersInstancesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @static + * @param {google.cloud.compute.v1beta.IListReferrersInstancesRequest} message ListReferrersInstancesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReferrersInstancesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + writer.uint32(/* id 18257045, wireType 2 =*/146056362).string(message.instance); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListReferrersInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReferrersInstancesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @static + * @param {google.cloud.compute.v1beta.IListReferrersInstancesRequest} message ListReferrersInstancesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReferrersInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListReferrersInstancesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReferrersInstancesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListReferrersInstancesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 18257045: { + message.instance = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListReferrersInstancesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReferrersInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListReferrersInstancesRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListReferrersInstancesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.instance != null && message.hasOwnProperty("instance")) + if (!$util.isString(message.instance)) + return "instance: string expected"; + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a ListReferrersInstancesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListReferrersInstancesRequest} ListReferrersInstancesRequest + */ + ListReferrersInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListReferrersInstancesRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListReferrersInstancesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.instance != null) + message.instance = String(object.instance); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a ListReferrersInstancesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @static + * @param {google.cloud.compute.v1beta.ListReferrersInstancesRequest} message ListReferrersInstancesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListReferrersInstancesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instance = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = message.instance; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListReferrersInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListPreviewFeaturesRequest + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest * @instance * @returns {Object.} JSON object */ - ListPreviewFeaturesRequest.prototype.toJSON = function toJSON() { + ListReferrersInstancesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPreviewFeaturesRequest + * Gets the default type url for ListReferrersInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListPreviewFeaturesRequest + * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPreviewFeaturesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReferrersInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListPreviewFeaturesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListReferrersInstancesRequest"; }; - return ListPreviewFeaturesRequest; + return ListReferrersInstancesRequest; })(); - v1beta.ListPublicAdvertisedPrefixesRequest = (function() { + v1beta.ListRegionAutoscalersRequest = (function() { /** - * Properties of a ListPublicAdvertisedPrefixesRequest. + * Properties of a ListRegionAutoscalersRequest. * @memberof google.cloud.compute.v1beta - * @interface IListPublicAdvertisedPrefixesRequest - * @property {string|null} [filter] ListPublicAdvertisedPrefixesRequest filter - * @property {number|null} [maxResults] ListPublicAdvertisedPrefixesRequest maxResults - * @property {string|null} [orderBy] ListPublicAdvertisedPrefixesRequest orderBy - * @property {string|null} [pageToken] ListPublicAdvertisedPrefixesRequest pageToken - * @property {string|null} [project] ListPublicAdvertisedPrefixesRequest project - * @property {boolean|null} [returnPartialSuccess] ListPublicAdvertisedPrefixesRequest returnPartialSuccess + * @interface IListRegionAutoscalersRequest + * @property {string|null} [filter] ListRegionAutoscalersRequest filter + * @property {number|null} [maxResults] ListRegionAutoscalersRequest maxResults + * @property {string|null} [orderBy] ListRegionAutoscalersRequest orderBy + * @property {string|null} [pageToken] ListRegionAutoscalersRequest pageToken + * @property {string|null} [project] ListRegionAutoscalersRequest project + * @property {string|null} [region] ListRegionAutoscalersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionAutoscalersRequest returnPartialSuccess */ /** - * Constructs a new ListPublicAdvertisedPrefixesRequest. + * Constructs a new ListRegionAutoscalersRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListPublicAdvertisedPrefixesRequest. - * @implements IListPublicAdvertisedPrefixesRequest + * @classdesc Represents a ListRegionAutoscalersRequest. + * @implements IListRegionAutoscalersRequest * @constructor - * @param {google.cloud.compute.v1beta.IListPublicAdvertisedPrefixesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionAutoscalersRequest=} [properties] Properties to set */ - function ListPublicAdvertisedPrefixesRequest(properties) { + function ListRegionAutoscalersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -947608,114 +965401,124 @@ } /** - * ListPublicAdvertisedPrefixesRequest filter. + * ListRegionAutoscalersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @instance */ - ListPublicAdvertisedPrefixesRequest.prototype.filter = null; + ListRegionAutoscalersRequest.prototype.filter = null; /** - * ListPublicAdvertisedPrefixesRequest maxResults. + * ListRegionAutoscalersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @instance */ - ListPublicAdvertisedPrefixesRequest.prototype.maxResults = null; + ListRegionAutoscalersRequest.prototype.maxResults = null; /** - * ListPublicAdvertisedPrefixesRequest orderBy. + * ListRegionAutoscalersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @instance */ - ListPublicAdvertisedPrefixesRequest.prototype.orderBy = null; + ListRegionAutoscalersRequest.prototype.orderBy = null; /** - * ListPublicAdvertisedPrefixesRequest pageToken. + * ListRegionAutoscalersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @instance */ - ListPublicAdvertisedPrefixesRequest.prototype.pageToken = null; + ListRegionAutoscalersRequest.prototype.pageToken = null; /** - * ListPublicAdvertisedPrefixesRequest project. + * ListRegionAutoscalersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @instance */ - ListPublicAdvertisedPrefixesRequest.prototype.project = ""; + ListRegionAutoscalersRequest.prototype.project = ""; /** - * ListPublicAdvertisedPrefixesRequest returnPartialSuccess. + * ListRegionAutoscalersRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @instance + */ + ListRegionAutoscalersRequest.prototype.region = ""; + + /** + * ListRegionAutoscalersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @instance */ - ListPublicAdvertisedPrefixesRequest.prototype.returnPartialSuccess = null; + ListRegionAutoscalersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicAdvertisedPrefixesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListPublicAdvertisedPrefixesRequest instance using the specified properties. + * Creates a new ListRegionAutoscalersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @static - * @param {google.cloud.compute.v1beta.IListPublicAdvertisedPrefixesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} ListPublicAdvertisedPrefixesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionAutoscalersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest instance */ - ListPublicAdvertisedPrefixesRequest.create = function create(properties) { - return new ListPublicAdvertisedPrefixesRequest(properties); + ListRegionAutoscalersRequest.create = function create(properties) { + return new ListRegionAutoscalersRequest(properties); }; /** - * Encodes the specified ListPublicAdvertisedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest.verify|verify} messages. + * Encodes the specified ListRegionAutoscalersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionAutoscalersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @static - * @param {google.cloud.compute.v1beta.IListPublicAdvertisedPrefixesRequest} message ListPublicAdvertisedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionAutoscalersRequest} message ListRegionAutoscalersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPublicAdvertisedPrefixesRequest.encode = function encode(message, writer) { + ListRegionAutoscalersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -947728,33 +965531,33 @@ }; /** - * Encodes the specified ListPublicAdvertisedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest.verify|verify} messages. + * Encodes the specified ListRegionAutoscalersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionAutoscalersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @static - * @param {google.cloud.compute.v1beta.IListPublicAdvertisedPrefixesRequest} message ListPublicAdvertisedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionAutoscalersRequest} message ListRegionAutoscalersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPublicAdvertisedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionAutoscalersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPublicAdvertisedPrefixesRequest message from the specified reader or buffer. + * Decodes a ListRegionAutoscalersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} ListPublicAdvertisedPrefixesRequest + * @returns {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPublicAdvertisedPrefixesRequest.decode = function decode(reader, length, error) { + ListRegionAutoscalersRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionAutoscalersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -947780,6 +965583,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -947793,30 +965600,30 @@ }; /** - * Decodes a ListPublicAdvertisedPrefixesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionAutoscalersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} ListPublicAdvertisedPrefixesRequest + * @returns {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPublicAdvertisedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionAutoscalersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPublicAdvertisedPrefixesRequest message. + * Verifies a ListRegionAutoscalersRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPublicAdvertisedPrefixesRequest.verify = function verify(message) { + ListRegionAutoscalersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -947843,6 +965650,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -947852,17 +965662,17 @@ }; /** - * Creates a ListPublicAdvertisedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionAutoscalersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} ListPublicAdvertisedPrefixesRequest + * @returns {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest */ - ListPublicAdvertisedPrefixesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest) + ListRegionAutoscalersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionAutoscalersRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionAutoscalersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -947873,26 +965683,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListPublicAdvertisedPrefixesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionAutoscalersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @static - * @param {google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest} message ListPublicAdvertisedPrefixesRequest + * @param {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} message ListRegionAutoscalersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPublicAdvertisedPrefixesRequest.toObject = function toObject(message, options) { + ListRegionAutoscalersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -947903,6 +965717,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -947924,58 +965740,58 @@ }; /** - * Converts this ListPublicAdvertisedPrefixesRequest to JSON. + * Converts this ListRegionAutoscalersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @instance * @returns {Object.} JSON object */ - ListPublicAdvertisedPrefixesRequest.prototype.toJSON = function toJSON() { + ListRegionAutoscalersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPublicAdvertisedPrefixesRequest + * Gets the default type url for ListRegionAutoscalersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPublicAdvertisedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListPublicAdvertisedPrefixesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionAutoscalersRequest"; }; - return ListPublicAdvertisedPrefixesRequest; + return ListRegionAutoscalersRequest; })(); - v1beta.ListPublicDelegatedPrefixesRequest = (function() { + v1beta.ListRegionBackendBucketsRequest = (function() { /** - * Properties of a ListPublicDelegatedPrefixesRequest. + * Properties of a ListRegionBackendBucketsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListPublicDelegatedPrefixesRequest - * @property {string|null} [filter] ListPublicDelegatedPrefixesRequest filter - * @property {number|null} [maxResults] ListPublicDelegatedPrefixesRequest maxResults - * @property {string|null} [orderBy] ListPublicDelegatedPrefixesRequest orderBy - * @property {string|null} [pageToken] ListPublicDelegatedPrefixesRequest pageToken - * @property {string|null} [project] ListPublicDelegatedPrefixesRequest project - * @property {string|null} [region] ListPublicDelegatedPrefixesRequest region - * @property {boolean|null} [returnPartialSuccess] ListPublicDelegatedPrefixesRequest returnPartialSuccess + * @interface IListRegionBackendBucketsRequest + * @property {string|null} [filter] ListRegionBackendBucketsRequest filter + * @property {number|null} [maxResults] ListRegionBackendBucketsRequest maxResults + * @property {string|null} [orderBy] ListRegionBackendBucketsRequest orderBy + * @property {string|null} [pageToken] ListRegionBackendBucketsRequest pageToken + * @property {string|null} [project] ListRegionBackendBucketsRequest project + * @property {string|null} [region] ListRegionBackendBucketsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionBackendBucketsRequest returnPartialSuccess */ /** - * Constructs a new ListPublicDelegatedPrefixesRequest. + * Constructs a new ListRegionBackendBucketsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListPublicDelegatedPrefixesRequest. - * @implements IListPublicDelegatedPrefixesRequest + * @classdesc Represents a ListRegionBackendBucketsRequest. + * @implements IListRegionBackendBucketsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionBackendBucketsRequest=} [properties] Properties to set */ - function ListPublicDelegatedPrefixesRequest(properties) { + function ListRegionBackendBucketsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -947983,116 +965799,116 @@ } /** - * ListPublicDelegatedPrefixesRequest filter. + * ListRegionBackendBucketsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @instance */ - ListPublicDelegatedPrefixesRequest.prototype.filter = null; + ListRegionBackendBucketsRequest.prototype.filter = null; /** - * ListPublicDelegatedPrefixesRequest maxResults. + * ListRegionBackendBucketsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @instance */ - ListPublicDelegatedPrefixesRequest.prototype.maxResults = null; + ListRegionBackendBucketsRequest.prototype.maxResults = null; /** - * ListPublicDelegatedPrefixesRequest orderBy. + * ListRegionBackendBucketsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @instance */ - ListPublicDelegatedPrefixesRequest.prototype.orderBy = null; + ListRegionBackendBucketsRequest.prototype.orderBy = null; /** - * ListPublicDelegatedPrefixesRequest pageToken. + * ListRegionBackendBucketsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @instance */ - ListPublicDelegatedPrefixesRequest.prototype.pageToken = null; + ListRegionBackendBucketsRequest.prototype.pageToken = null; /** - * ListPublicDelegatedPrefixesRequest project. + * ListRegionBackendBucketsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @instance */ - ListPublicDelegatedPrefixesRequest.prototype.project = ""; + ListRegionBackendBucketsRequest.prototype.project = ""; /** - * ListPublicDelegatedPrefixesRequest region. + * ListRegionBackendBucketsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @instance */ - ListPublicDelegatedPrefixesRequest.prototype.region = ""; + ListRegionBackendBucketsRequest.prototype.region = ""; /** - * ListPublicDelegatedPrefixesRequest returnPartialSuccess. + * ListRegionBackendBucketsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @instance */ - ListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; + ListRegionBackendBucketsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionBackendBucketsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListPublicDelegatedPrefixesRequest instance using the specified properties. + * Creates a new ListRegionBackendBucketsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IListPublicDelegatedPrefixesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionBackendBucketsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionBackendBucketsRequest} ListRegionBackendBucketsRequest instance */ - ListPublicDelegatedPrefixesRequest.create = function create(properties) { - return new ListPublicDelegatedPrefixesRequest(properties); + ListRegionBackendBucketsRequest.create = function create(properties) { + return new ListRegionBackendBucketsRequest(properties); }; /** - * Encodes the specified ListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionBackendBucketsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IListPublicDelegatedPrefixesRequest} message ListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionBackendBucketsRequest} message ListRegionBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { + ListRegionBackendBucketsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -948113,33 +965929,33 @@ }; /** - * Encodes the specified ListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionBackendBucketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IListPublicDelegatedPrefixesRequest} message ListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionBackendBucketsRequest} message ListRegionBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPublicDelegatedPrefixesRequest message from the specified reader or buffer. + * Decodes a ListRegionBackendBucketsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1beta.ListRegionBackendBucketsRequest} ListRegionBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPublicDelegatedPrefixesRequest.decode = function decode(reader, length, error) { + ListRegionBackendBucketsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -948182,30 +965998,30 @@ }; /** - * Decodes a ListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionBackendBucketsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1beta.ListRegionBackendBucketsRequest} ListRegionBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionBackendBucketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPublicDelegatedPrefixesRequest message. + * Verifies a ListRegionBackendBucketsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPublicDelegatedPrefixesRequest.verify = function verify(message) { + ListRegionBackendBucketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -948244,17 +966060,17 @@ }; /** - * Creates a ListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1beta.ListRegionBackendBucketsRequest} ListRegionBackendBucketsRequest */ - ListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest) + ListRegionBackendBucketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -948273,15 +966089,15 @@ }; /** - * Creates a plain object from a ListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionBackendBucketsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest} message ListPublicDelegatedPrefixesRequest + * @param {google.cloud.compute.v1beta.ListRegionBackendBucketsRequest} message ListRegionBackendBucketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { + ListRegionBackendBucketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -948322,59 +966138,58 @@ }; /** - * Converts this ListPublicDelegatedPrefixesRequest to JSON. + * Converts this ListRegionBackendBucketsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @instance * @returns {Object.} JSON object */ - ListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { + ListRegionBackendBucketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPublicDelegatedPrefixesRequest + * Gets the default type url for ListRegionBackendBucketsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendBucketsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListPublicDelegatedPrefixesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionBackendBucketsRequest"; }; - return ListPublicDelegatedPrefixesRequest; + return ListRegionBackendBucketsRequest; })(); - v1beta.ListReferrersInstancesRequest = (function() { + v1beta.ListRegionBackendServicesRequest = (function() { /** - * Properties of a ListReferrersInstancesRequest. + * Properties of a ListRegionBackendServicesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListReferrersInstancesRequest - * @property {string|null} [filter] ListReferrersInstancesRequest filter - * @property {string|null} [instance] ListReferrersInstancesRequest instance - * @property {number|null} [maxResults] ListReferrersInstancesRequest maxResults - * @property {string|null} [orderBy] ListReferrersInstancesRequest orderBy - * @property {string|null} [pageToken] ListReferrersInstancesRequest pageToken - * @property {string|null} [project] ListReferrersInstancesRequest project - * @property {boolean|null} [returnPartialSuccess] ListReferrersInstancesRequest returnPartialSuccess - * @property {string|null} [zone] ListReferrersInstancesRequest zone + * @interface IListRegionBackendServicesRequest + * @property {string|null} [filter] ListRegionBackendServicesRequest filter + * @property {number|null} [maxResults] ListRegionBackendServicesRequest maxResults + * @property {string|null} [orderBy] ListRegionBackendServicesRequest orderBy + * @property {string|null} [pageToken] ListRegionBackendServicesRequest pageToken + * @property {string|null} [project] ListRegionBackendServicesRequest project + * @property {string|null} [region] ListRegionBackendServicesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionBackendServicesRequest returnPartialSuccess */ /** - * Constructs a new ListReferrersInstancesRequest. + * Constructs a new ListRegionBackendServicesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListReferrersInstancesRequest. - * @implements IListReferrersInstancesRequest + * @classdesc Represents a ListRegionBackendServicesRequest. + * @implements IListRegionBackendServicesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListReferrersInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionBackendServicesRequest=} [properties] Properties to set */ - function ListReferrersInstancesRequest(properties) { + function ListRegionBackendServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -948382,134 +966197,124 @@ } /** - * ListReferrersInstancesRequest filter. + * ListRegionBackendServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest - * @instance - */ - ListReferrersInstancesRequest.prototype.filter = null; - - /** - * ListReferrersInstancesRequest instance. - * @member {string} instance - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.instance = ""; + ListRegionBackendServicesRequest.prototype.filter = null; /** - * ListReferrersInstancesRequest maxResults. + * ListRegionBackendServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.maxResults = null; + ListRegionBackendServicesRequest.prototype.maxResults = null; /** - * ListReferrersInstancesRequest orderBy. + * ListRegionBackendServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.orderBy = null; + ListRegionBackendServicesRequest.prototype.orderBy = null; /** - * ListReferrersInstancesRequest pageToken. + * ListRegionBackendServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.pageToken = null; + ListRegionBackendServicesRequest.prototype.pageToken = null; /** - * ListReferrersInstancesRequest project. + * ListRegionBackendServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.project = ""; + ListRegionBackendServicesRequest.prototype.project = ""; /** - * ListReferrersInstancesRequest returnPartialSuccess. - * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * ListRegionBackendServicesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.returnPartialSuccess = null; + ListRegionBackendServicesRequest.prototype.region = ""; /** - * ListReferrersInstancesRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * ListRegionBackendServicesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.zone = ""; + ListRegionBackendServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReferrersInstancesRequest instance using the specified properties. + * Creates a new ListRegionBackendServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IListReferrersInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListReferrersInstancesRequest} ListReferrersInstancesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance */ - ListReferrersInstancesRequest.create = function create(properties) { - return new ListReferrersInstancesRequest(properties); + ListRegionBackendServicesRequest.create = function create(properties) { + return new ListRegionBackendServicesRequest(properties); }; /** - * Encodes the specified ListReferrersInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListReferrersInstancesRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionBackendServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IListReferrersInstancesRequest} message ListReferrersInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReferrersInstancesRequest.encode = function encode(message, writer) { + ListRegionBackendServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); - if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - writer.uint32(/* id 18257045, wireType 2 =*/146056362).string(message.instance); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -948522,33 +966327,33 @@ }; /** - * Encodes the specified ListReferrersInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListReferrersInstancesRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionBackendServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IListReferrersInstancesRequest} message ListReferrersInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReferrersInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReferrersInstancesRequest message from the specified reader or buffer. + * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @returns {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReferrersInstancesRequest.decode = function decode(reader, length, error) { + ListRegionBackendServicesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListReferrersInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionBackendServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -948558,10 +966363,6 @@ message.filter = reader.string(); break; } - case 18257045: { - message.instance = reader.string(); - break; - } case 54715419: { message.maxResults = reader.uint32(); break; @@ -948578,12 +966379,12 @@ message.project = reader.string(); break; } - case 517198390: { - message.returnPartialSuccess = reader.bool(); + case 138946292: { + message.region = reader.string(); break; } - case 3744684: { - message.zone = reader.string(); + case 517198390: { + message.returnPartialSuccess = reader.bool(); break; } default: @@ -948595,30 +966396,30 @@ }; /** - * Decodes a ListReferrersInstancesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @returns {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReferrersInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReferrersInstancesRequest message. + * Verifies a ListRegionBackendServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReferrersInstancesRequest.verify = function verify(message) { + ListRegionBackendServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -948627,9 +966428,6 @@ if (!$util.isString(message.filter)) return "filter: string expected"; } - if (message.instance != null && message.hasOwnProperty("instance")) - if (!$util.isString(message.instance)) - return "instance: string expected"; if (message.maxResults != null && message.hasOwnProperty("maxResults")) { properties._maxResults = 1; if (!$util.isInteger(message.maxResults)) @@ -948648,33 +966446,31 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; return null; }; /** - * Creates a ListReferrersInstancesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionBackendServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @returns {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest */ - ListReferrersInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListReferrersInstancesRequest) + ListRegionBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionBackendServicesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListReferrersInstancesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionBackendServicesRequest(); if (object.filter != null) message.filter = String(object.filter); - if (object.instance != null) - message.instance = String(object.instance); if (object.maxResults != null) message.maxResults = object.maxResults >>> 0; if (object.orderBy != null) @@ -948683,35 +966479,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); - if (object.zone != null) - message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListReferrersInstancesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionBackendServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.ListReferrersInstancesRequest} message ListReferrersInstancesRequest + * @param {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReferrersInstancesRequest.toObject = function toObject(message, options) { + ListRegionBackendServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.zone = ""; - object.instance = ""; + object.region = ""; object.project = ""; } - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = message.instance; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -948722,6 +966513,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -948743,58 +966536,58 @@ }; /** - * Converts this ListReferrersInstancesRequest to JSON. + * Converts this ListRegionBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @instance * @returns {Object.} JSON object */ - ListReferrersInstancesRequest.prototype.toJSON = function toJSON() { + ListRegionBackendServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListReferrersInstancesRequest + * Gets the default type url for ListRegionBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListReferrersInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListReferrersInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionBackendServicesRequest"; }; - return ListReferrersInstancesRequest; + return ListRegionBackendServicesRequest; })(); - v1beta.ListRegionAutoscalersRequest = (function() { + v1beta.ListRegionCommitmentsRequest = (function() { /** - * Properties of a ListRegionAutoscalersRequest. + * Properties of a ListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionAutoscalersRequest - * @property {string|null} [filter] ListRegionAutoscalersRequest filter - * @property {number|null} [maxResults] ListRegionAutoscalersRequest maxResults - * @property {string|null} [orderBy] ListRegionAutoscalersRequest orderBy - * @property {string|null} [pageToken] ListRegionAutoscalersRequest pageToken - * @property {string|null} [project] ListRegionAutoscalersRequest project - * @property {string|null} [region] ListRegionAutoscalersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionAutoscalersRequest returnPartialSuccess + * @interface IListRegionCommitmentsRequest + * @property {string|null} [filter] ListRegionCommitmentsRequest filter + * @property {number|null} [maxResults] ListRegionCommitmentsRequest maxResults + * @property {string|null} [orderBy] ListRegionCommitmentsRequest orderBy + * @property {string|null} [pageToken] ListRegionCommitmentsRequest pageToken + * @property {string|null} [project] ListRegionCommitmentsRequest project + * @property {string|null} [region] ListRegionCommitmentsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionCommitmentsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionAutoscalersRequest. + * Constructs a new ListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionAutoscalersRequest. - * @implements IListRegionAutoscalersRequest + * @classdesc Represents a ListRegionCommitmentsRequest. + * @implements IListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionAutoscalersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionCommitmentsRequest=} [properties] Properties to set */ - function ListRegionAutoscalersRequest(properties) { + function ListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -948802,116 +966595,116 @@ } /** - * ListRegionAutoscalersRequest filter. + * ListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.filter = null; + ListRegionCommitmentsRequest.prototype.filter = null; /** - * ListRegionAutoscalersRequest maxResults. + * ListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.maxResults = null; + ListRegionCommitmentsRequest.prototype.maxResults = null; /** - * ListRegionAutoscalersRequest orderBy. + * ListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.orderBy = null; + ListRegionCommitmentsRequest.prototype.orderBy = null; /** - * ListRegionAutoscalersRequest pageToken. + * ListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.pageToken = null; + ListRegionCommitmentsRequest.prototype.pageToken = null; /** - * ListRegionAutoscalersRequest project. + * ListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.project = ""; + ListRegionCommitmentsRequest.prototype.project = ""; /** - * ListRegionAutoscalersRequest region. + * ListRegionCommitmentsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.region = ""; + ListRegionCommitmentsRequest.prototype.region = ""; /** - * ListRegionAutoscalersRequest returnPartialSuccess. + * ListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.returnPartialSuccess = null; + ListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_filter", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionAutoscalersRequest instance using the specified properties. + * Creates a new ListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionAutoscalersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest instance + * @param {google.cloud.compute.v1beta.IListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance */ - ListRegionAutoscalersRequest.create = function create(properties) { - return new ListRegionAutoscalersRequest(properties); + ListRegionCommitmentsRequest.create = function create(properties) { + return new ListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified ListRegionAutoscalersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionAutoscalersRequest.verify|verify} messages. + * Encodes the specified ListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionAutoscalersRequest} message ListRegionAutoscalersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionAutoscalersRequest.encode = function encode(message, writer) { + ListRegionCommitmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -948932,33 +966725,33 @@ }; /** - * Encodes the specified ListRegionAutoscalersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionAutoscalersRequest.verify|verify} messages. + * Encodes the specified ListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionAutoscalersRequest} message ListRegionAutoscalersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionAutoscalersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionAutoscalersRequest message from the specified reader or buffer. + * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest + * @returns {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionAutoscalersRequest.decode = function decode(reader, length, error) { + ListRegionCommitmentsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionAutoscalersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -949001,30 +966794,30 @@ }; /** - * Decodes a ListRegionAutoscalersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest + * @returns {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionAutoscalersRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionAutoscalersRequest message. + * Verifies a ListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionAutoscalersRequest.verify = function verify(message) { + ListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -949063,17 +966856,17 @@ }; /** - * Creates a ListRegionAutoscalersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest + * @returns {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest */ - ListRegionAutoscalersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionAutoscalersRequest) + ListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionAutoscalersRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -949092,15 +966885,15 @@ }; /** - * Creates a plain object from a ListRegionAutoscalersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionCommitmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionAutoscalersRequest} message ListRegionAutoscalersRequest + * @param {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionAutoscalersRequest.toObject = function toObject(message, options) { + ListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -949141,58 +966934,58 @@ }; /** - * Converts this ListRegionAutoscalersRequest to JSON. + * Converts this ListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - ListRegionAutoscalersRequest.prototype.toJSON = function toJSON() { + ListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionAutoscalersRequest + * Gets the default type url for ListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionAutoscalersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionCommitmentsRequest"; }; - return ListRegionAutoscalersRequest; + return ListRegionCommitmentsRequest; })(); - v1beta.ListRegionBackendServicesRequest = (function() { + v1beta.ListRegionCompositeHealthChecksRequest = (function() { /** - * Properties of a ListRegionBackendServicesRequest. + * Properties of a ListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionBackendServicesRequest - * @property {string|null} [filter] ListRegionBackendServicesRequest filter - * @property {number|null} [maxResults] ListRegionBackendServicesRequest maxResults - * @property {string|null} [orderBy] ListRegionBackendServicesRequest orderBy - * @property {string|null} [pageToken] ListRegionBackendServicesRequest pageToken - * @property {string|null} [project] ListRegionBackendServicesRequest project - * @property {string|null} [region] ListRegionBackendServicesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionBackendServicesRequest returnPartialSuccess + * @interface IListRegionCompositeHealthChecksRequest + * @property {string|null} [filter] ListRegionCompositeHealthChecksRequest filter + * @property {number|null} [maxResults] ListRegionCompositeHealthChecksRequest maxResults + * @property {string|null} [orderBy] ListRegionCompositeHealthChecksRequest orderBy + * @property {string|null} [pageToken] ListRegionCompositeHealthChecksRequest pageToken + * @property {string|null} [project] ListRegionCompositeHealthChecksRequest project + * @property {string|null} [region] ListRegionCompositeHealthChecksRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionCompositeHealthChecksRequest returnPartialSuccess */ /** - * Constructs a new ListRegionBackendServicesRequest. + * Constructs a new ListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionBackendServicesRequest. - * @implements IListRegionBackendServicesRequest + * @classdesc Represents a ListRegionCompositeHealthChecksRequest. + * @implements IListRegionCompositeHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest=} [properties] Properties to set */ - function ListRegionBackendServicesRequest(properties) { + function ListRegionCompositeHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -949200,116 +966993,116 @@ } /** - * ListRegionBackendServicesRequest filter. + * ListRegionCompositeHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.filter = null; + ListRegionCompositeHealthChecksRequest.prototype.filter = null; /** - * ListRegionBackendServicesRequest maxResults. + * ListRegionCompositeHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.maxResults = null; + ListRegionCompositeHealthChecksRequest.prototype.maxResults = null; /** - * ListRegionBackendServicesRequest orderBy. + * ListRegionCompositeHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.orderBy = null; + ListRegionCompositeHealthChecksRequest.prototype.orderBy = null; /** - * ListRegionBackendServicesRequest pageToken. + * ListRegionCompositeHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.pageToken = null; + ListRegionCompositeHealthChecksRequest.prototype.pageToken = null; /** - * ListRegionBackendServicesRequest project. + * ListRegionCompositeHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.project = ""; + ListRegionCompositeHealthChecksRequest.prototype.project = ""; /** - * ListRegionBackendServicesRequest region. + * ListRegionCompositeHealthChecksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.region = ""; + ListRegionCompositeHealthChecksRequest.prototype.region = ""; /** - * ListRegionBackendServicesRequest returnPartialSuccess. + * ListRegionCompositeHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.returnPartialSuccess = null; + ListRegionCompositeHealthChecksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionBackendServicesRequest instance using the specified properties. + * Creates a new ListRegionCompositeHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest instance */ - ListRegionBackendServicesRequest.create = function create(properties) { - return new ListRegionBackendServicesRequest(properties); + ListRegionCompositeHealthChecksRequest.create = function create(properties) { + return new ListRegionCompositeHealthChecksRequest(properties); }; /** - * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionBackendServicesRequest.encode = function encode(message, writer) { + ListRegionCompositeHealthChecksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -949330,33 +967123,33 @@ }; /** - * Encodes the specified ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionBackendServicesRequest.decode = function decode(reader, length, error) { + ListRegionCompositeHealthChecksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -949399,30 +967192,30 @@ }; /** - * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionCompositeHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionBackendServicesRequest message. + * Verifies a ListRegionCompositeHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionBackendServicesRequest.verify = function verify(message) { + ListRegionCompositeHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -949461,17 +967254,17 @@ }; /** - * Creates a ListRegionBackendServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest */ - ListRegionBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionBackendServicesRequest) + ListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -949490,15 +967283,15 @@ }; /** - * Creates a plain object from a ListRegionBackendServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest + * @param {google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionBackendServicesRequest.toObject = function toObject(message, options) { + ListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -949539,58 +967332,58 @@ }; /** - * Converts this ListRegionBackendServicesRequest to JSON. + * Converts this ListRegionCompositeHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @instance * @returns {Object.} JSON object */ - ListRegionBackendServicesRequest.prototype.toJSON = function toJSON() { + ListRegionCompositeHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionBackendServicesRequest + * Gets the default type url for ListRegionCompositeHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest"; }; - return ListRegionBackendServicesRequest; + return ListRegionCompositeHealthChecksRequest; })(); - v1beta.ListRegionCommitmentsRequest = (function() { + v1beta.ListRegionDiskTypesRequest = (function() { /** - * Properties of a ListRegionCommitmentsRequest. + * Properties of a ListRegionDiskTypesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionCommitmentsRequest - * @property {string|null} [filter] ListRegionCommitmentsRequest filter - * @property {number|null} [maxResults] ListRegionCommitmentsRequest maxResults - * @property {string|null} [orderBy] ListRegionCommitmentsRequest orderBy - * @property {string|null} [pageToken] ListRegionCommitmentsRequest pageToken - * @property {string|null} [project] ListRegionCommitmentsRequest project - * @property {string|null} [region] ListRegionCommitmentsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionCommitmentsRequest returnPartialSuccess + * @interface IListRegionDiskTypesRequest + * @property {string|null} [filter] ListRegionDiskTypesRequest filter + * @property {number|null} [maxResults] ListRegionDiskTypesRequest maxResults + * @property {string|null} [orderBy] ListRegionDiskTypesRequest orderBy + * @property {string|null} [pageToken] ListRegionDiskTypesRequest pageToken + * @property {string|null} [project] ListRegionDiskTypesRequest project + * @property {string|null} [region] ListRegionDiskTypesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionDiskTypesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionCommitmentsRequest. + * Constructs a new ListRegionDiskTypesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionCommitmentsRequest. - * @implements IListRegionCommitmentsRequest + * @classdesc Represents a ListRegionDiskTypesRequest. + * @implements IListRegionDiskTypesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionDiskTypesRequest=} [properties] Properties to set */ - function ListRegionCommitmentsRequest(properties) { + function ListRegionDiskTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -949598,116 +967391,116 @@ } /** - * ListRegionCommitmentsRequest filter. + * ListRegionDiskTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.filter = null; + ListRegionDiskTypesRequest.prototype.filter = null; /** - * ListRegionCommitmentsRequest maxResults. + * ListRegionDiskTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.maxResults = null; + ListRegionDiskTypesRequest.prototype.maxResults = null; /** - * ListRegionCommitmentsRequest orderBy. + * ListRegionDiskTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.orderBy = null; + ListRegionDiskTypesRequest.prototype.orderBy = null; /** - * ListRegionCommitmentsRequest pageToken. + * ListRegionDiskTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.pageToken = null; + ListRegionDiskTypesRequest.prototype.pageToken = null; /** - * ListRegionCommitmentsRequest project. + * ListRegionDiskTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.project = ""; + ListRegionDiskTypesRequest.prototype.project = ""; /** - * ListRegionCommitmentsRequest region. + * ListRegionDiskTypesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.region = ""; + ListRegionDiskTypesRequest.prototype.region = ""; /** - * ListRegionCommitmentsRequest returnPartialSuccess. + * ListRegionDiskTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + ListRegionDiskTypesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionCommitmentsRequest instance using the specified properties. + * Creates a new ListRegionDiskTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1beta.IListRegionDiskTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance */ - ListRegionCommitmentsRequest.create = function create(properties) { - return new ListRegionCommitmentsRequest(properties); + ListRegionDiskTypesRequest.create = function create(properties) { + return new ListRegionDiskTypesRequest(properties); }; /** - * Encodes the specified ListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified ListRegionDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionDiskTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCommitmentsRequest.encode = function encode(message, writer) { + ListRegionDiskTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -949728,33 +967521,33 @@ }; /** - * Encodes the specified ListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified ListRegionDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionDiskTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionCommitmentsRequest.decode = function decode(reader, length, error) { + ListRegionDiskTypesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionDiskTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -949797,30 +967590,30 @@ }; /** - * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionCommitmentsRequest message. + * Verifies a ListRegionDiskTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionCommitmentsRequest.verify = function verify(message) { + ListRegionDiskTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -949859,17 +967652,17 @@ }; /** - * Creates a ListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionDiskTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest */ - ListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionCommitmentsRequest) + ListRegionDiskTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionDiskTypesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionDiskTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -949888,15 +967681,15 @@ }; /** - * Creates a plain object from a ListRegionCommitmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionDiskTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest + * @param {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionCommitmentsRequest.toObject = function toObject(message, options) { + ListRegionDiskTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -949937,58 +967730,58 @@ }; /** - * Converts this ListRegionCommitmentsRequest to JSON. + * Converts this ListRegionDiskTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @instance * @returns {Object.} JSON object */ - ListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + ListRegionDiskTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionCommitmentsRequest + * Gets the default type url for ListRegionDiskTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionDiskTypesRequest"; }; - return ListRegionCommitmentsRequest; + return ListRegionDiskTypesRequest; })(); - v1beta.ListRegionDiskTypesRequest = (function() { + v1beta.ListRegionDisksRequest = (function() { /** - * Properties of a ListRegionDiskTypesRequest. + * Properties of a ListRegionDisksRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionDiskTypesRequest - * @property {string|null} [filter] ListRegionDiskTypesRequest filter - * @property {number|null} [maxResults] ListRegionDiskTypesRequest maxResults - * @property {string|null} [orderBy] ListRegionDiskTypesRequest orderBy - * @property {string|null} [pageToken] ListRegionDiskTypesRequest pageToken - * @property {string|null} [project] ListRegionDiskTypesRequest project - * @property {string|null} [region] ListRegionDiskTypesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionDiskTypesRequest returnPartialSuccess + * @interface IListRegionDisksRequest + * @property {string|null} [filter] ListRegionDisksRequest filter + * @property {number|null} [maxResults] ListRegionDisksRequest maxResults + * @property {string|null} [orderBy] ListRegionDisksRequest orderBy + * @property {string|null} [pageToken] ListRegionDisksRequest pageToken + * @property {string|null} [project] ListRegionDisksRequest project + * @property {string|null} [region] ListRegionDisksRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionDisksRequest returnPartialSuccess */ /** - * Constructs a new ListRegionDiskTypesRequest. + * Constructs a new ListRegionDisksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionDiskTypesRequest. - * @implements IListRegionDiskTypesRequest + * @classdesc Represents a ListRegionDisksRequest. + * @implements IListRegionDisksRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionDiskTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionDisksRequest=} [properties] Properties to set */ - function ListRegionDiskTypesRequest(properties) { + function ListRegionDisksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -949996,116 +967789,116 @@ } /** - * ListRegionDiskTypesRequest filter. + * ListRegionDisksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.filter = null; + ListRegionDisksRequest.prototype.filter = null; /** - * ListRegionDiskTypesRequest maxResults. + * ListRegionDisksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.maxResults = null; + ListRegionDisksRequest.prototype.maxResults = null; /** - * ListRegionDiskTypesRequest orderBy. + * ListRegionDisksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.orderBy = null; + ListRegionDisksRequest.prototype.orderBy = null; /** - * ListRegionDiskTypesRequest pageToken. + * ListRegionDisksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.pageToken = null; + ListRegionDisksRequest.prototype.pageToken = null; /** - * ListRegionDiskTypesRequest project. + * ListRegionDisksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.project = ""; + ListRegionDisksRequest.prototype.project = ""; /** - * ListRegionDiskTypesRequest region. + * ListRegionDisksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.region = ""; + ListRegionDisksRequest.prototype.region = ""; /** - * ListRegionDiskTypesRequest returnPartialSuccess. + * ListRegionDisksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.returnPartialSuccess = null; + ListRegionDisksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDiskTypesRequest instance using the specified properties. + * Creates a new ListRegionDisksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionDiskTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance + * @param {google.cloud.compute.v1beta.IListRegionDisksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionDisksRequest} ListRegionDisksRequest instance */ - ListRegionDiskTypesRequest.create = function create(properties) { - return new ListRegionDiskTypesRequest(properties); + ListRegionDisksRequest.create = function create(properties) { + return new ListRegionDisksRequest(properties); }; /** - * Encodes the specified ListRegionDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionDiskTypesRequest.verify|verify} messages. + * Encodes the specified ListRegionDisksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionDisksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDiskTypesRequest.encode = function encode(message, writer) { + ListRegionDisksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -950126,33 +967919,33 @@ }; /** - * Encodes the specified ListRegionDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionDiskTypesRequest.verify|verify} messages. + * Encodes the specified ListRegionDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionDisksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. + * Decodes a ListRegionDisksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1beta.ListRegionDisksRequest} ListRegionDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDiskTypesRequest.decode = function decode(reader, length, error) { + ListRegionDisksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionDiskTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionDisksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -950195,30 +967988,30 @@ }; /** - * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionDisksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1beta.ListRegionDisksRequest} ListRegionDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionDisksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionDiskTypesRequest message. + * Verifies a ListRegionDisksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionDiskTypesRequest.verify = function verify(message) { + ListRegionDisksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -950257,17 +968050,17 @@ }; /** - * Creates a ListRegionDiskTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionDisksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1beta.ListRegionDisksRequest} ListRegionDisksRequest */ - ListRegionDiskTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionDiskTypesRequest) + ListRegionDisksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionDisksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionDiskTypesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionDisksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -950286,15 +968079,15 @@ }; /** - * Creates a plain object from a ListRegionDiskTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionDisksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest + * @param {google.cloud.compute.v1beta.ListRegionDisksRequest} message ListRegionDisksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDiskTypesRequest.toObject = function toObject(message, options) { + ListRegionDisksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -950335,58 +968128,58 @@ }; /** - * Converts this ListRegionDiskTypesRequest to JSON. + * Converts this ListRegionDisksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @instance * @returns {Object.} JSON object */ - ListRegionDiskTypesRequest.prototype.toJSON = function toJSON() { + ListRegionDisksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionDiskTypesRequest + * Gets the default type url for ListRegionDisksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionDiskTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionDisksRequest"; }; - return ListRegionDiskTypesRequest; + return ListRegionDisksRequest; })(); - v1beta.ListRegionDisksRequest = (function() { + v1beta.ListRegionHealthAggregationPoliciesRequest = (function() { /** - * Properties of a ListRegionDisksRequest. + * Properties of a ListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListRegionDisksRequest - * @property {string|null} [filter] ListRegionDisksRequest filter - * @property {number|null} [maxResults] ListRegionDisksRequest maxResults - * @property {string|null} [orderBy] ListRegionDisksRequest orderBy - * @property {string|null} [pageToken] ListRegionDisksRequest pageToken - * @property {string|null} [project] ListRegionDisksRequest project - * @property {string|null} [region] ListRegionDisksRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionDisksRequest returnPartialSuccess + * @interface IListRegionHealthAggregationPoliciesRequest + * @property {string|null} [filter] ListRegionHealthAggregationPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionHealthAggregationPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthAggregationPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthAggregationPoliciesRequest pageToken + * @property {string|null} [project] ListRegionHealthAggregationPoliciesRequest project + * @property {string|null} [region] ListRegionHealthAggregationPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthAggregationPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionDisksRequest. + * Constructs a new ListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListRegionDisksRequest. - * @implements IListRegionDisksRequest + * @classdesc Represents a ListRegionHealthAggregationPoliciesRequest. + * @implements IListRegionHealthAggregationPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListRegionDisksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set */ - function ListRegionDisksRequest(properties) { + function ListRegionHealthAggregationPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -950394,116 +968187,116 @@ } /** - * ListRegionDisksRequest filter. + * ListRegionHealthAggregationPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.filter = null; + ListRegionHealthAggregationPoliciesRequest.prototype.filter = null; /** - * ListRegionDisksRequest maxResults. + * ListRegionHealthAggregationPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.maxResults = null; + ListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; /** - * ListRegionDisksRequest orderBy. + * ListRegionHealthAggregationPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.orderBy = null; + ListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; /** - * ListRegionDisksRequest pageToken. + * ListRegionHealthAggregationPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.pageToken = null; + ListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; /** - * ListRegionDisksRequest project. + * ListRegionHealthAggregationPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.project = ""; + ListRegionHealthAggregationPoliciesRequest.prototype.project = ""; /** - * ListRegionDisksRequest region. + * ListRegionHealthAggregationPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.region = ""; + ListRegionHealthAggregationPoliciesRequest.prototype.region = ""; /** - * ListRegionDisksRequest returnPartialSuccess. + * ListRegionHealthAggregationPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.returnPartialSuccess = null; + ListRegionHealthAggregationPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDisksRequest instance using the specified properties. + * Creates a new ListRegionHealthAggregationPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionDisksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListRegionDisksRequest} ListRegionDisksRequest instance + * @param {google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest instance */ - ListRegionDisksRequest.create = function create(properties) { - return new ListRegionDisksRequest(properties); + ListRegionHealthAggregationPoliciesRequest.create = function create(properties) { + return new ListRegionHealthAggregationPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionDisksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionDisksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDisksRequest.encode = function encode(message, writer) { + ListRegionHealthAggregationPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -950524,33 +968317,33 @@ }; /** - * Encodes the specified ListRegionDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionDisksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDisksRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDisksRequest.decode = function decode(reader, length, error) { + ListRegionHealthAggregationPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionDisksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -950593,30 +968386,30 @@ }; /** - * Decodes a ListRegionDisksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDisksRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionHealthAggregationPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionDisksRequest message. + * Verifies a ListRegionHealthAggregationPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionDisksRequest.verify = function verify(message) { + ListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -950655,17 +968448,17 @@ }; /** - * Creates a ListRegionDisksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest */ - ListRegionDisksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListRegionDisksRequest) + ListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListRegionDisksRequest(); + var message = new $root.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -950684,15 +968477,15 @@ }; /** - * Creates a plain object from a ListRegionDisksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.ListRegionDisksRequest} message ListRegionDisksRequest + * @param {google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDisksRequest.toObject = function toObject(message, options) { + ListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -950733,32 +968526,32 @@ }; /** - * Converts this ListRegionDisksRequest to JSON. + * Converts this ListRegionHealthAggregationPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionDisksRequest.prototype.toJSON = function toJSON() { + ListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionDisksRequest + * Gets the default type url for ListRegionHealthAggregationPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListRegionDisksRequest + * @memberof google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionDisksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest"; }; - return ListRegionDisksRequest; + return ListRegionHealthAggregationPoliciesRequest; })(); v1beta.ListRegionHealthCheckServicesRequest = (function() { @@ -968221,57 +986014,431 @@ }; /** - * Converts this ListTargetPoolsRequest to JSON. + * Converts this ListTargetPoolsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListTargetPoolsRequest + * @instance + * @returns {Object.} JSON object + */ + ListTargetPoolsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListTargetPoolsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListTargetPoolsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListTargetPoolsRequest"; + }; + + return ListTargetPoolsRequest; + })(); + + v1beta.ListTargetSslProxiesRequest = (function() { + + /** + * Properties of a ListTargetSslProxiesRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListTargetSslProxiesRequest + * @property {string|null} [filter] ListTargetSslProxiesRequest filter + * @property {number|null} [maxResults] ListTargetSslProxiesRequest maxResults + * @property {string|null} [orderBy] ListTargetSslProxiesRequest orderBy + * @property {string|null} [pageToken] ListTargetSslProxiesRequest pageToken + * @property {string|null} [project] ListTargetSslProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] ListTargetSslProxiesRequest returnPartialSuccess + */ + + /** + * Constructs a new ListTargetSslProxiesRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListTargetSslProxiesRequest. + * @implements IListTargetSslProxiesRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListTargetSslProxiesRequest=} [properties] Properties to set + */ + function ListTargetSslProxiesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListTargetSslProxiesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @instance + */ + ListTargetSslProxiesRequest.prototype.filter = null; + + /** + * ListTargetSslProxiesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @instance + */ + ListTargetSslProxiesRequest.prototype.maxResults = null; + + /** + * ListTargetSslProxiesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @instance + */ + ListTargetSslProxiesRequest.prototype.orderBy = null; + + /** + * ListTargetSslProxiesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @instance + */ + ListTargetSslProxiesRequest.prototype.pageToken = null; + + /** + * ListTargetSslProxiesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @instance + */ + ListTargetSslProxiesRequest.prototype.project = ""; + + /** + * ListTargetSslProxiesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @instance + */ + ListTargetSslProxiesRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListTargetSslProxiesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @static + * @param {google.cloud.compute.v1beta.IListTargetSslProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} ListTargetSslProxiesRequest instance + */ + ListTargetSslProxiesRequest.create = function create(properties) { + return new ListTargetSslProxiesRequest(properties); + }; + + /** + * Encodes the specified ListTargetSslProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetSslProxiesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @static + * @param {google.cloud.compute.v1beta.IListTargetSslProxiesRequest} message ListTargetSslProxiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTargetSslProxiesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListTargetSslProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetSslProxiesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @static + * @param {google.cloud.compute.v1beta.IListTargetSslProxiesRequest} message ListTargetSslProxiesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTargetSslProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListTargetSslProxiesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} ListTargetSslProxiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTargetSslProxiesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListTargetSslProxiesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListTargetSslProxiesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} ListTargetSslProxiesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTargetSslProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListTargetSslProxiesRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTargetSslProxiesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListTargetSslProxiesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} ListTargetSslProxiesRequest + */ + ListTargetSslProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListTargetSslProxiesRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListTargetSslProxiesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListTargetSslProxiesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @static + * @param {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} message ListTargetSslProxiesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTargetSslProxiesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListTargetSslProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest * @instance * @returns {Object.} JSON object */ - ListTargetPoolsRequest.prototype.toJSON = function toJSON() { + ListTargetSslProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTargetPoolsRequest + * Gets the default type url for ListTargetSslProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListTargetPoolsRequest + * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTargetSslProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListTargetPoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListTargetSslProxiesRequest"; }; - return ListTargetPoolsRequest; + return ListTargetSslProxiesRequest; })(); - v1beta.ListTargetSslProxiesRequest = (function() { + v1beta.ListTargetTcpProxiesRequest = (function() { /** - * Properties of a ListTargetSslProxiesRequest. + * Properties of a ListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListTargetSslProxiesRequest - * @property {string|null} [filter] ListTargetSslProxiesRequest filter - * @property {number|null} [maxResults] ListTargetSslProxiesRequest maxResults - * @property {string|null} [orderBy] ListTargetSslProxiesRequest orderBy - * @property {string|null} [pageToken] ListTargetSslProxiesRequest pageToken - * @property {string|null} [project] ListTargetSslProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] ListTargetSslProxiesRequest returnPartialSuccess + * @interface IListTargetTcpProxiesRequest + * @property {string|null} [filter] ListTargetTcpProxiesRequest filter + * @property {number|null} [maxResults] ListTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] ListTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] ListTargetTcpProxiesRequest pageToken + * @property {string|null} [project] ListTargetTcpProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] ListTargetTcpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListTargetSslProxiesRequest. + * Constructs a new ListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListTargetSslProxiesRequest. - * @implements IListTargetSslProxiesRequest + * @classdesc Represents a ListTargetTcpProxiesRequest. + * @implements IListTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListTargetSslProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListTargetTcpProxiesRequest=} [properties] Properties to set */ - function ListTargetSslProxiesRequest(properties) { + function ListTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -968279,108 +986446,108 @@ } /** - * ListTargetSslProxiesRequest filter. + * ListTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @instance */ - ListTargetSslProxiesRequest.prototype.filter = null; + ListTargetTcpProxiesRequest.prototype.filter = null; /** - * ListTargetSslProxiesRequest maxResults. + * ListTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @instance */ - ListTargetSslProxiesRequest.prototype.maxResults = null; + ListTargetTcpProxiesRequest.prototype.maxResults = null; /** - * ListTargetSslProxiesRequest orderBy. + * ListTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @instance */ - ListTargetSslProxiesRequest.prototype.orderBy = null; + ListTargetTcpProxiesRequest.prototype.orderBy = null; /** - * ListTargetSslProxiesRequest pageToken. + * ListTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @instance */ - ListTargetSslProxiesRequest.prototype.pageToken = null; + ListTargetTcpProxiesRequest.prototype.pageToken = null; /** - * ListTargetSslProxiesRequest project. + * ListTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @instance */ - ListTargetSslProxiesRequest.prototype.project = ""; + ListTargetTcpProxiesRequest.prototype.project = ""; /** - * ListTargetSslProxiesRequest returnPartialSuccess. + * ListTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @instance */ - ListTargetSslProxiesRequest.prototype.returnPartialSuccess = null; + ListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetSslProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListTargetSslProxiesRequest instance using the specified properties. + * Creates a new ListTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListTargetSslProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} ListTargetSslProxiesRequest instance + * @param {google.cloud.compute.v1beta.IListTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} ListTargetTcpProxiesRequest instance */ - ListTargetSslProxiesRequest.create = function create(properties) { - return new ListTargetSslProxiesRequest(properties); + ListTargetTcpProxiesRequest.create = function create(properties) { + return new ListTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified ListTargetSslProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetSslProxiesRequest.verify|verify} messages. + * Encodes the specified ListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListTargetSslProxiesRequest} message ListTargetSslProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListTargetTcpProxiesRequest} message ListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTargetSslProxiesRequest.encode = function encode(message, writer) { + ListTargetTcpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -968399,33 +986566,33 @@ }; /** - * Encodes the specified ListTargetSslProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetSslProxiesRequest.verify|verify} messages. + * Encodes the specified ListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.IListTargetSslProxiesRequest} message ListTargetSslProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListTargetTcpProxiesRequest} message ListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTargetSslProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTargetSslProxiesRequest message from the specified reader or buffer. + * Decodes a ListTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} ListTargetSslProxiesRequest + * @returns {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} ListTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTargetSslProxiesRequest.decode = function decode(reader, length, error) { + ListTargetTcpProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListTargetSslProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -968464,30 +986631,30 @@ }; /** - * Decodes a ListTargetSslProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} ListTargetSslProxiesRequest + * @returns {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} ListTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTargetSslProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTargetSslProxiesRequest message. + * Verifies a ListTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTargetSslProxiesRequest.verify = function verify(message) { + ListTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -968523,17 +986690,17 @@ }; /** - * Creates a ListTargetSslProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} ListTargetSslProxiesRequest + * @returns {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} ListTargetTcpProxiesRequest */ - ListTargetSslProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListTargetSslProxiesRequest) + ListTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListTargetSslProxiesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -968550,15 +986717,15 @@ }; /** - * Creates a plain object from a ListTargetSslProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1beta.ListTargetSslProxiesRequest} message ListTargetSslProxiesRequest + * @param {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} message ListTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTargetSslProxiesRequest.toObject = function toObject(message, options) { + ListTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -968595,57 +986762,58 @@ }; /** - * Converts this ListTargetSslProxiesRequest to JSON. + * Converts this ListTargetTcpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListTargetSslProxiesRequest.prototype.toJSON = function toJSON() { + ListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTargetSslProxiesRequest + * Gets the default type url for ListTargetTcpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListTargetSslProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTargetSslProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListTargetSslProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListTargetTcpProxiesRequest"; }; - return ListTargetSslProxiesRequest; + return ListTargetTcpProxiesRequest; })(); - v1beta.ListTargetTcpProxiesRequest = (function() { + v1beta.ListTargetVpnGatewaysRequest = (function() { /** - * Properties of a ListTargetTcpProxiesRequest. + * Properties of a ListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1beta - * @interface IListTargetTcpProxiesRequest - * @property {string|null} [filter] ListTargetTcpProxiesRequest filter - * @property {number|null} [maxResults] ListTargetTcpProxiesRequest maxResults - * @property {string|null} [orderBy] ListTargetTcpProxiesRequest orderBy - * @property {string|null} [pageToken] ListTargetTcpProxiesRequest pageToken - * @property {string|null} [project] ListTargetTcpProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] ListTargetTcpProxiesRequest returnPartialSuccess + * @interface IListTargetVpnGatewaysRequest + * @property {string|null} [filter] ListTargetVpnGatewaysRequest filter + * @property {number|null} [maxResults] ListTargetVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] ListTargetVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] ListTargetVpnGatewaysRequest pageToken + * @property {string|null} [project] ListTargetVpnGatewaysRequest project + * @property {string|null} [region] ListTargetVpnGatewaysRequest region + * @property {boolean|null} [returnPartialSuccess] ListTargetVpnGatewaysRequest returnPartialSuccess */ /** - * Constructs a new ListTargetTcpProxiesRequest. + * Constructs a new ListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListTargetTcpProxiesRequest. - * @implements IListTargetTcpProxiesRequest + * @classdesc Represents a ListTargetVpnGatewaysRequest. + * @implements IListTargetVpnGatewaysRequest * @constructor - * @param {google.cloud.compute.v1beta.IListTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest=} [properties] Properties to set */ - function ListTargetTcpProxiesRequest(properties) { + function ListTargetVpnGatewaysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -968653,114 +986821,124 @@ } /** - * ListTargetTcpProxiesRequest filter. + * ListTargetVpnGatewaysRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @instance */ - ListTargetTcpProxiesRequest.prototype.filter = null; + ListTargetVpnGatewaysRequest.prototype.filter = null; /** - * ListTargetTcpProxiesRequest maxResults. + * ListTargetVpnGatewaysRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @instance */ - ListTargetTcpProxiesRequest.prototype.maxResults = null; + ListTargetVpnGatewaysRequest.prototype.maxResults = null; /** - * ListTargetTcpProxiesRequest orderBy. + * ListTargetVpnGatewaysRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @instance */ - ListTargetTcpProxiesRequest.prototype.orderBy = null; + ListTargetVpnGatewaysRequest.prototype.orderBy = null; /** - * ListTargetTcpProxiesRequest pageToken. + * ListTargetVpnGatewaysRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @instance */ - ListTargetTcpProxiesRequest.prototype.pageToken = null; + ListTargetVpnGatewaysRequest.prototype.pageToken = null; /** - * ListTargetTcpProxiesRequest project. + * ListTargetVpnGatewaysRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @instance */ - ListTargetTcpProxiesRequest.prototype.project = ""; + ListTargetVpnGatewaysRequest.prototype.project = ""; /** - * ListTargetTcpProxiesRequest returnPartialSuccess. + * ListTargetVpnGatewaysRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @instance + */ + ListTargetVpnGatewaysRequest.prototype.region = ""; + + /** + * ListTargetVpnGatewaysRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @instance */ - ListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + ListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListTargetTcpProxiesRequest instance using the specified properties. + * Creates a new ListTargetVpnGatewaysRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1beta.IListTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} ListTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} ListTargetVpnGatewaysRequest instance */ - ListTargetTcpProxiesRequest.create = function create(properties) { - return new ListTargetTcpProxiesRequest(properties); + ListTargetVpnGatewaysRequest.create = function create(properties) { + return new ListTargetVpnGatewaysRequest(properties); }; /** - * Encodes the specified ListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1beta.IListTargetTcpProxiesRequest} message ListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest} message ListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTargetTcpProxiesRequest.encode = function encode(message, writer) { + ListTargetVpnGatewaysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -968773,33 +986951,33 @@ }; /** - * Encodes the specified ListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1beta.IListTargetTcpProxiesRequest} message ListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest} message ListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes a ListTargetVpnGatewaysRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} ListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} ListTargetVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTargetTcpProxiesRequest.decode = function decode(reader, length, error) { + ListTargetVpnGatewaysRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -968825,6 +987003,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -968838,30 +987020,30 @@ }; /** - * Decodes a ListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} ListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} ListTargetVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTargetTcpProxiesRequest message. + * Verifies a ListTargetVpnGatewaysRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTargetTcpProxiesRequest.verify = function verify(message) { + ListTargetVpnGatewaysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -968888,6 +987070,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -968897,17 +987082,17 @@ }; /** - * Creates a ListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} ListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} ListTargetVpnGatewaysRequest */ - ListTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListTargetTcpProxiesRequest) + ListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -968918,26 +987103,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTargetVpnGatewaysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1beta.ListTargetTcpProxiesRequest} message ListTargetTcpProxiesRequest + * @param {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} message ListTargetVpnGatewaysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTargetTcpProxiesRequest.toObject = function toObject(message, options) { + ListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -968948,6 +987137,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -968969,58 +987160,57 @@ }; /** - * Converts this ListTargetTcpProxiesRequest to JSON. + * Converts this ListTargetVpnGatewaysRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @instance * @returns {Object.} JSON object */ - ListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + ListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTargetTcpProxiesRequest + * Gets the default type url for ListTargetVpnGatewaysRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest"; }; - return ListTargetTcpProxiesRequest; + return ListTargetVpnGatewaysRequest; })(); - v1beta.ListTargetVpnGatewaysRequest = (function() { + v1beta.ListUrlMapsRequest = (function() { /** - * Properties of a ListTargetVpnGatewaysRequest. + * Properties of a ListUrlMapsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListTargetVpnGatewaysRequest - * @property {string|null} [filter] ListTargetVpnGatewaysRequest filter - * @property {number|null} [maxResults] ListTargetVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] ListTargetVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] ListTargetVpnGatewaysRequest pageToken - * @property {string|null} [project] ListTargetVpnGatewaysRequest project - * @property {string|null} [region] ListTargetVpnGatewaysRequest region - * @property {boolean|null} [returnPartialSuccess] ListTargetVpnGatewaysRequest returnPartialSuccess + * @interface IListUrlMapsRequest + * @property {string|null} [filter] ListUrlMapsRequest filter + * @property {number|null} [maxResults] ListUrlMapsRequest maxResults + * @property {string|null} [orderBy] ListUrlMapsRequest orderBy + * @property {string|null} [pageToken] ListUrlMapsRequest pageToken + * @property {string|null} [project] ListUrlMapsRequest project + * @property {boolean|null} [returnPartialSuccess] ListUrlMapsRequest returnPartialSuccess */ /** - * Constructs a new ListTargetVpnGatewaysRequest. + * Constructs a new ListUrlMapsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListTargetVpnGatewaysRequest. - * @implements IListTargetVpnGatewaysRequest + * @classdesc Represents a ListUrlMapsRequest. + * @implements IListUrlMapsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListUrlMapsRequest=} [properties] Properties to set */ - function ListTargetVpnGatewaysRequest(properties) { + function ListUrlMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -969028,124 +987218,114 @@ } /** - * ListTargetVpnGatewaysRequest filter. + * ListUrlMapsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @instance */ - ListTargetVpnGatewaysRequest.prototype.filter = null; + ListUrlMapsRequest.prototype.filter = null; /** - * ListTargetVpnGatewaysRequest maxResults. + * ListUrlMapsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @instance */ - ListTargetVpnGatewaysRequest.prototype.maxResults = null; + ListUrlMapsRequest.prototype.maxResults = null; /** - * ListTargetVpnGatewaysRequest orderBy. + * ListUrlMapsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @instance */ - ListTargetVpnGatewaysRequest.prototype.orderBy = null; + ListUrlMapsRequest.prototype.orderBy = null; /** - * ListTargetVpnGatewaysRequest pageToken. + * ListUrlMapsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @instance */ - ListTargetVpnGatewaysRequest.prototype.pageToken = null; + ListUrlMapsRequest.prototype.pageToken = null; /** - * ListTargetVpnGatewaysRequest project. + * ListUrlMapsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest - * @instance - */ - ListTargetVpnGatewaysRequest.prototype.project = ""; - - /** - * ListTargetVpnGatewaysRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @instance */ - ListTargetVpnGatewaysRequest.prototype.region = ""; + ListUrlMapsRequest.prototype.project = ""; /** - * ListTargetVpnGatewaysRequest returnPartialSuccess. + * ListUrlMapsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @instance */ - ListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; + ListUrlMapsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(ListUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(ListUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(ListUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(ListUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListTargetVpnGatewaysRequest instance using the specified properties. + * Creates a new ListUrlMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @static - * @param {google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} ListTargetVpnGatewaysRequest instance + * @param {google.cloud.compute.v1beta.IListUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListUrlMapsRequest} ListUrlMapsRequest instance */ - ListTargetVpnGatewaysRequest.create = function create(properties) { - return new ListTargetVpnGatewaysRequest(properties); + ListUrlMapsRequest.create = function create(properties) { + return new ListUrlMapsRequest(properties); }; /** - * Encodes the specified ListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified ListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListUrlMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @static - * @param {google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest} message ListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListUrlMapsRequest} message ListUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTargetVpnGatewaysRequest.encode = function encode(message, writer) { + ListUrlMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -969158,33 +987338,33 @@ }; /** - * Encodes the specified ListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified ListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListUrlMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @static - * @param {google.cloud.compute.v1beta.IListTargetVpnGatewaysRequest} message ListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListUrlMapsRequest} message ListUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTargetVpnGatewaysRequest message from the specified reader or buffer. + * Decodes a ListUrlMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} ListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1beta.ListUrlMapsRequest} ListUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTargetVpnGatewaysRequest.decode = function decode(reader, length, error) { + ListUrlMapsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListUrlMapsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -969210,10 +987390,6 @@ message.project = reader.string(); break; } - case 138946292: { - message.region = reader.string(); - break; - } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -969227,30 +987403,30 @@ }; /** - * Decodes a ListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUrlMapsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} ListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1beta.ListUrlMapsRequest} ListUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + ListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTargetVpnGatewaysRequest message. + * Verifies a ListUrlMapsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTargetVpnGatewaysRequest.verify = function verify(message) { + ListUrlMapsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -969277,9 +987453,6 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -969289,17 +987462,17 @@ }; /** - * Creates a ListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} ListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1beta.ListUrlMapsRequest} ListUrlMapsRequest */ - ListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest) + ListUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListUrlMapsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1beta.ListUrlMapsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -969310,30 +987483,26 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); - if (object.region != null) - message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListTargetVpnGatewaysRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUrlMapsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @static - * @param {google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest} message ListTargetVpnGatewaysRequest + * @param {google.cloud.compute.v1beta.ListUrlMapsRequest} message ListUrlMapsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { + ListUrlMapsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.region = ""; + if (options.defaults) object.project = ""; - } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -969344,8 +987513,6 @@ if (options.oneofs) object._maxResults = "maxResults"; } - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -969367,57 +987534,57 @@ }; /** - * Converts this ListTargetVpnGatewaysRequest to JSON. + * Converts this ListUrlMapsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @instance * @returns {Object.} JSON object */ - ListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { + ListUrlMapsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTargetVpnGatewaysRequest + * Gets the default type url for ListUrlMapsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListTargetVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListUrlMapsRequest"; }; - return ListTargetVpnGatewaysRequest; + return ListUrlMapsRequest; })(); - v1beta.ListUrlMapsRequest = (function() { + v1beta.ListUsableBackendBucketsRequest = (function() { /** - * Properties of a ListUrlMapsRequest. + * Properties of a ListUsableBackendBucketsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListUrlMapsRequest - * @property {string|null} [filter] ListUrlMapsRequest filter - * @property {number|null} [maxResults] ListUrlMapsRequest maxResults - * @property {string|null} [orderBy] ListUrlMapsRequest orderBy - * @property {string|null} [pageToken] ListUrlMapsRequest pageToken - * @property {string|null} [project] ListUrlMapsRequest project - * @property {boolean|null} [returnPartialSuccess] ListUrlMapsRequest returnPartialSuccess + * @interface IListUsableBackendBucketsRequest + * @property {string|null} [filter] ListUsableBackendBucketsRequest filter + * @property {number|null} [maxResults] ListUsableBackendBucketsRequest maxResults + * @property {string|null} [orderBy] ListUsableBackendBucketsRequest orderBy + * @property {string|null} [pageToken] ListUsableBackendBucketsRequest pageToken + * @property {string|null} [project] ListUsableBackendBucketsRequest project + * @property {boolean|null} [returnPartialSuccess] ListUsableBackendBucketsRequest returnPartialSuccess */ /** - * Constructs a new ListUrlMapsRequest. + * Constructs a new ListUsableBackendBucketsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListUrlMapsRequest. - * @implements IListUrlMapsRequest + * @classdesc Represents a ListUsableBackendBucketsRequest. + * @implements IListUsableBackendBucketsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListUsableBackendBucketsRequest=} [properties] Properties to set */ - function ListUrlMapsRequest(properties) { + function ListUsableBackendBucketsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -969425,108 +987592,108 @@ } /** - * ListUrlMapsRequest filter. + * ListUsableBackendBucketsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @instance */ - ListUrlMapsRequest.prototype.filter = null; + ListUsableBackendBucketsRequest.prototype.filter = null; /** - * ListUrlMapsRequest maxResults. + * ListUsableBackendBucketsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @instance */ - ListUrlMapsRequest.prototype.maxResults = null; + ListUsableBackendBucketsRequest.prototype.maxResults = null; /** - * ListUrlMapsRequest orderBy. + * ListUsableBackendBucketsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @instance */ - ListUrlMapsRequest.prototype.orderBy = null; + ListUsableBackendBucketsRequest.prototype.orderBy = null; /** - * ListUrlMapsRequest pageToken. + * ListUsableBackendBucketsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @instance */ - ListUrlMapsRequest.prototype.pageToken = null; + ListUsableBackendBucketsRequest.prototype.pageToken = null; /** - * ListUrlMapsRequest project. + * ListUsableBackendBucketsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @instance */ - ListUrlMapsRequest.prototype.project = ""; + ListUsableBackendBucketsRequest.prototype.project = ""; /** - * ListUrlMapsRequest returnPartialSuccess. + * ListUsableBackendBucketsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @instance */ - ListUrlMapsRequest.prototype.returnPartialSuccess = null; + ListUsableBackendBucketsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListUrlMapsRequest instance using the specified properties. + * Creates a new ListUsableBackendBucketsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IListUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListUrlMapsRequest} ListUrlMapsRequest instance + * @param {google.cloud.compute.v1beta.IListUsableBackendBucketsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest instance */ - ListUrlMapsRequest.create = function create(properties) { - return new ListUrlMapsRequest(properties); + ListUsableBackendBucketsRequest.create = function create(properties) { + return new ListUsableBackendBucketsRequest(properties); }; /** - * Encodes the specified ListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListUsableBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableBackendBucketsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IListUrlMapsRequest} message ListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListUsableBackendBucketsRequest} message ListUsableBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUrlMapsRequest.encode = function encode(message, writer) { + ListUsableBackendBucketsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -969545,33 +987712,33 @@ }; /** - * Encodes the specified ListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListUsableBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableBackendBucketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IListUrlMapsRequest} message ListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListUsableBackendBucketsRequest} message ListUsableBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListUrlMapsRequest message from the specified reader or buffer. + * Decodes a ListUsableBackendBucketsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListUrlMapsRequest} ListUrlMapsRequest + * @returns {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUrlMapsRequest.decode = function decode(reader, length, error) { + ListUsableBackendBucketsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListUsableBackendBucketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -969610,30 +987777,30 @@ }; /** - * Decodes a ListUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUsableBackendBucketsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListUrlMapsRequest} ListUrlMapsRequest + * @returns {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + ListUsableBackendBucketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListUrlMapsRequest message. + * Verifies a ListUsableBackendBucketsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListUrlMapsRequest.verify = function verify(message) { + ListUsableBackendBucketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -969669,17 +987836,17 @@ }; /** - * Creates a ListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUsableBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListUrlMapsRequest} ListUrlMapsRequest + * @returns {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest */ - ListUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListUrlMapsRequest) + ListUsableBackendBucketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListUsableBackendBucketsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListUsableBackendBucketsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -969696,15 +987863,15 @@ }; /** - * Creates a plain object from a ListUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUsableBackendBucketsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.ListUrlMapsRequest} message ListUrlMapsRequest + * @param {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} message ListUsableBackendBucketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListUrlMapsRequest.toObject = function toObject(message, options) { + ListUsableBackendBucketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -969741,57 +987908,57 @@ }; /** - * Converts this ListUrlMapsRequest to JSON. + * Converts this ListUsableBackendBucketsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @instance * @returns {Object.} JSON object */ - ListUrlMapsRequest.prototype.toJSON = function toJSON() { + ListUsableBackendBucketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListUrlMapsRequest + * Gets the default type url for ListUsableBackendBucketsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListUrlMapsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUsableBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListUsableBackendBucketsRequest"; }; - return ListUrlMapsRequest; + return ListUsableBackendBucketsRequest; })(); - v1beta.ListUsableBackendBucketsRequest = (function() { + v1beta.ListUsableBackendServicesRequest = (function() { /** - * Properties of a ListUsableBackendBucketsRequest. + * Properties of a ListUsableBackendServicesRequest. * @memberof google.cloud.compute.v1beta - * @interface IListUsableBackendBucketsRequest - * @property {string|null} [filter] ListUsableBackendBucketsRequest filter - * @property {number|null} [maxResults] ListUsableBackendBucketsRequest maxResults - * @property {string|null} [orderBy] ListUsableBackendBucketsRequest orderBy - * @property {string|null} [pageToken] ListUsableBackendBucketsRequest pageToken - * @property {string|null} [project] ListUsableBackendBucketsRequest project - * @property {boolean|null} [returnPartialSuccess] ListUsableBackendBucketsRequest returnPartialSuccess + * @interface IListUsableBackendServicesRequest + * @property {string|null} [filter] ListUsableBackendServicesRequest filter + * @property {number|null} [maxResults] ListUsableBackendServicesRequest maxResults + * @property {string|null} [orderBy] ListUsableBackendServicesRequest orderBy + * @property {string|null} [pageToken] ListUsableBackendServicesRequest pageToken + * @property {string|null} [project] ListUsableBackendServicesRequest project + * @property {boolean|null} [returnPartialSuccess] ListUsableBackendServicesRequest returnPartialSuccess */ /** - * Constructs a new ListUsableBackendBucketsRequest. + * Constructs a new ListUsableBackendServicesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListUsableBackendBucketsRequest. - * @implements IListUsableBackendBucketsRequest + * @classdesc Represents a ListUsableBackendServicesRequest. + * @implements IListUsableBackendServicesRequest * @constructor - * @param {google.cloud.compute.v1beta.IListUsableBackendBucketsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListUsableBackendServicesRequest=} [properties] Properties to set */ - function ListUsableBackendBucketsRequest(properties) { + function ListUsableBackendServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -969799,108 +987966,108 @@ } /** - * ListUsableBackendBucketsRequest filter. + * ListUsableBackendServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @instance */ - ListUsableBackendBucketsRequest.prototype.filter = null; + ListUsableBackendServicesRequest.prototype.filter = null; /** - * ListUsableBackendBucketsRequest maxResults. + * ListUsableBackendServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @instance */ - ListUsableBackendBucketsRequest.prototype.maxResults = null; + ListUsableBackendServicesRequest.prototype.maxResults = null; /** - * ListUsableBackendBucketsRequest orderBy. + * ListUsableBackendServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @instance */ - ListUsableBackendBucketsRequest.prototype.orderBy = null; + ListUsableBackendServicesRequest.prototype.orderBy = null; /** - * ListUsableBackendBucketsRequest pageToken. + * ListUsableBackendServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @instance */ - ListUsableBackendBucketsRequest.prototype.pageToken = null; + ListUsableBackendServicesRequest.prototype.pageToken = null; /** - * ListUsableBackendBucketsRequest project. + * ListUsableBackendServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @instance */ - ListUsableBackendBucketsRequest.prototype.project = ""; + ListUsableBackendServicesRequest.prototype.project = ""; /** - * ListUsableBackendBucketsRequest returnPartialSuccess. + * ListUsableBackendServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @instance */ - ListUsableBackendBucketsRequest.prototype.returnPartialSuccess = null; + ListUsableBackendServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_filter", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_maxResults", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_orderBy", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_pageToken", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendBucketsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListUsableBackendBucketsRequest instance using the specified properties. + * Creates a new ListUsableBackendServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IListUsableBackendBucketsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest instance + * @param {google.cloud.compute.v1beta.IListUsableBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest instance */ - ListUsableBackendBucketsRequest.create = function create(properties) { - return new ListUsableBackendBucketsRequest(properties); + ListUsableBackendServicesRequest.create = function create(properties) { + return new ListUsableBackendServicesRequest(properties); }; /** - * Encodes the specified ListUsableBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableBackendBucketsRequest.verify|verify} messages. + * Encodes the specified ListUsableBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableBackendServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IListUsableBackendBucketsRequest} message ListUsableBackendBucketsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListUsableBackendServicesRequest} message ListUsableBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableBackendBucketsRequest.encode = function encode(message, writer) { + ListUsableBackendServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -969919,33 +988086,33 @@ }; /** - * Encodes the specified ListUsableBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableBackendBucketsRequest.verify|verify} messages. + * Encodes the specified ListUsableBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableBackendServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IListUsableBackendBucketsRequest} message ListUsableBackendBucketsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListUsableBackendServicesRequest} message ListUsableBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListUsableBackendBucketsRequest message from the specified reader or buffer. + * Decodes a ListUsableBackendServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest + * @returns {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUsableBackendBucketsRequest.decode = function decode(reader, length, error) { + ListUsableBackendServicesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListUsableBackendBucketsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListUsableBackendServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -969984,30 +988151,30 @@ }; /** - * Decodes a ListUsableBackendBucketsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUsableBackendServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest + * @returns {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUsableBackendBucketsRequest.decodeDelimited = function decodeDelimited(reader) { + ListUsableBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListUsableBackendBucketsRequest message. + * Verifies a ListUsableBackendServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListUsableBackendBucketsRequest.verify = function verify(message) { + ListUsableBackendServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -970043,17 +988210,17 @@ }; /** - * Creates a ListUsableBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUsableBackendServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} ListUsableBackendBucketsRequest + * @returns {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest */ - ListUsableBackendBucketsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListUsableBackendBucketsRequest) + ListUsableBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListUsableBackendServicesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListUsableBackendBucketsRequest(); + var message = new $root.google.cloud.compute.v1beta.ListUsableBackendServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -970070,15 +988237,15 @@ }; /** - * Creates a plain object from a ListUsableBackendBucketsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUsableBackendServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.ListUsableBackendBucketsRequest} message ListUsableBackendBucketsRequest + * @param {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} message ListUsableBackendServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListUsableBackendBucketsRequest.toObject = function toObject(message, options) { + ListUsableBackendServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -970115,57 +988282,58 @@ }; /** - * Converts this ListUsableBackendBucketsRequest to JSON. + * Converts this ListUsableBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @instance * @returns {Object.} JSON object */ - ListUsableBackendBucketsRequest.prototype.toJSON = function toJSON() { + ListUsableBackendServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListUsableBackendBucketsRequest + * Gets the default type url for ListUsableBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListUsableBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListUsableBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUsableBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListUsableBackendBucketsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListUsableBackendServicesRequest"; }; - return ListUsableBackendBucketsRequest; + return ListUsableBackendServicesRequest; })(); - v1beta.ListUsableBackendServicesRequest = (function() { + v1beta.ListUsableRegionBackendBucketsRequest = (function() { /** - * Properties of a ListUsableBackendServicesRequest. + * Properties of a ListUsableRegionBackendBucketsRequest. * @memberof google.cloud.compute.v1beta - * @interface IListUsableBackendServicesRequest - * @property {string|null} [filter] ListUsableBackendServicesRequest filter - * @property {number|null} [maxResults] ListUsableBackendServicesRequest maxResults - * @property {string|null} [orderBy] ListUsableBackendServicesRequest orderBy - * @property {string|null} [pageToken] ListUsableBackendServicesRequest pageToken - * @property {string|null} [project] ListUsableBackendServicesRequest project - * @property {boolean|null} [returnPartialSuccess] ListUsableBackendServicesRequest returnPartialSuccess + * @interface IListUsableRegionBackendBucketsRequest + * @property {string|null} [filter] ListUsableRegionBackendBucketsRequest filter + * @property {number|null} [maxResults] ListUsableRegionBackendBucketsRequest maxResults + * @property {string|null} [orderBy] ListUsableRegionBackendBucketsRequest orderBy + * @property {string|null} [pageToken] ListUsableRegionBackendBucketsRequest pageToken + * @property {string|null} [project] ListUsableRegionBackendBucketsRequest project + * @property {string|null} [region] ListUsableRegionBackendBucketsRequest region + * @property {boolean|null} [returnPartialSuccess] ListUsableRegionBackendBucketsRequest returnPartialSuccess */ /** - * Constructs a new ListUsableBackendServicesRequest. + * Constructs a new ListUsableRegionBackendBucketsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a ListUsableBackendServicesRequest. - * @implements IListUsableBackendServicesRequest + * @classdesc Represents a ListUsableRegionBackendBucketsRequest. + * @implements IListUsableRegionBackendBucketsRequest * @constructor - * @param {google.cloud.compute.v1beta.IListUsableBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest=} [properties] Properties to set */ - function ListUsableBackendServicesRequest(properties) { + function ListUsableRegionBackendBucketsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -970173,114 +988341,124 @@ } /** - * ListUsableBackendServicesRequest filter. + * ListUsableRegionBackendBucketsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.filter = null; + ListUsableRegionBackendBucketsRequest.prototype.filter = null; /** - * ListUsableBackendServicesRequest maxResults. + * ListUsableRegionBackendBucketsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.maxResults = null; + ListUsableRegionBackendBucketsRequest.prototype.maxResults = null; /** - * ListUsableBackendServicesRequest orderBy. + * ListUsableRegionBackendBucketsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.orderBy = null; + ListUsableRegionBackendBucketsRequest.prototype.orderBy = null; /** - * ListUsableBackendServicesRequest pageToken. + * ListUsableRegionBackendBucketsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.pageToken = null; + ListUsableRegionBackendBucketsRequest.prototype.pageToken = null; /** - * ListUsableBackendServicesRequest project. + * ListUsableRegionBackendBucketsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.project = ""; + ListUsableRegionBackendBucketsRequest.prototype.project = ""; /** - * ListUsableBackendServicesRequest returnPartialSuccess. + * ListUsableRegionBackendBucketsRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest + * @instance + */ + ListUsableRegionBackendBucketsRequest.prototype.region = ""; + + /** + * ListUsableRegionBackendBucketsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @instance */ - ListUsableBackendServicesRequest.prototype.returnPartialSuccess = null; + ListUsableRegionBackendBucketsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListUsableBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListUsableRegionBackendBucketsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListUsableBackendServicesRequest instance using the specified properties. + * Creates a new ListUsableRegionBackendBucketsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IListUsableBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest instance + * @param {google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest} ListUsableRegionBackendBucketsRequest instance */ - ListUsableBackendServicesRequest.create = function create(properties) { - return new ListUsableBackendServicesRequest(properties); + ListUsableRegionBackendBucketsRequest.create = function create(properties) { + return new ListUsableRegionBackendBucketsRequest(properties); }; /** - * Encodes the specified ListUsableBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListUsableRegionBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IListUsableBackendServicesRequest} message ListUsableBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest} message ListUsableRegionBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableBackendServicesRequest.encode = function encode(message, writer) { + ListUsableRegionBackendBucketsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -970293,33 +988471,33 @@ }; /** - * Encodes the specified ListUsableBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListUsableRegionBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.IListUsableBackendServicesRequest} message ListUsableBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest} message ListUsableRegionBackendBucketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListUsableBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableRegionBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListUsableBackendServicesRequest message from the specified reader or buffer. + * Decodes a ListUsableRegionBackendBucketsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest + * @returns {google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest} ListUsableRegionBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUsableBackendServicesRequest.decode = function decode(reader, length, error) { + ListUsableRegionBackendBucketsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListUsableBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -970345,6 +988523,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -970358,30 +988540,30 @@ }; /** - * Decodes a ListUsableBackendServicesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUsableRegionBackendBucketsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest + * @returns {google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest} ListUsableRegionBackendBucketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListUsableBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { + ListUsableRegionBackendBucketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListUsableBackendServicesRequest message. + * Verifies a ListUsableRegionBackendBucketsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListUsableBackendServicesRequest.verify = function verify(message) { + ListUsableRegionBackendBucketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -970408,6 +988590,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -970417,17 +988602,17 @@ }; /** - * Creates a ListUsableBackendServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUsableRegionBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} ListUsableBackendServicesRequest + * @returns {google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest} ListUsableRegionBackendBucketsRequest */ - ListUsableBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.ListUsableBackendServicesRequest) + ListUsableRegionBackendBucketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.ListUsableBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -970438,26 +988623,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListUsableBackendServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUsableRegionBackendBucketsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @static - * @param {google.cloud.compute.v1beta.ListUsableBackendServicesRequest} message ListUsableBackendServicesRequest + * @param {google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest} message ListUsableRegionBackendBucketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListUsableBackendServicesRequest.toObject = function toObject(message, options) { + ListUsableRegionBackendBucketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -970468,6 +988657,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -970489,32 +988680,32 @@ }; /** - * Converts this ListUsableBackendServicesRequest to JSON. + * Converts this ListUsableRegionBackendBucketsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @instance * @returns {Object.} JSON object */ - ListUsableBackendServicesRequest.prototype.toJSON = function toJSON() { + ListUsableRegionBackendBucketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListUsableBackendServicesRequest + * Gets the default type url for ListUsableRegionBackendBucketsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.ListUsableBackendServicesRequest + * @memberof google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListUsableBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListUsableRegionBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.ListUsableBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest"; }; - return ListUsableBackendServicesRequest; + return ListUsableRegionBackendBucketsRequest; })(); v1beta.ListUsableRegionBackendServicesRequest = (function() { @@ -973317,6 +991508,404 @@ return ListZoneOperationsRequest; })(); + v1beta.ListZoneVmExtensionPoliciesRequest = (function() { + + /** + * Properties of a ListZoneVmExtensionPoliciesRequest. + * @memberof google.cloud.compute.v1beta + * @interface IListZoneVmExtensionPoliciesRequest + * @property {string|null} [filter] ListZoneVmExtensionPoliciesRequest filter + * @property {number|null} [maxResults] ListZoneVmExtensionPoliciesRequest maxResults + * @property {string|null} [orderBy] ListZoneVmExtensionPoliciesRequest orderBy + * @property {string|null} [pageToken] ListZoneVmExtensionPoliciesRequest pageToken + * @property {string|null} [project] ListZoneVmExtensionPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] ListZoneVmExtensionPoliciesRequest returnPartialSuccess + * @property {string|null} [zone] ListZoneVmExtensionPoliciesRequest zone + */ + + /** + * Constructs a new ListZoneVmExtensionPoliciesRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ListZoneVmExtensionPoliciesRequest. + * @implements IListZoneVmExtensionPoliciesRequest + * @constructor + * @param {google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest=} [properties] Properties to set + */ + function ListZoneVmExtensionPoliciesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListZoneVmExtensionPoliciesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.filter = null; + + /** + * ListZoneVmExtensionPoliciesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.maxResults = null; + + /** + * ListZoneVmExtensionPoliciesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.orderBy = null; + + /** + * ListZoneVmExtensionPoliciesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.pageToken = null; + + /** + * ListZoneVmExtensionPoliciesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.project = ""; + + /** + * ListZoneVmExtensionPoliciesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.returnPartialSuccess = null; + + /** + * ListZoneVmExtensionPoliciesRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @instance + */ + ListZoneVmExtensionPoliciesRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneVmExtensionPoliciesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneVmExtensionPoliciesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneVmExtensionPoliciesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneVmExtensionPoliciesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListZoneVmExtensionPoliciesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListZoneVmExtensionPoliciesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @static + * @param {google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest} ListZoneVmExtensionPoliciesRequest instance + */ + ListZoneVmExtensionPoliciesRequest.create = function create(properties) { + return new ListZoneVmExtensionPoliciesRequest(properties); + }; + + /** + * Encodes the specified ListZoneVmExtensionPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @static + * @param {google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest} message ListZoneVmExtensionPoliciesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListZoneVmExtensionPoliciesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListZoneVmExtensionPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @static + * @param {google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest} message ListZoneVmExtensionPoliciesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListZoneVmExtensionPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListZoneVmExtensionPoliciesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest} ListZoneVmExtensionPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListZoneVmExtensionPoliciesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListZoneVmExtensionPoliciesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest} ListZoneVmExtensionPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListZoneVmExtensionPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListZoneVmExtensionPoliciesRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListZoneVmExtensionPoliciesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a ListZoneVmExtensionPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest} ListZoneVmExtensionPoliciesRequest + */ + ListZoneVmExtensionPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a ListZoneVmExtensionPoliciesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @static + * @param {google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest} message ListZoneVmExtensionPoliciesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListZoneVmExtensionPoliciesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListZoneVmExtensionPoliciesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @instance + * @returns {Object.} JSON object + */ + ListZoneVmExtensionPoliciesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListZoneVmExtensionPoliciesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListZoneVmExtensionPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest"; + }; + + return ListZoneVmExtensionPoliciesRequest; + })(); + v1beta.ListZonesRequest = (function() { /** @@ -1005249,10 +1023838,12 @@ * @property {string|null} [allowCloudRouter] NetworkProfileNetworkFeatures allowCloudRouter * @property {string|null} [allowDefaultNicAttachment] NetworkProfileNetworkFeatures allowDefaultNicAttachment * @property {string|null} [allowExternalIpAccess] NetworkProfileNetworkFeatures allowExternalIpAccess + * @property {string|null} [allowFirewallPolicy] NetworkProfileNetworkFeatures allowFirewallPolicy * @property {string|null} [allowInterconnect] NetworkProfileNetworkFeatures allowInterconnect * @property {string|null} [allowIpForwarding] NetworkProfileNetworkFeatures allowIpForwarding * @property {string|null} [allowLoadBalancing] NetworkProfileNetworkFeatures allowLoadBalancing * @property {string|null} [allowMultiNicInSameNetwork] NetworkProfileNetworkFeatures allowMultiNicInSameNetwork + * @property {string|null} [allowMulticast] NetworkProfileNetworkFeatures allowMulticast * @property {string|null} [allowNcc] NetworkProfileNetworkFeatures allowNcc * @property {string|null} [allowNetworkMigration] NetworkProfileNetworkFeatures allowNetworkMigration * @property {string|null} [allowPacketMirroring] NetworkProfileNetworkFeatures allowPacketMirroring @@ -1005263,7 +1023854,9 @@ * @property {string|null} [allowSubInterfaces] NetworkProfileNetworkFeatures allowSubInterfaces * @property {string|null} [allowVpcPeering] NetworkProfileNetworkFeatures allowVpcPeering * @property {string|null} [allowVpn] NetworkProfileNetworkFeatures allowVpn + * @property {Array.|null} [firewallPolicyTypes] NetworkProfileNetworkFeatures firewallPolicyTypes * @property {Array.|null} [interfaceTypes] NetworkProfileNetworkFeatures interfaceTypes + * @property {string|null} [multicast] NetworkProfileNetworkFeatures multicast * @property {Array.|null} [subnetPurposes] NetworkProfileNetworkFeatures subnetPurposes * @property {Array.|null} [subnetStackTypes] NetworkProfileNetworkFeatures subnetStackTypes * @property {Array.|null} [subnetworkPurposes] NetworkProfileNetworkFeatures subnetworkPurposes @@ -1005281,6 +1023874,7 @@ */ function NetworkProfileNetworkFeatures(properties) { this.addressPurposes = []; + this.firewallPolicyTypes = []; this.interfaceTypes = []; this.subnetPurposes = []; this.subnetStackTypes = []; @@ -1005356,6 +1023950,14 @@ */ NetworkProfileNetworkFeatures.prototype.allowExternalIpAccess = null; + /** + * NetworkProfileNetworkFeatures allowFirewallPolicy. + * @member {string|null|undefined} allowFirewallPolicy + * @memberof google.cloud.compute.v1beta.NetworkProfileNetworkFeatures + * @instance + */ + NetworkProfileNetworkFeatures.prototype.allowFirewallPolicy = null; + /** * NetworkProfileNetworkFeatures allowInterconnect. * @member {string|null|undefined} allowInterconnect @@ -1005388,6 +1023990,14 @@ */ NetworkProfileNetworkFeatures.prototype.allowMultiNicInSameNetwork = null; + /** + * NetworkProfileNetworkFeatures allowMulticast. + * @member {string|null|undefined} allowMulticast + * @memberof google.cloud.compute.v1beta.NetworkProfileNetworkFeatures + * @instance + */ + NetworkProfileNetworkFeatures.prototype.allowMulticast = null; + /** * NetworkProfileNetworkFeatures allowNcc. * @member {string|null|undefined} allowNcc @@ -1005468,6 +1024078,14 @@ */ NetworkProfileNetworkFeatures.prototype.allowVpn = null; + /** + * NetworkProfileNetworkFeatures firewallPolicyTypes. + * @member {Array.} firewallPolicyTypes + * @memberof google.cloud.compute.v1beta.NetworkProfileNetworkFeatures + * @instance + */ + NetworkProfileNetworkFeatures.prototype.firewallPolicyTypes = $util.emptyArray; + /** * NetworkProfileNetworkFeatures interfaceTypes. * @member {Array.} interfaceTypes @@ -1005476,6 +1024094,14 @@ */ NetworkProfileNetworkFeatures.prototype.interfaceTypes = $util.emptyArray; + /** + * NetworkProfileNetworkFeatures multicast. + * @member {string|null|undefined} multicast + * @memberof google.cloud.compute.v1beta.NetworkProfileNetworkFeatures + * @instance + */ + NetworkProfileNetworkFeatures.prototype.multicast = null; + /** * NetworkProfileNetworkFeatures subnetPurposes. * @member {Array.} subnetPurposes @@ -1005561,6 +1024187,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(NetworkProfileNetworkFeatures.prototype, "_allowFirewallPolicy", { + get: $util.oneOfGetter($oneOfFields = ["allowFirewallPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(NetworkProfileNetworkFeatures.prototype, "_allowInterconnect", { get: $util.oneOfGetter($oneOfFields = ["allowInterconnect"]), @@ -1005585,6 +1024217,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(NetworkProfileNetworkFeatures.prototype, "_allowMulticast", { + get: $util.oneOfGetter($oneOfFields = ["allowMulticast"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(NetworkProfileNetworkFeatures.prototype, "_allowNcc", { get: $util.oneOfGetter($oneOfFields = ["allowNcc"]), @@ -1005645,6 +1024283,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(NetworkProfileNetworkFeatures.prototype, "_multicast", { + get: $util.oneOfGetter($oneOfFields = ["multicast"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(NetworkProfileNetworkFeatures.prototype, "_unicast", { get: $util.oneOfGetter($oneOfFields = ["unicast"]), @@ -1005675,6 +1024319,8 @@ NetworkProfileNetworkFeatures.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.allowMulticast != null && Object.hasOwnProperty.call(message, "allowMulticast")) + writer.uint32(/* id 11002498, wireType 2 =*/88019986).string(message.allowMulticast); if (message.allowDefaultNicAttachment != null && Object.hasOwnProperty.call(message, "allowDefaultNicAttachment")) writer.uint32(/* id 53917486, wireType 2 =*/431339890).string(message.allowDefaultNicAttachment); if (message.allowMultiNicInSameNetwork != null && Object.hasOwnProperty.call(message, "allowMultiNicInSameNetwork")) @@ -1005702,6 +1024348,8 @@ writer.uint32(/* id 247208303, wireType 2 =*/1977666426).string(message.allowSubInterfaces); if (message.unicast != null && Object.hasOwnProperty.call(message, "unicast")) writer.uint32(/* id 249841711, wireType 2 =*/1998733690).string(message.unicast); + if (message.allowFirewallPolicy != null && Object.hasOwnProperty.call(message, "allowFirewallPolicy")) + writer.uint32(/* id 254200923, wireType 2 =*/2033607386).string(message.allowFirewallPolicy); if (message.allowCloudNat != null && Object.hasOwnProperty.call(message, "allowCloudNat")) writer.uint32(/* id 254831265, wireType 2 =*/2038650122).string(message.allowCloudNat); if (message.allowInterconnect != null && Object.hasOwnProperty.call(message, "allowInterconnect")) @@ -1005717,6 +1024365,11 @@ writer.uint32(/* id 372363006, wireType 2 =*/2978904050).string(message.allowVpn); if (message.allowPrivateGoogleAccess != null && Object.hasOwnProperty.call(message, "allowPrivateGoogleAccess")) writer.uint32(/* id 374702072, wireType 2 =*/2997616578).string(message.allowPrivateGoogleAccess); + if (message.firewallPolicyTypes != null && message.firewallPolicyTypes.length) + for (var i = 0; i < message.firewallPolicyTypes.length; ++i) + writer.uint32(/* id 390742027, wireType 2 =*/3125936218).string(message.firewallPolicyTypes[i]); + if (message.multicast != null && Object.hasOwnProperty.call(message, "multicast")) + writer.uint32(/* id 404098040, wireType 2 =*/3232784322).string(message.multicast); if (message.addressPurposes != null && message.addressPurposes.length) for (var i = 0; i < message.addressPurposes.length; ++i) writer.uint32(/* id 433024768, wireType 2 =*/3464198146).string(message.addressPurposes[i]); @@ -1005807,6 +1024460,10 @@ message.allowExternalIpAccess = reader.string(); break; } + case 254200923: { + message.allowFirewallPolicy = reader.string(); + break; + } case 280512964: { message.allowInterconnect = reader.string(); break; @@ -1005823,6 +1024480,10 @@ message.allowMultiNicInSameNetwork = reader.string(); break; } + case 11002498: { + message.allowMulticast = reader.string(); + break; + } case 372354904: { message.allowNcc = reader.string(); break; @@ -1005863,12 +1024524,22 @@ message.allowVpn = reader.string(); break; } + case 390742027: { + if (!(message.firewallPolicyTypes && message.firewallPolicyTypes.length)) + message.firewallPolicyTypes = []; + message.firewallPolicyTypes.push(reader.string()); + break; + } case 157981171: { if (!(message.interfaceTypes && message.interfaceTypes.length)) message.interfaceTypes = []; message.interfaceTypes.push(reader.string()); break; } + case 404098040: { + message.multicast = reader.string(); + break; + } case 301338039: { if (!(message.subnetPurposes && message.subnetPurposes.length)) message.subnetPurposes = []; @@ -1005975,6 +1024646,11 @@ if (!$util.isString(message.allowExternalIpAccess)) return "allowExternalIpAccess: string expected"; } + if (message.allowFirewallPolicy != null && message.hasOwnProperty("allowFirewallPolicy")) { + properties._allowFirewallPolicy = 1; + if (!$util.isString(message.allowFirewallPolicy)) + return "allowFirewallPolicy: string expected"; + } if (message.allowInterconnect != null && message.hasOwnProperty("allowInterconnect")) { properties._allowInterconnect = 1; if (!$util.isString(message.allowInterconnect)) @@ -1005995,6 +1024671,11 @@ if (!$util.isString(message.allowMultiNicInSameNetwork)) return "allowMultiNicInSameNetwork: string expected"; } + if (message.allowMulticast != null && message.hasOwnProperty("allowMulticast")) { + properties._allowMulticast = 1; + if (!$util.isString(message.allowMulticast)) + return "allowMulticast: string expected"; + } if (message.allowNcc != null && message.hasOwnProperty("allowNcc")) { properties._allowNcc = 1; if (!$util.isString(message.allowNcc)) @@ -1006045,6 +1024726,13 @@ if (!$util.isString(message.allowVpn)) return "allowVpn: string expected"; } + if (message.firewallPolicyTypes != null && message.hasOwnProperty("firewallPolicyTypes")) { + if (!Array.isArray(message.firewallPolicyTypes)) + return "firewallPolicyTypes: array expected"; + for (var i = 0; i < message.firewallPolicyTypes.length; ++i) + if (!$util.isString(message.firewallPolicyTypes[i])) + return "firewallPolicyTypes: string[] expected"; + } if (message.interfaceTypes != null && message.hasOwnProperty("interfaceTypes")) { if (!Array.isArray(message.interfaceTypes)) return "interfaceTypes: array expected"; @@ -1006052,6 +1024740,11 @@ if (!$util.isString(message.interfaceTypes[i])) return "interfaceTypes: string[] expected"; } + if (message.multicast != null && message.hasOwnProperty("multicast")) { + properties._multicast = 1; + if (!$util.isString(message.multicast)) + return "multicast: string expected"; + } if (message.subnetPurposes != null && message.hasOwnProperty("subnetPurposes")) { if (!Array.isArray(message.subnetPurposes)) return "subnetPurposes: array expected"; @@ -1006121,6 +1024814,8 @@ message.allowDefaultNicAttachment = String(object.allowDefaultNicAttachment); if (object.allowExternalIpAccess != null) message.allowExternalIpAccess = String(object.allowExternalIpAccess); + if (object.allowFirewallPolicy != null) + message.allowFirewallPolicy = String(object.allowFirewallPolicy); if (object.allowInterconnect != null) message.allowInterconnect = String(object.allowInterconnect); if (object.allowIpForwarding != null) @@ -1006129,6 +1024824,8 @@ message.allowLoadBalancing = String(object.allowLoadBalancing); if (object.allowMultiNicInSameNetwork != null) message.allowMultiNicInSameNetwork = String(object.allowMultiNicInSameNetwork); + if (object.allowMulticast != null) + message.allowMulticast = String(object.allowMulticast); if (object.allowNcc != null) message.allowNcc = String(object.allowNcc); if (object.allowNetworkMigration != null) @@ -1006149,6 +1024846,13 @@ message.allowVpcPeering = String(object.allowVpcPeering); if (object.allowVpn != null) message.allowVpn = String(object.allowVpn); + if (object.firewallPolicyTypes) { + if (!Array.isArray(object.firewallPolicyTypes)) + throw TypeError(".google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.firewallPolicyTypes: array expected"); + message.firewallPolicyTypes = []; + for (var i = 0; i < object.firewallPolicyTypes.length; ++i) + message.firewallPolicyTypes[i] = String(object.firewallPolicyTypes[i]); + } if (object.interfaceTypes) { if (!Array.isArray(object.interfaceTypes)) throw TypeError(".google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.interfaceTypes: array expected"); @@ -1006156,6 +1024860,8 @@ for (var i = 0; i < object.interfaceTypes.length; ++i) message.interfaceTypes[i] = String(object.interfaceTypes[i]); } + if (object.multicast != null) + message.multicast = String(object.multicast); if (object.subnetPurposes) { if (!Array.isArray(object.subnetPurposes)) throw TypeError(".google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.subnetPurposes: array expected"); @@ -1006205,11 +1024911,17 @@ if (options.arrays || options.defaults) { object.interfaceTypes = []; object.subnetPurposes = []; + object.firewallPolicyTypes = []; object.addressPurposes = []; object.subnetworkStackTypes = []; object.subnetStackTypes = []; object.subnetworkPurposes = []; } + if (message.allowMulticast != null && message.hasOwnProperty("allowMulticast")) { + object.allowMulticast = message.allowMulticast; + if (options.oneofs) + object._allowMulticast = "allowMulticast"; + } if (message.allowDefaultNicAttachment != null && message.hasOwnProperty("allowDefaultNicAttachment")) { object.allowDefaultNicAttachment = message.allowDefaultNicAttachment; if (options.oneofs) @@ -1006275,6 +1024987,11 @@ if (options.oneofs) object._unicast = "unicast"; } + if (message.allowFirewallPolicy != null && message.hasOwnProperty("allowFirewallPolicy")) { + object.allowFirewallPolicy = message.allowFirewallPolicy; + if (options.oneofs) + object._allowFirewallPolicy = "allowFirewallPolicy"; + } if (message.allowCloudNat != null && message.hasOwnProperty("allowCloudNat")) { object.allowCloudNat = message.allowCloudNat; if (options.oneofs) @@ -1006310,6 +1025027,16 @@ if (options.oneofs) object._allowPrivateGoogleAccess = "allowPrivateGoogleAccess"; } + if (message.firewallPolicyTypes && message.firewallPolicyTypes.length) { + object.firewallPolicyTypes = []; + for (var j = 0; j < message.firewallPolicyTypes.length; ++j) + object.firewallPolicyTypes[j] = message.firewallPolicyTypes[j]; + } + if (message.multicast != null && message.hasOwnProperty("multicast")) { + object.multicast = message.multicast; + if (options.oneofs) + object._multicast = "multicast"; + } if (message.addressPurposes && message.addressPurposes.length) { object.addressPurposes = []; for (var j = 0; j < message.addressPurposes.length; ++j) @@ -1006519,6 +1025246,22 @@ return values; })(); + /** + * AllowFirewallPolicy enum. + * @name google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.AllowFirewallPolicy + * @enum {number} + * @property {number} UNDEFINED_ALLOW_FIREWALL_POLICY=0 UNDEFINED_ALLOW_FIREWALL_POLICY value + * @property {number} FIREWALL_POLICY_ALLOWED=388488346 FIREWALL_POLICY_ALLOWED value + * @property {number} FIREWALL_POLICY_BLOCKED=204651742 FIREWALL_POLICY_BLOCKED value + */ + NetworkProfileNetworkFeatures.AllowFirewallPolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ALLOW_FIREWALL_POLICY"] = 0; + values[valuesById[388488346] = "FIREWALL_POLICY_ALLOWED"] = 388488346; + values[valuesById[204651742] = "FIREWALL_POLICY_BLOCKED"] = 204651742; + return values; + })(); + /** * AllowInterconnect enum. * @name google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.AllowInterconnect @@ -1006583,6 +1025326,22 @@ return values; })(); + /** + * AllowMulticast enum. + * @name google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.AllowMulticast + * @enum {number} + * @property {number} UNDEFINED_ALLOW_MULTICAST=0 UNDEFINED_ALLOW_MULTICAST value + * @property {number} MULTICAST_ALLOWED=44693537 MULTICAST_ALLOWED value + * @property {number} MULTICAST_BLOCKED=397727845 MULTICAST_BLOCKED value + */ + NetworkProfileNetworkFeatures.AllowMulticast = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ALLOW_MULTICAST"] = 0; + values[valuesById[44693537] = "MULTICAST_ALLOWED"] = 44693537; + values[valuesById[397727845] = "MULTICAST_BLOCKED"] = 397727845; + return values; + })(); + /** * AllowNcc enum. * @name google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.AllowNcc @@ -1006743,6 +1025502,22 @@ return values; })(); + /** + * FirewallPolicyTypes enum. + * @name google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.FirewallPolicyTypes + * @enum {number} + * @property {number} UNDEFINED_FIREWALL_POLICY_TYPES=0 UNDEFINED_FIREWALL_POLICY_TYPES value + * @property {number} RDMA_ROCE_POLICY=148757145 RDMA_ROCE_POLICY value + * @property {number} VPC_POLICY=74319208 VPC_POLICY value + */ + NetworkProfileNetworkFeatures.FirewallPolicyTypes = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_FIREWALL_POLICY_TYPES"] = 0; + values[valuesById[148757145] = "RDMA_ROCE_POLICY"] = 148757145; + values[valuesById[74319208] = "VPC_POLICY"] = 74319208; + return values; + })(); + /** * InterfaceTypes enum. * @name google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.InterfaceTypes @@ -1006767,6 +1025542,22 @@ return values; })(); + /** + * Multicast enum. + * @name google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.Multicast + * @enum {number} + * @property {number} UNDEFINED_MULTICAST=0 UNDEFINED_MULTICAST value + * @property {number} MULTICAST_SDN=532209462 MULTICAST_SDN value + * @property {number} MULTICAST_ULL=532211630 MULTICAST_ULL value + */ + NetworkProfileNetworkFeatures.Multicast = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_MULTICAST"] = 0; + values[valuesById[532209462] = "MULTICAST_SDN"] = 532209462; + values[valuesById[532211630] = "MULTICAST_ULL"] = 532211630; + return values; + })(); + /** * SubnetPurposes enum. * @name google.cloud.compute.v1beta.NetworkProfileNetworkFeatures.SubnetPurposes @@ -1038130,6 +1056921,323 @@ return PatchRegionAutoscalerRequest; })(); + v1beta.PatchRegionBackendBucketRequest = (function() { + + /** + * Properties of a PatchRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @interface IPatchRegionBackendBucketRequest + * @property {string|null} [backendBucket] PatchRegionBackendBucketRequest backendBucket + * @property {google.cloud.compute.v1beta.IBackendBucket|null} [backendBucketResource] PatchRegionBackendBucketRequest backendBucketResource + * @property {string|null} [project] PatchRegionBackendBucketRequest project + * @property {string|null} [region] PatchRegionBackendBucketRequest region + * @property {string|null} [requestId] PatchRegionBackendBucketRequest requestId + */ + + /** + * Constructs a new PatchRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a PatchRegionBackendBucketRequest. + * @implements IPatchRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest=} [properties] Properties to set + */ + function PatchRegionBackendBucketRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PatchRegionBackendBucketRequest backendBucket. + * @member {string} backendBucket + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @instance + */ + PatchRegionBackendBucketRequest.prototype.backendBucket = ""; + + /** + * PatchRegionBackendBucketRequest backendBucketResource. + * @member {google.cloud.compute.v1beta.IBackendBucket|null|undefined} backendBucketResource + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @instance + */ + PatchRegionBackendBucketRequest.prototype.backendBucketResource = null; + + /** + * PatchRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @instance + */ + PatchRegionBackendBucketRequest.prototype.project = ""; + + /** + * PatchRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @instance + */ + PatchRegionBackendBucketRequest.prototype.region = ""; + + /** + * PatchRegionBackendBucketRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @instance + */ + PatchRegionBackendBucketRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PatchRegionBackendBucketRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PatchRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.PatchRegionBackendBucketRequest} PatchRegionBackendBucketRequest instance + */ + PatchRegionBackendBucketRequest.create = function create(properties) { + return new PatchRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified PatchRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest} message PatchRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionBackendBucketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.backendBucket != null && Object.hasOwnProperty.call(message, "backendBucket")) + writer.uint32(/* id 91714037, wireType 2 =*/733712298).string(message.backendBucket); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.backendBucketResource != null && Object.hasOwnProperty.call(message, "backendBucketResource")) + $root.google.cloud.compute.v1beta.BackendBucket.encode(message.backendBucketResource, writer.uint32(/* id 380757784, wireType 2 =*/3046062274).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PatchRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest} message PatchRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PatchRegionBackendBucketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.PatchRegionBackendBucketRequest} PatchRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionBackendBucketRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 91714037: { + message.backendBucket = reader.string(); + break; + } + case 380757784: { + message.backendBucketResource = $root.google.cloud.compute.v1beta.BackendBucket.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PatchRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.PatchRegionBackendBucketRequest} PatchRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PatchRegionBackendBucketRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PatchRegionBackendBucketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.backendBucket != null && message.hasOwnProperty("backendBucket")) + if (!$util.isString(message.backendBucket)) + return "backendBucket: string expected"; + if (message.backendBucketResource != null && message.hasOwnProperty("backendBucketResource")) { + var error = $root.google.cloud.compute.v1beta.BackendBucket.verify(message.backendBucketResource); + if (error) + return "backendBucketResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a PatchRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.PatchRegionBackendBucketRequest} PatchRegionBackendBucketRequest + */ + PatchRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest(); + if (object.backendBucket != null) + message.backendBucket = String(object.backendBucket); + if (object.backendBucketResource != null) { + if (typeof object.backendBucketResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.PatchRegionBackendBucketRequest.backendBucketResource: object expected"); + message.backendBucketResource = $root.google.cloud.compute.v1beta.BackendBucket.fromObject(object.backendBucketResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a PatchRegionBackendBucketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.PatchRegionBackendBucketRequest} message PatchRegionBackendBucketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PatchRegionBackendBucketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.backendBucket = ""; + object.region = ""; + object.project = ""; + object.backendBucketResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.backendBucket != null && message.hasOwnProperty("backendBucket")) + object.backendBucket = message.backendBucket; + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.backendBucketResource != null && message.hasOwnProperty("backendBucketResource")) + object.backendBucketResource = $root.google.cloud.compute.v1beta.BackendBucket.toObject(message.backendBucketResource, options); + return object; + }; + + /** + * Converts this PatchRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @instance + * @returns {Object.} JSON object + */ + PatchRegionBackendBucketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PatchRegionBackendBucketRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.PatchRegionBackendBucketRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PatchRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.PatchRegionBackendBucketRequest"; + }; + + return PatchRegionBackendBucketRequest; + })(); + v1beta.PatchRegionBackendServiceRequest = (function() { /** @@ -1038447,6 +1057555,323 @@ return PatchRegionBackendServiceRequest; })(); + v1beta.PatchRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of a PatchRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1beta + * @interface IPatchRegionCompositeHealthCheckRequest + * @property {string|null} [compositeHealthCheck] PatchRegionCompositeHealthCheckRequest compositeHealthCheck + * @property {google.cloud.compute.v1beta.ICompositeHealthCheck|null} [compositeHealthCheckResource] PatchRegionCompositeHealthCheckRequest compositeHealthCheckResource + * @property {string|null} [project] PatchRegionCompositeHealthCheckRequest project + * @property {string|null} [region] PatchRegionCompositeHealthCheckRequest region + * @property {string|null} [requestId] PatchRegionCompositeHealthCheckRequest requestId + */ + + /** + * Constructs a new PatchRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a PatchRegionCompositeHealthCheckRequest. + * @implements IPatchRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function PatchRegionCompositeHealthCheckRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PatchRegionCompositeHealthCheckRequest compositeHealthCheck. + * @member {string} compositeHealthCheck + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.compositeHealthCheck = ""; + + /** + * PatchRegionCompositeHealthCheckRequest compositeHealthCheckResource. + * @member {google.cloud.compute.v1beta.ICompositeHealthCheck|null|undefined} compositeHealthCheckResource + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.compositeHealthCheckResource = null; + + /** + * PatchRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * PatchRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * PatchRegionCompositeHealthCheckRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PatchRegionCompositeHealthCheckRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PatchRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest} PatchRegionCompositeHealthCheckRequest instance + */ + PatchRegionCompositeHealthCheckRequest.create = function create(properties) { + return new PatchRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified PatchRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest} message PatchRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionCompositeHealthCheckRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.compositeHealthCheckResource != null && Object.hasOwnProperty.call(message, "compositeHealthCheckResource")) + $root.google.cloud.compute.v1beta.CompositeHealthCheck.encode(message.compositeHealthCheckResource, writer.uint32(/* id 132195824, wireType 2 =*/1057566594).fork()).ldelim(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.compositeHealthCheck != null && Object.hasOwnProperty.call(message, "compositeHealthCheck")) + writer.uint32(/* id 466984989, wireType 2 =*/3735879914).string(message.compositeHealthCheck); + return writer; + }; + + /** + * Encodes the specified PatchRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest} message PatchRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PatchRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest} PatchRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionCompositeHealthCheckRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 466984989: { + message.compositeHealthCheck = reader.string(); + break; + } + case 132195824: { + message.compositeHealthCheckResource = $root.google.cloud.compute.v1beta.CompositeHealthCheck.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PatchRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest} PatchRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PatchRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PatchRegionCompositeHealthCheckRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + if (!$util.isString(message.compositeHealthCheck)) + return "compositeHealthCheck: string expected"; + if (message.compositeHealthCheckResource != null && message.hasOwnProperty("compositeHealthCheckResource")) { + var error = $root.google.cloud.compute.v1beta.CompositeHealthCheck.verify(message.compositeHealthCheckResource); + if (error) + return "compositeHealthCheckResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a PatchRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest} PatchRegionCompositeHealthCheckRequest + */ + PatchRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest(); + if (object.compositeHealthCheck != null) + message.compositeHealthCheck = String(object.compositeHealthCheck); + if (object.compositeHealthCheckResource != null) { + if (typeof object.compositeHealthCheckResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest.compositeHealthCheckResource: object expected"); + message.compositeHealthCheckResource = $root.google.cloud.compute.v1beta.CompositeHealthCheck.fromObject(object.compositeHealthCheckResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a PatchRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest} message PatchRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PatchRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.compositeHealthCheckResource = null; + object.region = ""; + object.project = ""; + object.compositeHealthCheck = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.compositeHealthCheckResource != null && message.hasOwnProperty("compositeHealthCheckResource")) + object.compositeHealthCheckResource = $root.google.cloud.compute.v1beta.CompositeHealthCheck.toObject(message.compositeHealthCheckResource, options); + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + object.compositeHealthCheck = message.compositeHealthCheck; + return object; + }; + + /** + * Converts this PatchRegionCompositeHealthCheckRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @instance + * @returns {Object.} JSON object + */ + PatchRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PatchRegionCompositeHealthCheckRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PatchRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest"; + }; + + return PatchRegionCompositeHealthCheckRequest; + })(); + v1beta.PatchRegionDiskSettingRequest = (function() { /** @@ -1038774,6 +1058199,323 @@ return PatchRegionDiskSettingRequest; })(); + v1beta.PatchRegionHealthAggregationPolicyRequest = (function() { + + /** + * Properties of a PatchRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IPatchRegionHealthAggregationPolicyRequest + * @property {string|null} [healthAggregationPolicy] PatchRegionHealthAggregationPolicyRequest healthAggregationPolicy + * @property {google.cloud.compute.v1beta.IHealthAggregationPolicy|null} [healthAggregationPolicyResource] PatchRegionHealthAggregationPolicyRequest healthAggregationPolicyResource + * @property {string|null} [project] PatchRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] PatchRegionHealthAggregationPolicyRequest region + * @property {string|null} [requestId] PatchRegionHealthAggregationPolicyRequest requestId + */ + + /** + * Constructs a new PatchRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a PatchRegionHealthAggregationPolicyRequest. + * @implements IPatchRegionHealthAggregationPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest=} [properties] Properties to set + */ + function PatchRegionHealthAggregationPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PatchRegionHealthAggregationPolicyRequest healthAggregationPolicy. + * @member {string} healthAggregationPolicy + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicy = ""; + + /** + * PatchRegionHealthAggregationPolicyRequest healthAggregationPolicyResource. + * @member {google.cloud.compute.v1beta.IHealthAggregationPolicy|null|undefined} healthAggregationPolicyResource + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicyResource = null; + + /** + * PatchRegionHealthAggregationPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.project = ""; + + /** + * PatchRegionHealthAggregationPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.region = ""; + + /** + * PatchRegionHealthAggregationPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PatchRegionHealthAggregationPolicyRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PatchRegionHealthAggregationPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest} PatchRegionHealthAggregationPolicyRequest instance + */ + PatchRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new PatchRegionHealthAggregationPolicyRequest(properties); + }; + + /** + * Encodes the specified PatchRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest} message PatchRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.healthAggregationPolicy != null && Object.hasOwnProperty.call(message, "healthAggregationPolicy")) + writer.uint32(/* id 240314354, wireType 2 =*/1922514834).string(message.healthAggregationPolicy); + if (message.healthAggregationPolicyResource != null && Object.hasOwnProperty.call(message, "healthAggregationPolicyResource")) + $root.google.cloud.compute.v1beta.HealthAggregationPolicy.encode(message.healthAggregationPolicyResource, writer.uint32(/* id 293526971, wireType 2 =*/2348215770).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PatchRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest} message PatchRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PatchRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest} PatchRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 240314354: { + message.healthAggregationPolicy = reader.string(); + break; + } + case 293526971: { + message.healthAggregationPolicyResource = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PatchRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest} PatchRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PatchRegionHealthAggregationPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PatchRegionHealthAggregationPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + if (!$util.isString(message.healthAggregationPolicy)) + return "healthAggregationPolicy: string expected"; + if (message.healthAggregationPolicyResource != null && message.hasOwnProperty("healthAggregationPolicyResource")) { + var error = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.verify(message.healthAggregationPolicyResource); + if (error) + return "healthAggregationPolicyResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a PatchRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest} PatchRegionHealthAggregationPolicyRequest + */ + PatchRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest(); + if (object.healthAggregationPolicy != null) + message.healthAggregationPolicy = String(object.healthAggregationPolicy); + if (object.healthAggregationPolicyResource != null) { + if (typeof object.healthAggregationPolicyResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest.healthAggregationPolicyResource: object expected"); + message.healthAggregationPolicyResource = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.fromObject(object.healthAggregationPolicyResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a PatchRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest} message PatchRegionHealthAggregationPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PatchRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthAggregationPolicy = ""; + object.healthAggregationPolicyResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + object.healthAggregationPolicy = message.healthAggregationPolicy; + if (message.healthAggregationPolicyResource != null && message.hasOwnProperty("healthAggregationPolicyResource")) + object.healthAggregationPolicyResource = $root.google.cloud.compute.v1beta.HealthAggregationPolicy.toObject(message.healthAggregationPolicyResource, options); + return object; + }; + + /** + * Converts this PatchRegionHealthAggregationPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + PatchRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PatchRegionHealthAggregationPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PatchRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest"; + }; + + return PatchRegionHealthAggregationPolicyRequest; + })(); + v1beta.PatchRegionHealthCheckRequest = (function() { /** @@ -1058417,6 +1078159,7 @@ * @property {string|null} [fingerprint] PublicAdvertisedPrefix fingerprint * @property {number|Long|null} [id] PublicAdvertisedPrefix id * @property {string|null} [ipCidrRange] PublicAdvertisedPrefix ipCidrRange + * @property {string|null} [ipv6AccessType] PublicAdvertisedPrefix ipv6AccessType * @property {string|null} [kind] PublicAdvertisedPrefix kind * @property {string|null} [name] PublicAdvertisedPrefix name * @property {string|null} [pdpScope] PublicAdvertisedPrefix pdpScope @@ -1058498,6 +1078241,14 @@ */ PublicAdvertisedPrefix.prototype.ipCidrRange = null; + /** + * PublicAdvertisedPrefix ipv6AccessType. + * @member {string|null|undefined} ipv6AccessType + * @memberof google.cloud.compute.v1beta.PublicAdvertisedPrefix + * @instance + */ + PublicAdvertisedPrefix.prototype.ipv6AccessType = null; + /** * PublicAdvertisedPrefix kind. * @member {string|null|undefined} kind @@ -1058599,6 +1078350,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(PublicAdvertisedPrefix.prototype, "_ipv6AccessType", { + get: $util.oneOfGetter($oneOfFields = ["ipv6AccessType"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(PublicAdvertisedPrefix.prototype, "_kind", { get: $util.oneOfGetter($oneOfFields = ["kind"]), @@ -1058686,6 +1078443,8 @@ $root.google.cloud.compute.v1beta.PublicAdvertisedPrefixPublicDelegatedPrefix.encode(message.publicDelegatedPrefixs[i], writer.uint32(/* id 425811723, wireType 2 =*/3406493786).fork()).ldelim(); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.ipv6AccessType != null && Object.hasOwnProperty.call(message, "ipv6AccessType")) + writer.uint32(/* id 504658653, wireType 2 =*/4037269226).string(message.ipv6AccessType); if (message.pdpScope != null && Object.hasOwnProperty.call(message, "pdpScope")) writer.uint32(/* id 524264785, wireType 2 =*/4194118282).string(message.pdpScope); return writer; @@ -1058752,6 +1078511,10 @@ message.ipCidrRange = reader.string(); break; } + case 504658653: { + message.ipv6AccessType = reader.string(); + break; + } case 3292052: { message.kind = reader.string(); break; @@ -1058853,6 +1078616,11 @@ if (!$util.isString(message.ipCidrRange)) return "ipCidrRange: string expected"; } + if (message.ipv6AccessType != null && message.hasOwnProperty("ipv6AccessType")) { + properties._ipv6AccessType = 1; + if (!$util.isString(message.ipv6AccessType)) + return "ipv6AccessType: string expected"; + } if (message.kind != null && message.hasOwnProperty("kind")) { properties._kind = 1; if (!$util.isString(message.kind)) @@ -1058928,6 +1078696,8 @@ message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); if (object.ipCidrRange != null) message.ipCidrRange = String(object.ipCidrRange); + if (object.ipv6AccessType != null) + message.ipv6AccessType = String(object.ipv6AccessType); if (object.kind != null) message.kind = String(object.kind); if (object.name != null) @@ -1059036,6 +1078806,11 @@ if (options.oneofs) object._selfLink = "selfLink"; } + if (message.ipv6AccessType != null && message.hasOwnProperty("ipv6AccessType")) { + object.ipv6AccessType = message.ipv6AccessType; + if (options.oneofs) + object._ipv6AccessType = "ipv6AccessType"; + } if (message.pdpScope != null && message.hasOwnProperty("pdpScope")) { object.pdpScope = message.pdpScope; if (options.oneofs) @@ -1059086,6 +1078861,22 @@ return values; })(); + /** + * Ipv6AccessType enum. + * @name google.cloud.compute.v1beta.PublicAdvertisedPrefix.Ipv6AccessType + * @enum {number} + * @property {number} UNDEFINED_IPV6_ACCESS_TYPE=0 UNDEFINED_IPV6_ACCESS_TYPE value + * @property {number} EXTERNAL=35607499 EXTERNAL value + * @property {number} INTERNAL=279295677 INTERNAL value + */ + PublicAdvertisedPrefix.Ipv6AccessType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_IPV6_ACCESS_TYPE"] = 0; + values[valuesById[35607499] = "EXTERNAL"] = 35607499; + values[valuesById[279295677] = "INTERNAL"] = 279295677; + return values; + })(); + /** * PdpScope enum. * @name google.cloud.compute.v1beta.PublicAdvertisedPrefix.PdpScope @@ -1059902,6 +1079693,7 @@ * @property {string|null} [fingerprint] PublicDelegatedPrefix fingerprint * @property {number|Long|null} [id] PublicDelegatedPrefix id * @property {string|null} [ipCidrRange] PublicDelegatedPrefix ipCidrRange + * @property {string|null} [ipv6AccessType] PublicDelegatedPrefix ipv6AccessType * @property {boolean|null} [isLiveMigration] PublicDelegatedPrefix isLiveMigration * @property {string|null} [kind] PublicDelegatedPrefix kind * @property {string|null} [mode] PublicDelegatedPrefix mode @@ -1059993,6 +1079785,14 @@ */ PublicDelegatedPrefix.prototype.ipCidrRange = null; + /** + * PublicDelegatedPrefix ipv6AccessType. + * @member {string|null|undefined} ipv6AccessType + * @memberof google.cloud.compute.v1beta.PublicDelegatedPrefix + * @instance + */ + PublicDelegatedPrefix.prototype.ipv6AccessType = null; + /** * PublicDelegatedPrefix isLiveMigration. * @member {boolean|null|undefined} isLiveMigration @@ -1060116,6 +1079916,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(PublicDelegatedPrefix.prototype, "_ipv6AccessType", { + get: $util.oneOfGetter($oneOfFields = ["ipv6AccessType"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(PublicDelegatedPrefix.prototype, "_isLiveMigration", { get: $util.oneOfGetter($oneOfFields = ["isLiveMigration"]), @@ -1060221,6 +1080027,8 @@ writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.ipv6AccessType != null && Object.hasOwnProperty.call(message, "ipv6AccessType")) + writer.uint32(/* id 504658653, wireType 2 =*/4037269226).string(message.ipv6AccessType); if (message.isLiveMigration != null && Object.hasOwnProperty.call(message, "isLiveMigration")) writer.uint32(/* id 511823856, wireType 0 =*/4094590848).bool(message.isLiveMigration); return writer; @@ -1060291,6 +1080099,10 @@ message.ipCidrRange = reader.string(); break; } + case 504658653: { + message.ipv6AccessType = reader.string(); + break; + } case 511823856: { message.isLiveMigration = reader.bool(); break; @@ -1060405,6 +1080217,11 @@ if (!$util.isString(message.ipCidrRange)) return "ipCidrRange: string expected"; } + if (message.ipv6AccessType != null && message.hasOwnProperty("ipv6AccessType")) { + properties._ipv6AccessType = 1; + if (!$util.isString(message.ipv6AccessType)) + return "ipv6AccessType: string expected"; + } if (message.isLiveMigration != null && message.hasOwnProperty("isLiveMigration")) { properties._isLiveMigration = 1; if (typeof message.isLiveMigration !== "boolean") @@ -1060492,6 +1080309,8 @@ message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); if (object.ipCidrRange != null) message.ipCidrRange = String(object.ipCidrRange); + if (object.ipv6AccessType != null) + message.ipv6AccessType = String(object.ipv6AccessType); if (object.isLiveMigration != null) message.isLiveMigration = Boolean(object.isLiveMigration); if (object.kind != null) @@ -1060619,6 +1080438,11 @@ if (options.oneofs) object._selfLink = "selfLink"; } + if (message.ipv6AccessType != null && message.hasOwnProperty("ipv6AccessType")) { + object.ipv6AccessType = message.ipv6AccessType; + if (options.oneofs) + object._ipv6AccessType = "ipv6AccessType"; + } if (message.isLiveMigration != null && message.hasOwnProperty("isLiveMigration")) { object.isLiveMigration = message.isLiveMigration; if (options.oneofs) @@ -1060669,6 +1080493,22 @@ return values; })(); + /** + * Ipv6AccessType enum. + * @name google.cloud.compute.v1beta.PublicDelegatedPrefix.Ipv6AccessType + * @enum {number} + * @property {number} UNDEFINED_IPV6_ACCESS_TYPE=0 UNDEFINED_IPV6_ACCESS_TYPE value + * @property {number} EXTERNAL=35607499 EXTERNAL value + * @property {number} INTERNAL=279295677 INTERNAL value + */ + PublicDelegatedPrefix.Ipv6AccessType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_IPV6_ACCESS_TYPE"] = 0; + values[valuesById[35607499] = "EXTERNAL"] = 35607499; + values[valuesById[279295677] = "INTERNAL"] = 279295677; + return values; + })(); + /** * Mode enum. * @name google.cloud.compute.v1beta.PublicDelegatedPrefix.Mode @@ -1060677,6 +1080517,7 @@ * @property {number} DELEGATION=264149288 DELEGATION value * @property {number} EXTERNAL_IPV6_FORWARDING_RULE_CREATION=398684356 EXTERNAL_IPV6_FORWARDING_RULE_CREATION value * @property {number} EXTERNAL_IPV6_SUBNETWORK_CREATION=61198284 EXTERNAL_IPV6_SUBNETWORK_CREATION value + * @property {number} INTERNAL_IPV6_SUBNETWORK_CREATION=153239834 INTERNAL_IPV6_SUBNETWORK_CREATION value */ PublicDelegatedPrefix.Mode = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -1060684,6 +1080525,7 @@ values[valuesById[264149288] = "DELEGATION"] = 264149288; values[valuesById[398684356] = "EXTERNAL_IPV6_FORWARDING_RULE_CREATION"] = 398684356; values[valuesById[61198284] = "EXTERNAL_IPV6_SUBNETWORK_CREATION"] = 61198284; + values[valuesById[153239834] = "INTERNAL_IPV6_SUBNETWORK_CREATION"] = 153239834; return values; })(); @@ -1060692,6 +1080534,7 @@ * @name google.cloud.compute.v1beta.PublicDelegatedPrefix.Status * @enum {number} * @property {number} UNDEFINED_STATUS=0 UNDEFINED_STATUS value + * @property {number} ACTIVE=314733318 ACTIVE value * @property {number} ANNOUNCED=365103355 ANNOUNCED value * @property {number} ANNOUNCED_TO_GOOGLE=454875705 ANNOUNCED_TO_GOOGLE value * @property {number} ANNOUNCED_TO_INTERNET=177880897 ANNOUNCED_TO_INTERNET value @@ -1060702,6 +1080545,7 @@ PublicDelegatedPrefix.Status = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_STATUS"] = 0; + values[valuesById[314733318] = "ACTIVE"] = 314733318; values[valuesById[365103355] = "ANNOUNCED"] = 365103355; values[valuesById[454875705] = "ANNOUNCED_TO_GOOGLE"] = 454875705; values[valuesById[177880897] = "ANNOUNCED_TO_INTERNET"] = 177880897; @@ -1061588,6 +1081432,7 @@ * @property {string|null} [description] PublicDelegatedPrefixPublicDelegatedSubPrefix description * @property {boolean|null} [enableEnhancedIpv4Allocation] PublicDelegatedPrefixPublicDelegatedSubPrefix enableEnhancedIpv4Allocation * @property {string|null} [ipCidrRange] PublicDelegatedPrefixPublicDelegatedSubPrefix ipCidrRange + * @property {string|null} [ipv6AccessType] PublicDelegatedPrefixPublicDelegatedSubPrefix ipv6AccessType * @property {boolean|null} [isAddress] PublicDelegatedPrefixPublicDelegatedSubPrefix isAddress * @property {string|null} [mode] PublicDelegatedPrefixPublicDelegatedSubPrefix mode * @property {string|null} [name] PublicDelegatedPrefixPublicDelegatedSubPrefix name @@ -1061650,6 +1081495,14 @@ */ PublicDelegatedPrefixPublicDelegatedSubPrefix.prototype.ipCidrRange = null; + /** + * PublicDelegatedPrefixPublicDelegatedSubPrefix ipv6AccessType. + * @member {string|null|undefined} ipv6AccessType + * @memberof google.cloud.compute.v1beta.PublicDelegatedPrefixPublicDelegatedSubPrefix + * @instance + */ + PublicDelegatedPrefixPublicDelegatedSubPrefix.prototype.ipv6AccessType = null; + /** * PublicDelegatedPrefixPublicDelegatedSubPrefix isAddress. * @member {boolean|null|undefined} isAddress @@ -1061723,6 +1081576,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(PublicDelegatedPrefixPublicDelegatedSubPrefix.prototype, "_ipv6AccessType", { + get: $util.oneOfGetter($oneOfFields = ["ipv6AccessType"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(PublicDelegatedPrefixPublicDelegatedSubPrefix.prototype, "_isAddress", { get: $util.oneOfGetter($oneOfFields = ["isAddress"]), @@ -1061797,6 +1081656,8 @@ writer.uint32(/* id 414860634, wireType 2 =*/3318885074).string(message.delegateeProject); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.ipv6AccessType != null && Object.hasOwnProperty.call(message, "ipv6AccessType")) + writer.uint32(/* id 504658653, wireType 2 =*/4037269226).string(message.ipv6AccessType); return writer; }; @@ -1061853,6 +1081714,10 @@ message.ipCidrRange = reader.string(); break; } + case 504658653: { + message.ipv6AccessType = reader.string(); + break; + } case 352617951: { message.isAddress = reader.bool(); break; @@ -1061934,6 +1081799,11 @@ if (!$util.isString(message.ipCidrRange)) return "ipCidrRange: string expected"; } + if (message.ipv6AccessType != null && message.hasOwnProperty("ipv6AccessType")) { + properties._ipv6AccessType = 1; + if (!$util.isString(message.ipv6AccessType)) + return "ipv6AccessType: string expected"; + } if (message.isAddress != null && message.hasOwnProperty("isAddress")) { properties._isAddress = 1; if (typeof message.isAddress !== "boolean") @@ -1061984,6 +1081854,8 @@ message.enableEnhancedIpv4Allocation = Boolean(object.enableEnhancedIpv4Allocation); if (object.ipCidrRange != null) message.ipCidrRange = String(object.ipCidrRange); + if (object.ipv6AccessType != null) + message.ipv6AccessType = String(object.ipv6AccessType); if (object.isAddress != null) message.isAddress = Boolean(object.isAddress); if (object.mode != null) @@ -1062060,6 +1081932,11 @@ if (options.oneofs) object._description = "description"; } + if (message.ipv6AccessType != null && message.hasOwnProperty("ipv6AccessType")) { + object.ipv6AccessType = message.ipv6AccessType; + if (options.oneofs) + object._ipv6AccessType = "ipv6AccessType"; + } return object; }; @@ -1062089,6 +1081966,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1beta.PublicDelegatedPrefixPublicDelegatedSubPrefix"; }; + /** + * Ipv6AccessType enum. + * @name google.cloud.compute.v1beta.PublicDelegatedPrefixPublicDelegatedSubPrefix.Ipv6AccessType + * @enum {number} + * @property {number} UNDEFINED_IPV6_ACCESS_TYPE=0 UNDEFINED_IPV6_ACCESS_TYPE value + * @property {number} EXTERNAL=35607499 EXTERNAL value + * @property {number} INTERNAL=279295677 INTERNAL value + */ + PublicDelegatedPrefixPublicDelegatedSubPrefix.Ipv6AccessType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_IPV6_ACCESS_TYPE"] = 0; + values[valuesById[35607499] = "EXTERNAL"] = 35607499; + values[valuesById[279295677] = "INTERNAL"] = 279295677; + return values; + })(); + /** * Mode enum. * @name google.cloud.compute.v1beta.PublicDelegatedPrefixPublicDelegatedSubPrefix.Mode @@ -1062097,6 +1081990,7 @@ * @property {number} DELEGATION=264149288 DELEGATION value * @property {number} EXTERNAL_IPV6_FORWARDING_RULE_CREATION=398684356 EXTERNAL_IPV6_FORWARDING_RULE_CREATION value * @property {number} EXTERNAL_IPV6_SUBNETWORK_CREATION=61198284 EXTERNAL_IPV6_SUBNETWORK_CREATION value + * @property {number} INTERNAL_IPV6_SUBNETWORK_CREATION=153239834 INTERNAL_IPV6_SUBNETWORK_CREATION value */ PublicDelegatedPrefixPublicDelegatedSubPrefix.Mode = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -1062104,6 +1081998,7 @@ values[valuesById[264149288] = "DELEGATION"] = 264149288; values[valuesById[398684356] = "EXTERNAL_IPV6_FORWARDING_RULE_CREATION"] = 398684356; values[valuesById[61198284] = "EXTERNAL_IPV6_SUBNETWORK_CREATION"] = 61198284; + values[valuesById[153239834] = "INTERNAL_IPV6_SUBNETWORK_CREATION"] = 153239834; return values; })(); @@ -1090071,6 +1109966,7 @@ * Properties of a ReservationSubBlock. * @memberof google.cloud.compute.v1beta * @interface IReservationSubBlock + * @property {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo|null} [acceleratorTopologiesInfo] ReservationSubBlock acceleratorTopologiesInfo * @property {number|null} [count] ReservationSubBlock count * @property {string|null} [creationTimestamp] ReservationSubBlock creationTimestamp * @property {google.cloud.compute.v1beta.IReservationSubBlockHealthInfo|null} [healthInfo] ReservationSubBlock healthInfo @@ -1090102,6 +1109998,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ReservationSubBlock acceleratorTopologiesInfo. + * @member {google.cloud.compute.v1beta.IAcceleratorTopologiesInfo|null|undefined} acceleratorTopologiesInfo + * @memberof google.cloud.compute.v1beta.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.acceleratorTopologiesInfo = null; + /** * ReservationSubBlock count. * @member {number|null|undefined} count @@ -1090217,6 +1110121,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_acceleratorTopologiesInfo", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologiesInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ReservationSubBlock.prototype, "_count", { get: $util.oneOfGetter($oneOfFields = ["count"]), @@ -1090337,6 +1110247,8 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.acceleratorTopologiesInfo != null && Object.hasOwnProperty.call(message, "acceleratorTopologiesInfo")) + $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.encode(message.acceleratorTopologiesInfo, writer.uint32(/* id 84833420, wireType 2 =*/678667362).fork()).ldelim(); if (message.count != null && Object.hasOwnProperty.call(message, "count")) writer.uint32(/* id 94851343, wireType 0 =*/758810744).int32(message.count); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -1090389,6 +1110301,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 84833420: { + message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.decode(reader, reader.uint32()); + break; + } case 94851343: { message.count = reader.int32(); break; @@ -1090481,6 +1110397,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.acceleratorTopologiesInfo != null && message.hasOwnProperty("acceleratorTopologiesInfo")) { + properties._acceleratorTopologiesInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.verify(message.acceleratorTopologiesInfo); + if (error) + return "acceleratorTopologiesInfo." + error; + } + } if (message.count != null && message.hasOwnProperty("count")) { properties._count = 1; if (!$util.isInteger(message.count)) @@ -1090575,6 +1110499,11 @@ if (object instanceof $root.google.cloud.compute.v1beta.ReservationSubBlock) return object; var message = new $root.google.cloud.compute.v1beta.ReservationSubBlock(); + if (object.acceleratorTopologiesInfo != null) { + if (typeof object.acceleratorTopologiesInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlock.acceleratorTopologiesInfo: object expected"); + message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.fromObject(object.acceleratorTopologiesInfo); + } if (object.count != null) message.count = object.count | 0; if (object.creationTimestamp != null) @@ -1090668,6 +1110597,11 @@ if (options.oneofs) object._selfLinkWithId = "selfLinkWithId"; } + if (message.acceleratorTopologiesInfo != null && message.hasOwnProperty("acceleratorTopologiesInfo")) { + object.acceleratorTopologiesInfo = $root.google.cloud.compute.v1beta.AcceleratorTopologiesInfo.toObject(message.acceleratorTopologiesInfo, options); + if (options.oneofs) + object._acceleratorTopologiesInfo = "acceleratorTopologiesInfo"; + } if (message.count != null && message.hasOwnProperty("count")) { object.count = message.count; if (options.oneofs) @@ -1092623,6 +1112557,7 @@ * @property {number} FAULT_BEHAVIOR_UNSPECIFIED=447660743 FAULT_BEHAVIOR_UNSPECIFIED value * @property {number} GPU_ERROR=198817909 GPU_ERROR value * @property {number} PERFORMANCE=135701520 PERFORMANCE value + * @property {number} SILENT_DATA_CORRUPTION=111360678 SILENT_DATA_CORRUPTION value * @property {number} SWITCH_FAILURE=254909279 SWITCH_FAILURE value */ ReservationSubBlocksReportFaultyRequestFaultReason.Behavior = (function() { @@ -1092631,6 +1112566,7 @@ values[valuesById[447660743] = "FAULT_BEHAVIOR_UNSPECIFIED"] = 447660743; values[valuesById[198817909] = "GPU_ERROR"] = 198817909; values[valuesById[135701520] = "PERFORMANCE"] = 135701520; + values[valuesById[111360678] = "SILENT_DATA_CORRUPTION"] = 111360678; values[valuesById[254909279] = "SWITCH_FAILURE"] = 254909279; return values; })(); @@ -1098589,6 +1118525,7 @@ * Properties of a ResourcePolicyGroupPlacementPolicy. * @memberof google.cloud.compute.v1beta * @interface IResourcePolicyGroupPlacementPolicy + * @property {string|null} [acceleratorTopologyMode] ResourcePolicyGroupPlacementPolicy acceleratorTopologyMode * @property {number|null} [availabilityDomainCount] ResourcePolicyGroupPlacementPolicy availabilityDomainCount * @property {string|null} [collocation] ResourcePolicyGroupPlacementPolicy collocation * @property {string|null} [gpuTopology] ResourcePolicyGroupPlacementPolicy gpuTopology @@ -1098613,6 +1118550,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ResourcePolicyGroupPlacementPolicy acceleratorTopologyMode. + * @member {string|null|undefined} acceleratorTopologyMode + * @memberof google.cloud.compute.v1beta.ResourcePolicyGroupPlacementPolicy + * @instance + */ + ResourcePolicyGroupPlacementPolicy.prototype.acceleratorTopologyMode = null; + /** * ResourcePolicyGroupPlacementPolicy availabilityDomainCount. * @member {number|null|undefined} availabilityDomainCount @@ -1098672,6 +1118617,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(ResourcePolicyGroupPlacementPolicy.prototype, "_acceleratorTopologyMode", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologyMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ResourcePolicyGroupPlacementPolicy.prototype, "_availabilityDomainCount", { get: $util.oneOfGetter($oneOfFields = ["availabilityDomainCount"]), @@ -1098746,6 +1118697,8 @@ writer.uint32(/* id 247948450, wireType 2 =*/1983587602).string(message.gpuTopology); if (message.vmCount != null && Object.hasOwnProperty.call(message, "vmCount")) writer.uint32(/* id 261463431, wireType 0 =*/2091707448).int32(message.vmCount); + if (message.acceleratorTopologyMode != null && Object.hasOwnProperty.call(message, "acceleratorTopologyMode")) + writer.uint32(/* id 284293791, wireType 2 =*/2274350330).string(message.acceleratorTopologyMode); if (message.tpuTopology != null && Object.hasOwnProperty.call(message, "tpuTopology")) writer.uint32(/* id 315411061, wireType 2 =*/2523288490).string(message.tpuTopology); if (message.sliceCount != null && Object.hasOwnProperty.call(message, "sliceCount")) @@ -1098788,6 +1118741,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 284293791: { + message.acceleratorTopologyMode = reader.string(); + break; + } case 12453432: { message.availabilityDomainCount = reader.int32(); break; @@ -1098852,6 +1118809,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.acceleratorTopologyMode != null && message.hasOwnProperty("acceleratorTopologyMode")) { + properties._acceleratorTopologyMode = 1; + if (!$util.isString(message.acceleratorTopologyMode)) + return "acceleratorTopologyMode: string expected"; + } if (message.availabilityDomainCount != null && message.hasOwnProperty("availabilityDomainCount")) { properties._availabilityDomainCount = 1; if (!$util.isInteger(message.availabilityDomainCount)) @@ -1098902,6 +1118864,8 @@ if (object instanceof $root.google.cloud.compute.v1beta.ResourcePolicyGroupPlacementPolicy) return object; var message = new $root.google.cloud.compute.v1beta.ResourcePolicyGroupPlacementPolicy(); + if (object.acceleratorTopologyMode != null) + message.acceleratorTopologyMode = String(object.acceleratorTopologyMode); if (object.availabilityDomainCount != null) message.availabilityDomainCount = object.availabilityDomainCount | 0; if (object.collocation != null) @@ -1098952,6 +1118916,11 @@ if (options.oneofs) object._vmCount = "vmCount"; } + if (message.acceleratorTopologyMode != null && message.hasOwnProperty("acceleratorTopologyMode")) { + object.acceleratorTopologyMode = message.acceleratorTopologyMode; + if (options.oneofs) + object._acceleratorTopologyMode = "acceleratorTopologyMode"; + } if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) { object.tpuTopology = message.tpuTopology; if (options.oneofs) @@ -1098996,6 +1118965,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1beta.ResourcePolicyGroupPlacementPolicy"; }; + /** + * AcceleratorTopologyMode enum. + * @name google.cloud.compute.v1beta.ResourcePolicyGroupPlacementPolicy.AcceleratorTopologyMode + * @enum {number} + * @property {number} UNDEFINED_ACCELERATOR_TOPOLOGY_MODE=0 UNDEFINED_ACCELERATOR_TOPOLOGY_MODE value + * @property {number} AUTO_CONNECT=491872826 AUTO_CONNECT value + * @property {number} PROVISION_ONLY=399134966 PROVISION_ONLY value + */ + ResourcePolicyGroupPlacementPolicy.AcceleratorTopologyMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ACCELERATOR_TOPOLOGY_MODE"] = 0; + values[valuesById[491872826] = "AUTO_CONNECT"] = 491872826; + values[valuesById[399134966] = "PROVISION_ONLY"] = 399134966; + return values; + })(); + /** * Collocation enum. * @name google.cloud.compute.v1beta.ResourcePolicyGroupPlacementPolicy.Collocation @@ -1102589,6 +1122574,7 @@ * @memberof google.cloud.compute.v1beta * @interface IResourcePolicyWorkloadPolicy * @property {string|null} [acceleratorTopology] ResourcePolicyWorkloadPolicy acceleratorTopology + * @property {string|null} [acceleratorTopologyMode] ResourcePolicyWorkloadPolicy acceleratorTopologyMode * @property {string|null} [maxTopologyDistance] ResourcePolicyWorkloadPolicy maxTopologyDistance * @property {string|null} [type] ResourcePolicyWorkloadPolicy type */ @@ -1102616,6 +1122602,14 @@ */ ResourcePolicyWorkloadPolicy.prototype.acceleratorTopology = null; + /** + * ResourcePolicyWorkloadPolicy acceleratorTopologyMode. + * @member {string|null|undefined} acceleratorTopologyMode + * @memberof google.cloud.compute.v1beta.ResourcePolicyWorkloadPolicy + * @instance + */ + ResourcePolicyWorkloadPolicy.prototype.acceleratorTopologyMode = null; + /** * ResourcePolicyWorkloadPolicy maxTopologyDistance. * @member {string|null|undefined} maxTopologyDistance @@ -1102641,6 +1122635,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ResourcePolicyWorkloadPolicy.prototype, "_acceleratorTopologyMode", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologyMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ResourcePolicyWorkloadPolicy.prototype, "_maxTopologyDistance", { get: $util.oneOfGetter($oneOfFields = ["maxTopologyDistance"]), @@ -1102681,6 +1122681,8 @@ writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); if (message.maxTopologyDistance != null && Object.hasOwnProperty.call(message, "maxTopologyDistance")) writer.uint32(/* id 7521706, wireType 2 =*/60173650).string(message.maxTopologyDistance); + if (message.acceleratorTopologyMode != null && Object.hasOwnProperty.call(message, "acceleratorTopologyMode")) + writer.uint32(/* id 284293791, wireType 2 =*/2274350330).string(message.acceleratorTopologyMode); if (message.acceleratorTopology != null && Object.hasOwnProperty.call(message, "acceleratorTopology")) writer.uint32(/* id 389323203, wireType 2 =*/3114585626).string(message.acceleratorTopology); return writer; @@ -1102723,6 +1122725,10 @@ message.acceleratorTopology = reader.string(); break; } + case 284293791: { + message.acceleratorTopologyMode = reader.string(); + break; + } case 7521706: { message.maxTopologyDistance = reader.string(); break; @@ -1102772,6 +1122778,11 @@ if (!$util.isString(message.acceleratorTopology)) return "acceleratorTopology: string expected"; } + if (message.acceleratorTopologyMode != null && message.hasOwnProperty("acceleratorTopologyMode")) { + properties._acceleratorTopologyMode = 1; + if (!$util.isString(message.acceleratorTopologyMode)) + return "acceleratorTopologyMode: string expected"; + } if (message.maxTopologyDistance != null && message.hasOwnProperty("maxTopologyDistance")) { properties._maxTopologyDistance = 1; if (!$util.isString(message.maxTopologyDistance)) @@ -1102799,6 +1122810,8 @@ var message = new $root.google.cloud.compute.v1beta.ResourcePolicyWorkloadPolicy(); if (object.acceleratorTopology != null) message.acceleratorTopology = String(object.acceleratorTopology); + if (object.acceleratorTopologyMode != null) + message.acceleratorTopologyMode = String(object.acceleratorTopologyMode); if (object.maxTopologyDistance != null) message.maxTopologyDistance = String(object.maxTopologyDistance); if (object.type != null) @@ -1102829,6 +1122842,11 @@ if (options.oneofs) object._maxTopologyDistance = "maxTopologyDistance"; } + if (message.acceleratorTopologyMode != null && message.hasOwnProperty("acceleratorTopologyMode")) { + object.acceleratorTopologyMode = message.acceleratorTopologyMode; + if (options.oneofs) + object._acceleratorTopologyMode = "acceleratorTopologyMode"; + } if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { object.acceleratorTopology = message.acceleratorTopology; if (options.oneofs) @@ -1102863,6 +1122881,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1beta.ResourcePolicyWorkloadPolicy"; }; + /** + * AcceleratorTopologyMode enum. + * @name google.cloud.compute.v1beta.ResourcePolicyWorkloadPolicy.AcceleratorTopologyMode + * @enum {number} + * @property {number} UNDEFINED_ACCELERATOR_TOPOLOGY_MODE=0 UNDEFINED_ACCELERATOR_TOPOLOGY_MODE value + * @property {number} AUTO_CONNECT=491872826 AUTO_CONNECT value + * @property {number} PROVISION_ONLY=399134966 PROVISION_ONLY value + */ + ResourcePolicyWorkloadPolicy.AcceleratorTopologyMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ACCELERATOR_TOPOLOGY_MODE"] = 0; + values[valuesById[491872826] = "AUTO_CONNECT"] = 491872826; + values[valuesById[399134966] = "PROVISION_ONLY"] = 399134966; + return values; + })(); + /** * MaxTopologyDistance enum. * @name google.cloud.compute.v1beta.ResourcePolicyWorkloadPolicy.MaxTopologyDistance @@ -1102909,6 +1122943,7 @@ * @property {google.cloud.compute.v1beta.IResourceStatusEffectiveInstanceMetadata|null} [effectiveInstanceMetadata] ResourceStatus effectiveInstanceMetadata * @property {string|null} [physicalHost] ResourceStatus physicalHost * @property {google.cloud.compute.v1beta.IResourceStatusPhysicalHostTopology|null} [physicalHostTopology] ResourceStatus physicalHostTopology + * @property {google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo|null} [reservationConsumptionInfo] ResourceStatus reservationConsumptionInfo * @property {google.cloud.compute.v1beta.IResourceStatusScheduling|null} [scheduling] ResourceStatus scheduling * @property {google.cloud.compute.v1beta.IResourceStatusShutdownDetails|null} [shutdownDetails] ResourceStatus shutdownDetails * @property {google.cloud.compute.v1beta.IUpcomingMaintenance|null} [upcomingMaintenance] ResourceStatus upcomingMaintenance @@ -1102953,6 +1122988,14 @@ */ ResourceStatus.prototype.physicalHostTopology = null; + /** + * ResourceStatus reservationConsumptionInfo. + * @member {google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo|null|undefined} reservationConsumptionInfo + * @memberof google.cloud.compute.v1beta.ResourceStatus + * @instance + */ + ResourceStatus.prototype.reservationConsumptionInfo = null; + /** * ResourceStatus scheduling. * @member {google.cloud.compute.v1beta.IResourceStatusScheduling|null|undefined} scheduling @@ -1102998,6 +1123041,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ResourceStatus.prototype, "_reservationConsumptionInfo", { + get: $util.oneOfGetter($oneOfFields = ["reservationConsumptionInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ResourceStatus.prototype, "_scheduling", { get: $util.oneOfGetter($oneOfFields = ["scheduling"]), @@ -1103044,6 +1123093,8 @@ $root.google.cloud.compute.v1beta.ResourceStatusShutdownDetails.encode(message.shutdownDetails, writer.uint32(/* id 15198553, wireType 2 =*/121588426).fork()).ldelim(); if (message.effectiveInstanceMetadata != null && Object.hasOwnProperty.call(message, "effectiveInstanceMetadata")) $root.google.cloud.compute.v1beta.ResourceStatusEffectiveInstanceMetadata.encode(message.effectiveInstanceMetadata, writer.uint32(/* id 55052033, wireType 2 =*/440416266).fork()).ldelim(); + if (message.reservationConsumptionInfo != null && Object.hasOwnProperty.call(message, "reservationConsumptionInfo")) + $root.google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo.encode(message.reservationConsumptionInfo, writer.uint32(/* id 201056997, wireType 2 =*/1608455978).fork()).ldelim(); if (message.upcomingMaintenance != null && Object.hasOwnProperty.call(message, "upcomingMaintenance")) $root.google.cloud.compute.v1beta.UpcomingMaintenance.encode(message.upcomingMaintenance, writer.uint32(/* id 227348592, wireType 2 =*/1818788738).fork()).ldelim(); if (message.scheduling != null && Object.hasOwnProperty.call(message, "scheduling")) @@ -1103100,6 +1123151,10 @@ message.physicalHostTopology = $root.google.cloud.compute.v1beta.ResourceStatusPhysicalHostTopology.decode(reader, reader.uint32()); break; } + case 201056997: { + message.reservationConsumptionInfo = $root.google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo.decode(reader, reader.uint32()); + break; + } case 386688404: { message.scheduling = $root.google.cloud.compute.v1beta.ResourceStatusScheduling.decode(reader, reader.uint32()); break; @@ -1103169,6 +1123224,14 @@ return "physicalHostTopology." + error; } } + if (message.reservationConsumptionInfo != null && message.hasOwnProperty("reservationConsumptionInfo")) { + properties._reservationConsumptionInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo.verify(message.reservationConsumptionInfo); + if (error) + return "reservationConsumptionInfo." + error; + } + } if (message.scheduling != null && message.hasOwnProperty("scheduling")) { properties._scheduling = 1; { @@ -1103220,6 +1123283,11 @@ throw TypeError(".google.cloud.compute.v1beta.ResourceStatus.physicalHostTopology: object expected"); message.physicalHostTopology = $root.google.cloud.compute.v1beta.ResourceStatusPhysicalHostTopology.fromObject(object.physicalHostTopology); } + if (object.reservationConsumptionInfo != null) { + if (typeof object.reservationConsumptionInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.ResourceStatus.reservationConsumptionInfo: object expected"); + message.reservationConsumptionInfo = $root.google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo.fromObject(object.reservationConsumptionInfo); + } if (object.scheduling != null) { if (typeof object.scheduling !== "object") throw TypeError(".google.cloud.compute.v1beta.ResourceStatus.scheduling: object expected"); @@ -1103261,6 +1123329,11 @@ if (options.oneofs) object._effectiveInstanceMetadata = "effectiveInstanceMetadata"; } + if (message.reservationConsumptionInfo != null && message.hasOwnProperty("reservationConsumptionInfo")) { + object.reservationConsumptionInfo = $root.google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo.toObject(message.reservationConsumptionInfo, options); + if (options.oneofs) + object._reservationConsumptionInfo = "reservationConsumptionInfo"; + } if (message.upcomingMaintenance != null && message.hasOwnProperty("upcomingMaintenance")) { object.upcomingMaintenance = $root.google.cloud.compute.v1beta.UpcomingMaintenance.toObject(message.upcomingMaintenance, options); if (options.oneofs) @@ -1104079,6 +1124152,224 @@ return ResourceStatusPhysicalHostTopology; })(); + v1beta.ResourceStatusReservationConsumptionInfo = (function() { + + /** + * Properties of a ResourceStatusReservationConsumptionInfo. + * @memberof google.cloud.compute.v1beta + * @interface IResourceStatusReservationConsumptionInfo + * @property {string|null} [consumedReservation] ResourceStatusReservationConsumptionInfo consumedReservation + */ + + /** + * Constructs a new ResourceStatusReservationConsumptionInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ResourceStatusReservationConsumptionInfo. + * @implements IResourceStatusReservationConsumptionInfo + * @constructor + * @param {google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo=} [properties] Properties to set + */ + function ResourceStatusReservationConsumptionInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceStatusReservationConsumptionInfo consumedReservation. + * @member {string|null|undefined} consumedReservation + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @instance + */ + ResourceStatusReservationConsumptionInfo.prototype.consumedReservation = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ResourceStatusReservationConsumptionInfo.prototype, "_consumedReservation", { + get: $util.oneOfGetter($oneOfFields = ["consumedReservation"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResourceStatusReservationConsumptionInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @static + * @param {google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo} ResourceStatusReservationConsumptionInfo instance + */ + ResourceStatusReservationConsumptionInfo.create = function create(properties) { + return new ResourceStatusReservationConsumptionInfo(properties); + }; + + /** + * Encodes the specified ResourceStatusReservationConsumptionInfo message. Does not implicitly {@link google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @static + * @param {google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo} message ResourceStatusReservationConsumptionInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceStatusReservationConsumptionInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.consumedReservation != null && Object.hasOwnProperty.call(message, "consumedReservation")) + writer.uint32(/* id 318474741, wireType 2 =*/2547797930).string(message.consumedReservation); + return writer; + }; + + /** + * Encodes the specified ResourceStatusReservationConsumptionInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @static + * @param {google.cloud.compute.v1beta.IResourceStatusReservationConsumptionInfo} message ResourceStatusReservationConsumptionInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceStatusReservationConsumptionInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceStatusReservationConsumptionInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo} ResourceStatusReservationConsumptionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceStatusReservationConsumptionInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 318474741: { + message.consumedReservation = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceStatusReservationConsumptionInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo} ResourceStatusReservationConsumptionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceStatusReservationConsumptionInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceStatusReservationConsumptionInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceStatusReservationConsumptionInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.consumedReservation != null && message.hasOwnProperty("consumedReservation")) { + properties._consumedReservation = 1; + if (!$util.isString(message.consumedReservation)) + return "consumedReservation: string expected"; + } + return null; + }; + + /** + * Creates a ResourceStatusReservationConsumptionInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo} ResourceStatusReservationConsumptionInfo + */ + ResourceStatusReservationConsumptionInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo(); + if (object.consumedReservation != null) + message.consumedReservation = String(object.consumedReservation); + return message; + }; + + /** + * Creates a plain object from a ResourceStatusReservationConsumptionInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @static + * @param {google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo} message ResourceStatusReservationConsumptionInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceStatusReservationConsumptionInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.consumedReservation != null && message.hasOwnProperty("consumedReservation")) { + object.consumedReservation = message.consumedReservation; + if (options.oneofs) + object._consumedReservation = "consumedReservation"; + } + return object; + }; + + /** + * Converts this ResourceStatusReservationConsumptionInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @instance + * @returns {Object.} JSON object + */ + ResourceStatusReservationConsumptionInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceStatusReservationConsumptionInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceStatusReservationConsumptionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ResourceStatusReservationConsumptionInfo"; + }; + + return ResourceStatusReservationConsumptionInfo; + })(); + v1beta.ResourceStatusScheduling = (function() { /** @@ -1139493,6 +1159784,7 @@ * @interface IServiceAttachmentConnectedEndpoint * @property {string|null} [consumerNetwork] ServiceAttachmentConnectedEndpoint consumerNetwork * @property {string|null} [endpoint] ServiceAttachmentConnectedEndpoint endpoint + * @property {string|null} [endpointWithId] ServiceAttachmentConnectedEndpoint endpointWithId * @property {Array.|null} [natIps] ServiceAttachmentConnectedEndpoint natIps * @property {number|null} [propagatedConnectionCount] ServiceAttachmentConnectedEndpoint propagatedConnectionCount * @property {number|Long|null} [pscConnectionId] ServiceAttachmentConnectedEndpoint pscConnectionId @@ -1139531,6 +1159823,14 @@ */ ServiceAttachmentConnectedEndpoint.prototype.endpoint = null; + /** + * ServiceAttachmentConnectedEndpoint endpointWithId. + * @member {string|null|undefined} endpointWithId + * @memberof google.cloud.compute.v1beta.ServiceAttachmentConnectedEndpoint + * @instance + */ + ServiceAttachmentConnectedEndpoint.prototype.endpointWithId = null; + /** * ServiceAttachmentConnectedEndpoint natIps. * @member {Array.} natIps @@ -1139578,6 +1159878,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ServiceAttachmentConnectedEndpoint.prototype, "_endpointWithId", { + get: $util.oneOfGetter($oneOfFields = ["endpointWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ServiceAttachmentConnectedEndpoint.prototype, "_propagatedConnectionCount", { get: $util.oneOfGetter($oneOfFields = ["propagatedConnectionCount"]), @@ -1139633,6 +1159939,8 @@ writer.uint32(/* id 292082397, wireType 0 =*/2336659176).uint64(message.pscConnectionId); if (message.propagatedConnectionCount != null && Object.hasOwnProperty.call(message, "propagatedConnectionCount")) writer.uint32(/* id 324594130, wireType 0 =*/2596753040).uint32(message.propagatedConnectionCount); + if (message.endpointWithId != null && Object.hasOwnProperty.call(message, "endpointWithId")) + writer.uint32(/* id 444867210, wireType 2 =*/3558937682).string(message.endpointWithId); return writer; }; @@ -1139677,6 +1159985,10 @@ message.endpoint = reader.string(); break; } + case 444867210: { + message.endpointWithId = reader.string(); + break; + } case 117635086: { if (!(message.natIps && message.natIps.length)) message.natIps = []; @@ -1139741,6 +1160053,11 @@ if (!$util.isString(message.endpoint)) return "endpoint: string expected"; } + if (message.endpointWithId != null && message.hasOwnProperty("endpointWithId")) { + properties._endpointWithId = 1; + if (!$util.isString(message.endpointWithId)) + return "endpointWithId: string expected"; + } if (message.natIps != null && message.hasOwnProperty("natIps")) { if (!Array.isArray(message.natIps)) return "natIps: array expected"; @@ -1139782,6 +1160099,8 @@ message.consumerNetwork = String(object.consumerNetwork); if (object.endpoint != null) message.endpoint = String(object.endpoint); + if (object.endpointWithId != null) + message.endpointWithId = String(object.endpointWithId); if (object.natIps) { if (!Array.isArray(object.natIps)) throw TypeError(".google.cloud.compute.v1beta.ServiceAttachmentConnectedEndpoint.natIps: array expected"); @@ -1139853,6 +1160172,11 @@ if (options.oneofs) object._propagatedConnectionCount = "propagatedConnectionCount"; } + if (message.endpointWithId != null && message.hasOwnProperty("endpointWithId")) { + object.endpointWithId = message.endpointWithId; + if (options.oneofs) + object._endpointWithId = "endpointWithId"; + } return object; }; @@ -1139916,6 +1160240,7 @@ * @memberof google.cloud.compute.v1beta * @interface IServiceAttachmentConsumerProjectLimit * @property {number|null} [connectionLimit] ServiceAttachmentConsumerProjectLimit connectionLimit + * @property {string|null} [endpointUrl] ServiceAttachmentConsumerProjectLimit endpointUrl * @property {string|null} [networkUrl] ServiceAttachmentConsumerProjectLimit networkUrl * @property {string|null} [projectIdOrNum] ServiceAttachmentConsumerProjectLimit projectIdOrNum */ @@ -1139943,6 +1160268,14 @@ */ ServiceAttachmentConsumerProjectLimit.prototype.connectionLimit = null; + /** + * ServiceAttachmentConsumerProjectLimit endpointUrl. + * @member {string|null|undefined} endpointUrl + * @memberof google.cloud.compute.v1beta.ServiceAttachmentConsumerProjectLimit + * @instance + */ + ServiceAttachmentConsumerProjectLimit.prototype.endpointUrl = null; + /** * ServiceAttachmentConsumerProjectLimit networkUrl. * @member {string|null|undefined} networkUrl @@ -1139968,6 +1160301,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ServiceAttachmentConsumerProjectLimit.prototype, "_endpointUrl", { + get: $util.oneOfGetter($oneOfFields = ["endpointUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ServiceAttachmentConsumerProjectLimit.prototype, "_networkUrl", { get: $util.oneOfGetter($oneOfFields = ["networkUrl"]), @@ -1140008,6 +1160347,8 @@ writer.uint32(/* id 131403546, wireType 0 =*/1051228368).uint32(message.connectionLimit); if (message.networkUrl != null && Object.hasOwnProperty.call(message, "networkUrl")) writer.uint32(/* id 207194078, wireType 2 =*/1657552626).string(message.networkUrl); + if (message.endpointUrl != null && Object.hasOwnProperty.call(message, "endpointUrl")) + writer.uint32(/* id 223428549, wireType 2 =*/1787428394).string(message.endpointUrl); if (message.projectIdOrNum != null && Object.hasOwnProperty.call(message, "projectIdOrNum")) writer.uint32(/* id 349783336, wireType 2 =*/2798266690).string(message.projectIdOrNum); return writer; @@ -1140050,6 +1160391,10 @@ message.connectionLimit = reader.uint32(); break; } + case 223428549: { + message.endpointUrl = reader.string(); + break; + } case 207194078: { message.networkUrl = reader.string(); break; @@ -1140099,6 +1160444,11 @@ if (!$util.isInteger(message.connectionLimit)) return "connectionLimit: integer expected"; } + if (message.endpointUrl != null && message.hasOwnProperty("endpointUrl")) { + properties._endpointUrl = 1; + if (!$util.isString(message.endpointUrl)) + return "endpointUrl: string expected"; + } if (message.networkUrl != null && message.hasOwnProperty("networkUrl")) { properties._networkUrl = 1; if (!$util.isString(message.networkUrl)) @@ -1140126,6 +1160476,8 @@ var message = new $root.google.cloud.compute.v1beta.ServiceAttachmentConsumerProjectLimit(); if (object.connectionLimit != null) message.connectionLimit = object.connectionLimit >>> 0; + if (object.endpointUrl != null) + message.endpointUrl = String(object.endpointUrl); if (object.networkUrl != null) message.networkUrl = String(object.networkUrl); if (object.projectIdOrNum != null) @@ -1140156,6 +1160508,11 @@ if (options.oneofs) object._networkUrl = "networkUrl"; } + if (message.endpointUrl != null && message.hasOwnProperty("endpointUrl")) { + object.endpointUrl = message.endpointUrl; + if (options.oneofs) + object._endpointUrl = "endpointUrl"; + } if (message.projectIdOrNum != null && message.hasOwnProperty("projectIdOrNum")) { object.projectIdOrNum = message.projectIdOrNum; if (options.oneofs) @@ -1150130,55 +1170487,615 @@ }; /** - * Converts this SetIamPolicyNodeTemplateRequest to JSON. + * Converts this SetIamPolicyNodeTemplateRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyNodeTemplateRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyNodeTemplateRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyNodeTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest"; + }; + + return SetIamPolicyNodeTemplateRequest; + })(); + + v1beta.SetIamPolicyRegionBackendBucketRequest = (function() { + + /** + * Properties of a SetIamPolicyRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @interface ISetIamPolicyRegionBackendBucketRequest + * @property {string|null} [project] SetIamPolicyRegionBackendBucketRequest project + * @property {string|null} [region] SetIamPolicyRegionBackendBucketRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionBackendBucketRequest resource + */ + + /** + * Constructs a new SetIamPolicyRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SetIamPolicyRegionBackendBucketRequest. + * @implements ISetIamPolicyRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set + */ + function SetIamPolicyRegionBackendBucketRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SetIamPolicyRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.project = ""; + + /** + * SetIamPolicyRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.region = ""; + + /** + * SetIamPolicyRegionBackendBucketRequest regionSetPolicyRequestResource. + * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.regionSetPolicyRequestResource = null; + + /** + * SetIamPolicyRegionBackendBucketRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @instance + */ + SetIamPolicyRegionBackendBucketRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicyRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest instance + */ + SetIamPolicyRegionBackendBucketRequest.create = function create(properties) { + return new SetIamPolicyRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest} message SetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionBackendBucketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.regionSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "regionSetPolicyRequestResource")) + $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.encode(message.regionSetPolicyRequestResource, writer.uint32(/* id 276489091, wireType 2 =*/2211912730).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest} message SetIamPolicyRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyRegionBackendBucketRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 276489091: { + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.decode(reader, reader.uint32()); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyRegionBackendBucketRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyRegionBackendBucketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.verify(message.regionSetPolicyRequestResource); + if (error) + return "regionSetPolicyRequestResource." + error; + } + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a SetIamPolicyRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} SetIamPolicyRegionBackendBucketRequest + */ + SetIamPolicyRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.regionSetPolicyRequestResource != null) { + if (typeof object.regionSetPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest.regionSetPolicyRequestResource: object expected"); + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); + } + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyRegionBackendBucketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest} message SetIamPolicyRegionBackendBucketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyRegionBackendBucketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.regionSetPolicyRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) + object.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.toObject(message.regionSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyRegionBackendBucketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyRegionBackendBucketRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest"; + }; + + return SetIamPolicyRegionBackendBucketRequest; + })(); + + v1beta.SetIamPolicyRegionBackendServiceRequest = (function() { + + /** + * Properties of a SetIamPolicyRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1beta + * @interface ISetIamPolicyRegionBackendServiceRequest + * @property {string|null} [project] SetIamPolicyRegionBackendServiceRequest project + * @property {string|null} [region] SetIamPolicyRegionBackendServiceRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionBackendServiceRequest resource + */ + + /** + * Constructs a new SetIamPolicyRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SetIamPolicyRegionBackendServiceRequest. + * @implements ISetIamPolicyRegionBackendServiceRequest + * @constructor + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + */ + function SetIamPolicyRegionBackendServiceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SetIamPolicyRegionBackendServiceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @instance + */ + SetIamPolicyRegionBackendServiceRequest.prototype.project = ""; + + /** + * SetIamPolicyRegionBackendServiceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @instance + */ + SetIamPolicyRegionBackendServiceRequest.prototype.region = ""; + + /** + * SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource. + * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @instance + */ + SetIamPolicyRegionBackendServiceRequest.prototype.regionSetPolicyRequestResource = null; + + /** + * SetIamPolicyRegionBackendServiceRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @instance + */ + SetIamPolicyRegionBackendServiceRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicyRegionBackendServiceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest instance + */ + SetIamPolicyRegionBackendServiceRequest.create = function create(properties) { + return new SetIamPolicyRegionBackendServiceRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionBackendServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.regionSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "regionSetPolicyRequestResource")) + $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.encode(message.regionSetPolicyRequestResource, writer.uint32(/* id 276489091, wireType 2 =*/2211912730).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyRegionBackendServiceRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 276489091: { + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.decode(reader, reader.uint32()); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyRegionBackendServiceRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyRegionBackendServiceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.verify(message.regionSetPolicyRequestResource); + if (error) + return "regionSetPolicyRequestResource." + error; + } + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a SetIamPolicyRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + */ + SetIamPolicyRegionBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.regionSetPolicyRequestResource != null) { + if (typeof object.regionSetPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.regionSetPolicyRequestResource: object expected"); + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); + } + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyRegionBackendServiceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyRegionBackendServiceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.regionSetPolicyRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) + object.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.toObject(message.regionSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyRegionBackendServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyNodeTemplateRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionBackendServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyNodeTemplateRequest + * Gets the default type url for SetIamPolicyRegionBackendServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyNodeTemplateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyNodeTemplateRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest"; }; - return SetIamPolicyNodeTemplateRequest; + return SetIamPolicyRegionBackendServiceRequest; })(); - v1beta.SetIamPolicyRegionBackendServiceRequest = (function() { + v1beta.SetIamPolicyRegionDiskRequest = (function() { /** - * Properties of a SetIamPolicyRegionBackendServiceRequest. + * Properties of a SetIamPolicyRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @interface ISetIamPolicyRegionBackendServiceRequest - * @property {string|null} [project] SetIamPolicyRegionBackendServiceRequest project - * @property {string|null} [region] SetIamPolicyRegionBackendServiceRequest region - * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionBackendServiceRequest resource + * @interface ISetIamPolicyRegionDiskRequest + * @property {string|null} [project] SetIamPolicyRegionDiskRequest project + * @property {string|null} [region] SetIamPolicyRegionDiskRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionDiskRequest resource */ /** - * Constructs a new SetIamPolicyRegionBackendServiceRequest. + * Constructs a new SetIamPolicyRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a SetIamPolicyRegionBackendServiceRequest. - * @implements ISetIamPolicyRegionBackendServiceRequest + * @classdesc Represents a SetIamPolicyRegionDiskRequest. + * @implements ISetIamPolicyRegionDiskRequest * @constructor - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set */ - function SetIamPolicyRegionBackendServiceRequest(properties) { + function SetIamPolicyRegionDiskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1150186,59 +1171103,59 @@ } /** - * SetIamPolicyRegionBackendServiceRequest project. + * SetIamPolicyRegionDiskRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.project = ""; + SetIamPolicyRegionDiskRequest.prototype.project = ""; /** - * SetIamPolicyRegionBackendServiceRequest region. + * SetIamPolicyRegionDiskRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.region = ""; + SetIamPolicyRegionDiskRequest.prototype.region = ""; /** - * SetIamPolicyRegionBackendServiceRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionDiskRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionBackendServiceRequest resource. + * SetIamPolicyRegionDiskRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance */ - SetIamPolicyRegionBackendServiceRequest.prototype.resource = ""; + SetIamPolicyRegionDiskRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionBackendServiceRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionDiskRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest instance */ - SetIamPolicyRegionBackendServiceRequest.create = function create(properties) { - return new SetIamPolicyRegionBackendServiceRequest(properties); + SetIamPolicyRegionDiskRequest.create = function create(properties) { + return new SetIamPolicyRegionDiskRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionBackendServiceRequest.encode = function encode(message, writer) { + SetIamPolicyRegionDiskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1150253,33 +1171170,33 @@ }; /** - * Encodes the specified SetIamPolicyRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionBackendServiceRequest.decode = function decode(reader, length, error) { + SetIamPolicyRegionDiskRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1150310,30 +1171227,30 @@ }; /** - * Decodes a SetIamPolicyRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionBackendServiceRequest message. + * Verifies a SetIamPolicyRegionDiskRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionBackendServiceRequest.verify = function verify(message) { + SetIamPolicyRegionDiskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1150354,24 +1171271,24 @@ }; /** - * Creates a SetIamPolicyRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} SetIamPolicyRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest */ - SetIamPolicyRegionBackendServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest) + SetIamPolicyRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest) return object; - var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest(); + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -1150380,15 +1171297,15 @@ }; /** - * Creates a plain object from a SetIamPolicyRegionBackendServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionDiskRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest} message SetIamPolicyRegionBackendServiceRequest + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionBackendServiceRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1150410,55 +1171327,55 @@ }; /** - * Converts this SetIamPolicyRegionBackendServiceRequest to JSON. + * Converts this SetIamPolicyRegionDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionBackendServiceRequest + * Gets the default type url for SetIamPolicyRegionDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest"; }; - return SetIamPolicyRegionBackendServiceRequest; + return SetIamPolicyRegionDiskRequest; })(); - v1beta.SetIamPolicyRegionDiskRequest = (function() { + v1beta.SetIamPolicyRegionInstantSnapshotRequest = (function() { /** - * Properties of a SetIamPolicyRegionDiskRequest. + * Properties of a SetIamPolicyRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @interface ISetIamPolicyRegionDiskRequest - * @property {string|null} [project] SetIamPolicyRegionDiskRequest project - * @property {string|null} [region] SetIamPolicyRegionDiskRequest region - * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionDiskRequest resource + * @interface ISetIamPolicyRegionInstantSnapshotRequest + * @property {string|null} [project] SetIamPolicyRegionInstantSnapshotRequest project + * @property {string|null} [region] SetIamPolicyRegionInstantSnapshotRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionInstantSnapshotRequest resource */ /** - * Constructs a new SetIamPolicyRegionDiskRequest. + * Constructs a new SetIamPolicyRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a SetIamPolicyRegionDiskRequest. - * @implements ISetIamPolicyRegionDiskRequest + * @classdesc Represents a SetIamPolicyRegionInstantSnapshotRequest. + * @implements ISetIamPolicyRegionInstantSnapshotRequest * @constructor - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set */ - function SetIamPolicyRegionDiskRequest(properties) { + function SetIamPolicyRegionInstantSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1150466,59 +1171383,59 @@ } /** - * SetIamPolicyRegionDiskRequest project. + * SetIamPolicyRegionInstantSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.project = ""; + SetIamPolicyRegionInstantSnapshotRequest.prototype.project = ""; /** - * SetIamPolicyRegionDiskRequest region. + * SetIamPolicyRegionInstantSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.region = ""; + SetIamPolicyRegionInstantSnapshotRequest.prototype.region = ""; /** - * SetIamPolicyRegionDiskRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionInstantSnapshotRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionDiskRequest resource. + * SetIamPolicyRegionInstantSnapshotRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @instance */ - SetIamPolicyRegionDiskRequest.prototype.resource = ""; + SetIamPolicyRegionInstantSnapshotRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionDiskRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest instance */ - SetIamPolicyRegionDiskRequest.create = function create(properties) { - return new SetIamPolicyRegionDiskRequest(properties); + SetIamPolicyRegionInstantSnapshotRequest.create = function create(properties) { + return new SetIamPolicyRegionInstantSnapshotRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionDiskRequest.encode = function encode(message, writer) { + SetIamPolicyRegionInstantSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1150533,33 +1171450,33 @@ }; /** - * Encodes the specified SetIamPolicyRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionDiskRequest.decode = function decode(reader, length, error) { + SetIamPolicyRegionInstantSnapshotRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1150590,30 +1171507,30 @@ }; /** - * Decodes a SetIamPolicyRegionDiskRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionDiskRequest message. + * Verifies a SetIamPolicyRegionInstantSnapshotRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionDiskRequest.verify = function verify(message) { + SetIamPolicyRegionInstantSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1150634,24 +1171551,24 @@ }; /** - * Creates a SetIamPolicyRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} SetIamPolicyRegionDiskRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest */ - SetIamPolicyRegionDiskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest) + SetIamPolicyRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest) return object; - var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest(); + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -1150660,15 +1171577,15 @@ }; /** - * Creates a plain object from a SetIamPolicyRegionDiskRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionInstantSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest} message SetIamPolicyRegionDiskRequest + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionDiskRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionInstantSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1150690,55 +1171607,55 @@ }; /** - * Converts this SetIamPolicyRegionDiskRequest to JSON. + * Converts this SetIamPolicyRegionInstantSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionDiskRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionDiskRequest + * Gets the default type url for SetIamPolicyRegionInstantSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionDiskRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest"; }; - return SetIamPolicyRegionDiskRequest; + return SetIamPolicyRegionInstantSnapshotRequest; })(); - v1beta.SetIamPolicyRegionInstantSnapshotRequest = (function() { + v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest = (function() { /** - * Properties of a SetIamPolicyRegionInstantSnapshotRequest. + * Properties of a SetIamPolicyRegionNetworkFirewallPolicyRequest. * @memberof google.cloud.compute.v1beta - * @interface ISetIamPolicyRegionInstantSnapshotRequest - * @property {string|null} [project] SetIamPolicyRegionInstantSnapshotRequest project - * @property {string|null} [region] SetIamPolicyRegionInstantSnapshotRequest region - * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionInstantSnapshotRequest resource + * @interface ISetIamPolicyRegionNetworkFirewallPolicyRequest + * @property {string|null} [project] SetIamPolicyRegionNetworkFirewallPolicyRequest project + * @property {string|null} [region] SetIamPolicyRegionNetworkFirewallPolicyRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionNetworkFirewallPolicyRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionNetworkFirewallPolicyRequest resource */ /** - * Constructs a new SetIamPolicyRegionInstantSnapshotRequest. + * Constructs a new SetIamPolicyRegionNetworkFirewallPolicyRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a SetIamPolicyRegionInstantSnapshotRequest. - * @implements ISetIamPolicyRegionInstantSnapshotRequest + * @classdesc Represents a SetIamPolicyRegionNetworkFirewallPolicyRequest. + * @implements ISetIamPolicyRegionNetworkFirewallPolicyRequest * @constructor - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set */ - function SetIamPolicyRegionInstantSnapshotRequest(properties) { + function SetIamPolicyRegionNetworkFirewallPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1150746,59 +1171663,59 @@ } /** - * SetIamPolicyRegionInstantSnapshotRequest project. + * SetIamPolicyRegionNetworkFirewallPolicyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @instance */ - SetIamPolicyRegionInstantSnapshotRequest.prototype.project = ""; + SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.project = ""; /** - * SetIamPolicyRegionInstantSnapshotRequest region. + * SetIamPolicyRegionNetworkFirewallPolicyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @instance */ - SetIamPolicyRegionInstantSnapshotRequest.prototype.region = ""; + SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.region = ""; /** - * SetIamPolicyRegionInstantSnapshotRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionNetworkFirewallPolicyRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @instance */ - SetIamPolicyRegionInstantSnapshotRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionInstantSnapshotRequest resource. + * SetIamPolicyRegionNetworkFirewallPolicyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @instance */ - SetIamPolicyRegionInstantSnapshotRequest.prototype.resource = ""; + SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionInstantSnapshotRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionNetworkFirewallPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} SetIamPolicyRegionNetworkFirewallPolicyRequest instance */ - SetIamPolicyRegionInstantSnapshotRequest.create = function create(properties) { - return new SetIamPolicyRegionInstantSnapshotRequest(properties); + SetIamPolicyRegionNetworkFirewallPolicyRequest.create = function create(properties) { + return new SetIamPolicyRegionNetworkFirewallPolicyRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionNetworkFirewallPolicyRequest} message SetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionInstantSnapshotRequest.encode = function encode(message, writer) { + SetIamPolicyRegionNetworkFirewallPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1150813,33 +1171730,33 @@ }; /** - * Encodes the specified SetIamPolicyRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionNetworkFirewallPolicyRequest} message SetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} SetIamPolicyRegionNetworkFirewallPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionInstantSnapshotRequest.decode = function decode(reader, length, error) { + SetIamPolicyRegionNetworkFirewallPolicyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1150870,30 +1171787,30 @@ }; /** - * Decodes a SetIamPolicyRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyRegionNetworkFirewallPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} SetIamPolicyRegionNetworkFirewallPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionNetworkFirewallPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionInstantSnapshotRequest message. + * Verifies a SetIamPolicyRegionNetworkFirewallPolicyRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionInstantSnapshotRequest.verify = function verify(message) { + SetIamPolicyRegionNetworkFirewallPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1150914,24 +1171831,24 @@ }; /** - * Creates a SetIamPolicyRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionNetworkFirewallPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} SetIamPolicyRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} SetIamPolicyRegionNetworkFirewallPolicyRequest */ - SetIamPolicyRegionInstantSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest) + SetIamPolicyRegionNetworkFirewallPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest) return object; - var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest(); + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -1150940,15 +1171857,15 @@ }; /** - * Creates a plain object from a SetIamPolicyRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionNetworkFirewallPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @static - * @param {google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest} message SetIamPolicyRegionInstantSnapshotRequest + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} message SetIamPolicyRegionNetworkFirewallPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionNetworkFirewallPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1150970,55 +1171887,55 @@ }; /** - * Converts this SetIamPolicyRegionInstantSnapshotRequest to JSON. + * Converts this SetIamPolicyRegionNetworkFirewallPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionInstantSnapshotRequest + * Gets the default type url for SetIamPolicyRegionNetworkFirewallPolicyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionNetworkFirewallPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionInstantSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest"; }; - return SetIamPolicyRegionInstantSnapshotRequest; + return SetIamPolicyRegionNetworkFirewallPolicyRequest; })(); - v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest = (function() { + v1beta.SetIamPolicyRegionSnapshotRequest = (function() { /** - * Properties of a SetIamPolicyRegionNetworkFirewallPolicyRequest. + * Properties of a SetIamPolicyRegionSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @interface ISetIamPolicyRegionNetworkFirewallPolicyRequest - * @property {string|null} [project] SetIamPolicyRegionNetworkFirewallPolicyRequest project - * @property {string|null} [region] SetIamPolicyRegionNetworkFirewallPolicyRequest region - * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionNetworkFirewallPolicyRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionNetworkFirewallPolicyRequest resource + * @interface ISetIamPolicyRegionSnapshotRequest + * @property {string|null} [project] SetIamPolicyRegionSnapshotRequest project + * @property {string|null} [region] SetIamPolicyRegionSnapshotRequest region + * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionSnapshotRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyRegionSnapshotRequest resource */ /** - * Constructs a new SetIamPolicyRegionNetworkFirewallPolicyRequest. + * Constructs a new SetIamPolicyRegionSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a SetIamPolicyRegionNetworkFirewallPolicyRequest. - * @implements ISetIamPolicyRegionNetworkFirewallPolicyRequest + * @classdesc Represents a SetIamPolicyRegionSnapshotRequest. + * @implements ISetIamPolicyRegionSnapshotRequest * @constructor - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionSnapshotRequest=} [properties] Properties to set */ - function SetIamPolicyRegionNetworkFirewallPolicyRequest(properties) { + function SetIamPolicyRegionSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1151026,59 +1171943,59 @@ } /** - * SetIamPolicyRegionNetworkFirewallPolicyRequest project. + * SetIamPolicyRegionSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @instance */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.project = ""; + SetIamPolicyRegionSnapshotRequest.prototype.project = ""; /** - * SetIamPolicyRegionNetworkFirewallPolicyRequest region. + * SetIamPolicyRegionSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @instance */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.region = ""; + SetIamPolicyRegionSnapshotRequest.prototype.region = ""; /** - * SetIamPolicyRegionNetworkFirewallPolicyRequest regionSetPolicyRequestResource. + * SetIamPolicyRegionSnapshotRequest regionSetPolicyRequestResource. * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @instance */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyRegionSnapshotRequest.prototype.regionSetPolicyRequestResource = null; /** - * SetIamPolicyRegionNetworkFirewallPolicyRequest resource. + * SetIamPolicyRegionSnapshotRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @instance */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.resource = ""; + SetIamPolicyRegionSnapshotRequest.prototype.resource = ""; /** - * Creates a new SetIamPolicyRegionNetworkFirewallPolicyRequest instance using the specified properties. + * Creates a new SetIamPolicyRegionSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionNetworkFirewallPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} SetIamPolicyRegionNetworkFirewallPolicyRequest instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest instance */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.create = function create(properties) { - return new SetIamPolicyRegionNetworkFirewallPolicyRequest(properties); + SetIamPolicyRegionSnapshotRequest.create = function create(properties) { + return new SetIamPolicyRegionSnapshotRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionNetworkFirewallPolicyRequest} message SetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionSnapshotRequest} message SetIamPolicyRegionSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.encode = function encode(message, writer) { + SetIamPolicyRegionSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1151093,33 +1172010,33 @@ }; /** - * Encodes the specified SetIamPolicyRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionNetworkFirewallPolicyRequest} message SetIamPolicyRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionSnapshotRequest} message SetIamPolicyRegionSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyRegionSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} SetIamPolicyRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.decode = function decode(reader, length, error) { + SetIamPolicyRegionSnapshotRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1151150,30 +1172067,30 @@ }; /** - * Decodes a SetIamPolicyRegionNetworkFirewallPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyRegionSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} SetIamPolicyRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionNetworkFirewallPolicyRequest message. + * Verifies a SetIamPolicyRegionSnapshotRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.verify = function verify(message) { + SetIamPolicyRegionSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1151194,24 +1172111,24 @@ }; /** - * Creates a SetIamPolicyRegionNetworkFirewallPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} SetIamPolicyRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest) + SetIamPolicyRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest) return object; - var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest(); + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) message.region = String(object.region); if (object.regionSetPolicyRequestResource != null) { if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest.regionSetPolicyRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest.regionSetPolicyRequestResource: object expected"); message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); } if (object.resource != null) @@ -1151220,15 +1172137,15 @@ }; /** - * Creates a plain object from a SetIamPolicyRegionNetworkFirewallPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyRegionSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest} message SetIamPolicyRegionNetworkFirewallPolicyRequest + * @param {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} message SetIamPolicyRegionSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.toObject = function toObject(message, options) { + SetIamPolicyRegionSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1151250,55 +1172167,56 @@ }; /** - * Converts this SetIamPolicyRegionNetworkFirewallPolicyRequest to JSON. + * Converts this SetIamPolicyRegionSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.prototype.toJSON = function toJSON() { + SetIamPolicyRegionSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionNetworkFirewallPolicyRequest + * Gets the default type url for SetIamPolicyRegionSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionNetworkFirewallPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionNetworkFirewallPolicyRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest"; }; - return SetIamPolicyRegionNetworkFirewallPolicyRequest; + return SetIamPolicyRegionSnapshotRequest; })(); - v1beta.SetIamPolicyRegionSnapshotRequest = (function() { + v1beta.SetIamPolicyReservationBlockRequest = (function() { /** - * Properties of a SetIamPolicyRegionSnapshotRequest. + * Properties of a SetIamPolicyReservationBlockRequest. * @memberof google.cloud.compute.v1beta - * @interface ISetIamPolicyRegionSnapshotRequest - * @property {string|null} [project] SetIamPolicyRegionSnapshotRequest project - * @property {string|null} [region] SetIamPolicyRegionSnapshotRequest region - * @property {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyRegionSnapshotRequest regionSetPolicyRequestResource - * @property {string|null} [resource] SetIamPolicyRegionSnapshotRequest resource + * @interface ISetIamPolicyReservationBlockRequest + * @property {string|null} [parentResource] SetIamPolicyReservationBlockRequest parentResource + * @property {string|null} [project] SetIamPolicyReservationBlockRequest project + * @property {string|null} [resource] SetIamPolicyReservationBlockRequest resource + * @property {string|null} [zone] SetIamPolicyReservationBlockRequest zone + * @property {google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest|null} [zoneSetNestedPolicyRequestResource] SetIamPolicyReservationBlockRequest zoneSetNestedPolicyRequestResource */ /** - * Constructs a new SetIamPolicyRegionSnapshotRequest. + * Constructs a new SetIamPolicyReservationBlockRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a SetIamPolicyRegionSnapshotRequest. - * @implements ISetIamPolicyRegionSnapshotRequest + * @classdesc Represents a SetIamPolicyReservationBlockRequest. + * @implements ISetIamPolicyReservationBlockRequest * @constructor - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest=} [properties] Properties to set */ - function SetIamPolicyRegionSnapshotRequest(properties) { + function SetIamPolicyReservationBlockRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1151306,119 +1172224,133 @@ } /** - * SetIamPolicyRegionSnapshotRequest project. + * SetIamPolicyReservationBlockRequest parentResource. + * @member {string} parentResource + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest + * @instance + */ + SetIamPolicyReservationBlockRequest.prototype.parentResource = ""; + + /** + * SetIamPolicyReservationBlockRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @instance */ - SetIamPolicyRegionSnapshotRequest.prototype.project = ""; + SetIamPolicyReservationBlockRequest.prototype.project = ""; /** - * SetIamPolicyRegionSnapshotRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * SetIamPolicyReservationBlockRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @instance */ - SetIamPolicyRegionSnapshotRequest.prototype.region = ""; + SetIamPolicyReservationBlockRequest.prototype.resource = ""; /** - * SetIamPolicyRegionSnapshotRequest regionSetPolicyRequestResource. - * @member {google.cloud.compute.v1beta.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * SetIamPolicyReservationBlockRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @instance */ - SetIamPolicyRegionSnapshotRequest.prototype.regionSetPolicyRequestResource = null; + SetIamPolicyReservationBlockRequest.prototype.zone = ""; /** - * SetIamPolicyRegionSnapshotRequest resource. - * @member {string} resource - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * SetIamPolicyReservationBlockRequest zoneSetNestedPolicyRequestResource. + * @member {google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest|null|undefined} zoneSetNestedPolicyRequestResource + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @instance */ - SetIamPolicyRegionSnapshotRequest.prototype.resource = ""; + SetIamPolicyReservationBlockRequest.prototype.zoneSetNestedPolicyRequestResource = null; /** - * Creates a new SetIamPolicyRegionSnapshotRequest instance using the specified properties. + * Creates a new SetIamPolicyReservationBlockRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest} SetIamPolicyReservationBlockRequest instance */ - SetIamPolicyRegionSnapshotRequest.create = function create(properties) { - return new SetIamPolicyRegionSnapshotRequest(properties); + SetIamPolicyReservationBlockRequest.create = function create(properties) { + return new SetIamPolicyReservationBlockRequest(properties); }; /** - * Encodes the specified SetIamPolicyRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyReservationBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionSnapshotRequest} message SetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest} message SetIamPolicyReservationBlockRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionSnapshotRequest.encode = function encode(message, writer) { + SetIamPolicyReservationBlockRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.parentResource != null && Object.hasOwnProperty.call(message, "parentResource")) + writer.uint32(/* id 18091011, wireType 2 =*/144728090).string(message.parentResource); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); - if (message.regionSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "regionSetPolicyRequestResource")) - $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.encode(message.regionSetPolicyRequestResource, writer.uint32(/* id 276489091, wireType 2 =*/2211912730).fork()).ldelim(); + if (message.zoneSetNestedPolicyRequestResource != null && Object.hasOwnProperty.call(message, "zoneSetNestedPolicyRequestResource")) + $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.encode(message.zoneSetNestedPolicyRequestResource, writer.uint32(/* id 266352851, wireType 2 =*/2130822810).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetIamPolicyRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest.verify|verify} messages. + * Encodes the specified SetIamPolicyReservationBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @static - * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionSnapshotRequest} message SetIamPolicyRegionSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest} message SetIamPolicyReservationBlockRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetIamPolicyRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetIamPolicyReservationBlockRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetIamPolicyRegionSnapshotRequest message from the specified reader or buffer. + * Decodes a SetIamPolicyReservationBlockRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest} SetIamPolicyReservationBlockRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionSnapshotRequest.decode = function decode(reader, length, error) { + SetIamPolicyReservationBlockRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 18091011: { + message.parentResource = reader.string(); + break; + } case 227560217: { message.project = reader.string(); break; } - case 138946292: { - message.region = reader.string(); + case 195806222: { + message.resource = reader.string(); break; } - case 276489091: { - message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.decode(reader, reader.uint32()); + case 3744684: { + message.zone = reader.string(); break; } - case 195806222: { - message.resource = reader.string(); + case 266352851: { + message.zoneSetNestedPolicyRequestResource = $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.decode(reader, reader.uint32()); break; } default: @@ -1151430,132 +1172362,140 @@ }; /** - * Decodes a SetIamPolicyRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a SetIamPolicyReservationBlockRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest} SetIamPolicyReservationBlockRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetIamPolicyRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + SetIamPolicyReservationBlockRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetIamPolicyRegionSnapshotRequest message. + * Verifies a SetIamPolicyReservationBlockRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetIamPolicyRegionSnapshotRequest.verify = function verify(message) { + SetIamPolicyReservationBlockRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + if (!$util.isString(message.parentResource)) + return "parentResource: string expected"; if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; - if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) { - var error = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.verify(message.regionSetPolicyRequestResource); - if (error) - return "regionSetPolicyRequestResource." + error; - } if (message.resource != null && message.hasOwnProperty("resource")) if (!$util.isString(message.resource)) return "resource: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.zoneSetNestedPolicyRequestResource != null && message.hasOwnProperty("zoneSetNestedPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.verify(message.zoneSetNestedPolicyRequestResource); + if (error) + return "zoneSetNestedPolicyRequestResource." + error; + } return null; }; /** - * Creates a SetIamPolicyRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetIamPolicyReservationBlockRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} SetIamPolicyRegionSnapshotRequest + * @returns {google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest} SetIamPolicyReservationBlockRequest */ - SetIamPolicyRegionSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest) + SetIamPolicyReservationBlockRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest) return object; - var message = new $root.google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest(); + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest(); + if (object.parentResource != null) + message.parentResource = String(object.parentResource); if (object.project != null) message.project = String(object.project); - if (object.region != null) - message.region = String(object.region); - if (object.regionSetPolicyRequestResource != null) { - if (typeof object.regionSetPolicyRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest.regionSetPolicyRequestResource: object expected"); - message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); - } if (object.resource != null) message.resource = String(object.resource); + if (object.zone != null) + message.zone = String(object.zone); + if (object.zoneSetNestedPolicyRequestResource != null) { + if (typeof object.zoneSetNestedPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest.zoneSetNestedPolicyRequestResource: object expected"); + message.zoneSetNestedPolicyRequestResource = $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.fromObject(object.zoneSetNestedPolicyRequestResource); + } return message; }; /** - * Creates a plain object from a SetIamPolicyRegionSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetIamPolicyReservationBlockRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @static - * @param {google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest} message SetIamPolicyRegionSnapshotRequest + * @param {google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest} message SetIamPolicyReservationBlockRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetIamPolicyRegionSnapshotRequest.toObject = function toObject(message, options) { + SetIamPolicyReservationBlockRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.region = ""; + object.zone = ""; + object.parentResource = ""; object.resource = ""; object.project = ""; - object.regionSetPolicyRequestResource = null; + object.zoneSetNestedPolicyRequestResource = null; } - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + object.parentResource = message.parentResource; if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; - if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) - object.regionSetPolicyRequestResource = $root.google.cloud.compute.v1beta.RegionSetPolicyRequest.toObject(message.regionSetPolicyRequestResource, options); + if (message.zoneSetNestedPolicyRequestResource != null && message.hasOwnProperty("zoneSetNestedPolicyRequestResource")) + object.zoneSetNestedPolicyRequestResource = $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.toObject(message.zoneSetNestedPolicyRequestResource, options); return object; }; /** - * Converts this SetIamPolicyRegionSnapshotRequest to JSON. + * Converts this SetIamPolicyReservationBlockRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @instance * @returns {Object.} JSON object */ - SetIamPolicyRegionSnapshotRequest.prototype.toJSON = function toJSON() { + SetIamPolicyReservationBlockRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SetIamPolicyRegionSnapshotRequest + * Gets the default type url for SetIamPolicyReservationBlockRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SetIamPolicyRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetIamPolicyReservationBlockRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyRegionSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest"; }; - return SetIamPolicyRegionSnapshotRequest; + return SetIamPolicyReservationBlockRequest; })(); v1beta.SetIamPolicyReservationRequest = (function() { @@ -1151838,6 +1172778,309 @@ return SetIamPolicyReservationRequest; })(); + v1beta.SetIamPolicyReservationSubBlockRequest = (function() { + + /** + * Properties of a SetIamPolicyReservationSubBlockRequest. + * @memberof google.cloud.compute.v1beta + * @interface ISetIamPolicyReservationSubBlockRequest + * @property {string|null} [parentResource] SetIamPolicyReservationSubBlockRequest parentResource + * @property {string|null} [project] SetIamPolicyReservationSubBlockRequest project + * @property {string|null} [resource] SetIamPolicyReservationSubBlockRequest resource + * @property {string|null} [zone] SetIamPolicyReservationSubBlockRequest zone + * @property {google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest|null} [zoneSetNestedPolicyRequestResource] SetIamPolicyReservationSubBlockRequest zoneSetNestedPolicyRequestResource + */ + + /** + * Constructs a new SetIamPolicyReservationSubBlockRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a SetIamPolicyReservationSubBlockRequest. + * @implements ISetIamPolicyReservationSubBlockRequest + * @constructor + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest=} [properties] Properties to set + */ + function SetIamPolicyReservationSubBlockRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SetIamPolicyReservationSubBlockRequest parentResource. + * @member {string} parentResource + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @instance + */ + SetIamPolicyReservationSubBlockRequest.prototype.parentResource = ""; + + /** + * SetIamPolicyReservationSubBlockRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @instance + */ + SetIamPolicyReservationSubBlockRequest.prototype.project = ""; + + /** + * SetIamPolicyReservationSubBlockRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @instance + */ + SetIamPolicyReservationSubBlockRequest.prototype.resource = ""; + + /** + * SetIamPolicyReservationSubBlockRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @instance + */ + SetIamPolicyReservationSubBlockRequest.prototype.zone = ""; + + /** + * SetIamPolicyReservationSubBlockRequest zoneSetNestedPolicyRequestResource. + * @member {google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest|null|undefined} zoneSetNestedPolicyRequestResource + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @instance + */ + SetIamPolicyReservationSubBlockRequest.prototype.zoneSetNestedPolicyRequestResource = null; + + /** + * Creates a new SetIamPolicyReservationSubBlockRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest} SetIamPolicyReservationSubBlockRequest instance + */ + SetIamPolicyReservationSubBlockRequest.create = function create(properties) { + return new SetIamPolicyReservationSubBlockRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest} message SetIamPolicyReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyReservationSubBlockRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.parentResource != null && Object.hasOwnProperty.call(message, "parentResource")) + writer.uint32(/* id 18091011, wireType 2 =*/144728090).string(message.parentResource); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.zoneSetNestedPolicyRequestResource != null && Object.hasOwnProperty.call(message, "zoneSetNestedPolicyRequestResource")) + $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.encode(message.zoneSetNestedPolicyRequestResource, writer.uint32(/* id 266352851, wireType 2 =*/2130822810).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest} message SetIamPolicyReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyReservationSubBlockRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyReservationSubBlockRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest} SetIamPolicyReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyReservationSubBlockRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 18091011: { + message.parentResource = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + case 266352851: { + message.zoneSetNestedPolicyRequestResource = $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest} SetIamPolicyReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyReservationSubBlockRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyReservationSubBlockRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyReservationSubBlockRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + if (!$util.isString(message.parentResource)) + return "parentResource: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.zoneSetNestedPolicyRequestResource != null && message.hasOwnProperty("zoneSetNestedPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.verify(message.zoneSetNestedPolicyRequestResource); + if (error) + return "zoneSetNestedPolicyRequestResource." + error; + } + return null; + }; + + /** + * Creates a SetIamPolicyReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest} SetIamPolicyReservationSubBlockRequest + */ + SetIamPolicyReservationSubBlockRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest(); + if (object.parentResource != null) + message.parentResource = String(object.parentResource); + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + if (object.zone != null) + message.zone = String(object.zone); + if (object.zoneSetNestedPolicyRequestResource != null) { + if (typeof object.zoneSetNestedPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest.zoneSetNestedPolicyRequestResource: object expected"); + message.zoneSetNestedPolicyRequestResource = $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.fromObject(object.zoneSetNestedPolicyRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyReservationSubBlockRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest} message SetIamPolicyReservationSubBlockRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyReservationSubBlockRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.parentResource = ""; + object.resource = ""; + object.project = ""; + object.zoneSetNestedPolicyRequestResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + object.parentResource = message.parentResource; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.zoneSetNestedPolicyRequestResource != null && message.hasOwnProperty("zoneSetNestedPolicyRequestResource")) + object.zoneSetNestedPolicyRequestResource = $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.toObject(message.zoneSetNestedPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyReservationSubBlockRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyReservationSubBlockRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyReservationSubBlockRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyReservationSubBlockRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest"; + }; + + return SetIamPolicyReservationSubBlockRequest; + })(); + v1beta.SetIamPolicyResourcePolicyRequest = (function() { /** @@ -1172262,6 +1193505,8 @@ * Properties of a ShieldedInstanceIdentity. * @memberof google.cloud.compute.v1beta * @interface IShieldedInstanceIdentity + * @property {google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null} [eccP256EncryptionKey] ShieldedInstanceIdentity eccP256EncryptionKey + * @property {google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null} [eccP256SigningKey] ShieldedInstanceIdentity eccP256SigningKey * @property {google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null} [encryptionKey] ShieldedInstanceIdentity encryptionKey * @property {string|null} [kind] ShieldedInstanceIdentity kind * @property {google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null} [signingKey] ShieldedInstanceIdentity signingKey @@ -1172282,6 +1193527,22 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ShieldedInstanceIdentity eccP256EncryptionKey. + * @member {google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null|undefined} eccP256EncryptionKey + * @memberof google.cloud.compute.v1beta.ShieldedInstanceIdentity + * @instance + */ + ShieldedInstanceIdentity.prototype.eccP256EncryptionKey = null; + + /** + * ShieldedInstanceIdentity eccP256SigningKey. + * @member {google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null|undefined} eccP256SigningKey + * @memberof google.cloud.compute.v1beta.ShieldedInstanceIdentity + * @instance + */ + ShieldedInstanceIdentity.prototype.eccP256SigningKey = null; + /** * ShieldedInstanceIdentity encryptionKey. * @member {google.cloud.compute.v1beta.IShieldedInstanceIdentityEntry|null|undefined} encryptionKey @@ -1172309,6 +1193570,18 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(ShieldedInstanceIdentity.prototype, "_eccP256EncryptionKey", { + get: $util.oneOfGetter($oneOfFields = ["eccP256EncryptionKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ShieldedInstanceIdentity.prototype, "_eccP256SigningKey", { + get: $util.oneOfGetter($oneOfFields = ["eccP256SigningKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ShieldedInstanceIdentity.prototype, "_encryptionKey", { get: $util.oneOfGetter($oneOfFields = ["encryptionKey"]), @@ -1172355,6 +1193628,10 @@ writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); if (message.signingKey != null && Object.hasOwnProperty.call(message, "signingKey")) $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.encode(message.signingKey, writer.uint32(/* id 320948261, wireType 2 =*/2567586090).fork()).ldelim(); + if (message.eccP256EncryptionKey != null && Object.hasOwnProperty.call(message, "eccP256EncryptionKey")) + $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.encode(message.eccP256EncryptionKey, writer.uint32(/* id 469607365, wireType 2 =*/3756858922).fork()).ldelim(); + if (message.eccP256SigningKey != null && Object.hasOwnProperty.call(message, "eccP256SigningKey")) + $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.encode(message.eccP256SigningKey, writer.uint32(/* id 477678403, wireType 2 =*/3821427226).fork()).ldelim(); if (message.encryptionKey != null && Object.hasOwnProperty.call(message, "encryptionKey")) $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.encode(message.encryptionKey, writer.uint32(/* id 488268707, wireType 2 =*/3906149658).fork()).ldelim(); return writer; @@ -1172393,6 +1193670,14 @@ if (tag === error) break; switch (tag >>> 3) { + case 469607365: { + message.eccP256EncryptionKey = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.decode(reader, reader.uint32()); + break; + } + case 477678403: { + message.eccP256SigningKey = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.decode(reader, reader.uint32()); + break; + } case 488268707: { message.encryptionKey = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.decode(reader, reader.uint32()); break; @@ -1172441,6 +1193726,22 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.eccP256EncryptionKey != null && message.hasOwnProperty("eccP256EncryptionKey")) { + properties._eccP256EncryptionKey = 1; + { + var error = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.verify(message.eccP256EncryptionKey); + if (error) + return "eccP256EncryptionKey." + error; + } + } + if (message.eccP256SigningKey != null && message.hasOwnProperty("eccP256SigningKey")) { + properties._eccP256SigningKey = 1; + { + var error = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.verify(message.eccP256SigningKey); + if (error) + return "eccP256SigningKey." + error; + } + } if (message.encryptionKey != null && message.hasOwnProperty("encryptionKey")) { properties._encryptionKey = 1; { @@ -1172477,6 +1193778,16 @@ if (object instanceof $root.google.cloud.compute.v1beta.ShieldedInstanceIdentity) return object; var message = new $root.google.cloud.compute.v1beta.ShieldedInstanceIdentity(); + if (object.eccP256EncryptionKey != null) { + if (typeof object.eccP256EncryptionKey !== "object") + throw TypeError(".google.cloud.compute.v1beta.ShieldedInstanceIdentity.eccP256EncryptionKey: object expected"); + message.eccP256EncryptionKey = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.fromObject(object.eccP256EncryptionKey); + } + if (object.eccP256SigningKey != null) { + if (typeof object.eccP256SigningKey !== "object") + throw TypeError(".google.cloud.compute.v1beta.ShieldedInstanceIdentity.eccP256SigningKey: object expected"); + message.eccP256SigningKey = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.fromObject(object.eccP256SigningKey); + } if (object.encryptionKey != null) { if (typeof object.encryptionKey !== "object") throw TypeError(".google.cloud.compute.v1beta.ShieldedInstanceIdentity.encryptionKey: object expected"); @@ -1172515,6 +1193826,16 @@ if (options.oneofs) object._signingKey = "signingKey"; } + if (message.eccP256EncryptionKey != null && message.hasOwnProperty("eccP256EncryptionKey")) { + object.eccP256EncryptionKey = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.toObject(message.eccP256EncryptionKey, options); + if (options.oneofs) + object._eccP256EncryptionKey = "eccP256EncryptionKey"; + } + if (message.eccP256SigningKey != null && message.hasOwnProperty("eccP256SigningKey")) { + object.eccP256SigningKey = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.toObject(message.eccP256SigningKey, options); + if (options.oneofs) + object._eccP256SigningKey = "eccP256SigningKey"; + } if (message.encryptionKey != null && message.hasOwnProperty("encryptionKey")) { object.encryptionKey = $root.google.cloud.compute.v1beta.ShieldedInstanceIdentityEntry.toObject(message.encryptionKey, options); if (options.oneofs) @@ -1185149,6 +1206470,7 @@ * @property {number} TLS_1_0=33116734 TLS_1_0 value * @property {number} TLS_1_1=33116735 TLS_1_1 value * @property {number} TLS_1_2=33116736 TLS_1_2 value + * @property {number} TLS_1_3=33116737 TLS_1_3 value */ SslPolicy.MinTlsVersion = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -1185156,6 +1206478,7 @@ values[valuesById[33116734] = "TLS_1_0"] = 33116734; values[valuesById[33116735] = "TLS_1_1"] = 33116735; values[valuesById[33116736] = "TLS_1_2"] = 33116736; + values[valuesById[33116737] = "TLS_1_3"] = 33116737; return values; })(); @@ -1185166,6 +1206489,7 @@ * @property {number} UNDEFINED_PROFILE=0 UNDEFINED_PROFILE value * @property {number} COMPATIBLE=179357396 COMPATIBLE value * @property {number} CUSTOM=388595569 CUSTOM value + * @property {number} FIPS_202205=475828188 FIPS_202205 value * @property {number} MODERN=132013855 MODERN value * @property {number} RESTRICTED=261551195 RESTRICTED value */ @@ -1185174,6 +1206498,7 @@ values[valuesById[0] = "UNDEFINED_PROFILE"] = 0; values[valuesById[179357396] = "COMPATIBLE"] = 179357396; values[valuesById[388595569] = "CUSTOM"] = 388595569; + values[valuesById[475828188] = "FIPS_202205"] = 475828188; values[valuesById[132013855] = "MODERN"] = 132013855; values[valuesById[261551195] = "RESTRICTED"] = 261551195; return values; @@ -1229277,55 +1250602,1175 @@ }; /** - * Converts this TestIamPermissionsPacketMirroringRequest to JSON. + * Converts this TestIamPermissionsPacketMirroringRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsPacketMirroringRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsPacketMirroringRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsPacketMirroringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest"; + }; + + return TestIamPermissionsPacketMirroringRequest; + })(); + + v1beta.TestIamPermissionsRegionAutoscalerRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionAutoscalerRequest. + * @memberof google.cloud.compute.v1beta + * @interface ITestIamPermissionsRegionAutoscalerRequest + * @property {string|null} [project] TestIamPermissionsRegionAutoscalerRequest project + * @property {string|null} [region] TestIamPermissionsRegionAutoscalerRequest region + * @property {string|null} [resource] TestIamPermissionsRegionAutoscalerRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionAutoscalerRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a TestIamPermissionsRegionAutoscalerRequest. + * @implements ITestIamPermissionsRegionAutoscalerRequest + * @constructor + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionAutoscalerRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsRegionAutoscalerRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionAutoscalerRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionAutoscalerRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionAutoscalerRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest instance + */ + TestIamPermissionsRegionAutoscalerRequest.create = function create(properties) { + return new TestIamPermissionsRegionAutoscalerRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionAutoscalerRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1beta.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionAutoscalerRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionAutoscalerRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionAutoscalerRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionAutoscalerRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsRegionAutoscalerRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1beta.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsRegionAutoscalerRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + */ + TestIamPermissionsRegionAutoscalerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionAutoscalerRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionAutoscalerRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsRegionAutoscalerRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsRegionAutoscalerRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsRegionAutoscalerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest"; + }; + + return TestIamPermissionsRegionAutoscalerRequest; + })(); + + v1beta.TestIamPermissionsRegionBackendBucketRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @interface ITestIamPermissionsRegionBackendBucketRequest + * @property {string|null} [project] TestIamPermissionsRegionBackendBucketRequest project + * @property {string|null} [region] TestIamPermissionsRegionBackendBucketRequest region + * @property {string|null} [resource] TestIamPermissionsRegionBackendBucketRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionBackendBucketRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a TestIamPermissionsRegionBackendBucketRequest. + * @implements ITestIamPermissionsRegionBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionBackendBucketRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsRegionBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @instance + */ + TestIamPermissionsRegionBackendBucketRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionBackendBucketRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @instance + */ + TestIamPermissionsRegionBackendBucketRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionBackendBucketRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @instance + */ + TestIamPermissionsRegionBackendBucketRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionBackendBucketRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @instance + */ + TestIamPermissionsRegionBackendBucketRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest instance + */ + TestIamPermissionsRegionBackendBucketRequest.create = function create(properties) { + return new TestIamPermissionsRegionBackendBucketRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionBackendBucketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1beta.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionBackendBucketRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionBackendBucketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionBackendBucketRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsRegionBackendBucketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1beta.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsRegionBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} TestIamPermissionsRegionBackendBucketRequest + */ + TestIamPermissionsRegionBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionBackendBucketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @static + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest} message TestIamPermissionsRegionBackendBucketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionBackendBucketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsRegionBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsRegionBackendBucketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsRegionBackendBucketRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsRegionBackendBucketRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest"; + }; + + return TestIamPermissionsRegionBackendBucketRequest; + })(); + + v1beta.TestIamPermissionsRegionBackendServiceRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1beta + * @interface ITestIamPermissionsRegionBackendServiceRequest + * @property {string|null} [project] TestIamPermissionsRegionBackendServiceRequest project + * @property {string|null} [region] TestIamPermissionsRegionBackendServiceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionBackendServiceRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a TestIamPermissionsRegionBackendServiceRequest. + * @implements ITestIamPermissionsRegionBackendServiceRequest + * @constructor + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionBackendServiceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsRegionBackendServiceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @instance + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionBackendServiceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @instance + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionBackendServiceRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @instance + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @instance + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionBackendServiceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest instance + */ + TestIamPermissionsRegionBackendServiceRequest.create = function create(properties) { + return new TestIamPermissionsRegionBackendServiceRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionBackendServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1beta.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionBackendServiceRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionBackendServiceRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsRegionBackendServiceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1beta.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + */ + TestIamPermissionsRegionBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionBackendServiceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionBackendServiceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsRegionBackendServiceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest"; + }; + + return TestIamPermissionsRegionBackendServiceRequest; + })(); + + v1beta.TestIamPermissionsRegionCommitmentRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionCommitmentRequest. + * @memberof google.cloud.compute.v1beta + * @interface ITestIamPermissionsRegionCommitmentRequest + * @property {string|null} [project] TestIamPermissionsRegionCommitmentRequest project + * @property {string|null} [region] TestIamPermissionsRegionCommitmentRequest region + * @property {string|null} [resource] TestIamPermissionsRegionCommitmentRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCommitmentRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionCommitmentRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a TestIamPermissionsRegionCommitmentRequest. + * @implements ITestIamPermissionsRegionCommitmentRequest + * @constructor + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionCommitmentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsRegionCommitmentRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @instance + */ + TestIamPermissionsRegionCommitmentRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionCommitmentRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @instance + */ + TestIamPermissionsRegionCommitmentRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionCommitmentRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @instance + */ + TestIamPermissionsRegionCommitmentRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionCommitmentRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @instance + */ + TestIamPermissionsRegionCommitmentRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionCommitmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest instance + */ + TestIamPermissionsRegionCommitmentRequest.create = function create(properties) { + return new TestIamPermissionsRegionCommitmentRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionCommitmentRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionCommitmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1beta.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionCommitmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionCommitmentRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionCommitmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionCommitmentRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsRegionCommitmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1beta.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest + */ + TestIamPermissionsRegionCommitmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionCommitmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @static + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionCommitmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsRegionCommitmentRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsPacketMirroringRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionCommitmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsPacketMirroringRequest + * Gets the default type url for TestIamPermissionsRegionCommitmentRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsPacketMirroringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsPacketMirroringRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest"; }; - return TestIamPermissionsPacketMirroringRequest; + return TestIamPermissionsRegionCommitmentRequest; })(); - v1beta.TestIamPermissionsRegionAutoscalerRequest = (function() { + v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest = (function() { /** - * Properties of a TestIamPermissionsRegionAutoscalerRequest. + * Properties of a TestIamPermissionsRegionCompositeHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionAutoscalerRequest - * @property {string|null} [project] TestIamPermissionsRegionAutoscalerRequest project - * @property {string|null} [region] TestIamPermissionsRegionAutoscalerRequest region - * @property {string|null} [resource] TestIamPermissionsRegionAutoscalerRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionCompositeHealthCheckRequest + * @property {string|null} [project] TestIamPermissionsRegionCompositeHealthCheckRequest project + * @property {string|null} [region] TestIamPermissionsRegionCompositeHealthCheckRequest region + * @property {string|null} [resource] TestIamPermissionsRegionCompositeHealthCheckRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionAutoscalerRequest. + * Constructs a new TestIamPermissionsRegionCompositeHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionAutoscalerRequest. - * @implements ITestIamPermissionsRegionAutoscalerRequest + * @classdesc Represents a TestIamPermissionsRegionCompositeHealthCheckRequest. + * @implements ITestIamPermissionsRegionCompositeHealthCheckRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionAutoscalerRequest(properties) { + function TestIamPermissionsRegionCompositeHealthCheckRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1229333,59 +1251778,59 @@ } /** - * TestIamPermissionsRegionAutoscalerRequest project. + * TestIamPermissionsRegionCompositeHealthCheckRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.project = ""; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.project = ""; /** - * TestIamPermissionsRegionAutoscalerRequest region. + * TestIamPermissionsRegionCompositeHealthCheckRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.region = ""; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.region = ""; /** - * TestIamPermissionsRegionAutoscalerRequest resource. + * TestIamPermissionsRegionCompositeHealthCheckRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.resource = ""; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource. + * TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionAutoscalerRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionCompositeHealthCheckRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest instance */ - TestIamPermissionsRegionAutoscalerRequest.create = function create(properties) { - return new TestIamPermissionsRegionAutoscalerRequest(properties); + TestIamPermissionsRegionCompositeHealthCheckRequest.create = function create(properties) { + return new TestIamPermissionsRegionCompositeHealthCheckRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionAutoscalerRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionCompositeHealthCheckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1229400,33 +1251845,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionAutoscalerRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionAutoscalerRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionCompositeHealthCheckRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1229457,30 +1251902,30 @@ }; /** - * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionAutoscalerRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionAutoscalerRequest message. + * Verifies a TestIamPermissionsRegionCompositeHealthCheckRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionAutoscalerRequest.verify = function verify(message) { + TestIamPermissionsRegionCompositeHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1229501,17 +1251946,17 @@ }; /** - * Creates a TestIamPermissionsRegionAutoscalerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest */ - TestIamPermissionsRegionAutoscalerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest) + TestIamPermissionsRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1229520,22 +1251965,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionAutoscalerRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionAutoscalerRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1229557,55 +1252002,55 @@ }; /** - * Converts this TestIamPermissionsRegionAutoscalerRequest to JSON. + * Converts this TestIamPermissionsRegionCompositeHealthCheckRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionAutoscalerRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionAutoscalerRequest + * Gets the default type url for TestIamPermissionsRegionCompositeHealthCheckRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionAutoscalerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionAutoscalerRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest"; }; - return TestIamPermissionsRegionAutoscalerRequest; + return TestIamPermissionsRegionCompositeHealthCheckRequest; })(); - v1beta.TestIamPermissionsRegionBackendServiceRequest = (function() { + v1beta.TestIamPermissionsRegionDiskRequest = (function() { /** - * Properties of a TestIamPermissionsRegionBackendServiceRequest. + * Properties of a TestIamPermissionsRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionBackendServiceRequest - * @property {string|null} [project] TestIamPermissionsRegionBackendServiceRequest project - * @property {string|null} [region] TestIamPermissionsRegionBackendServiceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionBackendServiceRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionDiskRequest + * @property {string|null} [project] TestIamPermissionsRegionDiskRequest project + * @property {string|null} [region] TestIamPermissionsRegionDiskRequest region + * @property {string|null} [resource] TestIamPermissionsRegionDiskRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionDiskRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionBackendServiceRequest. + * Constructs a new TestIamPermissionsRegionDiskRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionBackendServiceRequest. - * @implements ITestIamPermissionsRegionBackendServiceRequest + * @classdesc Represents a TestIamPermissionsRegionDiskRequest. + * @implements ITestIamPermissionsRegionDiskRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionBackendServiceRequest(properties) { + function TestIamPermissionsRegionDiskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1229613,59 +1252058,59 @@ } /** - * TestIamPermissionsRegionBackendServiceRequest project. + * TestIamPermissionsRegionDiskRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.project = ""; + TestIamPermissionsRegionDiskRequest.prototype.project = ""; /** - * TestIamPermissionsRegionBackendServiceRequest region. + * TestIamPermissionsRegionDiskRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.region = ""; + TestIamPermissionsRegionDiskRequest.prototype.region = ""; /** - * TestIamPermissionsRegionBackendServiceRequest resource. + * TestIamPermissionsRegionDiskRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.resource = ""; + TestIamPermissionsRegionDiskRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionDiskRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionDiskRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionBackendServiceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionDiskRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest instance */ - TestIamPermissionsRegionBackendServiceRequest.create = function create(properties) { - return new TestIamPermissionsRegionBackendServiceRequest(properties); + TestIamPermissionsRegionDiskRequest.create = function create(properties) { + return new TestIamPermissionsRegionDiskRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendServiceRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionDiskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1229680,33 +1252125,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionBackendServiceRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionDiskRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1229737,30 +1252182,30 @@ }; /** - * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionBackendServiceRequest message. + * Verifies a TestIamPermissionsRegionDiskRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionBackendServiceRequest.verify = function verify(message) { + TestIamPermissionsRegionDiskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1229781,17 +1252226,17 @@ }; /** - * Creates a TestIamPermissionsRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionDiskRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest */ - TestIamPermissionsRegionBackendServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest) + TestIamPermissionsRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1229800,22 +1252245,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionBackendServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionDiskRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionBackendServiceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1229837,55 +1252282,55 @@ }; /** - * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. + * Converts this TestIamPermissionsRegionDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionBackendServiceRequest + * Gets the default type url for TestIamPermissionsRegionDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest"; }; - return TestIamPermissionsRegionBackendServiceRequest; + return TestIamPermissionsRegionDiskRequest; })(); - v1beta.TestIamPermissionsRegionCommitmentRequest = (function() { + v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest = (function() { /** - * Properties of a TestIamPermissionsRegionCommitmentRequest. + * Properties of a TestIamPermissionsRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionCommitmentRequest - * @property {string|null} [project] TestIamPermissionsRegionCommitmentRequest project - * @property {string|null} [region] TestIamPermissionsRegionCommitmentRequest region - * @property {string|null} [resource] TestIamPermissionsRegionCommitmentRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCommitmentRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthAggregationPolicyRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthAggregationPolicyRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthAggregationPolicyRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionCommitmentRequest. + * Constructs a new TestIamPermissionsRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionCommitmentRequest. - * @implements ITestIamPermissionsRegionCommitmentRequest + * @classdesc Represents a TestIamPermissionsRegionHealthAggregationPolicyRequest. + * @implements ITestIamPermissionsRegionHealthAggregationPolicyRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionCommitmentRequest(properties) { + function TestIamPermissionsRegionHealthAggregationPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1229893,59 +1252338,59 @@ } /** - * TestIamPermissionsRegionCommitmentRequest project. + * TestIamPermissionsRegionHealthAggregationPolicyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionCommitmentRequest.prototype.project = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.project = ""; /** - * TestIamPermissionsRegionCommitmentRequest region. + * TestIamPermissionsRegionHealthAggregationPolicyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionCommitmentRequest.prototype.region = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.region = ""; /** - * TestIamPermissionsRegionCommitmentRequest resource. + * TestIamPermissionsRegionHealthAggregationPolicyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionCommitmentRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionCommitmentRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionCommitmentRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionCommitmentRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthAggregationPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest instance */ - TestIamPermissionsRegionCommitmentRequest.create = function create(properties) { - return new TestIamPermissionsRegionCommitmentRequest(properties); + TestIamPermissionsRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthAggregationPolicyRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionCommitmentRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionCommitmentRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1229960,33 +1252405,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionCommitmentRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionCommitmentRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1230017,30 +1252462,30 @@ }; /** - * Decodes a TestIamPermissionsRegionCommitmentRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionCommitmentRequest message. + * Verifies a TestIamPermissionsRegionHealthAggregationPolicyRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionCommitmentRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1230061,17 +1252506,17 @@ }; /** - * Creates a TestIamPermissionsRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} TestIamPermissionsRegionCommitmentRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest */ - TestIamPermissionsRegionCommitmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest) + TestIamPermissionsRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1230080,22 +1252525,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionCommitmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest} message TestIamPermissionsRegionCommitmentRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionCommitmentRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1230117,55 +1252562,55 @@ }; /** - * Converts this TestIamPermissionsRegionCommitmentRequest to JSON. + * Converts this TestIamPermissionsRegionHealthAggregationPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionCommitmentRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionCommitmentRequest + * Gets the default type url for TestIamPermissionsRegionHealthAggregationPolicyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionCommitmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionCommitmentRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest"; }; - return TestIamPermissionsRegionCommitmentRequest; + return TestIamPermissionsRegionHealthAggregationPolicyRequest; })(); - v1beta.TestIamPermissionsRegionDiskRequest = (function() { + v1beta.TestIamPermissionsRegionHealthCheckRequest = (function() { /** - * Properties of a TestIamPermissionsRegionDiskRequest. + * Properties of a TestIamPermissionsRegionHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionDiskRequest - * @property {string|null} [project] TestIamPermissionsRegionDiskRequest project - * @property {string|null} [region] TestIamPermissionsRegionDiskRequest region - * @property {string|null} [resource] TestIamPermissionsRegionDiskRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionDiskRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthCheckRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthCheckRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthCheckRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionDiskRequest. + * Constructs a new TestIamPermissionsRegionHealthCheckRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionDiskRequest. - * @implements ITestIamPermissionsRegionDiskRequest + * @classdesc Represents a TestIamPermissionsRegionHealthCheckRequest. + * @implements ITestIamPermissionsRegionHealthCheckRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionDiskRequest(properties) { + function TestIamPermissionsRegionHealthCheckRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1230173,59 +1252618,59 @@ } /** - * TestIamPermissionsRegionDiskRequest project. + * TestIamPermissionsRegionHealthCheckRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.project = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.project = ""; /** - * TestIamPermissionsRegionDiskRequest region. + * TestIamPermissionsRegionHealthCheckRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.region = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.region = ""; /** - * TestIamPermissionsRegionDiskRequest resource. + * TestIamPermissionsRegionHealthCheckRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionDiskRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthCheckRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionDiskRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthCheckRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest instance */ - TestIamPermissionsRegionDiskRequest.create = function create(properties) { - return new TestIamPermissionsRegionDiskRequest(properties); + TestIamPermissionsRegionHealthCheckRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthCheckRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionDiskRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthCheckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1230240,33 +1252685,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionDiskRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthCheckRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1230297,30 +1252742,30 @@ }; /** - * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionDiskRequest message. + * Verifies a TestIamPermissionsRegionHealthCheckRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionDiskRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1230341,17 +1252786,17 @@ }; /** - * Creates a TestIamPermissionsRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest */ - TestIamPermissionsRegionDiskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest) + TestIamPermissionsRegionHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1230360,22 +1252805,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionDiskRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionDiskRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthCheckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1230397,55 +1252842,55 @@ }; /** - * Converts this TestIamPermissionsRegionDiskRequest to JSON. + * Converts this TestIamPermissionsRegionHealthCheckRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionDiskRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthCheckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionDiskRequest + * Gets the default type url for TestIamPermissionsRegionHealthCheckRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionDiskRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest"; }; - return TestIamPermissionsRegionDiskRequest; + return TestIamPermissionsRegionHealthCheckRequest; })(); - v1beta.TestIamPermissionsRegionHealthCheckRequest = (function() { + v1beta.TestIamPermissionsRegionHealthCheckServiceRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthCheckRequest. + * Properties of a TestIamPermissionsRegionHealthCheckServiceRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionHealthCheckRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthCheckRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthCheckRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthCheckServiceRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthCheckServiceRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthCheckServiceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckServiceRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthCheckRequest. + * Constructs a new TestIamPermissionsRegionHealthCheckServiceRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionHealthCheckRequest. - * @implements ITestIamPermissionsRegionHealthCheckRequest + * @classdesc Represents a TestIamPermissionsRegionHealthCheckServiceRequest. + * @implements ITestIamPermissionsRegionHealthCheckServiceRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthCheckRequest(properties) { + function TestIamPermissionsRegionHealthCheckServiceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1230453,59 +1252898,59 @@ } /** - * TestIamPermissionsRegionHealthCheckRequest project. + * TestIamPermissionsRegionHealthCheckServiceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.project = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthCheckRequest region. + * TestIamPermissionsRegionHealthCheckServiceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.region = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthCheckRequest resource. + * TestIamPermissionsRegionHealthCheckServiceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthCheckRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthCheckServiceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest instance */ - TestIamPermissionsRegionHealthCheckRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthCheckRequest(properties); + TestIamPermissionsRegionHealthCheckServiceRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthCheckServiceRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthCheckServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1230520,33 +1252965,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthCheckServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthCheckServiceRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1230577,30 +1253022,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthCheckServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthCheckRequest message. + * Verifies a TestIamPermissionsRegionHealthCheckServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionHealthCheckRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthCheckServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1230621,17 +1253066,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthCheckServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest */ - TestIamPermissionsRegionHealthCheckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest) + TestIamPermissionsRegionHealthCheckServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1230640,22 +1253085,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionHealthCheckRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthCheckServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthCheckRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthCheckServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1230677,55 +1253122,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthCheckRequest to JSON. + * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthCheckRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthCheckRequest + * Gets the default type url for TestIamPermissionsRegionHealthCheckServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthCheckServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest"; }; - return TestIamPermissionsRegionHealthCheckRequest; + return TestIamPermissionsRegionHealthCheckServiceRequest; })(); - v1beta.TestIamPermissionsRegionHealthCheckServiceRequest = (function() { + v1beta.TestIamPermissionsRegionHealthSourceRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthCheckServiceRequest. + * Properties of a TestIamPermissionsRegionHealthSourceRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionHealthCheckServiceRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthCheckServiceRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthCheckServiceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckServiceRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthSourceRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthSourceRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthSourceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthSourceRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthCheckServiceRequest. + * Constructs a new TestIamPermissionsRegionHealthSourceRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionHealthCheckServiceRequest. - * @implements ITestIamPermissionsRegionHealthCheckServiceRequest + * @classdesc Represents a TestIamPermissionsRegionHealthSourceRequest. + * @implements ITestIamPermissionsRegionHealthSourceRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthCheckServiceRequest(properties) { + function TestIamPermissionsRegionHealthSourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1230733,59 +1253178,59 @@ } /** - * TestIamPermissionsRegionHealthCheckServiceRequest project. + * TestIamPermissionsRegionHealthSourceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.project = ""; + TestIamPermissionsRegionHealthSourceRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthCheckServiceRequest region. + * TestIamPermissionsRegionHealthSourceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.region = ""; + TestIamPermissionsRegionHealthSourceRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthCheckServiceRequest resource. + * TestIamPermissionsRegionHealthSourceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthSourceRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthSourceRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthCheckServiceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthSourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest instance */ - TestIamPermissionsRegionHealthCheckServiceRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthCheckServiceRequest(properties); + TestIamPermissionsRegionHealthSourceRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthSourceRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckServiceRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthSourceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1230800,33 +1253245,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckServiceRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthSourceRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1230857,30 +1253302,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckServiceRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthCheckServiceRequest message. + * Verifies a TestIamPermissionsRegionHealthSourceRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionHealthCheckServiceRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthSourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1230901,17 +1253346,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthCheckServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest */ - TestIamPermissionsRegionHealthCheckServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest) + TestIamPermissionsRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1230920,22 +1253365,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionHealthCheckServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthSourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthCheckServiceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthSourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1230957,55 +1253402,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. + * Converts this TestIamPermissionsRegionHealthSourceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthSourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthCheckServiceRequest + * Gets the default type url for TestIamPermissionsRegionHealthSourceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthCheckServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthCheckServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest"; }; - return TestIamPermissionsRegionHealthCheckServiceRequest; + return TestIamPermissionsRegionHealthSourceRequest; })(); - v1beta.TestIamPermissionsRegionHealthSourceRequest = (function() { + v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthSourceRequest. + * Properties of a TestIamPermissionsRegionInstanceGroupManagerRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionHealthSourceRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthSourceRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthSourceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthSourceRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionInstanceGroupManagerRequest + * @property {string|null} [project] TestIamPermissionsRegionInstanceGroupManagerRequest project + * @property {string|null} [region] TestIamPermissionsRegionInstanceGroupManagerRequest region + * @property {string|null} [resource] TestIamPermissionsRegionInstanceGroupManagerRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupManagerRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthSourceRequest. + * Constructs a new TestIamPermissionsRegionInstanceGroupManagerRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionHealthSourceRequest. - * @implements ITestIamPermissionsRegionHealthSourceRequest + * @classdesc Represents a TestIamPermissionsRegionInstanceGroupManagerRequest. + * @implements ITestIamPermissionsRegionInstanceGroupManagerRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthSourceRequest(properties) { + function TestIamPermissionsRegionInstanceGroupManagerRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1231013,59 +1253458,59 @@ } /** - * TestIamPermissionsRegionHealthSourceRequest project. + * TestIamPermissionsRegionInstanceGroupManagerRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.project = ""; + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthSourceRequest region. + * TestIamPermissionsRegionInstanceGroupManagerRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.region = ""; + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthSourceRequest resource. + * TestIamPermissionsRegionInstanceGroupManagerRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.resource = ""; + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionInstanceGroupManagerRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance */ - TestIamPermissionsRegionHealthSourceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthSourceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionInstanceGroupManagerRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest instance */ - TestIamPermissionsRegionHealthSourceRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthSourceRequest(properties); + TestIamPermissionsRegionInstanceGroupManagerRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstanceGroupManagerRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupManagerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthSourceRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionInstanceGroupManagerRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1231080,33 +1253525,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupManagerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionInstanceGroupManagerRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionInstanceGroupManagerRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthSourceRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionInstanceGroupManagerRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1231137,30 +1253582,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionInstanceGroupManagerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthSourceRequest message. + * Verifies a TestIamPermissionsRegionInstanceGroupManagerRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionHealthSourceRequest.verify = function verify(message) { + TestIamPermissionsRegionInstanceGroupManagerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1231181,17 +1253626,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest */ - TestIamPermissionsRegionHealthSourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest) + TestIamPermissionsRegionInstanceGroupManagerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1231200,22 +1253645,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionHealthSourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionInstanceGroupManagerRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthSourceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionInstanceGroupManagerRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1231237,55 +1253682,55 @@ }; /** - * Converts this TestIamPermissionsRegionHealthSourceRequest to JSON. + * Converts this TestIamPermissionsRegionInstanceGroupManagerRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthSourceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthSourceRequest + * Gets the default type url for TestIamPermissionsRegionInstanceGroupManagerRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionInstanceGroupManagerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionHealthSourceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest"; }; - return TestIamPermissionsRegionHealthSourceRequest; + return TestIamPermissionsRegionInstanceGroupManagerRequest; })(); - v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest = (function() { + v1beta.TestIamPermissionsRegionInstanceGroupRequest = (function() { /** - * Properties of a TestIamPermissionsRegionInstanceGroupManagerRequest. + * Properties of a TestIamPermissionsRegionInstanceGroupRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionInstanceGroupManagerRequest - * @property {string|null} [project] TestIamPermissionsRegionInstanceGroupManagerRequest project - * @property {string|null} [region] TestIamPermissionsRegionInstanceGroupManagerRequest region - * @property {string|null} [resource] TestIamPermissionsRegionInstanceGroupManagerRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupManagerRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionInstanceGroupRequest + * @property {string|null} [project] TestIamPermissionsRegionInstanceGroupRequest project + * @property {string|null} [region] TestIamPermissionsRegionInstanceGroupRequest region + * @property {string|null} [resource] TestIamPermissionsRegionInstanceGroupRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionInstanceGroupManagerRequest. + * Constructs a new TestIamPermissionsRegionInstanceGroupRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionInstanceGroupManagerRequest. - * @implements ITestIamPermissionsRegionInstanceGroupManagerRequest + * @classdesc Represents a TestIamPermissionsRegionInstanceGroupRequest. + * @implements ITestIamPermissionsRegionInstanceGroupRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionInstanceGroupManagerRequest(properties) { + function TestIamPermissionsRegionInstanceGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1231293,59 +1253738,59 @@ } /** - * TestIamPermissionsRegionInstanceGroupManagerRequest project. + * TestIamPermissionsRegionInstanceGroupRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.project = ""; + TestIamPermissionsRegionInstanceGroupRequest.prototype.project = ""; /** - * TestIamPermissionsRegionInstanceGroupManagerRequest region. + * TestIamPermissionsRegionInstanceGroupRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.region = ""; + TestIamPermissionsRegionInstanceGroupRequest.prototype.region = ""; /** - * TestIamPermissionsRegionInstanceGroupManagerRequest resource. + * TestIamPermissionsRegionInstanceGroupRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.resource = ""; + TestIamPermissionsRegionInstanceGroupRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionInstanceGroupManagerRequest testPermissionsRequestResource. + * TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionInstanceGroupRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionInstanceGroupManagerRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionInstanceGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest instance */ - TestIamPermissionsRegionInstanceGroupManagerRequest.create = function create(properties) { - return new TestIamPermissionsRegionInstanceGroupManagerRequest(properties); + TestIamPermissionsRegionInstanceGroupRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstanceGroupRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupManagerRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupManagerRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionInstanceGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1231360,33 +1253805,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupManagerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupManagerRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionInstanceGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupManagerRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstanceGroupManagerRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionInstanceGroupRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1231417,30 +1253862,30 @@ }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupManagerRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstanceGroupManagerRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionInstanceGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionInstanceGroupManagerRequest message. + * Verifies a TestIamPermissionsRegionInstanceGroupRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionInstanceGroupManagerRequest.verify = function verify(message) { + TestIamPermissionsRegionInstanceGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1231461,17 +1253906,17 @@ }; /** - * Creates a TestIamPermissionsRegionInstanceGroupManagerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionInstanceGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} TestIamPermissionsRegionInstanceGroupManagerRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest */ - TestIamPermissionsRegionInstanceGroupManagerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest) + TestIamPermissionsRegionInstanceGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1231480,22 +1253925,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionInstanceGroupManagerRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionInstanceGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest} message TestIamPermissionsRegionInstanceGroupManagerRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionInstanceGroupManagerRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionInstanceGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1231517,55 +1253962,55 @@ }; /** - * Converts this TestIamPermissionsRegionInstanceGroupManagerRequest to JSON. + * Converts this TestIamPermissionsRegionInstanceGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionInstanceGroupManagerRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionInstanceGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionInstanceGroupManagerRequest + * Gets the default type url for TestIamPermissionsRegionInstanceGroupRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionInstanceGroupManagerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionInstanceGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupManagerRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest"; }; - return TestIamPermissionsRegionInstanceGroupManagerRequest; + return TestIamPermissionsRegionInstanceGroupRequest; })(); - v1beta.TestIamPermissionsRegionInstanceGroupRequest = (function() { + v1beta.TestIamPermissionsRegionInstantSnapshotRequest = (function() { /** - * Properties of a TestIamPermissionsRegionInstanceGroupRequest. + * Properties of a TestIamPermissionsRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionInstanceGroupRequest - * @property {string|null} [project] TestIamPermissionsRegionInstanceGroupRequest project - * @property {string|null} [region] TestIamPermissionsRegionInstanceGroupRequest region - * @property {string|null} [resource] TestIamPermissionsRegionInstanceGroupRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionInstantSnapshotRequest + * @property {string|null} [project] TestIamPermissionsRegionInstantSnapshotRequest project + * @property {string|null} [region] TestIamPermissionsRegionInstantSnapshotRequest region + * @property {string|null} [resource] TestIamPermissionsRegionInstantSnapshotRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionInstanceGroupRequest. + * Constructs a new TestIamPermissionsRegionInstantSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionInstanceGroupRequest. - * @implements ITestIamPermissionsRegionInstanceGroupRequest + * @classdesc Represents a TestIamPermissionsRegionInstantSnapshotRequest. + * @implements ITestIamPermissionsRegionInstantSnapshotRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionInstanceGroupRequest(properties) { + function TestIamPermissionsRegionInstantSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1231573,59 +1254018,59 @@ } /** - * TestIamPermissionsRegionInstanceGroupRequest project. + * TestIamPermissionsRegionInstantSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.project = ""; + TestIamPermissionsRegionInstantSnapshotRequest.prototype.project = ""; /** - * TestIamPermissionsRegionInstanceGroupRequest region. + * TestIamPermissionsRegionInstantSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.region = ""; + TestIamPermissionsRegionInstantSnapshotRequest.prototype.region = ""; /** - * TestIamPermissionsRegionInstanceGroupRequest resource. + * TestIamPermissionsRegionInstantSnapshotRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.resource = ""; + TestIamPermissionsRegionInstantSnapshotRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionInstanceGroupRequest testPermissionsRequestResource. + * TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @instance */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionInstantSnapshotRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionInstanceGroupRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionInstantSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest instance */ - TestIamPermissionsRegionInstanceGroupRequest.create = function create(properties) { - return new TestIamPermissionsRegionInstanceGroupRequest(properties); + TestIamPermissionsRegionInstantSnapshotRequest.create = function create(properties) { + return new TestIamPermissionsRegionInstantSnapshotRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionInstantSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1231640,33 +1254085,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionInstanceGroupRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstanceGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstanceGroupRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionInstantSnapshotRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1231697,30 +1254142,30 @@ }; /** - * Decodes a TestIamPermissionsRegionInstanceGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstanceGroupRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionInstanceGroupRequest message. + * Verifies a TestIamPermissionsRegionInstantSnapshotRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionInstanceGroupRequest.verify = function verify(message) { + TestIamPermissionsRegionInstantSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1231741,17 +1254186,17 @@ }; /** - * Creates a TestIamPermissionsRegionInstanceGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} TestIamPermissionsRegionInstanceGroupRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest */ - TestIamPermissionsRegionInstanceGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest) + TestIamPermissionsRegionInstantSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1231760,22 +1254205,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionInstanceGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionInstantSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest} message TestIamPermissionsRegionInstanceGroupRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionInstanceGroupRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionInstantSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1231797,55 +1254242,55 @@ }; /** - * Converts this TestIamPermissionsRegionInstanceGroupRequest to JSON. + * Converts this TestIamPermissionsRegionInstantSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionInstanceGroupRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionInstanceGroupRequest + * Gets the default type url for TestIamPermissionsRegionInstantSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionInstanceGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstanceGroupRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest"; }; - return TestIamPermissionsRegionInstanceGroupRequest; + return TestIamPermissionsRegionInstantSnapshotRequest; })(); - v1beta.TestIamPermissionsRegionInstantSnapshotRequest = (function() { + v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest = (function() { /** - * Properties of a TestIamPermissionsRegionInstantSnapshotRequest. + * Properties of a TestIamPermissionsRegionNetworkFirewallPolicyRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionInstantSnapshotRequest - * @property {string|null} [project] TestIamPermissionsRegionInstantSnapshotRequest project - * @property {string|null} [region] TestIamPermissionsRegionInstantSnapshotRequest region - * @property {string|null} [resource] TestIamPermissionsRegionInstantSnapshotRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionNetworkFirewallPolicyRequest + * @property {string|null} [project] TestIamPermissionsRegionNetworkFirewallPolicyRequest project + * @property {string|null} [region] TestIamPermissionsRegionNetworkFirewallPolicyRequest region + * @property {string|null} [resource] TestIamPermissionsRegionNetworkFirewallPolicyRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionNetworkFirewallPolicyRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionInstantSnapshotRequest. + * Constructs a new TestIamPermissionsRegionNetworkFirewallPolicyRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionInstantSnapshotRequest. - * @implements ITestIamPermissionsRegionInstantSnapshotRequest + * @classdesc Represents a TestIamPermissionsRegionNetworkFirewallPolicyRequest. + * @implements ITestIamPermissionsRegionNetworkFirewallPolicyRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNetworkFirewallPolicyRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionInstantSnapshotRequest(properties) { + function TestIamPermissionsRegionNetworkFirewallPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1231853,59 +1254298,59 @@ } /** - * TestIamPermissionsRegionInstantSnapshotRequest project. + * TestIamPermissionsRegionNetworkFirewallPolicyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @instance */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.project = ""; + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.project = ""; /** - * TestIamPermissionsRegionInstantSnapshotRequest region. + * TestIamPermissionsRegionNetworkFirewallPolicyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @instance */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.region = ""; + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.region = ""; /** - * TestIamPermissionsRegionInstantSnapshotRequest resource. + * TestIamPermissionsRegionNetworkFirewallPolicyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @instance */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.resource = ""; + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionInstantSnapshotRequest testPermissionsRequestResource. + * TestIamPermissionsRegionNetworkFirewallPolicyRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @instance */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionInstantSnapshotRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionNetworkFirewallPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest instance */ - TestIamPermissionsRegionInstantSnapshotRequest.create = function create(properties) { - return new TestIamPermissionsRegionInstantSnapshotRequest(properties); + TestIamPermissionsRegionNetworkFirewallPolicyRequest.create = function create(properties) { + return new TestIamPermissionsRegionNetworkFirewallPolicyRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstantSnapshotRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionNetworkFirewallPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1231920,33 +1254365,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionInstantSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionInstantSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstantSnapshotRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionNetworkFirewallPolicyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1231977,30 +1254422,30 @@ }; /** - * Decodes a TestIamPermissionsRegionInstantSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionInstantSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionNetworkFirewallPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionInstantSnapshotRequest message. + * Verifies a TestIamPermissionsRegionNetworkFirewallPolicyRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionInstantSnapshotRequest.verify = function verify(message) { + TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1232021,17 +1254466,17 @@ }; /** - * Creates a TestIamPermissionsRegionInstantSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} TestIamPermissionsRegionInstantSnapshotRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest */ - TestIamPermissionsRegionInstantSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest) + TestIamPermissionsRegionNetworkFirewallPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1232040,22 +1254485,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionInstantSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionNetworkFirewallPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest} message TestIamPermissionsRegionInstantSnapshotRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionInstantSnapshotRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionNetworkFirewallPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1232077,55 +1254522,55 @@ }; /** - * Converts this TestIamPermissionsRegionInstantSnapshotRequest to JSON. + * Converts this TestIamPermissionsRegionNetworkFirewallPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionInstantSnapshotRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionInstantSnapshotRequest + * Gets the default type url for TestIamPermissionsRegionNetworkFirewallPolicyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionInstantSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionNetworkFirewallPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionInstantSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest"; }; - return TestIamPermissionsRegionInstantSnapshotRequest; + return TestIamPermissionsRegionNetworkFirewallPolicyRequest; })(); - v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest = (function() { + v1beta.TestIamPermissionsRegionNotificationEndpointRequest = (function() { /** - * Properties of a TestIamPermissionsRegionNetworkFirewallPolicyRequest. + * Properties of a TestIamPermissionsRegionNotificationEndpointRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionNetworkFirewallPolicyRequest - * @property {string|null} [project] TestIamPermissionsRegionNetworkFirewallPolicyRequest project - * @property {string|null} [region] TestIamPermissionsRegionNetworkFirewallPolicyRequest region - * @property {string|null} [resource] TestIamPermissionsRegionNetworkFirewallPolicyRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionNetworkFirewallPolicyRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionNotificationEndpointRequest + * @property {string|null} [project] TestIamPermissionsRegionNotificationEndpointRequest project + * @property {string|null} [region] TestIamPermissionsRegionNotificationEndpointRequest region + * @property {string|null} [resource] TestIamPermissionsRegionNotificationEndpointRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionNotificationEndpointRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionNetworkFirewallPolicyRequest. + * Constructs a new TestIamPermissionsRegionNotificationEndpointRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionNetworkFirewallPolicyRequest. - * @implements ITestIamPermissionsRegionNetworkFirewallPolicyRequest + * @classdesc Represents a TestIamPermissionsRegionNotificationEndpointRequest. + * @implements ITestIamPermissionsRegionNotificationEndpointRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNetworkFirewallPolicyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNotificationEndpointRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionNetworkFirewallPolicyRequest(properties) { + function TestIamPermissionsRegionNotificationEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1232133,59 +1254578,59 @@ } /** - * TestIamPermissionsRegionNetworkFirewallPolicyRequest project. + * TestIamPermissionsRegionNotificationEndpointRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.project = ""; + TestIamPermissionsRegionNotificationEndpointRequest.prototype.project = ""; /** - * TestIamPermissionsRegionNetworkFirewallPolicyRequest region. + * TestIamPermissionsRegionNotificationEndpointRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.region = ""; + TestIamPermissionsRegionNotificationEndpointRequest.prototype.region = ""; /** - * TestIamPermissionsRegionNetworkFirewallPolicyRequest resource. + * TestIamPermissionsRegionNotificationEndpointRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.resource = ""; + TestIamPermissionsRegionNotificationEndpointRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionNetworkFirewallPolicyRequest testPermissionsRequestResource. + * TestIamPermissionsRegionNotificationEndpointRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionNotificationEndpointRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionNetworkFirewallPolicyRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionNotificationEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNetworkFirewallPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNotificationEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest instance */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.create = function create(properties) { - return new TestIamPermissionsRegionNetworkFirewallPolicyRequest(properties); + TestIamPermissionsRegionNotificationEndpointRequest.create = function create(properties) { + return new TestIamPermissionsRegionNotificationEndpointRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionNetworkFirewallPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionNotificationEndpointRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionNotificationEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1232200,33 +1254645,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionNetworkFirewallPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionNotificationEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionNotificationEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionNotificationEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionNotificationEndpointRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1232257,30 +1254702,30 @@ }; /** - * Decodes a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionNotificationEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionNotificationEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionNetworkFirewallPolicyRequest message. + * Verifies a TestIamPermissionsRegionNotificationEndpointRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.verify = function verify(message) { + TestIamPermissionsRegionNotificationEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1232301,17 +1254746,17 @@ }; /** - * Creates a TestIamPermissionsRegionNetworkFirewallPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionNotificationEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest) + TestIamPermissionsRegionNotificationEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1232320,22 +1254765,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionNetworkFirewallPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionNotificationEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest} message TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionNotificationEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1232357,55 +1254802,55 @@ }; /** - * Converts this TestIamPermissionsRegionNetworkFirewallPolicyRequest to JSON. + * Converts this TestIamPermissionsRegionNotificationEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionNotificationEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionNetworkFirewallPolicyRequest + * Gets the default type url for TestIamPermissionsRegionNotificationEndpointRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionNetworkFirewallPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionNotificationEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionNetworkFirewallPolicyRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest"; }; - return TestIamPermissionsRegionNetworkFirewallPolicyRequest; + return TestIamPermissionsRegionNotificationEndpointRequest; })(); - v1beta.TestIamPermissionsRegionNotificationEndpointRequest = (function() { + v1beta.TestIamPermissionsRegionSnapshotRequest = (function() { /** - * Properties of a TestIamPermissionsRegionNotificationEndpointRequest. + * Properties of a TestIamPermissionsRegionSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionNotificationEndpointRequest - * @property {string|null} [project] TestIamPermissionsRegionNotificationEndpointRequest project - * @property {string|null} [region] TestIamPermissionsRegionNotificationEndpointRequest region - * @property {string|null} [resource] TestIamPermissionsRegionNotificationEndpointRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionNotificationEndpointRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionSnapshotRequest + * @property {string|null} [project] TestIamPermissionsRegionSnapshotRequest project + * @property {string|null} [region] TestIamPermissionsRegionSnapshotRequest region + * @property {string|null} [resource] TestIamPermissionsRegionSnapshotRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionSnapshotRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionNotificationEndpointRequest. + * Constructs a new TestIamPermissionsRegionSnapshotRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionNotificationEndpointRequest. - * @implements ITestIamPermissionsRegionNotificationEndpointRequest + * @classdesc Represents a TestIamPermissionsRegionSnapshotRequest. + * @implements ITestIamPermissionsRegionSnapshotRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNotificationEndpointRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSnapshotRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionNotificationEndpointRequest(properties) { + function TestIamPermissionsRegionSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1232413,59 +1254858,59 @@ } /** - * TestIamPermissionsRegionNotificationEndpointRequest project. + * TestIamPermissionsRegionSnapshotRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @instance */ - TestIamPermissionsRegionNotificationEndpointRequest.prototype.project = ""; + TestIamPermissionsRegionSnapshotRequest.prototype.project = ""; /** - * TestIamPermissionsRegionNotificationEndpointRequest region. + * TestIamPermissionsRegionSnapshotRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @instance */ - TestIamPermissionsRegionNotificationEndpointRequest.prototype.region = ""; + TestIamPermissionsRegionSnapshotRequest.prototype.region = ""; /** - * TestIamPermissionsRegionNotificationEndpointRequest resource. + * TestIamPermissionsRegionSnapshotRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @instance */ - TestIamPermissionsRegionNotificationEndpointRequest.prototype.resource = ""; + TestIamPermissionsRegionSnapshotRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionNotificationEndpointRequest testPermissionsRequestResource. + * TestIamPermissionsRegionSnapshotRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @instance */ - TestIamPermissionsRegionNotificationEndpointRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionSnapshotRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionNotificationEndpointRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNotificationEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest instance */ - TestIamPermissionsRegionNotificationEndpointRequest.create = function create(properties) { - return new TestIamPermissionsRegionNotificationEndpointRequest(properties); + TestIamPermissionsRegionSnapshotRequest.create = function create(properties) { + return new TestIamPermissionsRegionSnapshotRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionNotificationEndpointRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSnapshotRequest} message TestIamPermissionsRegionSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionNotificationEndpointRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1232480,33 +1254925,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionNotificationEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSnapshotRequest} message TestIamPermissionsRegionSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionNotificationEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionNotificationEndpointRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionNotificationEndpointRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionSnapshotRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1232537,30 +1254982,30 @@ }; /** - * Decodes a TestIamPermissionsRegionNotificationEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionNotificationEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionNotificationEndpointRequest message. + * Verifies a TestIamPermissionsRegionSnapshotRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionNotificationEndpointRequest.verify = function verify(message) { + TestIamPermissionsRegionSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1232581,17 +1255026,17 @@ }; /** - * Creates a TestIamPermissionsRegionNotificationEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} TestIamPermissionsRegionNotificationEndpointRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest */ - TestIamPermissionsRegionNotificationEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest) + TestIamPermissionsRegionSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1232600,22 +1255045,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionNotificationEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest} message TestIamPermissionsRegionNotificationEndpointRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} message TestIamPermissionsRegionSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionNotificationEndpointRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1232637,55 +1255082,55 @@ }; /** - * Converts this TestIamPermissionsRegionNotificationEndpointRequest to JSON. + * Converts this TestIamPermissionsRegionSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionNotificationEndpointRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionNotificationEndpointRequest + * Gets the default type url for TestIamPermissionsRegionSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionNotificationEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionNotificationEndpointRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest"; }; - return TestIamPermissionsRegionNotificationEndpointRequest; + return TestIamPermissionsRegionSnapshotRequest; })(); - v1beta.TestIamPermissionsRegionSnapshotRequest = (function() { + v1beta.TestIamPermissionsRegionSslCertificateRequest = (function() { /** - * Properties of a TestIamPermissionsRegionSnapshotRequest. + * Properties of a TestIamPermissionsRegionSslCertificateRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionSnapshotRequest - * @property {string|null} [project] TestIamPermissionsRegionSnapshotRequest project - * @property {string|null} [region] TestIamPermissionsRegionSnapshotRequest region - * @property {string|null} [resource] TestIamPermissionsRegionSnapshotRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionSnapshotRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionSslCertificateRequest + * @property {string|null} [project] TestIamPermissionsRegionSslCertificateRequest project + * @property {string|null} [region] TestIamPermissionsRegionSslCertificateRequest region + * @property {string|null} [resource] TestIamPermissionsRegionSslCertificateRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionSslCertificateRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionSnapshotRequest. + * Constructs a new TestIamPermissionsRegionSslCertificateRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionSnapshotRequest. - * @implements ITestIamPermissionsRegionSnapshotRequest + * @classdesc Represents a TestIamPermissionsRegionSslCertificateRequest. + * @implements ITestIamPermissionsRegionSslCertificateRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslCertificateRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionSnapshotRequest(properties) { + function TestIamPermissionsRegionSslCertificateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1232693,59 +1255138,59 @@ } /** - * TestIamPermissionsRegionSnapshotRequest project. + * TestIamPermissionsRegionSslCertificateRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @instance */ - TestIamPermissionsRegionSnapshotRequest.prototype.project = ""; + TestIamPermissionsRegionSslCertificateRequest.prototype.project = ""; /** - * TestIamPermissionsRegionSnapshotRequest region. + * TestIamPermissionsRegionSslCertificateRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @instance */ - TestIamPermissionsRegionSnapshotRequest.prototype.region = ""; + TestIamPermissionsRegionSslCertificateRequest.prototype.region = ""; /** - * TestIamPermissionsRegionSnapshotRequest resource. + * TestIamPermissionsRegionSslCertificateRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @instance */ - TestIamPermissionsRegionSnapshotRequest.prototype.resource = ""; + TestIamPermissionsRegionSslCertificateRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionSnapshotRequest testPermissionsRequestResource. + * TestIamPermissionsRegionSslCertificateRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @instance */ - TestIamPermissionsRegionSnapshotRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionSslCertificateRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionSnapshotRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionSslCertificateRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslCertificateRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} TestIamPermissionsRegionSslCertificateRequest instance */ - TestIamPermissionsRegionSnapshotRequest.create = function create(properties) { - return new TestIamPermissionsRegionSnapshotRequest(properties); + TestIamPermissionsRegionSslCertificateRequest.create = function create(properties) { + return new TestIamPermissionsRegionSslCertificateRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionSslCertificateRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSnapshotRequest} message TestIamPermissionsRegionSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslCertificateRequest} message TestIamPermissionsRegionSslCertificateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionSnapshotRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionSslCertificateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1232760,33 +1255205,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionSslCertificateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSnapshotRequest} message TestIamPermissionsRegionSnapshotRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslCertificateRequest} message TestIamPermissionsRegionSslCertificateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionSslCertificateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionSnapshotRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionSslCertificateRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} TestIamPermissionsRegionSslCertificateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionSnapshotRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionSslCertificateRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1232817,30 +1255262,30 @@ }; /** - * Decodes a TestIamPermissionsRegionSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionSslCertificateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} TestIamPermissionsRegionSslCertificateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionSslCertificateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionSnapshotRequest message. + * Verifies a TestIamPermissionsRegionSslCertificateRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionSnapshotRequest.verify = function verify(message) { + TestIamPermissionsRegionSslCertificateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1232861,17 +1255306,17 @@ }; /** - * Creates a TestIamPermissionsRegionSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionSslCertificateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} TestIamPermissionsRegionSnapshotRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} TestIamPermissionsRegionSslCertificateRequest */ - TestIamPermissionsRegionSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest) + TestIamPermissionsRegionSslCertificateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1232880,22 +1255325,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionSslCertificateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest} message TestIamPermissionsRegionSnapshotRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} message TestIamPermissionsRegionSslCertificateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionSnapshotRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionSslCertificateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1232917,55 +1255362,55 @@ }; /** - * Converts this TestIamPermissionsRegionSnapshotRequest to JSON. + * Converts this TestIamPermissionsRegionSslCertificateRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionSnapshotRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionSslCertificateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionSnapshotRequest + * Gets the default type url for TestIamPermissionsRegionSslCertificateRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionSslCertificateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest"; }; - return TestIamPermissionsRegionSnapshotRequest; + return TestIamPermissionsRegionSslCertificateRequest; })(); - v1beta.TestIamPermissionsRegionSslCertificateRequest = (function() { + v1beta.TestIamPermissionsRegionSslPolicyRequest = (function() { /** - * Properties of a TestIamPermissionsRegionSslCertificateRequest. + * Properties of a TestIamPermissionsRegionSslPolicyRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionSslCertificateRequest - * @property {string|null} [project] TestIamPermissionsRegionSslCertificateRequest project - * @property {string|null} [region] TestIamPermissionsRegionSslCertificateRequest region - * @property {string|null} [resource] TestIamPermissionsRegionSslCertificateRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionSslCertificateRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionSslPolicyRequest + * @property {string|null} [project] TestIamPermissionsRegionSslPolicyRequest project + * @property {string|null} [region] TestIamPermissionsRegionSslPolicyRequest region + * @property {string|null} [resource] TestIamPermissionsRegionSslPolicyRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionSslPolicyRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionSslCertificateRequest. + * Constructs a new TestIamPermissionsRegionSslPolicyRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionSslCertificateRequest. - * @implements ITestIamPermissionsRegionSslCertificateRequest + * @classdesc Represents a TestIamPermissionsRegionSslPolicyRequest. + * @implements ITestIamPermissionsRegionSslPolicyRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslCertificateRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslPolicyRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionSslCertificateRequest(properties) { + function TestIamPermissionsRegionSslPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1232973,59 +1255418,59 @@ } /** - * TestIamPermissionsRegionSslCertificateRequest project. + * TestIamPermissionsRegionSslPolicyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @instance */ - TestIamPermissionsRegionSslCertificateRequest.prototype.project = ""; + TestIamPermissionsRegionSslPolicyRequest.prototype.project = ""; /** - * TestIamPermissionsRegionSslCertificateRequest region. + * TestIamPermissionsRegionSslPolicyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @instance */ - TestIamPermissionsRegionSslCertificateRequest.prototype.region = ""; + TestIamPermissionsRegionSslPolicyRequest.prototype.region = ""; /** - * TestIamPermissionsRegionSslCertificateRequest resource. + * TestIamPermissionsRegionSslPolicyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @instance */ - TestIamPermissionsRegionSslCertificateRequest.prototype.resource = ""; + TestIamPermissionsRegionSslPolicyRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionSslCertificateRequest testPermissionsRequestResource. + * TestIamPermissionsRegionSslPolicyRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @instance */ - TestIamPermissionsRegionSslCertificateRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionSslPolicyRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionSslCertificateRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionSslPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslCertificateRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} TestIamPermissionsRegionSslCertificateRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} TestIamPermissionsRegionSslPolicyRequest instance */ - TestIamPermissionsRegionSslCertificateRequest.create = function create(properties) { - return new TestIamPermissionsRegionSslCertificateRequest(properties); + TestIamPermissionsRegionSslPolicyRequest.create = function create(properties) { + return new TestIamPermissionsRegionSslPolicyRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionSslCertificateRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionSslPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslCertificateRequest} message TestIamPermissionsRegionSslCertificateRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslPolicyRequest} message TestIamPermissionsRegionSslPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionSslCertificateRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionSslPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1233040,33 +1255485,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionSslCertificateRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionSslPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslCertificateRequest} message TestIamPermissionsRegionSslCertificateRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslPolicyRequest} message TestIamPermissionsRegionSslPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionSslCertificateRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionSslPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionSslCertificateRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionSslPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} TestIamPermissionsRegionSslCertificateRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} TestIamPermissionsRegionSslPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionSslCertificateRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionSslPolicyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1233097,30 +1255542,30 @@ }; /** - * Decodes a TestIamPermissionsRegionSslCertificateRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionSslPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} TestIamPermissionsRegionSslCertificateRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} TestIamPermissionsRegionSslPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionSslCertificateRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionSslPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionSslCertificateRequest message. + * Verifies a TestIamPermissionsRegionSslPolicyRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionSslCertificateRequest.verify = function verify(message) { + TestIamPermissionsRegionSslPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1233141,17 +1255586,17 @@ }; /** - * Creates a TestIamPermissionsRegionSslCertificateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionSslPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} TestIamPermissionsRegionSslCertificateRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} TestIamPermissionsRegionSslPolicyRequest */ - TestIamPermissionsRegionSslCertificateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest) + TestIamPermissionsRegionSslPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1233160,22 +1255605,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionSslCertificateRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionSslPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest} message TestIamPermissionsRegionSslCertificateRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} message TestIamPermissionsRegionSslPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionSslCertificateRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionSslPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1233197,55 +1255642,55 @@ }; /** - * Converts this TestIamPermissionsRegionSslCertificateRequest to JSON. + * Converts this TestIamPermissionsRegionSslPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionSslCertificateRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionSslPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionSslCertificateRequest + * Gets the default type url for TestIamPermissionsRegionSslPolicyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionSslCertificateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionSslPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionSslCertificateRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest"; }; - return TestIamPermissionsRegionSslCertificateRequest; + return TestIamPermissionsRegionSslPolicyRequest; })(); - v1beta.TestIamPermissionsRegionSslPolicyRequest = (function() { + v1beta.TestIamPermissionsRegionTargetHttpProxyRequest = (function() { /** - * Properties of a TestIamPermissionsRegionSslPolicyRequest. + * Properties of a TestIamPermissionsRegionTargetHttpProxyRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionSslPolicyRequest - * @property {string|null} [project] TestIamPermissionsRegionSslPolicyRequest project - * @property {string|null} [region] TestIamPermissionsRegionSslPolicyRequest region - * @property {string|null} [resource] TestIamPermissionsRegionSslPolicyRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionSslPolicyRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionTargetHttpProxyRequest + * @property {string|null} [project] TestIamPermissionsRegionTargetHttpProxyRequest project + * @property {string|null} [region] TestIamPermissionsRegionTargetHttpProxyRequest region + * @property {string|null} [resource] TestIamPermissionsRegionTargetHttpProxyRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionTargetHttpProxyRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionSslPolicyRequest. + * Constructs a new TestIamPermissionsRegionTargetHttpProxyRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionSslPolicyRequest. - * @implements ITestIamPermissionsRegionSslPolicyRequest + * @classdesc Represents a TestIamPermissionsRegionTargetHttpProxyRequest. + * @implements ITestIamPermissionsRegionTargetHttpProxyRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslPolicyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpProxyRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionSslPolicyRequest(properties) { + function TestIamPermissionsRegionTargetHttpProxyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1233253,59 +1255698,59 @@ } /** - * TestIamPermissionsRegionSslPolicyRequest project. + * TestIamPermissionsRegionTargetHttpProxyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @instance */ - TestIamPermissionsRegionSslPolicyRequest.prototype.project = ""; + TestIamPermissionsRegionTargetHttpProxyRequest.prototype.project = ""; /** - * TestIamPermissionsRegionSslPolicyRequest region. + * TestIamPermissionsRegionTargetHttpProxyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @instance */ - TestIamPermissionsRegionSslPolicyRequest.prototype.region = ""; + TestIamPermissionsRegionTargetHttpProxyRequest.prototype.region = ""; /** - * TestIamPermissionsRegionSslPolicyRequest resource. + * TestIamPermissionsRegionTargetHttpProxyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @instance */ - TestIamPermissionsRegionSslPolicyRequest.prototype.resource = ""; + TestIamPermissionsRegionTargetHttpProxyRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionSslPolicyRequest testPermissionsRequestResource. + * TestIamPermissionsRegionTargetHttpProxyRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @instance */ - TestIamPermissionsRegionSslPolicyRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionTargetHttpProxyRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionSslPolicyRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionTargetHttpProxyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} TestIamPermissionsRegionSslPolicyRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpProxyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} TestIamPermissionsRegionTargetHttpProxyRequest instance */ - TestIamPermissionsRegionSslPolicyRequest.create = function create(properties) { - return new TestIamPermissionsRegionSslPolicyRequest(properties); + TestIamPermissionsRegionTargetHttpProxyRequest.create = function create(properties) { + return new TestIamPermissionsRegionTargetHttpProxyRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionSslPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionTargetHttpProxyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslPolicyRequest} message TestIamPermissionsRegionSslPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpProxyRequest} message TestIamPermissionsRegionTargetHttpProxyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionSslPolicyRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionTargetHttpProxyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1233320,33 +1255765,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionSslPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionTargetHttpProxyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionSslPolicyRequest} message TestIamPermissionsRegionSslPolicyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpProxyRequest} message TestIamPermissionsRegionTargetHttpProxyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionSslPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionTargetHttpProxyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionSslPolicyRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionTargetHttpProxyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} TestIamPermissionsRegionSslPolicyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} TestIamPermissionsRegionTargetHttpProxyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionSslPolicyRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionTargetHttpProxyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1233377,30 +1255822,30 @@ }; /** - * Decodes a TestIamPermissionsRegionSslPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionTargetHttpProxyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} TestIamPermissionsRegionSslPolicyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} TestIamPermissionsRegionTargetHttpProxyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionSslPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionTargetHttpProxyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionSslPolicyRequest message. + * Verifies a TestIamPermissionsRegionTargetHttpProxyRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionSslPolicyRequest.verify = function verify(message) { + TestIamPermissionsRegionTargetHttpProxyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1233421,17 +1255866,17 @@ }; /** - * Creates a TestIamPermissionsRegionSslPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionTargetHttpProxyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} TestIamPermissionsRegionSslPolicyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} TestIamPermissionsRegionTargetHttpProxyRequest */ - TestIamPermissionsRegionSslPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest) + TestIamPermissionsRegionTargetHttpProxyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1233440,22 +1255885,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionSslPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionTargetHttpProxyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest} message TestIamPermissionsRegionSslPolicyRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} message TestIamPermissionsRegionTargetHttpProxyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionSslPolicyRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionTargetHttpProxyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1233477,55 +1255922,55 @@ }; /** - * Converts this TestIamPermissionsRegionSslPolicyRequest to JSON. + * Converts this TestIamPermissionsRegionTargetHttpProxyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionSslPolicyRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionTargetHttpProxyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionSslPolicyRequest + * Gets the default type url for TestIamPermissionsRegionTargetHttpProxyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionSslPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionTargetHttpProxyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionSslPolicyRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest"; }; - return TestIamPermissionsRegionSslPolicyRequest; + return TestIamPermissionsRegionTargetHttpProxyRequest; })(); - v1beta.TestIamPermissionsRegionTargetHttpProxyRequest = (function() { + v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest = (function() { /** - * Properties of a TestIamPermissionsRegionTargetHttpProxyRequest. + * Properties of a TestIamPermissionsRegionTargetHttpsProxyRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionTargetHttpProxyRequest - * @property {string|null} [project] TestIamPermissionsRegionTargetHttpProxyRequest project - * @property {string|null} [region] TestIamPermissionsRegionTargetHttpProxyRequest region - * @property {string|null} [resource] TestIamPermissionsRegionTargetHttpProxyRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionTargetHttpProxyRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionTargetHttpsProxyRequest + * @property {string|null} [project] TestIamPermissionsRegionTargetHttpsProxyRequest project + * @property {string|null} [region] TestIamPermissionsRegionTargetHttpsProxyRequest region + * @property {string|null} [resource] TestIamPermissionsRegionTargetHttpsProxyRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionTargetHttpsProxyRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionTargetHttpProxyRequest. + * Constructs a new TestIamPermissionsRegionTargetHttpsProxyRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionTargetHttpProxyRequest. - * @implements ITestIamPermissionsRegionTargetHttpProxyRequest + * @classdesc Represents a TestIamPermissionsRegionTargetHttpsProxyRequest. + * @implements ITestIamPermissionsRegionTargetHttpsProxyRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpProxyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpsProxyRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionTargetHttpProxyRequest(properties) { + function TestIamPermissionsRegionTargetHttpsProxyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1233533,59 +1255978,59 @@ } /** - * TestIamPermissionsRegionTargetHttpProxyRequest project. + * TestIamPermissionsRegionTargetHttpsProxyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @instance */ - TestIamPermissionsRegionTargetHttpProxyRequest.prototype.project = ""; + TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.project = ""; /** - * TestIamPermissionsRegionTargetHttpProxyRequest region. + * TestIamPermissionsRegionTargetHttpsProxyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @instance */ - TestIamPermissionsRegionTargetHttpProxyRequest.prototype.region = ""; + TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.region = ""; /** - * TestIamPermissionsRegionTargetHttpProxyRequest resource. + * TestIamPermissionsRegionTargetHttpsProxyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @instance */ - TestIamPermissionsRegionTargetHttpProxyRequest.prototype.resource = ""; + TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionTargetHttpProxyRequest testPermissionsRequestResource. + * TestIamPermissionsRegionTargetHttpsProxyRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @instance */ - TestIamPermissionsRegionTargetHttpProxyRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionTargetHttpProxyRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionTargetHttpsProxyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpProxyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} TestIamPermissionsRegionTargetHttpProxyRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpsProxyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} TestIamPermissionsRegionTargetHttpsProxyRequest instance */ - TestIamPermissionsRegionTargetHttpProxyRequest.create = function create(properties) { - return new TestIamPermissionsRegionTargetHttpProxyRequest(properties); + TestIamPermissionsRegionTargetHttpsProxyRequest.create = function create(properties) { + return new TestIamPermissionsRegionTargetHttpsProxyRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionTargetHttpProxyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionTargetHttpsProxyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpProxyRequest} message TestIamPermissionsRegionTargetHttpProxyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpsProxyRequest} message TestIamPermissionsRegionTargetHttpsProxyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionTargetHttpProxyRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionTargetHttpsProxyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1233600,33 +1256045,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionTargetHttpProxyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionTargetHttpsProxyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpProxyRequest} message TestIamPermissionsRegionTargetHttpProxyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpsProxyRequest} message TestIamPermissionsRegionTargetHttpsProxyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionTargetHttpProxyRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionTargetHttpsProxyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionTargetHttpProxyRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionTargetHttpsProxyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} TestIamPermissionsRegionTargetHttpProxyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} TestIamPermissionsRegionTargetHttpsProxyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionTargetHttpProxyRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionTargetHttpsProxyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1233657,30 +1256102,30 @@ }; /** - * Decodes a TestIamPermissionsRegionTargetHttpProxyRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionTargetHttpsProxyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} TestIamPermissionsRegionTargetHttpProxyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} TestIamPermissionsRegionTargetHttpsProxyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionTargetHttpProxyRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionTargetHttpsProxyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionTargetHttpProxyRequest message. + * Verifies a TestIamPermissionsRegionTargetHttpsProxyRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionTargetHttpProxyRequest.verify = function verify(message) { + TestIamPermissionsRegionTargetHttpsProxyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1233701,17 +1256146,17 @@ }; /** - * Creates a TestIamPermissionsRegionTargetHttpProxyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionTargetHttpsProxyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} TestIamPermissionsRegionTargetHttpProxyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} TestIamPermissionsRegionTargetHttpsProxyRequest */ - TestIamPermissionsRegionTargetHttpProxyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest) + TestIamPermissionsRegionTargetHttpsProxyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1233720,22 +1256165,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionTargetHttpProxyRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionTargetHttpsProxyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest} message TestIamPermissionsRegionTargetHttpProxyRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} message TestIamPermissionsRegionTargetHttpsProxyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionTargetHttpProxyRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionTargetHttpsProxyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1233757,55 +1256202,55 @@ }; /** - * Converts this TestIamPermissionsRegionTargetHttpProxyRequest to JSON. + * Converts this TestIamPermissionsRegionTargetHttpsProxyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionTargetHttpProxyRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionTargetHttpProxyRequest + * Gets the default type url for TestIamPermissionsRegionTargetHttpsProxyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionTargetHttpProxyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionTargetHttpsProxyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpProxyRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest"; }; - return TestIamPermissionsRegionTargetHttpProxyRequest; + return TestIamPermissionsRegionTargetHttpsProxyRequest; })(); - v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest = (function() { + v1beta.TestIamPermissionsRegionTargetTcpProxyRequest = (function() { /** - * Properties of a TestIamPermissionsRegionTargetHttpsProxyRequest. + * Properties of a TestIamPermissionsRegionTargetTcpProxyRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionTargetHttpsProxyRequest - * @property {string|null} [project] TestIamPermissionsRegionTargetHttpsProxyRequest project - * @property {string|null} [region] TestIamPermissionsRegionTargetHttpsProxyRequest region - * @property {string|null} [resource] TestIamPermissionsRegionTargetHttpsProxyRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionTargetHttpsProxyRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionTargetTcpProxyRequest + * @property {string|null} [project] TestIamPermissionsRegionTargetTcpProxyRequest project + * @property {string|null} [region] TestIamPermissionsRegionTargetTcpProxyRequest region + * @property {string|null} [resource] TestIamPermissionsRegionTargetTcpProxyRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionTargetTcpProxyRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionTargetHttpsProxyRequest. + * Constructs a new TestIamPermissionsRegionTargetTcpProxyRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionTargetHttpsProxyRequest. - * @implements ITestIamPermissionsRegionTargetHttpsProxyRequest + * @classdesc Represents a TestIamPermissionsRegionTargetTcpProxyRequest. + * @implements ITestIamPermissionsRegionTargetTcpProxyRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpsProxyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetTcpProxyRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionTargetHttpsProxyRequest(properties) { + function TestIamPermissionsRegionTargetTcpProxyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1233813,59 +1256258,59 @@ } /** - * TestIamPermissionsRegionTargetHttpsProxyRequest project. + * TestIamPermissionsRegionTargetTcpProxyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @instance */ - TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.project = ""; + TestIamPermissionsRegionTargetTcpProxyRequest.prototype.project = ""; /** - * TestIamPermissionsRegionTargetHttpsProxyRequest region. + * TestIamPermissionsRegionTargetTcpProxyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @instance */ - TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.region = ""; + TestIamPermissionsRegionTargetTcpProxyRequest.prototype.region = ""; /** - * TestIamPermissionsRegionTargetHttpsProxyRequest resource. + * TestIamPermissionsRegionTargetTcpProxyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @instance */ - TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.resource = ""; + TestIamPermissionsRegionTargetTcpProxyRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionTargetHttpsProxyRequest testPermissionsRequestResource. + * TestIamPermissionsRegionTargetTcpProxyRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @instance */ - TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionTargetTcpProxyRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionTargetHttpsProxyRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionTargetTcpProxyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpsProxyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} TestIamPermissionsRegionTargetHttpsProxyRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetTcpProxyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} TestIamPermissionsRegionTargetTcpProxyRequest instance */ - TestIamPermissionsRegionTargetHttpsProxyRequest.create = function create(properties) { - return new TestIamPermissionsRegionTargetHttpsProxyRequest(properties); + TestIamPermissionsRegionTargetTcpProxyRequest.create = function create(properties) { + return new TestIamPermissionsRegionTargetTcpProxyRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionTargetHttpsProxyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionTargetTcpProxyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpsProxyRequest} message TestIamPermissionsRegionTargetHttpsProxyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetTcpProxyRequest} message TestIamPermissionsRegionTargetTcpProxyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionTargetHttpsProxyRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionTargetTcpProxyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1233880,33 +1256325,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionTargetHttpsProxyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionTargetTcpProxyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetHttpsProxyRequest} message TestIamPermissionsRegionTargetHttpsProxyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetTcpProxyRequest} message TestIamPermissionsRegionTargetTcpProxyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionTargetHttpsProxyRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionTargetTcpProxyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionTargetHttpsProxyRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionTargetTcpProxyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} TestIamPermissionsRegionTargetHttpsProxyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} TestIamPermissionsRegionTargetTcpProxyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionTargetHttpsProxyRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionTargetTcpProxyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1233937,30 +1256382,30 @@ }; /** - * Decodes a TestIamPermissionsRegionTargetHttpsProxyRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionTargetTcpProxyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} TestIamPermissionsRegionTargetHttpsProxyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} TestIamPermissionsRegionTargetTcpProxyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionTargetHttpsProxyRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionTargetTcpProxyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionTargetHttpsProxyRequest message. + * Verifies a TestIamPermissionsRegionTargetTcpProxyRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionTargetHttpsProxyRequest.verify = function verify(message) { + TestIamPermissionsRegionTargetTcpProxyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1233981,17 +1256426,17 @@ }; /** - * Creates a TestIamPermissionsRegionTargetHttpsProxyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionTargetTcpProxyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} TestIamPermissionsRegionTargetHttpsProxyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} TestIamPermissionsRegionTargetTcpProxyRequest */ - TestIamPermissionsRegionTargetHttpsProxyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest) + TestIamPermissionsRegionTargetTcpProxyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1234000,22 +1256445,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionTargetHttpsProxyRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionTargetTcpProxyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest} message TestIamPermissionsRegionTargetHttpsProxyRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} message TestIamPermissionsRegionTargetTcpProxyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionTargetHttpsProxyRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionTargetTcpProxyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1234037,55 +1256482,55 @@ }; /** - * Converts this TestIamPermissionsRegionTargetHttpsProxyRequest to JSON. + * Converts this TestIamPermissionsRegionTargetTcpProxyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionTargetHttpsProxyRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionTargetTcpProxyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionTargetHttpsProxyRequest + * Gets the default type url for TestIamPermissionsRegionTargetTcpProxyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionTargetHttpsProxyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionTargetTcpProxyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionTargetHttpsProxyRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest"; }; - return TestIamPermissionsRegionTargetHttpsProxyRequest; + return TestIamPermissionsRegionTargetTcpProxyRequest; })(); - v1beta.TestIamPermissionsRegionTargetTcpProxyRequest = (function() { + v1beta.TestIamPermissionsRegionUrlMapRequest = (function() { /** - * Properties of a TestIamPermissionsRegionTargetTcpProxyRequest. + * Properties of a TestIamPermissionsRegionUrlMapRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionTargetTcpProxyRequest - * @property {string|null} [project] TestIamPermissionsRegionTargetTcpProxyRequest project - * @property {string|null} [region] TestIamPermissionsRegionTargetTcpProxyRequest region - * @property {string|null} [resource] TestIamPermissionsRegionTargetTcpProxyRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionTargetTcpProxyRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionUrlMapRequest + * @property {string|null} [project] TestIamPermissionsRegionUrlMapRequest project + * @property {string|null} [region] TestIamPermissionsRegionUrlMapRequest region + * @property {string|null} [resource] TestIamPermissionsRegionUrlMapRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionUrlMapRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionTargetTcpProxyRequest. + * Constructs a new TestIamPermissionsRegionUrlMapRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionTargetTcpProxyRequest. - * @implements ITestIamPermissionsRegionTargetTcpProxyRequest + * @classdesc Represents a TestIamPermissionsRegionUrlMapRequest. + * @implements ITestIamPermissionsRegionUrlMapRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetTcpProxyRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionUrlMapRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionTargetTcpProxyRequest(properties) { + function TestIamPermissionsRegionUrlMapRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1234093,59 +1256538,59 @@ } /** - * TestIamPermissionsRegionTargetTcpProxyRequest project. + * TestIamPermissionsRegionUrlMapRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @instance */ - TestIamPermissionsRegionTargetTcpProxyRequest.prototype.project = ""; + TestIamPermissionsRegionUrlMapRequest.prototype.project = ""; /** - * TestIamPermissionsRegionTargetTcpProxyRequest region. + * TestIamPermissionsRegionUrlMapRequest region. * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @instance */ - TestIamPermissionsRegionTargetTcpProxyRequest.prototype.region = ""; + TestIamPermissionsRegionUrlMapRequest.prototype.region = ""; /** - * TestIamPermissionsRegionTargetTcpProxyRequest resource. + * TestIamPermissionsRegionUrlMapRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @instance */ - TestIamPermissionsRegionTargetTcpProxyRequest.prototype.resource = ""; + TestIamPermissionsRegionUrlMapRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionTargetTcpProxyRequest testPermissionsRequestResource. + * TestIamPermissionsRegionUrlMapRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @instance */ - TestIamPermissionsRegionTargetTcpProxyRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionUrlMapRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionTargetTcpProxyRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionUrlMapRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetTcpProxyRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} TestIamPermissionsRegionTargetTcpProxyRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionUrlMapRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} TestIamPermissionsRegionUrlMapRequest instance */ - TestIamPermissionsRegionTargetTcpProxyRequest.create = function create(properties) { - return new TestIamPermissionsRegionTargetTcpProxyRequest(properties); + TestIamPermissionsRegionUrlMapRequest.create = function create(properties) { + return new TestIamPermissionsRegionUrlMapRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionTargetTcpProxyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionUrlMapRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetTcpProxyRequest} message TestIamPermissionsRegionTargetTcpProxyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionUrlMapRequest} message TestIamPermissionsRegionUrlMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionTargetTcpProxyRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionUrlMapRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -1234160,33 +1256605,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionTargetTcpProxyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionUrlMapRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionTargetTcpProxyRequest} message TestIamPermissionsRegionTargetTcpProxyRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionUrlMapRequest} message TestIamPermissionsRegionUrlMapRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionTargetTcpProxyRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionUrlMapRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionTargetTcpProxyRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionUrlMapRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} TestIamPermissionsRegionTargetTcpProxyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} TestIamPermissionsRegionUrlMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionTargetTcpProxyRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionUrlMapRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -1234217,30 +1256662,30 @@ }; /** - * Decodes a TestIamPermissionsRegionTargetTcpProxyRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionUrlMapRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} TestIamPermissionsRegionTargetTcpProxyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} TestIamPermissionsRegionUrlMapRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionTargetTcpProxyRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionUrlMapRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionTargetTcpProxyRequest message. + * Verifies a TestIamPermissionsRegionUrlMapRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionTargetTcpProxyRequest.verify = function verify(message) { + TestIamPermissionsRegionUrlMapRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -1234261,17 +1256706,17 @@ }; /** - * Creates a TestIamPermissionsRegionTargetTcpProxyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionUrlMapRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} TestIamPermissionsRegionTargetTcpProxyRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} TestIamPermissionsRegionUrlMapRequest */ - TestIamPermissionsRegionTargetTcpProxyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest) + TestIamPermissionsRegionUrlMapRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -1234280,22 +1256725,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionTargetTcpProxyRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionUrlMapRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest} message TestIamPermissionsRegionTargetTcpProxyRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} message TestIamPermissionsRegionUrlMapRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionTargetTcpProxyRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionUrlMapRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -1234317,55 +1256762,56 @@ }; /** - * Converts this TestIamPermissionsRegionTargetTcpProxyRequest to JSON. + * Converts this TestIamPermissionsRegionUrlMapRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionTargetTcpProxyRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionUrlMapRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionTargetTcpProxyRequest + * Gets the default type url for TestIamPermissionsRegionUrlMapRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionTargetTcpProxyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionUrlMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionTargetTcpProxyRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest"; }; - return TestIamPermissionsRegionTargetTcpProxyRequest; + return TestIamPermissionsRegionUrlMapRequest; })(); - v1beta.TestIamPermissionsRegionUrlMapRequest = (function() { + v1beta.TestIamPermissionsReservationBlockRequest = (function() { /** - * Properties of a TestIamPermissionsRegionUrlMapRequest. + * Properties of a TestIamPermissionsReservationBlockRequest. * @memberof google.cloud.compute.v1beta - * @interface ITestIamPermissionsRegionUrlMapRequest - * @property {string|null} [project] TestIamPermissionsRegionUrlMapRequest project - * @property {string|null} [region] TestIamPermissionsRegionUrlMapRequest region - * @property {string|null} [resource] TestIamPermissionsRegionUrlMapRequest resource - * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionUrlMapRequest testPermissionsRequestResource + * @interface ITestIamPermissionsReservationBlockRequest + * @property {string|null} [parentResource] TestIamPermissionsReservationBlockRequest parentResource + * @property {string|null} [project] TestIamPermissionsReservationBlockRequest project + * @property {string|null} [resource] TestIamPermissionsReservationBlockRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsReservationBlockRequest testPermissionsRequestResource + * @property {string|null} [zone] TestIamPermissionsReservationBlockRequest zone */ /** - * Constructs a new TestIamPermissionsRegionUrlMapRequest. + * Constructs a new TestIamPermissionsReservationBlockRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents a TestIamPermissionsRegionUrlMapRequest. - * @implements ITestIamPermissionsRegionUrlMapRequest + * @classdesc Represents a TestIamPermissionsReservationBlockRequest. + * @implements ITestIamPermissionsReservationBlockRequest * @constructor - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionUrlMapRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionUrlMapRequest(properties) { + function TestIamPermissionsReservationBlockRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1234373,63 +1256819,73 @@ } /** - * TestIamPermissionsRegionUrlMapRequest project. - * @member {string} project - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * TestIamPermissionsReservationBlockRequest parentResource. + * @member {string} parentResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @instance */ - TestIamPermissionsRegionUrlMapRequest.prototype.project = ""; + TestIamPermissionsReservationBlockRequest.prototype.parentResource = ""; /** - * TestIamPermissionsRegionUrlMapRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * TestIamPermissionsReservationBlockRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @instance */ - TestIamPermissionsRegionUrlMapRequest.prototype.region = ""; + TestIamPermissionsReservationBlockRequest.prototype.project = ""; /** - * TestIamPermissionsRegionUrlMapRequest resource. + * TestIamPermissionsReservationBlockRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @instance */ - TestIamPermissionsRegionUrlMapRequest.prototype.resource = ""; + TestIamPermissionsReservationBlockRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionUrlMapRequest testPermissionsRequestResource. + * TestIamPermissionsReservationBlockRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @instance */ - TestIamPermissionsRegionUrlMapRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsReservationBlockRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionUrlMapRequest instance using the specified properties. + * TestIamPermissionsReservationBlockRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest + * @instance + */ + TestIamPermissionsReservationBlockRequest.prototype.zone = ""; + + /** + * Creates a new TestIamPermissionsReservationBlockRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionUrlMapRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} TestIamPermissionsRegionUrlMapRequest instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest} TestIamPermissionsReservationBlockRequest instance */ - TestIamPermissionsRegionUrlMapRequest.create = function create(properties) { - return new TestIamPermissionsRegionUrlMapRequest(properties); + TestIamPermissionsReservationBlockRequest.create = function create(properties) { + return new TestIamPermissionsReservationBlockRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionUrlMapRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsReservationBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionUrlMapRequest} message TestIamPermissionsRegionUrlMapRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest} message TestIamPermissionsReservationBlockRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionUrlMapRequest.encode = function encode(message, writer) { + TestIamPermissionsReservationBlockRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.parentResource != null && Object.hasOwnProperty.call(message, "parentResource")) + writer.uint32(/* id 18091011, wireType 2 =*/144728090).string(message.parentResource); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -1234440,44 +1256896,44 @@ }; /** - * Encodes the specified TestIamPermissionsRegionUrlMapRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsReservationBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @static - * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionUrlMapRequest} message TestIamPermissionsRegionUrlMapRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest} message TestIamPermissionsReservationBlockRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionUrlMapRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsReservationBlockRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionUrlMapRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsReservationBlockRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} TestIamPermissionsRegionUrlMapRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest} TestIamPermissionsReservationBlockRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionUrlMapRequest.decode = function decode(reader, length, error) { + TestIamPermissionsReservationBlockRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 227560217: { - message.project = reader.string(); + case 18091011: { + message.parentResource = reader.string(); break; } - case 138946292: { - message.region = reader.string(); + case 227560217: { + message.project = reader.string(); break; } case 195806222: { @@ -1234488,6 +1256944,10 @@ message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); break; } + case 3744684: { + message.zone = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -1234497,38 +1256957,38 @@ }; /** - * Decodes a TestIamPermissionsRegionUrlMapRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsReservationBlockRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} TestIamPermissionsRegionUrlMapRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest} TestIamPermissionsReservationBlockRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionUrlMapRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsReservationBlockRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionUrlMapRequest message. + * Verifies a TestIamPermissionsReservationBlockRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionUrlMapRequest.verify = function verify(message) { + TestIamPermissionsReservationBlockRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + if (!$util.isString(message.parentResource)) + return "parentResource: string expected"; if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; if (message.resource != null && message.hasOwnProperty("resource")) if (!$util.isString(message.resource)) return "resource: string expected"; @@ -1234537,56 +1256997,64 @@ if (error) return "testPermissionsRequestResource." + error; } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates a TestIamPermissionsRegionUrlMapRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsReservationBlockRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} TestIamPermissionsRegionUrlMapRequest + * @returns {google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest} TestIamPermissionsReservationBlockRequest */ - TestIamPermissionsRegionUrlMapRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest) + TestIamPermissionsReservationBlockRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest) return object; - var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest(); + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest(); + if (object.parentResource != null) + message.parentResource = String(object.parentResource); if (object.project != null) message.project = String(object.project); - if (object.region != null) - message.region = String(object.region); if (object.resource != null) message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } + if (object.zone != null) + message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionUrlMapRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsReservationBlockRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @static - * @param {google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest} message TestIamPermissionsRegionUrlMapRequest + * @param {google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest} message TestIamPermissionsReservationBlockRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionUrlMapRequest.toObject = function toObject(message, options) { + TestIamPermissionsReservationBlockRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.region = ""; + object.zone = ""; + object.parentResource = ""; object.resource = ""; object.project = ""; object.testPermissionsRequestResource = null; } - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + object.parentResource = message.parentResource; if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.project != null && message.hasOwnProperty("project")) @@ -1234597,32 +1257065,32 @@ }; /** - * Converts this TestIamPermissionsRegionUrlMapRequest to JSON. + * Converts this TestIamPermissionsReservationBlockRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionUrlMapRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsReservationBlockRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionUrlMapRequest + * Gets the default type url for TestIamPermissionsReservationBlockRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionUrlMapRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsReservationBlockRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsRegionUrlMapRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest"; }; - return TestIamPermissionsRegionUrlMapRequest; + return TestIamPermissionsReservationBlockRequest; })(); v1beta.TestIamPermissionsReservationRequest = (function() { @@ -1234905,6 +1257373,309 @@ return TestIamPermissionsReservationRequest; })(); + v1beta.TestIamPermissionsReservationSubBlockRequest = (function() { + + /** + * Properties of a TestIamPermissionsReservationSubBlockRequest. + * @memberof google.cloud.compute.v1beta + * @interface ITestIamPermissionsReservationSubBlockRequest + * @property {string|null} [parentResource] TestIamPermissionsReservationSubBlockRequest parentResource + * @property {string|null} [project] TestIamPermissionsReservationSubBlockRequest project + * @property {string|null} [resource] TestIamPermissionsReservationSubBlockRequest resource + * @property {google.cloud.compute.v1beta.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsReservationSubBlockRequest testPermissionsRequestResource + * @property {string|null} [zone] TestIamPermissionsReservationSubBlockRequest zone + */ + + /** + * Constructs a new TestIamPermissionsReservationSubBlockRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a TestIamPermissionsReservationSubBlockRequest. + * @implements ITestIamPermissionsReservationSubBlockRequest + * @constructor + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest=} [properties] Properties to set + */ + function TestIamPermissionsReservationSubBlockRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsReservationSubBlockRequest parentResource. + * @member {string} parentResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @instance + */ + TestIamPermissionsReservationSubBlockRequest.prototype.parentResource = ""; + + /** + * TestIamPermissionsReservationSubBlockRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @instance + */ + TestIamPermissionsReservationSubBlockRequest.prototype.project = ""; + + /** + * TestIamPermissionsReservationSubBlockRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @instance + */ + TestIamPermissionsReservationSubBlockRequest.prototype.resource = ""; + + /** + * TestIamPermissionsReservationSubBlockRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1beta.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @instance + */ + TestIamPermissionsReservationSubBlockRequest.prototype.testPermissionsRequestResource = null; + + /** + * TestIamPermissionsReservationSubBlockRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @instance + */ + TestIamPermissionsReservationSubBlockRequest.prototype.zone = ""; + + /** + * Creates a new TestIamPermissionsReservationSubBlockRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest} TestIamPermissionsReservationSubBlockRequest instance + */ + TestIamPermissionsReservationSubBlockRequest.create = function create(properties) { + return new TestIamPermissionsReservationSubBlockRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest} message TestIamPermissionsReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsReservationSubBlockRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.parentResource != null && Object.hasOwnProperty.call(message, "parentResource")) + writer.uint32(/* id 18091011, wireType 2 =*/144728090).string(message.parentResource); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1beta.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest} message TestIamPermissionsReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsReservationSubBlockRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsReservationSubBlockRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest} TestIamPermissionsReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsReservationSubBlockRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 18091011: { + message.parentResource = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest} TestIamPermissionsReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsReservationSubBlockRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsReservationSubBlockRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsReservationSubBlockRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + if (!$util.isString(message.parentResource)) + return "parentResource: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1beta.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a TestIamPermissionsReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest} TestIamPermissionsReservationSubBlockRequest + */ + TestIamPermissionsReservationSubBlockRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest(); + if (object.parentResource != null) + message.parentResource = String(object.parentResource); + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsReservationSubBlockRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest} message TestIamPermissionsReservationSubBlockRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsReservationSubBlockRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.parentResource = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.parentResource != null && message.hasOwnProperty("parentResource")) + object.parentResource = message.parentResource; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1beta.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsReservationSubBlockRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsReservationSubBlockRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsReservationSubBlockRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsReservationSubBlockRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest"; + }; + + return TestIamPermissionsReservationSubBlockRequest; + })(); + v1beta.TestIamPermissionsResourcePolicyRequest = (function() { /** @@ -1241715,6 +1264486,7 @@ * @property {number} FAILURE_NETWORK=42811449 FAILURE_NETWORK value * @property {number} FAILURE_NVLINK=484426295 FAILURE_NVLINK value * @property {number} FAILURE_REDUNDANT_HARDWARE_FAULT=31000530 FAILURE_REDUNDANT_HARDWARE_FAULT value + * @property {number} FAILURE_TPU=467889412 FAILURE_TPU value * @property {number} INFRASTRUCTURE_RELOCATION=359845636 INFRASTRUCTURE_RELOCATION value * @property {number} MAINTENANCE_REASON_UNKNOWN=50570235 MAINTENANCE_REASON_UNKNOWN value * @property {number} PLANNED_NETWORK_UPDATE=135494677 PLANNED_NETWORK_UPDATE value @@ -1241735,6 +1264507,7 @@ values[valuesById[42811449] = "FAILURE_NETWORK"] = 42811449; values[valuesById[484426295] = "FAILURE_NVLINK"] = 484426295; values[valuesById[31000530] = "FAILURE_REDUNDANT_HARDWARE_FAULT"] = 31000530; + values[valuesById[467889412] = "FAILURE_TPU"] = 467889412; values[valuesById[359845636] = "INFRASTRUCTURE_RELOCATION"] = 359845636; values[valuesById[50570235] = "MAINTENANCE_REASON_UNKNOWN"] = 50570235; values[valuesById[135494677] = "PLANNED_NETWORK_UPDATE"] = 135494677; @@ -1252262,6 +1275035,323 @@ return UpdateUrlMapRequest; })(); + v1beta.UpdateZoneVmExtensionPolicyRequest = (function() { + + /** + * Properties of an UpdateZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IUpdateZoneVmExtensionPolicyRequest + * @property {string|null} [project] UpdateZoneVmExtensionPolicyRequest project + * @property {string|null} [requestId] UpdateZoneVmExtensionPolicyRequest requestId + * @property {string|null} [vmExtensionPolicy] UpdateZoneVmExtensionPolicyRequest vmExtensionPolicy + * @property {google.cloud.compute.v1beta.IVmExtensionPolicy|null} [vmExtensionPolicyResource] UpdateZoneVmExtensionPolicyRequest vmExtensionPolicyResource + * @property {string|null} [zone] UpdateZoneVmExtensionPolicyRequest zone + */ + + /** + * Constructs a new UpdateZoneVmExtensionPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an UpdateZoneVmExtensionPolicyRequest. + * @implements IUpdateZoneVmExtensionPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest=} [properties] Properties to set + */ + function UpdateZoneVmExtensionPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateZoneVmExtensionPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @instance + */ + UpdateZoneVmExtensionPolicyRequest.prototype.project = ""; + + /** + * UpdateZoneVmExtensionPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @instance + */ + UpdateZoneVmExtensionPolicyRequest.prototype.requestId = null; + + /** + * UpdateZoneVmExtensionPolicyRequest vmExtensionPolicy. + * @member {string} vmExtensionPolicy + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @instance + */ + UpdateZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicy = ""; + + /** + * UpdateZoneVmExtensionPolicyRequest vmExtensionPolicyResource. + * @member {google.cloud.compute.v1beta.IVmExtensionPolicy|null|undefined} vmExtensionPolicyResource + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @instance + */ + UpdateZoneVmExtensionPolicyRequest.prototype.vmExtensionPolicyResource = null; + + /** + * UpdateZoneVmExtensionPolicyRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @instance + */ + UpdateZoneVmExtensionPolicyRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateZoneVmExtensionPolicyRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateZoneVmExtensionPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest} UpdateZoneVmExtensionPolicyRequest instance + */ + UpdateZoneVmExtensionPolicyRequest.create = function create(properties) { + return new UpdateZoneVmExtensionPolicyRequest(properties); + }; + + /** + * Encodes the specified UpdateZoneVmExtensionPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest} message UpdateZoneVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateZoneVmExtensionPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.vmExtensionPolicy != null && Object.hasOwnProperty.call(message, "vmExtensionPolicy")) + writer.uint32(/* id 331532730, wireType 2 =*/2652261842).string(message.vmExtensionPolicy); + if (message.vmExtensionPolicyResource != null && Object.hasOwnProperty.call(message, "vmExtensionPolicyResource")) + $root.google.cloud.compute.v1beta.VmExtensionPolicy.encode(message.vmExtensionPolicyResource, writer.uint32(/* id 515669235, wireType 2 =*/4125353882).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateZoneVmExtensionPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest} message UpdateZoneVmExtensionPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateZoneVmExtensionPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateZoneVmExtensionPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest} UpdateZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateZoneVmExtensionPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 331532730: { + message.vmExtensionPolicy = reader.string(); + break; + } + case 515669235: { + message.vmExtensionPolicyResource = $root.google.cloud.compute.v1beta.VmExtensionPolicy.decode(reader, reader.uint32()); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateZoneVmExtensionPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest} UpdateZoneVmExtensionPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateZoneVmExtensionPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateZoneVmExtensionPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateZoneVmExtensionPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.vmExtensionPolicy != null && message.hasOwnProperty("vmExtensionPolicy")) + if (!$util.isString(message.vmExtensionPolicy)) + return "vmExtensionPolicy: string expected"; + if (message.vmExtensionPolicyResource != null && message.hasOwnProperty("vmExtensionPolicyResource")) { + var error = $root.google.cloud.compute.v1beta.VmExtensionPolicy.verify(message.vmExtensionPolicyResource); + if (error) + return "vmExtensionPolicyResource." + error; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an UpdateZoneVmExtensionPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest} UpdateZoneVmExtensionPolicyRequest + */ + UpdateZoneVmExtensionPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.vmExtensionPolicy != null) + message.vmExtensionPolicy = String(object.vmExtensionPolicy); + if (object.vmExtensionPolicyResource != null) { + if (typeof object.vmExtensionPolicyResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest.vmExtensionPolicyResource: object expected"); + message.vmExtensionPolicyResource = $root.google.cloud.compute.v1beta.VmExtensionPolicy.fromObject(object.vmExtensionPolicyResource); + } + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an UpdateZoneVmExtensionPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest} message UpdateZoneVmExtensionPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateZoneVmExtensionPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.vmExtensionPolicy = ""; + object.vmExtensionPolicyResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.vmExtensionPolicy != null && message.hasOwnProperty("vmExtensionPolicy")) + object.vmExtensionPolicy = message.vmExtensionPolicy; + if (message.vmExtensionPolicyResource != null && message.hasOwnProperty("vmExtensionPolicyResource")) + object.vmExtensionPolicyResource = $root.google.cloud.compute.v1beta.VmExtensionPolicy.toObject(message.vmExtensionPolicyResource, options); + return object; + }; + + /** + * Converts this UpdateZoneVmExtensionPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateZoneVmExtensionPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateZoneVmExtensionPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateZoneVmExtensionPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest"; + }; + + return UpdateZoneVmExtensionPolicyRequest; + })(); + v1beta.UrlMap = (function() { /** @@ -1259797,6 +1282887,2679 @@ return VmEndpointNatMappingsList; })(); + v1beta.VmExtensionPoliciesScopedList = (function() { + + /** + * Properties of a VmExtensionPoliciesScopedList. + * @memberof google.cloud.compute.v1beta + * @interface IVmExtensionPoliciesScopedList + * @property {Array.|null} [vmExtensionPolicies] VmExtensionPoliciesScopedList vmExtensionPolicies + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] VmExtensionPoliciesScopedList warning + */ + + /** + * Constructs a new VmExtensionPoliciesScopedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a VmExtensionPoliciesScopedList. + * @implements IVmExtensionPoliciesScopedList + * @constructor + * @param {google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList=} [properties] Properties to set + */ + function VmExtensionPoliciesScopedList(properties) { + this.vmExtensionPolicies = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VmExtensionPoliciesScopedList vmExtensionPolicies. + * @member {Array.} vmExtensionPolicies + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @instance + */ + VmExtensionPoliciesScopedList.prototype.vmExtensionPolicies = $util.emptyArray; + + /** + * VmExtensionPoliciesScopedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @instance + */ + VmExtensionPoliciesScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPoliciesScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VmExtensionPoliciesScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.VmExtensionPoliciesScopedList} VmExtensionPoliciesScopedList instance + */ + VmExtensionPoliciesScopedList.create = function create(properties) { + return new VmExtensionPoliciesScopedList(properties); + }; + + /** + * Encodes the specified VmExtensionPoliciesScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList} message VmExtensionPoliciesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPoliciesScopedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.vmExtensionPolicies != null && message.vmExtensionPolicies.length) + for (var i = 0; i < message.vmExtensionPolicies.length; ++i) + $root.google.cloud.compute.v1beta.VmExtensionPolicy.encode(message.vmExtensionPolicies[i], writer.uint32(/* id 238490584, wireType 2 =*/1907924674).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VmExtensionPoliciesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList} message VmExtensionPoliciesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPoliciesScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VmExtensionPoliciesScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.VmExtensionPoliciesScopedList} VmExtensionPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPoliciesScopedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 238490584: { + if (!(message.vmExtensionPolicies && message.vmExtensionPolicies.length)) + message.vmExtensionPolicies = []; + message.vmExtensionPolicies.push($root.google.cloud.compute.v1beta.VmExtensionPolicy.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VmExtensionPoliciesScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.VmExtensionPoliciesScopedList} VmExtensionPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPoliciesScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VmExtensionPoliciesScopedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VmExtensionPoliciesScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.vmExtensionPolicies != null && message.hasOwnProperty("vmExtensionPolicies")) { + if (!Array.isArray(message.vmExtensionPolicies)) + return "vmExtensionPolicies: array expected"; + for (var i = 0; i < message.vmExtensionPolicies.length; ++i) { + var error = $root.google.cloud.compute.v1beta.VmExtensionPolicy.verify(message.vmExtensionPolicies[i]); + if (error) + return "vmExtensionPolicies." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a VmExtensionPoliciesScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.VmExtensionPoliciesScopedList} VmExtensionPoliciesScopedList + */ + VmExtensionPoliciesScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList) + return object; + var message = new $root.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList(); + if (object.vmExtensionPolicies) { + if (!Array.isArray(object.vmExtensionPolicies)) + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.vmExtensionPolicies: array expected"); + message.vmExtensionPolicies = []; + for (var i = 0; i < object.vmExtensionPolicies.length; ++i) { + if (typeof object.vmExtensionPolicies[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.vmExtensionPolicies: object expected"); + message.vmExtensionPolicies[i] = $root.google.cloud.compute.v1beta.VmExtensionPolicy.fromObject(object.vmExtensionPolicies[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a VmExtensionPoliciesScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @static + * @param {google.cloud.compute.v1beta.VmExtensionPoliciesScopedList} message VmExtensionPoliciesScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VmExtensionPoliciesScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.vmExtensionPolicies = []; + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.vmExtensionPolicies && message.vmExtensionPolicies.length) { + object.vmExtensionPolicies = []; + for (var j = 0; j < message.vmExtensionPolicies.length; ++j) + object.vmExtensionPolicies[j] = $root.google.cloud.compute.v1beta.VmExtensionPolicy.toObject(message.vmExtensionPolicies[j], options); + } + return object; + }; + + /** + * Converts this VmExtensionPoliciesScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @instance + * @returns {Object.} JSON object + */ + VmExtensionPoliciesScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VmExtensionPoliciesScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.VmExtensionPoliciesScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VmExtensionPoliciesScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.VmExtensionPoliciesScopedList"; + }; + + return VmExtensionPoliciesScopedList; + })(); + + v1beta.VmExtensionPolicy = (function() { + + /** + * Properties of a VmExtensionPolicy. + * @memberof google.cloud.compute.v1beta + * @interface IVmExtensionPolicy + * @property {string|null} [creationTimestamp] VmExtensionPolicy creationTimestamp + * @property {string|null} [description] VmExtensionPolicy description + * @property {Object.|null} [extensionPolicies] VmExtensionPolicy extensionPolicies + * @property {string|null} [globalResourceLink] VmExtensionPolicy globalResourceLink + * @property {number|Long|null} [id] VmExtensionPolicy id + * @property {Array.|null} [instanceSelectors] VmExtensionPolicy instanceSelectors + * @property {string|null} [kind] VmExtensionPolicy kind + * @property {boolean|null} [managedByGlobal] VmExtensionPolicy managedByGlobal + * @property {string|null} [name] VmExtensionPolicy name + * @property {number|null} [priority] VmExtensionPolicy priority + * @property {string|null} [selfLink] VmExtensionPolicy selfLink + * @property {string|null} [selfLinkWithId] VmExtensionPolicy selfLinkWithId + * @property {string|null} [state] VmExtensionPolicy state + * @property {string|null} [updateTimestamp] VmExtensionPolicy updateTimestamp + */ + + /** + * Constructs a new VmExtensionPolicy. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a VmExtensionPolicy. + * @implements IVmExtensionPolicy + * @constructor + * @param {google.cloud.compute.v1beta.IVmExtensionPolicy=} [properties] Properties to set + */ + function VmExtensionPolicy(properties) { + this.extensionPolicies = {}; + this.instanceSelectors = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VmExtensionPolicy creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.creationTimestamp = null; + + /** + * VmExtensionPolicy description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.description = null; + + /** + * VmExtensionPolicy extensionPolicies. + * @member {Object.} extensionPolicies + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.extensionPolicies = $util.emptyObject; + + /** + * VmExtensionPolicy globalResourceLink. + * @member {string|null|undefined} globalResourceLink + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.globalResourceLink = null; + + /** + * VmExtensionPolicy id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.id = null; + + /** + * VmExtensionPolicy instanceSelectors. + * @member {Array.} instanceSelectors + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.instanceSelectors = $util.emptyArray; + + /** + * VmExtensionPolicy kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.kind = null; + + /** + * VmExtensionPolicy managedByGlobal. + * @member {boolean|null|undefined} managedByGlobal + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.managedByGlobal = null; + + /** + * VmExtensionPolicy name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.name = null; + + /** + * VmExtensionPolicy priority. + * @member {number|null|undefined} priority + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.priority = null; + + /** + * VmExtensionPolicy selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.selfLink = null; + + /** + * VmExtensionPolicy selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.selfLinkWithId = null; + + /** + * VmExtensionPolicy state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.state = null; + + /** + * VmExtensionPolicy updateTimestamp. + * @member {string|null|undefined} updateTimestamp + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + */ + VmExtensionPolicy.prototype.updateTimestamp = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_globalResourceLink", { + get: $util.oneOfGetter($oneOfFields = ["globalResourceLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_managedByGlobal", { + get: $util.oneOfGetter($oneOfFields = ["managedByGlobal"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_priority", { + get: $util.oneOfGetter($oneOfFields = ["priority"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicy.prototype, "_updateTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["updateTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VmExtensionPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.VmExtensionPolicy} VmExtensionPolicy instance + */ + VmExtensionPolicy.create = function create(properties) { + return new VmExtensionPolicy(properties); + }; + + /** + * Encodes the specified VmExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicy} message VmExtensionPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.managedByGlobal != null && Object.hasOwnProperty.call(message, "managedByGlobal")) + writer.uint32(/* id 88605675, wireType 0 =*/708845400).bool(message.managedByGlobal); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); + if (message.updateTimestamp != null && Object.hasOwnProperty.call(message, "updateTimestamp")) + writer.uint32(/* id 120894752, wireType 2 =*/967158018).string(message.updateTimestamp); + if (message.extensionPolicies != null && Object.hasOwnProperty.call(message, "extensionPolicies")) + for (var keys = Object.keys(message.extensionPolicies), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 227761488, wireType 2 =*/1822091906).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy.encode(message.extensionPolicies[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 445151652, wireType 0 =*/3561213216).int32(message.priority); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.globalResourceLink != null && Object.hasOwnProperty.call(message, "globalResourceLink")) + writer.uint32(/* id 516569583, wireType 2 =*/4132556666).string(message.globalResourceLink); + if (message.instanceSelectors != null && message.instanceSelectors.length) + for (var i = 0; i < message.instanceSelectors.length; ++i) + $root.google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.encode(message.instanceSelectors[i], writer.uint32(/* id 520298826, wireType 2 =*/4162390610).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VmExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicy} message VmExtensionPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VmExtensionPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.VmExtensionPolicy} VmExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicy.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.VmExtensionPolicy(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 227761488: { + if (message.extensionPolicies === $util.emptyObject) + message.extensionPolicies = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.extensionPolicies[key] = value; + break; + } + case 516569583: { + message.globalResourceLink = reader.string(); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 520298826: { + if (!(message.instanceSelectors && message.instanceSelectors.length)) + message.instanceSelectors = []; + message.instanceSelectors.push($root.google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 88605675: { + message.managedByGlobal = reader.bool(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 445151652: { + message.priority = reader.int32(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 109757585: { + message.state = reader.string(); + break; + } + case 120894752: { + message.updateTimestamp = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VmExtensionPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.VmExtensionPolicy} VmExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VmExtensionPolicy message. + * @function verify + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VmExtensionPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.extensionPolicies != null && message.hasOwnProperty("extensionPolicies")) { + if (!$util.isObject(message.extensionPolicies)) + return "extensionPolicies: object expected"; + var key = Object.keys(message.extensionPolicies); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy.verify(message.extensionPolicies[key[i]]); + if (error) + return "extensionPolicies." + error; + } + } + if (message.globalResourceLink != null && message.hasOwnProperty("globalResourceLink")) { + properties._globalResourceLink = 1; + if (!$util.isString(message.globalResourceLink)) + return "globalResourceLink: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + } + if (message.instanceSelectors != null && message.hasOwnProperty("instanceSelectors")) { + if (!Array.isArray(message.instanceSelectors)) + return "instanceSelectors: array expected"; + for (var i = 0; i < message.instanceSelectors.length; ++i) { + var error = $root.google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.verify(message.instanceSelectors[i]); + if (error) + return "instanceSelectors." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.managedByGlobal != null && message.hasOwnProperty("managedByGlobal")) { + properties._managedByGlobal = 1; + if (typeof message.managedByGlobal !== "boolean") + return "managedByGlobal: boolean expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.priority != null && message.hasOwnProperty("priority")) { + properties._priority = 1; + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } + if (message.updateTimestamp != null && message.hasOwnProperty("updateTimestamp")) { + properties._updateTimestamp = 1; + if (!$util.isString(message.updateTimestamp)) + return "updateTimestamp: string expected"; + } + return null; + }; + + /** + * Creates a VmExtensionPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.VmExtensionPolicy} VmExtensionPolicy + */ + VmExtensionPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.VmExtensionPolicy) + return object; + var message = new $root.google.cloud.compute.v1beta.VmExtensionPolicy(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.extensionPolicies) { + if (typeof object.extensionPolicies !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicy.extensionPolicies: object expected"); + message.extensionPolicies = {}; + for (var keys = Object.keys(object.extensionPolicies), i = 0; i < keys.length; ++i) { + if (typeof object.extensionPolicies[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicy.extensionPolicies: object expected"); + message.extensionPolicies[keys[i]] = $root.google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy.fromObject(object.extensionPolicies[keys[i]]); + } + } + if (object.globalResourceLink != null) + message.globalResourceLink = String(object.globalResourceLink); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.instanceSelectors) { + if (!Array.isArray(object.instanceSelectors)) + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicy.instanceSelectors: array expected"); + message.instanceSelectors = []; + for (var i = 0; i < object.instanceSelectors.length; ++i) { + if (typeof object.instanceSelectors[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicy.instanceSelectors: object expected"); + message.instanceSelectors[i] = $root.google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.fromObject(object.instanceSelectors[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.managedByGlobal != null) + message.managedByGlobal = Boolean(object.managedByGlobal); + if (object.name != null) + message.name = String(object.name); + if (object.priority != null) + message.priority = object.priority | 0; + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.state != null) + message.state = String(object.state); + if (object.updateTimestamp != null) + message.updateTimestamp = String(object.updateTimestamp); + return message; + }; + + /** + * Creates a plain object from a VmExtensionPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.VmExtensionPolicy} message VmExtensionPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VmExtensionPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instanceSelectors = []; + if (options.objects || options.defaults) + object.extensionPolicies = {}; + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; + if (options.oneofs) + object._selfLinkWithId = "selfLinkWithId"; + } + if (message.managedByGlobal != null && message.hasOwnProperty("managedByGlobal")) { + object.managedByGlobal = message.managedByGlobal; + if (options.oneofs) + object._managedByGlobal = "managedByGlobal"; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = message.state; + if (options.oneofs) + object._state = "state"; + } + if (message.updateTimestamp != null && message.hasOwnProperty("updateTimestamp")) { + object.updateTimestamp = message.updateTimestamp; + if (options.oneofs) + object._updateTimestamp = "updateTimestamp"; + } + var keys2; + if (message.extensionPolicies && (keys2 = Object.keys(message.extensionPolicies)).length) { + object.extensionPolicies = {}; + for (var j = 0; j < keys2.length; ++j) + object.extensionPolicies[keys2[j]] = $root.google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy.toObject(message.extensionPolicies[keys2[j]], options); + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.priority != null && message.hasOwnProperty("priority")) { + object.priority = message.priority; + if (options.oneofs) + object._priority = "priority"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + if (message.globalResourceLink != null && message.hasOwnProperty("globalResourceLink")) { + object.globalResourceLink = message.globalResourceLink; + if (options.oneofs) + object._globalResourceLink = "globalResourceLink"; + } + if (message.instanceSelectors && message.instanceSelectors.length) { + object.instanceSelectors = []; + for (var j = 0; j < message.instanceSelectors.length; ++j) + object.instanceSelectors[j] = $root.google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.toObject(message.instanceSelectors[j], options); + } + return object; + }; + + /** + * Converts this VmExtensionPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @instance + * @returns {Object.} JSON object + */ + VmExtensionPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VmExtensionPolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.VmExtensionPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VmExtensionPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.VmExtensionPolicy"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1beta.VmExtensionPolicy.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} ACTIVE=314733318 ACTIVE value + * @property {number} DELETING=528602024 DELETING value + * @property {number} STATE_UNSPECIFIED=470755401 STATE_UNSPECIFIED value + */ + VmExtensionPolicy.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[314733318] = "ACTIVE"] = 314733318; + values[valuesById[528602024] = "DELETING"] = 528602024; + values[valuesById[470755401] = "STATE_UNSPECIFIED"] = 470755401; + return values; + })(); + + return VmExtensionPolicy; + })(); + + v1beta.VmExtensionPolicyAggregatedListResponse = (function() { + + /** + * Properties of a VmExtensionPolicyAggregatedListResponse. + * @memberof google.cloud.compute.v1beta + * @interface IVmExtensionPolicyAggregatedListResponse + * @property {string|null} [etag] VmExtensionPolicyAggregatedListResponse etag + * @property {string|null} [id] VmExtensionPolicyAggregatedListResponse id + * @property {Object.|null} [items] VmExtensionPolicyAggregatedListResponse items + * @property {string|null} [kind] VmExtensionPolicyAggregatedListResponse kind + * @property {string|null} [nextPageToken] VmExtensionPolicyAggregatedListResponse nextPageToken + * @property {string|null} [selfLink] VmExtensionPolicyAggregatedListResponse selfLink + * @property {Array.|null} [unreachables] VmExtensionPolicyAggregatedListResponse unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] VmExtensionPolicyAggregatedListResponse warning + */ + + /** + * Constructs a new VmExtensionPolicyAggregatedListResponse. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a VmExtensionPolicyAggregatedListResponse. + * @implements IVmExtensionPolicyAggregatedListResponse + * @constructor + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyAggregatedListResponse=} [properties] Properties to set + */ + function VmExtensionPolicyAggregatedListResponse(properties) { + this.items = {}; + this.unreachables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VmExtensionPolicyAggregatedListResponse etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @instance + */ + VmExtensionPolicyAggregatedListResponse.prototype.etag = null; + + /** + * VmExtensionPolicyAggregatedListResponse id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @instance + */ + VmExtensionPolicyAggregatedListResponse.prototype.id = null; + + /** + * VmExtensionPolicyAggregatedListResponse items. + * @member {Object.} items + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @instance + */ + VmExtensionPolicyAggregatedListResponse.prototype.items = $util.emptyObject; + + /** + * VmExtensionPolicyAggregatedListResponse kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @instance + */ + VmExtensionPolicyAggregatedListResponse.prototype.kind = null; + + /** + * VmExtensionPolicyAggregatedListResponse nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @instance + */ + VmExtensionPolicyAggregatedListResponse.prototype.nextPageToken = null; + + /** + * VmExtensionPolicyAggregatedListResponse selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @instance + */ + VmExtensionPolicyAggregatedListResponse.prototype.selfLink = null; + + /** + * VmExtensionPolicyAggregatedListResponse unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @instance + */ + VmExtensionPolicyAggregatedListResponse.prototype.unreachables = $util.emptyArray; + + /** + * VmExtensionPolicyAggregatedListResponse warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @instance + */ + VmExtensionPolicyAggregatedListResponse.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyAggregatedListResponse.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyAggregatedListResponse.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyAggregatedListResponse.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyAggregatedListResponse.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyAggregatedListResponse.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyAggregatedListResponse.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VmExtensionPolicyAggregatedListResponse instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyAggregatedListResponse=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse} VmExtensionPolicyAggregatedListResponse instance + */ + VmExtensionPolicyAggregatedListResponse.create = function create(properties) { + return new VmExtensionPolicyAggregatedListResponse(properties); + }; + + /** + * Encodes the specified VmExtensionPolicyAggregatedListResponse message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyAggregatedListResponse} message VmExtensionPolicyAggregatedListResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyAggregatedListResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && Object.hasOwnProperty.call(message, "items")) + for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified VmExtensionPolicyAggregatedListResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyAggregatedListResponse} message VmExtensionPolicyAggregatedListResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyAggregatedListResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VmExtensionPolicyAggregatedListResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse} VmExtensionPolicyAggregatedListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyAggregatedListResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3123477: { + message.etag = reader.string(); + break; + } + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (message.items === $util.emptyObject) + message.items = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VmExtensionPolicyAggregatedListResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse} VmExtensionPolicyAggregatedListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyAggregatedListResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VmExtensionPolicyAggregatedListResponse message. + * @function verify + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VmExtensionPolicyAggregatedListResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.etag != null && message.hasOwnProperty("etag")) { + properties._etag = 1; + if (!$util.isString(message.etag)) + return "etag: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a VmExtensionPolicyAggregatedListResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse} VmExtensionPolicyAggregatedListResponse + */ + VmExtensionPolicyAggregatedListResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse) + return object; + var message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse(); + if (object.etag != null) + message.etag = String(object.etag); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse.items: object expected"); + message.items = {}; + for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { + if (typeof object.items[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.fromObject(object.items[keys[i]]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a VmExtensionPolicyAggregatedListResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @static + * @param {google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse} message VmExtensionPolicyAggregatedListResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VmExtensionPolicyAggregatedListResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.unreachables = []; + if (options.objects || options.defaults) + object.items = {}; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.etag != null && message.hasOwnProperty("etag")) { + object.etag = message.etag; + if (options.oneofs) + object._etag = "etag"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList.toObject(message.items[keys2[j]], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this VmExtensionPolicyAggregatedListResponse to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @instance + * @returns {Object.} JSON object + */ + VmExtensionPolicyAggregatedListResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VmExtensionPolicyAggregatedListResponse + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VmExtensionPolicyAggregatedListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse"; + }; + + return VmExtensionPolicyAggregatedListResponse; + })(); + + v1beta.VmExtensionPolicyExtensionPolicy = (function() { + + /** + * Properties of a VmExtensionPolicyExtensionPolicy. + * @memberof google.cloud.compute.v1beta + * @interface IVmExtensionPolicyExtensionPolicy + * @property {string|null} [pinnedVersion] VmExtensionPolicyExtensionPolicy pinnedVersion + * @property {string|null} [stringConfig] VmExtensionPolicyExtensionPolicy stringConfig + */ + + /** + * Constructs a new VmExtensionPolicyExtensionPolicy. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a VmExtensionPolicyExtensionPolicy. + * @implements IVmExtensionPolicyExtensionPolicy + * @constructor + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy=} [properties] Properties to set + */ + function VmExtensionPolicyExtensionPolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VmExtensionPolicyExtensionPolicy pinnedVersion. + * @member {string|null|undefined} pinnedVersion + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @instance + */ + VmExtensionPolicyExtensionPolicy.prototype.pinnedVersion = null; + + /** + * VmExtensionPolicyExtensionPolicy stringConfig. + * @member {string|null|undefined} stringConfig + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @instance + */ + VmExtensionPolicyExtensionPolicy.prototype.stringConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyExtensionPolicy.prototype, "_pinnedVersion", { + get: $util.oneOfGetter($oneOfFields = ["pinnedVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyExtensionPolicy.prototype, "_stringConfig", { + get: $util.oneOfGetter($oneOfFields = ["stringConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VmExtensionPolicyExtensionPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy} VmExtensionPolicyExtensionPolicy instance + */ + VmExtensionPolicyExtensionPolicy.create = function create(properties) { + return new VmExtensionPolicyExtensionPolicy(properties); + }; + + /** + * Encodes the specified VmExtensionPolicyExtensionPolicy message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy} message VmExtensionPolicyExtensionPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyExtensionPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stringConfig != null && Object.hasOwnProperty.call(message, "stringConfig")) + writer.uint32(/* id 318905136, wireType 2 =*/2551241090).string(message.stringConfig); + if (message.pinnedVersion != null && Object.hasOwnProperty.call(message, "pinnedVersion")) + writer.uint32(/* id 446267249, wireType 2 =*/3570137994).string(message.pinnedVersion); + return writer; + }; + + /** + * Encodes the specified VmExtensionPolicyExtensionPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyExtensionPolicy} message VmExtensionPolicyExtensionPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyExtensionPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VmExtensionPolicyExtensionPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy} VmExtensionPolicyExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyExtensionPolicy.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 446267249: { + message.pinnedVersion = reader.string(); + break; + } + case 318905136: { + message.stringConfig = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VmExtensionPolicyExtensionPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy} VmExtensionPolicyExtensionPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyExtensionPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VmExtensionPolicyExtensionPolicy message. + * @function verify + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VmExtensionPolicyExtensionPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.pinnedVersion != null && message.hasOwnProperty("pinnedVersion")) { + properties._pinnedVersion = 1; + if (!$util.isString(message.pinnedVersion)) + return "pinnedVersion: string expected"; + } + if (message.stringConfig != null && message.hasOwnProperty("stringConfig")) { + properties._stringConfig = 1; + if (!$util.isString(message.stringConfig)) + return "stringConfig: string expected"; + } + return null; + }; + + /** + * Creates a VmExtensionPolicyExtensionPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy} VmExtensionPolicyExtensionPolicy + */ + VmExtensionPolicyExtensionPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy) + return object; + var message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy(); + if (object.pinnedVersion != null) + message.pinnedVersion = String(object.pinnedVersion); + if (object.stringConfig != null) + message.stringConfig = String(object.stringConfig); + return message; + }; + + /** + * Creates a plain object from a VmExtensionPolicyExtensionPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @static + * @param {google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy} message VmExtensionPolicyExtensionPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VmExtensionPolicyExtensionPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.stringConfig != null && message.hasOwnProperty("stringConfig")) { + object.stringConfig = message.stringConfig; + if (options.oneofs) + object._stringConfig = "stringConfig"; + } + if (message.pinnedVersion != null && message.hasOwnProperty("pinnedVersion")) { + object.pinnedVersion = message.pinnedVersion; + if (options.oneofs) + object._pinnedVersion = "pinnedVersion"; + } + return object; + }; + + /** + * Converts this VmExtensionPolicyExtensionPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @instance + * @returns {Object.} JSON object + */ + VmExtensionPolicyExtensionPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VmExtensionPolicyExtensionPolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VmExtensionPolicyExtensionPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.VmExtensionPolicyExtensionPolicy"; + }; + + return VmExtensionPolicyExtensionPolicy; + })(); + + v1beta.VmExtensionPolicyInstanceSelector = (function() { + + /** + * Properties of a VmExtensionPolicyInstanceSelector. + * @memberof google.cloud.compute.v1beta + * @interface IVmExtensionPolicyInstanceSelector + * @property {google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector|null} [labelSelector] VmExtensionPolicyInstanceSelector labelSelector + */ + + /** + * Constructs a new VmExtensionPolicyInstanceSelector. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a VmExtensionPolicyInstanceSelector. + * @implements IVmExtensionPolicyInstanceSelector + * @constructor + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector=} [properties] Properties to set + */ + function VmExtensionPolicyInstanceSelector(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VmExtensionPolicyInstanceSelector labelSelector. + * @member {google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector|null|undefined} labelSelector + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @instance + */ + VmExtensionPolicyInstanceSelector.prototype.labelSelector = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyInstanceSelector.prototype, "_labelSelector", { + get: $util.oneOfGetter($oneOfFields = ["labelSelector"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VmExtensionPolicyInstanceSelector instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector} VmExtensionPolicyInstanceSelector instance + */ + VmExtensionPolicyInstanceSelector.create = function create(properties) { + return new VmExtensionPolicyInstanceSelector(properties); + }; + + /** + * Encodes the specified VmExtensionPolicyInstanceSelector message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector} message VmExtensionPolicyInstanceSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyInstanceSelector.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.labelSelector != null && Object.hasOwnProperty.call(message, "labelSelector")) + $root.google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.encode(message.labelSelector, writer.uint32(/* id 349780170, wireType 2 =*/2798241362).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VmExtensionPolicyInstanceSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyInstanceSelector} message VmExtensionPolicyInstanceSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyInstanceSelector.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VmExtensionPolicyInstanceSelector message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector} VmExtensionPolicyInstanceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyInstanceSelector.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 349780170: { + message.labelSelector = $root.google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VmExtensionPolicyInstanceSelector message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector} VmExtensionPolicyInstanceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyInstanceSelector.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VmExtensionPolicyInstanceSelector message. + * @function verify + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VmExtensionPolicyInstanceSelector.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.labelSelector != null && message.hasOwnProperty("labelSelector")) { + properties._labelSelector = 1; + { + var error = $root.google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.verify(message.labelSelector); + if (error) + return "labelSelector." + error; + } + } + return null; + }; + + /** + * Creates a VmExtensionPolicyInstanceSelector message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector} VmExtensionPolicyInstanceSelector + */ + VmExtensionPolicyInstanceSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector) + return object; + var message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector(); + if (object.labelSelector != null) { + if (typeof object.labelSelector !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector.labelSelector: object expected"); + message.labelSelector = $root.google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.fromObject(object.labelSelector); + } + return message; + }; + + /** + * Creates a plain object from a VmExtensionPolicyInstanceSelector message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @static + * @param {google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector} message VmExtensionPolicyInstanceSelector + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VmExtensionPolicyInstanceSelector.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.labelSelector != null && message.hasOwnProperty("labelSelector")) { + object.labelSelector = $root.google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.toObject(message.labelSelector, options); + if (options.oneofs) + object._labelSelector = "labelSelector"; + } + return object; + }; + + /** + * Converts this VmExtensionPolicyInstanceSelector to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @instance + * @returns {Object.} JSON object + */ + VmExtensionPolicyInstanceSelector.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VmExtensionPolicyInstanceSelector + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VmExtensionPolicyInstanceSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.VmExtensionPolicyInstanceSelector"; + }; + + return VmExtensionPolicyInstanceSelector; + })(); + + v1beta.VmExtensionPolicyLabelSelector = (function() { + + /** + * Properties of a VmExtensionPolicyLabelSelector. + * @memberof google.cloud.compute.v1beta + * @interface IVmExtensionPolicyLabelSelector + * @property {Object.|null} [inclusionLabels] VmExtensionPolicyLabelSelector inclusionLabels + */ + + /** + * Constructs a new VmExtensionPolicyLabelSelector. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a VmExtensionPolicyLabelSelector. + * @implements IVmExtensionPolicyLabelSelector + * @constructor + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector=} [properties] Properties to set + */ + function VmExtensionPolicyLabelSelector(properties) { + this.inclusionLabels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VmExtensionPolicyLabelSelector inclusionLabels. + * @member {Object.} inclusionLabels + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @instance + */ + VmExtensionPolicyLabelSelector.prototype.inclusionLabels = $util.emptyObject; + + /** + * Creates a new VmExtensionPolicyLabelSelector instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector} VmExtensionPolicyLabelSelector instance + */ + VmExtensionPolicyLabelSelector.create = function create(properties) { + return new VmExtensionPolicyLabelSelector(properties); + }; + + /** + * Encodes the specified VmExtensionPolicyLabelSelector message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector} message VmExtensionPolicyLabelSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyLabelSelector.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inclusionLabels != null && Object.hasOwnProperty.call(message, "inclusionLabels")) + for (var keys = Object.keys(message.inclusionLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 501312642, wireType 2 =*/4010501138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.inclusionLabels[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified VmExtensionPolicyLabelSelector message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyLabelSelector} message VmExtensionPolicyLabelSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyLabelSelector.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VmExtensionPolicyLabelSelector message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector} VmExtensionPolicyLabelSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyLabelSelector.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 501312642: { + if (message.inclusionLabels === $util.emptyObject) + message.inclusionLabels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inclusionLabels[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VmExtensionPolicyLabelSelector message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector} VmExtensionPolicyLabelSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyLabelSelector.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VmExtensionPolicyLabelSelector message. + * @function verify + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VmExtensionPolicyLabelSelector.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inclusionLabels != null && message.hasOwnProperty("inclusionLabels")) { + if (!$util.isObject(message.inclusionLabels)) + return "inclusionLabels: object expected"; + var key = Object.keys(message.inclusionLabels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.inclusionLabels[key[i]])) + return "inclusionLabels: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a VmExtensionPolicyLabelSelector message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector} VmExtensionPolicyLabelSelector + */ + VmExtensionPolicyLabelSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector) + return object; + var message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector(); + if (object.inclusionLabels) { + if (typeof object.inclusionLabels !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector.inclusionLabels: object expected"); + message.inclusionLabels = {}; + for (var keys = Object.keys(object.inclusionLabels), i = 0; i < keys.length; ++i) + message.inclusionLabels[keys[i]] = String(object.inclusionLabels[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a VmExtensionPolicyLabelSelector message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @static + * @param {google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector} message VmExtensionPolicyLabelSelector + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VmExtensionPolicyLabelSelector.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.inclusionLabels = {}; + var keys2; + if (message.inclusionLabels && (keys2 = Object.keys(message.inclusionLabels)).length) { + object.inclusionLabels = {}; + for (var j = 0; j < keys2.length; ++j) + object.inclusionLabels[keys2[j]] = message.inclusionLabels[keys2[j]]; + } + return object; + }; + + /** + * Converts this VmExtensionPolicyLabelSelector to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @instance + * @returns {Object.} JSON object + */ + VmExtensionPolicyLabelSelector.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VmExtensionPolicyLabelSelector + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VmExtensionPolicyLabelSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.VmExtensionPolicyLabelSelector"; + }; + + return VmExtensionPolicyLabelSelector; + })(); + + v1beta.VmExtensionPolicyList = (function() { + + /** + * Properties of a VmExtensionPolicyList. + * @memberof google.cloud.compute.v1beta + * @interface IVmExtensionPolicyList + * @property {string|null} [etag] VmExtensionPolicyList etag + * @property {string|null} [id] VmExtensionPolicyList id + * @property {Array.|null} [items] VmExtensionPolicyList items + * @property {string|null} [kind] VmExtensionPolicyList kind + * @property {string|null} [nextPageToken] VmExtensionPolicyList nextPageToken + * @property {string|null} [selfLink] VmExtensionPolicyList selfLink + * @property {Array.|null} [unreachables] VmExtensionPolicyList unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] VmExtensionPolicyList warning + */ + + /** + * Constructs a new VmExtensionPolicyList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a VmExtensionPolicyList. + * @implements IVmExtensionPolicyList + * @constructor + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyList=} [properties] Properties to set + */ + function VmExtensionPolicyList(properties) { + this.items = []; + this.unreachables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VmExtensionPolicyList etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.etag = null; + + /** + * VmExtensionPolicyList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.id = null; + + /** + * VmExtensionPolicyList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.items = $util.emptyArray; + + /** + * VmExtensionPolicyList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.kind = null; + + /** + * VmExtensionPolicyList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.nextPageToken = null; + + /** + * VmExtensionPolicyList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.selfLink = null; + + /** + * VmExtensionPolicyList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.unreachables = $util.emptyArray; + + /** + * VmExtensionPolicyList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @instance + */ + VmExtensionPolicyList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyList.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(VmExtensionPolicyList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VmExtensionPolicyList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyList} VmExtensionPolicyList instance + */ + VmExtensionPolicyList.create = function create(properties) { + return new VmExtensionPolicyList(properties); + }; + + /** + * Encodes the specified VmExtensionPolicyList message. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyList} message VmExtensionPolicyList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1beta.VmExtensionPolicy.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified VmExtensionPolicyList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.VmExtensionPolicyList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @static + * @param {google.cloud.compute.v1beta.IVmExtensionPolicyList} message VmExtensionPolicyList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VmExtensionPolicyList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VmExtensionPolicyList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyList} VmExtensionPolicyList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3123477: { + message.etag = reader.string(); + break; + } + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1beta.VmExtensionPolicy.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VmExtensionPolicyList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyList} VmExtensionPolicyList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VmExtensionPolicyList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VmExtensionPolicyList message. + * @function verify + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VmExtensionPolicyList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.etag != null && message.hasOwnProperty("etag")) { + properties._etag = 1; + if (!$util.isString(message.etag)) + return "etag: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1beta.VmExtensionPolicy.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: string[] expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a VmExtensionPolicyList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.VmExtensionPolicyList} VmExtensionPolicyList + */ + VmExtensionPolicyList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.VmExtensionPolicyList) + return object; + var message = new $root.google.cloud.compute.v1beta.VmExtensionPolicyList(); + if (object.etag != null) + message.etag = String(object.etag); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyList.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1beta.VmExtensionPolicy.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyList.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.VmExtensionPolicyList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a VmExtensionPolicyList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @static + * @param {google.cloud.compute.v1beta.VmExtensionPolicyList} message VmExtensionPolicyList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VmExtensionPolicyList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.items = []; + object.unreachables = []; + } + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.etag != null && message.hasOwnProperty("etag")) { + object.etag = message.etag; + if (options.oneofs) + object._etag = "etag"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1beta.VmExtensionPolicy.toObject(message.items[j], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this VmExtensionPolicyList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @instance + * @returns {Object.} JSON object + */ + VmExtensionPolicyList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VmExtensionPolicyList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.VmExtensionPolicyList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VmExtensionPolicyList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.VmExtensionPolicyList"; + }; + + return VmExtensionPolicyList; + })(); + v1beta.VpnGateway = (function() { /** @@ -1274526,6 +1300289,308 @@ return ZoneSetLabelsRequest; })(); + v1beta.ZoneSetNestedPolicyRequest = (function() { + + /** + * Properties of a ZoneSetNestedPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @interface IZoneSetNestedPolicyRequest + * @property {Array.|null} [bindings] ZoneSetNestedPolicyRequest bindings + * @property {string|null} [etag] ZoneSetNestedPolicyRequest etag + * @property {google.cloud.compute.v1beta.IPolicy|null} [policy] ZoneSetNestedPolicyRequest policy + */ + + /** + * Constructs a new ZoneSetNestedPolicyRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ZoneSetNestedPolicyRequest. + * @implements IZoneSetNestedPolicyRequest + * @constructor + * @param {google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest=} [properties] Properties to set + */ + function ZoneSetNestedPolicyRequest(properties) { + this.bindings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ZoneSetNestedPolicyRequest bindings. + * @member {Array.} bindings + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @instance + */ + ZoneSetNestedPolicyRequest.prototype.bindings = $util.emptyArray; + + /** + * ZoneSetNestedPolicyRequest etag. + * @member {string|null|undefined} etag + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @instance + */ + ZoneSetNestedPolicyRequest.prototype.etag = null; + + /** + * ZoneSetNestedPolicyRequest policy. + * @member {google.cloud.compute.v1beta.IPolicy|null|undefined} policy + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @instance + */ + ZoneSetNestedPolicyRequest.prototype.policy = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ZoneSetNestedPolicyRequest.prototype, "_etag", { + get: $util.oneOfGetter($oneOfFields = ["etag"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ZoneSetNestedPolicyRequest.prototype, "_policy", { + get: $util.oneOfGetter($oneOfFields = ["policy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ZoneSetNestedPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest} ZoneSetNestedPolicyRequest instance + */ + ZoneSetNestedPolicyRequest.create = function create(properties) { + return new ZoneSetNestedPolicyRequest(properties); + }; + + /** + * Encodes the specified ZoneSetNestedPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest} message ZoneSetNestedPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ZoneSetNestedPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3123477, wireType 2 =*/24987818).string(message.etag); + if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) + $root.google.cloud.compute.v1beta.Policy.encode(message.policy, writer.uint32(/* id 91071794, wireType 2 =*/728574354).fork()).ldelim(); + if (message.bindings != null && message.bindings.length) + for (var i = 0; i < message.bindings.length; ++i) + $root.google.cloud.compute.v1beta.Binding.encode(message.bindings[i], writer.uint32(/* id 403251854, wireType 2 =*/3226014834).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ZoneSetNestedPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.IZoneSetNestedPolicyRequest} message ZoneSetNestedPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ZoneSetNestedPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ZoneSetNestedPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest} ZoneSetNestedPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ZoneSetNestedPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 403251854: { + if (!(message.bindings && message.bindings.length)) + message.bindings = []; + message.bindings.push($root.google.cloud.compute.v1beta.Binding.decode(reader, reader.uint32())); + break; + } + case 3123477: { + message.etag = reader.string(); + break; + } + case 91071794: { + message.policy = $root.google.cloud.compute.v1beta.Policy.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ZoneSetNestedPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest} ZoneSetNestedPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ZoneSetNestedPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ZoneSetNestedPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ZoneSetNestedPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.bindings != null && message.hasOwnProperty("bindings")) { + if (!Array.isArray(message.bindings)) + return "bindings: array expected"; + for (var i = 0; i < message.bindings.length; ++i) { + var error = $root.google.cloud.compute.v1beta.Binding.verify(message.bindings[i]); + if (error) + return "bindings." + error; + } + } + if (message.etag != null && message.hasOwnProperty("etag")) { + properties._etag = 1; + if (!$util.isString(message.etag)) + return "etag: string expected"; + } + if (message.policy != null && message.hasOwnProperty("policy")) { + properties._policy = 1; + { + var error = $root.google.cloud.compute.v1beta.Policy.verify(message.policy); + if (error) + return "policy." + error; + } + } + return null; + }; + + /** + * Creates a ZoneSetNestedPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest} ZoneSetNestedPolicyRequest + */ + ZoneSetNestedPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest(); + if (object.bindings) { + if (!Array.isArray(object.bindings)) + throw TypeError(".google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.bindings: array expected"); + message.bindings = []; + for (var i = 0; i < object.bindings.length; ++i) { + if (typeof object.bindings[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.bindings: object expected"); + message.bindings[i] = $root.google.cloud.compute.v1beta.Binding.fromObject(object.bindings[i]); + } + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.policy != null) { + if (typeof object.policy !== "object") + throw TypeError(".google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest.policy: object expected"); + message.policy = $root.google.cloud.compute.v1beta.Policy.fromObject(object.policy); + } + return message; + }; + + /** + * Creates a plain object from a ZoneSetNestedPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @static + * @param {google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest} message ZoneSetNestedPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ZoneSetNestedPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.bindings = []; + if (message.etag != null && message.hasOwnProperty("etag")) { + object.etag = message.etag; + if (options.oneofs) + object._etag = "etag"; + } + if (message.policy != null && message.hasOwnProperty("policy")) { + object.policy = $root.google.cloud.compute.v1beta.Policy.toObject(message.policy, options); + if (options.oneofs) + object._policy = "policy"; + } + if (message.bindings && message.bindings.length) { + object.bindings = []; + for (var j = 0; j < message.bindings.length; ++j) + object.bindings[j] = $root.google.cloud.compute.v1beta.Binding.toObject(message.bindings[j], options); + } + return object; + }; + + /** + * Converts this ZoneSetNestedPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + ZoneSetNestedPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ZoneSetNestedPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ZoneSetNestedPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest"; + }; + + return ZoneSetNestedPolicyRequest; + })(); + v1beta.ZoneSetPolicyRequest = (function() { /** @@ -1275693,6 +1301758,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.BackendBuckets|aggregatedList}. + * @memberof google.cloud.compute.v1beta.BackendBuckets + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.BackendBucketAggregatedList} [response] BackendBucketAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.BackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest} request AggregatedListBackendBucketsRequest message or plain object + * @param {google.cloud.compute.v1beta.BackendBuckets.AggregatedListCallback} callback Node-style callback called with the error, if any, and BackendBucketAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BackendBuckets.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest, $root.google.cloud.compute.v1beta.BackendBucketAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.BackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest} request AggregatedListBackendBucketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.BackendBuckets|delete_}. * @memberof google.cloud.compute.v1beta.BackendBuckets @@ -1281008,6 +1307106,107 @@ return GlobalPublicDelegatedPrefixes; })(); + v1beta.GlobalVmExtensionPolicies = (function() { + + /** + * Constructs a new GlobalVmExtensionPolicies service. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicies + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function GlobalVmExtensionPolicies(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (GlobalVmExtensionPolicies.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = GlobalVmExtensionPolicies; + + /** + * Creates new GlobalVmExtensionPolicies service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicies + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {GlobalVmExtensionPolicies} RPC service. Useful where requests and/or responses are streamed. + */ + GlobalVmExtensionPolicies.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicies|aggregatedList}. + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicies + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse} [response] VmExtensionPolicyAggregatedListResponse + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest} request AggregatedListGlobalVmExtensionPoliciesRequest message or plain object + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicies.AggregatedListCallback} callback Node-style callback called with the error, if any, and VmExtensionPolicyAggregatedListResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GlobalVmExtensionPolicies.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest, $root.google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest} request AggregatedListGlobalVmExtensionPoliciesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicies|get}. + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicies + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicy} [response] GlobalVmExtensionPolicy + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest} request GetGlobalVmExtensionPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicies.GetCallback} callback Node-style callback called with the error, if any, and GlobalVmExtensionPolicy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GlobalVmExtensionPolicies.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest, $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicy, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest} request GetGlobalVmExtensionPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return GlobalVmExtensionPolicies; + })(); + v1beta.HealthChecks = (function() { /** @@ -1282269,6 +1308468,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.InstanceGroupManagers|getAvailableAcceleratorTopologies}. + * @memberof google.cloud.compute.v1beta.InstanceGroupManagers + * @typedef GetAvailableAcceleratorTopologiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse} [response] InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + */ + + /** + * Calls GetAvailableAcceleratorTopologies. + * @function getAvailableAcceleratorTopologies + * @memberof google.cloud.compute.v1beta.InstanceGroupManagers + * @instance + * @param {google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest} request GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message or plain object + * @param {google.cloud.compute.v1beta.InstanceGroupManagers.GetAvailableAcceleratorTopologiesCallback} callback Node-style callback called with the error, if any, and InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(InstanceGroupManagers.prototype.getAvailableAcceleratorTopologies = function getAvailableAcceleratorTopologies(request, callback) { + return this.rpcCall(getAvailableAcceleratorTopologies, $root.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest, $root.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, request, callback); + }, "name", { value: "GetAvailableAcceleratorTopologies" }); + + /** + * Calls GetAvailableAcceleratorTopologies. + * @function getAvailableAcceleratorTopologies + * @memberof google.cloud.compute.v1beta.InstanceGroupManagers + * @instance + * @param {google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest} request GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.InstanceGroupManagers|insert}. * @memberof google.cloud.compute.v1beta.InstanceGroupManagers @@ -1293719,6 +1319951,338 @@ return RegionAutoscalers; })(); + v1beta.RegionBackendBuckets = (function() { + + /** + * Constructs a new RegionBackendBuckets service. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a RegionBackendBuckets + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function RegionBackendBuckets(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionBackendBuckets.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionBackendBuckets; + + /** + * Creates new RegionBackendBuckets service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {RegionBackendBuckets} RPC service. Useful where requests and/or responses are streamed. + */ + RegionBackendBuckets.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|delete_}. + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest} request DeleteRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionBackendBuckets.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionBackendBuckets.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest} request DeleteRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|get}. + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.BackendBucket} [response] BackendBucket + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IGetRegionBackendBucketRequest} request GetRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionBackendBuckets.GetCallback} callback Node-style callback called with the error, if any, and BackendBucket + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionBackendBuckets.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1beta.GetRegionBackendBucketRequest, $root.google.cloud.compute.v1beta.BackendBucket, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IGetRegionBackendBucketRequest} request GetRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|getIamPolicy}. + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest} request GetIamPolicyRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionBackendBuckets.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionBackendBuckets.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest} request GetIamPolicyRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|insert}. + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest} request InsertRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionBackendBuckets.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionBackendBuckets.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest} request InsertRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|list}. + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.BackendBucketList} [response] BackendBucketList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IListRegionBackendBucketsRequest} request ListRegionBackendBucketsRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionBackendBuckets.ListCallback} callback Node-style callback called with the error, if any, and BackendBucketList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionBackendBuckets.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest, $root.google.cloud.compute.v1beta.BackendBucketList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IListRegionBackendBucketsRequest} request ListRegionBackendBucketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|listUsable}. + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @typedef ListUsableCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.BackendBucketListUsable} [response] BackendBucketListUsable + */ + + /** + * Calls ListUsable. + * @function listUsable + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest} request ListUsableRegionBackendBucketsRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionBackendBuckets.ListUsableCallback} callback Node-style callback called with the error, if any, and BackendBucketListUsable + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionBackendBuckets.prototype.listUsable = function listUsable(request, callback) { + return this.rpcCall(listUsable, $root.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest, $root.google.cloud.compute.v1beta.BackendBucketListUsable, request, callback); + }, "name", { value: "ListUsable" }); + + /** + * Calls ListUsable. + * @function listUsable + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest} request ListUsableRegionBackendBucketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|patch}. + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @typedef PatchCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest} request PatchRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionBackendBuckets.PatchCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionBackendBuckets.prototype.patch = function patch(request, callback) { + return this.rpcCall(patch, $root.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Patch" }); + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest} request PatchRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|setIamPolicy}. + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest} request SetIamPolicyRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionBackendBuckets.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionBackendBuckets.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest} request SetIamPolicyRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionBackendBuckets|testIamPermissions}. + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest} request TestIamPermissionsRegionBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionBackendBuckets.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionBackendBuckets.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest, $root.google.cloud.compute.v1beta.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.RegionBackendBuckets + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest} request TestIamPermissionsRegionBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionBackendBuckets; + })(); + v1beta.RegionBackendServices = (function() { /** @@ -1294416,6 +1320980,272 @@ return RegionCommitments; })(); + v1beta.RegionCompositeHealthChecks = (function() { + + /** + * Constructs a new RegionCompositeHealthChecks service. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a RegionCompositeHealthChecks + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function RegionCompositeHealthChecks(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionCompositeHealthChecks.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionCompositeHealthChecks; + + /** + * Creates new RegionCompositeHealthChecks service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {RegionCompositeHealthChecks} RPC service. Useful where requests and/or responses are streamed. + */ + RegionCompositeHealthChecks.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|aggregatedList}. + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList} [response] CompositeHealthCheckAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest} request AggregatedListRegionCompositeHealthChecksRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionCompositeHealthChecks.AggregatedListCallback} callback Node-style callback called with the error, if any, and CompositeHealthCheckAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest, $root.google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest} request AggregatedListRegionCompositeHealthChecksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|delete_}. + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest} request DeleteRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionCompositeHealthChecks.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest} request DeleteRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|get}. + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.CompositeHealthCheck} [response] CompositeHealthCheck + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest} request GetRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionCompositeHealthChecks.GetCallback} callback Node-style callback called with the error, if any, and CompositeHealthCheck + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1beta.CompositeHealthCheck, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest} request GetRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|insert}. + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest} request InsertRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionCompositeHealthChecks.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest} request InsertRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|list}. + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.CompositeHealthCheckList} [response] CompositeHealthCheckList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest} request ListRegionCompositeHealthChecksRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionCompositeHealthChecks.ListCallback} callback Node-style callback called with the error, if any, and CompositeHealthCheckList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest, $root.google.cloud.compute.v1beta.CompositeHealthCheckList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest} request ListRegionCompositeHealthChecksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|patch}. + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @typedef PatchCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest} request PatchRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionCompositeHealthChecks.PatchCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.patch = function patch(request, callback) { + return this.rpcCall(patch, $root.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Patch" }); + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest} request PatchRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionCompositeHealthChecks|testIamPermissions}. + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest} request TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionCompositeHealthChecks.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1beta.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest} request TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionCompositeHealthChecks; + })(); + v1beta.RegionDiskSettings = (function() { /** @@ -1295214,6 +1322044,272 @@ return RegionDisks; })(); + v1beta.RegionHealthAggregationPolicies = (function() { + + /** + * Constructs a new RegionHealthAggregationPolicies service. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a RegionHealthAggregationPolicies + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function RegionHealthAggregationPolicies(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionHealthAggregationPolicies.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionHealthAggregationPolicies; + + /** + * Creates new RegionHealthAggregationPolicies service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {RegionHealthAggregationPolicies} RPC service. Useful where requests and/or responses are streamed. + */ + RegionHealthAggregationPolicies.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|aggregatedList}. + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList} [response] HealthAggregationPolicyAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest} request AggregatedListRegionHealthAggregationPoliciesRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionHealthAggregationPolicies.AggregatedListCallback} callback Node-style callback called with the error, if any, and HealthAggregationPolicyAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest, $root.google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest} request AggregatedListRegionHealthAggregationPoliciesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|delete_}. + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest} request DeleteRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionHealthAggregationPolicies.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest} request DeleteRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|get}. + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.HealthAggregationPolicy} [response] HealthAggregationPolicy + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest} request GetRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionHealthAggregationPolicies.GetCallback} callback Node-style callback called with the error, if any, and HealthAggregationPolicy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1beta.HealthAggregationPolicy, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest} request GetRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|insert}. + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest} request InsertRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionHealthAggregationPolicies.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest} request InsertRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|list}. + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.HealthAggregationPolicyList} [response] HealthAggregationPolicyList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest} request ListRegionHealthAggregationPoliciesRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionHealthAggregationPolicies.ListCallback} callback Node-style callback called with the error, if any, and HealthAggregationPolicyList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest, $root.google.cloud.compute.v1beta.HealthAggregationPolicyList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest} request ListRegionHealthAggregationPoliciesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|patch}. + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @typedef PatchCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest} request PatchRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionHealthAggregationPolicies.PatchCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.patch = function patch(request, callback) { + return this.rpcCall(patch, $root.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Patch" }); + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest} request PatchRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthAggregationPolicies|testIamPermissions}. + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest} request TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionHealthAggregationPolicies.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1beta.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest} request TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionHealthAggregationPolicies; + })(); + v1beta.RegionHealthCheckServices = (function() { /** @@ -1302261,6 +1329357,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationBlocks|getIamPolicy}. + * @memberof google.cloud.compute.v1beta.ReservationBlocks + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.ReservationBlocks + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest} request GetIamPolicyReservationBlockRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationBlocks.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationBlocks.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.ReservationBlocks + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest} request GetIamPolicyReservationBlockRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.ReservationBlocks|list}. * @memberof google.cloud.compute.v1beta.ReservationBlocks @@ -1302327,6 +1329456,72 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationBlocks|setIamPolicy}. + * @memberof google.cloud.compute.v1beta.ReservationBlocks + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.ReservationBlocks + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest} request SetIamPolicyReservationBlockRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationBlocks.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationBlocks.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.ReservationBlocks + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest} request SetIamPolicyReservationBlockRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationBlocks|testIamPermissions}. + * @memberof google.cloud.compute.v1beta.ReservationBlocks + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.ReservationBlocks + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest} request TestIamPermissionsReservationBlockRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationBlocks.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationBlocks.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest, $root.google.cloud.compute.v1beta.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.ReservationBlocks + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest} request TestIamPermissionsReservationBlockRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return ReservationBlocks; })(); @@ -1302395,6 +1329590,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|getIamPolicy}. + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest} request GetIamPolicyReservationSubBlockRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationSubBlocks.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSubBlocks.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest} request GetIamPolicyReservationSubBlockRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|list}. * @memberof google.cloud.compute.v1beta.ReservationSubBlocks @@ -1302494,6 +1329722,72 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|setIamPolicy}. + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest} request SetIamPolicyReservationSubBlockRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationSubBlocks.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSubBlocks.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest, $root.google.cloud.compute.v1beta.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest} request SetIamPolicyReservationSubBlockRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|testIamPermissions}. + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest} request TestIamPermissionsReservationSubBlockRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationSubBlocks.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSubBlocks.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest, $root.google.cloud.compute.v1beta.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest} request TestIamPermissionsReservationSubBlockRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return ReservationSubBlocks; })(); @@ -1310667,6 +1337961,206 @@ return ZoneOperations; })(); + v1beta.ZoneVmExtensionPolicies = (function() { + + /** + * Constructs a new ZoneVmExtensionPolicies service. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ZoneVmExtensionPolicies + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function ZoneVmExtensionPolicies(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ZoneVmExtensionPolicies.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ZoneVmExtensionPolicies; + + /** + * Creates new ZoneVmExtensionPolicies service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ZoneVmExtensionPolicies} RPC service. Useful where requests and/or responses are streamed. + */ + ZoneVmExtensionPolicies.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|delete_}. + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest} request DeleteZoneVmExtensionPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.ZoneVmExtensionPolicies.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ZoneVmExtensionPolicies.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest} request DeleteZoneVmExtensionPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|get}. + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.VmExtensionPolicy} [response] VmExtensionPolicy + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest} request GetZoneVmExtensionPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.ZoneVmExtensionPolicies.GetCallback} callback Node-style callback called with the error, if any, and VmExtensionPolicy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ZoneVmExtensionPolicies.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest, $root.google.cloud.compute.v1beta.VmExtensionPolicy, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest} request GetZoneVmExtensionPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|insert}. + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest} request InsertZoneVmExtensionPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.ZoneVmExtensionPolicies.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ZoneVmExtensionPolicies.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest} request InsertZoneVmExtensionPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|list}. + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.VmExtensionPolicyList} [response] VmExtensionPolicyList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest} request ListZoneVmExtensionPoliciesRequest message or plain object + * @param {google.cloud.compute.v1beta.ZoneVmExtensionPolicies.ListCallback} callback Node-style callback called with the error, if any, and VmExtensionPolicyList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ZoneVmExtensionPolicies.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest, $root.google.cloud.compute.v1beta.VmExtensionPolicyList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest} request ListZoneVmExtensionPoliciesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1beta.ZoneVmExtensionPolicies|update}. + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @typedef UpdateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest} request UpdateZoneVmExtensionPolicyRequest message or plain object + * @param {google.cloud.compute.v1beta.ZoneVmExtensionPolicies.UpdateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ZoneVmExtensionPolicies.prototype.update = function update(request, callback) { + return this.rpcCall(update, $root.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "Update" }); + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1beta.ZoneVmExtensionPolicies + * @instance + * @param {google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest} request UpdateZoneVmExtensionPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ZoneVmExtensionPolicies; + })(); + v1beta.Zones = (function() { /** diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index 9b9fa8c78f3e..17eabc35cb3a 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -112965,6 +112965,79 @@ } } }, + "AcceleratorTopologiesInfo": { + "fields": { + "acceleratorTopologyInfos": { + "rule": "repeated", + "type": "AcceleratorTopologiesInfoAcceleratorTopologyInfo", + "id": 219451401 + } + } + }, + "AcceleratorTopologiesInfoAcceleratorTopologyInfo": { + "oneofs": { + "_acceleratorTopology": { + "oneof": [ + "acceleratorTopology" + ] + } + }, + "fields": { + "acceleratorTopology": { + "type": "string", + "id": 389323203, + "options": { + "proto3_optional": true + } + }, + "infoPerTopologyStates": { + "rule": "repeated", + "type": "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState", + "id": 183777695 + } + } + }, + "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState": { + "oneofs": { + "_count": { + "oneof": [ + "count" + ] + }, + "_state": { + "oneof": [ + "state" + ] + } + }, + "fields": { + "count": { + "type": "int32", + "id": 94851343, + "options": { + "proto3_optional": true + } + }, + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "State": { + "values": { + "UNDEFINED_STATE": 0, + "AVAILABLE": 442079913, + "RUNNING": 121282975, + "TOPOLOGY_STATE_UNSPECIFIED": 188327545, + "UNHEALTHY": 462118084 + } + } + } + }, "AcceleratorType": { "oneofs": { "_creationTimestamp": { @@ -115523,6 +115596,103 @@ } } }, + "AggregatedListBackendBucketsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProjectNumber": { + "oneof": [ + "serviceProjectNumber" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "includeAllScopes": { + "type": "bool", + "id": 391327988, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "serviceProjectNumber": { + "type": "int64", + "id": 316757497, + "options": { + "proto3_optional": true + } + } + } + }, "AggregatedListBackendServicesRequest": { "oneofs": { "_filter": { @@ -116105,7 +116275,7 @@ } } }, - "AggregatedListHealthChecksRequest": { + "AggregatedListGlobalVmExtensionPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -116202,7 +116372,7 @@ } } }, - "AggregatedListInstanceGroupManagersRequest": { + "AggregatedListHealthChecksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -116299,7 +116469,7 @@ } } }, - "AggregatedListInstanceGroupsRequest": { + "AggregatedListInstanceGroupManagersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -116396,7 +116566,7 @@ } } }, - "AggregatedListInstanceTemplatesRequest": { + "AggregatedListInstanceGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -116493,7 +116663,7 @@ } } }, - "AggregatedListInstancesRequest": { + "AggregatedListInstanceTemplatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -116590,7 +116760,7 @@ } } }, - "AggregatedListInstantSnapshotsRequest": { + "AggregatedListInstancesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -116687,7 +116857,7 @@ } } }, - "AggregatedListInterconnectAttachmentsRequest": { + "AggregatedListInstantSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -116784,7 +116954,7 @@ } } }, - "AggregatedListMachineTypesRequest": { + "AggregatedListInterconnectAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -116881,7 +117051,7 @@ } } }, - "AggregatedListNetworkAttachmentsRequest": { + "AggregatedListMachineTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -116978,7 +117148,7 @@ } } }, - "AggregatedListNetworkEdgeSecurityServicesRequest": { + "AggregatedListNetworkAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117075,7 +117245,7 @@ } } }, - "AggregatedListNetworkEndpointGroupsRequest": { + "AggregatedListNetworkEdgeSecurityServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117172,7 +117342,7 @@ } } }, - "AggregatedListNetworkFirewallPoliciesRequest": { + "AggregatedListNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117269,7 +117439,7 @@ } } }, - "AggregatedListNodeGroupsRequest": { + "AggregatedListNetworkFirewallPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117366,7 +117536,7 @@ } } }, - "AggregatedListNodeTemplatesRequest": { + "AggregatedListNodeGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117463,7 +117633,7 @@ } } }, - "AggregatedListNodeTypesRequest": { + "AggregatedListNodeTemplatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117560,7 +117730,7 @@ } } }, - "AggregatedListPacketMirroringsRequest": { + "AggregatedListNodeTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117657,7 +117827,7 @@ } } }, - "AggregatedListPublicDelegatedPrefixesRequest": { + "AggregatedListPacketMirroringsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117754,7 +117924,7 @@ } } }, - "AggregatedListRegionCommitmentsRequest": { + "AggregatedListPublicDelegatedPrefixesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117851,7 +118021,7 @@ } } }, - "AggregatedListRegionHealthSourcesRequest": { + "AggregatedListRegionCommitmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -117948,7 +118118,7 @@ } } }, - "AggregatedListRegionNetworkPoliciesRequest": { + "AggregatedListRegionCompositeHealthChecksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118045,7 +118215,7 @@ } } }, - "AggregatedListReservationsRequest": { + "AggregatedListRegionHealthAggregationPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118142,7 +118312,7 @@ } } }, - "AggregatedListResourcePoliciesRequest": { + "AggregatedListRegionHealthSourcesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118239,7 +118409,7 @@ } } }, - "AggregatedListRoutersRequest": { + "AggregatedListRegionNetworkPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118336,7 +118506,7 @@ } } }, - "AggregatedListSecurityPoliciesRequest": { + "AggregatedListReservationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118433,7 +118603,7 @@ } } }, - "AggregatedListServiceAttachmentsRequest": { + "AggregatedListResourcePoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118530,7 +118700,7 @@ } } }, - "AggregatedListSnapshotsRequest": { + "AggregatedListRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118627,7 +118797,7 @@ } } }, - "AggregatedListSslCertificatesRequest": { + "AggregatedListSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118724,7 +118894,7 @@ } } }, - "AggregatedListSslPoliciesRequest": { + "AggregatedListServiceAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118821,7 +118991,7 @@ } } }, - "AggregatedListStoragePoolTypesRequest": { + "AggregatedListSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -118918,7 +119088,7 @@ } } }, - "AggregatedListStoragePoolsRequest": { + "AggregatedListSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119015,7 +119185,7 @@ } } }, - "AggregatedListSubnetworksRequest": { + "AggregatedListSslPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119112,7 +119282,7 @@ } } }, - "AggregatedListTargetHttpProxiesRequest": { + "AggregatedListStoragePoolTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119209,7 +119379,7 @@ } } }, - "AggregatedListTargetHttpsProxiesRequest": { + "AggregatedListStoragePoolsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119306,7 +119476,7 @@ } } }, - "AggregatedListTargetInstancesRequest": { + "AggregatedListSubnetworksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119342,6 +119512,11 @@ "oneof": [ "serviceProjectNumber" ] + }, + "_views": { + "oneof": [ + "views" + ] } }, "fields": { @@ -119400,10 +119575,26 @@ "options": { "proto3_optional": true } + }, + "views": { + "type": "string", + "id": 112204398, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Views": { + "values": { + "UNDEFINED_VIEWS": 0, + "DEFAULT": 115302945, + "WITH_UTILIZATION": 504090633 + } } } }, - "AggregatedListTargetPoolsRequest": { + "AggregatedListTargetHttpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119500,7 +119691,7 @@ } } }, - "AggregatedListTargetTcpProxiesRequest": { + "AggregatedListTargetHttpsProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119597,7 +119788,7 @@ } } }, - "AggregatedListTargetVpnGatewaysRequest": { + "AggregatedListTargetInstancesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119694,7 +119885,7 @@ } } }, - "AggregatedListUrlMapsRequest": { + "AggregatedListTargetPoolsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119791,7 +119982,7 @@ } } }, - "AggregatedListVpnGatewaysRequest": { + "AggregatedListTargetTcpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -119888,7 +120079,298 @@ } } }, - "AggregatedListVpnTunnelsRequest": { + "AggregatedListTargetVpnGatewaysRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProjectNumber": { + "oneof": [ + "serviceProjectNumber" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "includeAllScopes": { + "type": "bool", + "id": 391327988, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "serviceProjectNumber": { + "type": "int64", + "id": 316757497, + "options": { + "proto3_optional": true + } + } + } + }, + "AggregatedListUrlMapsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProjectNumber": { + "oneof": [ + "serviceProjectNumber" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "includeAllScopes": { + "type": "bool", + "id": 391327988, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "serviceProjectNumber": { + "type": "int64", + "id": 316757497, + "options": { + "proto3_optional": true + } + } + } + }, + "AggregatedListVpnGatewaysRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProjectNumber": { + "oneof": [ + "serviceProjectNumber" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "includeAllScopes": { + "type": "bool", + "id": 391327988, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "serviceProjectNumber": { + "type": "int64", + "id": 316757497, + "options": { + "proto3_optional": true + } + } + } + }, + "AggregatedListVpnTunnelsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -120100,7 +120582,8 @@ "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E": 398926997, "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P": 517384376, "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P": 517384407, - "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P": 517384438 + "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P": 517384438, + "VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X": 485271888 } }, "WorkloadType": { @@ -122551,6 +123034,11 @@ "params" ] }, + "_region": { + "oneof": [ + "region" + ] + }, "_selfLink": { "oneof": [ "selfLink" @@ -122647,6 +123135,13 @@ "proto3_optional": true } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, "selfLink": { "type": "string", "id": 456214797, @@ -122671,11 +123166,83 @@ "LoadBalancingScheme": { "values": { "UNDEFINED_LOAD_BALANCING_SCHEME": 0, + "EXTERNAL_MANAGED": 512006923, "INTERNAL_MANAGED": 37350397 } } } }, + "BackendBucketAggregatedList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "keyType": "string", + "type": "BackendBucketsScopedList", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "BackendBucketCdnPolicy": { "oneofs": { "_cacheKeyPolicy": { @@ -123047,6 +123614,29 @@ } } }, + "BackendBucketsScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "backendBuckets": { + "rule": "repeated", + "type": "BackendBucket", + "id": 158780702 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "BackendCustomMetric": { "oneofs": { "_dryRun": { @@ -124777,6 +125367,11 @@ "authenticationConfig" ] }, + "_identity": { + "oneof": [ + "identity" + ] + }, "_sni": { "oneof": [ "sni" @@ -124791,6 +125386,13 @@ "proto3_optional": true } }, + "identity": { + "type": "string", + "id": 401109182, + "options": { + "proto3_optional": true + } + }, "sni": { "type": "string", "id": 114030, @@ -126985,6 +127587,307 @@ } } }, + "CompositeHealthCheck": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_fingerprint": { + "oneof": [ + "fingerprint" + ] + }, + "_healthDestination": { + "oneof": [ + "healthDestination" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "fingerprint": { + "type": "string", + "id": 234678500, + "options": { + "proto3_optional": true + } + }, + "healthDestination": { + "type": "string", + "id": 311098027, + "options": { + "proto3_optional": true + } + }, + "healthSources": { + "rule": "repeated", + "type": "string", + "id": 397879509 + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + } + } + }, + "CompositeHealthCheckAggregatedList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "keyType": "string", + "type": "CompositeHealthChecksScopedList", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "CompositeHealthCheckList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "rule": "repeated", + "type": "CompositeHealthCheck", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "CompositeHealthChecksScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "compositeHealthChecks": { + "rule": "repeated", + "type": "CompositeHealthCheck", + "id": 517891062 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "ConfidentialInstanceConfig": { "oneofs": { "_confidentialInstanceType": { @@ -129726,8 +130629,13 @@ } } }, - "DeleteRegionBackendServiceRequest": { + "DeleteRegionBackendBucketRequest": { "oneofs": { + "_forceDelete": { + "oneof": [ + "forceDelete" + ] + }, "_requestId": { "oneof": [ "requestId" @@ -129735,13 +130643,20 @@ } }, "fields": { - "backendService": { + "backendBucket": { "type": "string", - "id": 306946058, + "id": 91714037, "options": { "(google.api.field_behavior)": "REQUIRED" } }, + "forceDelete": { + "type": "bool", + "id": 214559103, + "options": { + "proto3_optional": true + } + }, "project": { "type": "string", "id": 227560217, @@ -129767,7 +130682,7 @@ } } }, - "DeleteRegionDiskRequest": { + "DeleteRegionBackendServiceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -129776,9 +130691,9 @@ } }, "fields": { - "disk": { + "backendService": { "type": "string", - "id": 3083677, + "id": 306946058, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -129808,7 +130723,7 @@ } } }, - "DeleteRegionHealthCheckRequest": { + "DeleteRegionCompositeHealthCheckRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -129817,9 +130732,9 @@ } }, "fields": { - "healthCheck": { + "compositeHealthCheck": { "type": "string", - "id": 308876645, + "id": 466984989, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -129849,7 +130764,7 @@ } } }, - "DeleteRegionHealthCheckServiceRequest": { + "DeleteRegionDiskRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -129858,9 +130773,9 @@ } }, "fields": { - "healthCheckService": { + "disk": { "type": "string", - "id": 408374747, + "id": 3083677, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -129890,7 +130805,7 @@ } } }, - "DeleteRegionHealthSourceRequest": { + "DeleteRegionHealthAggregationPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -129899,9 +130814,9 @@ } }, "fields": { - "healthSource": { + "healthAggregationPolicy": { "type": "string", - "id": 376521566, + "id": 240314354, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -129931,7 +130846,7 @@ } } }, - "DeleteRegionInstanceGroupManagerRequest": { + "DeleteRegionHealthCheckRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -129940,9 +130855,9 @@ } }, "fields": { - "instanceGroupManager": { + "healthCheck": { "type": "string", - "id": 249363395, + "id": 308876645, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -129972,7 +130887,7 @@ } } }, - "DeleteRegionInstanceGroupManagerResizeRequestRequest": { + "DeleteRegionHealthCheckServiceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -129981,9 +130896,9 @@ } }, "fields": { - "instanceGroupManager": { + "healthCheckService": { "type": "string", - "id": 249363395, + "id": 408374747, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -130010,17 +130925,10 @@ "options": { "proto3_optional": true } - }, - "resizeRequest": { - "type": "string", - "id": 216941060, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "DeleteRegionInstanceTemplateRequest": { + "DeleteRegionHealthSourceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -130029,9 +130937,9 @@ } }, "fields": { - "instanceTemplate": { + "healthSource": { "type": "string", - "id": 309248228, + "id": 376521566, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -130061,7 +130969,7 @@ } } }, - "DeleteRegionInstantSnapshotRequest": { + "DeleteRegionInstanceGroupManagerRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -130070,9 +130978,9 @@ } }, "fields": { - "instantSnapshot": { + "instanceGroupManager": { "type": "string", - "id": 391638626, + "id": 249363395, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -130102,7 +131010,7 @@ } } }, - "DeleteRegionMultiMigRequest": { + "DeleteRegionInstanceGroupManagerResizeRequestRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -130111,9 +131019,9 @@ } }, "fields": { - "multiMig": { + "instanceGroupManager": { "type": "string", - "id": 403990085, + "id": 249363395, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -130140,10 +131048,17 @@ "options": { "proto3_optional": true } + }, + "resizeRequest": { + "type": "string", + "id": 216941060, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "DeleteRegionNetworkEndpointGroupRequest": { + "DeleteRegionInstanceTemplateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -130152,9 +131067,9 @@ } }, "fields": { - "networkEndpointGroup": { + "instanceTemplate": { "type": "string", - "id": 433907078, + "id": 309248228, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -130184,7 +131099,7 @@ } } }, - "DeleteRegionNetworkFirewallPolicyRequest": { + "DeleteRegionInstantSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -130193,9 +131108,9 @@ } }, "fields": { - "firewallPolicy": { + "instantSnapshot": { "type": "string", - "id": 498173265, + "id": 391638626, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -130225,7 +131140,7 @@ } } }, - "DeleteRegionNetworkPolicyRequest": { + "DeleteRegionMultiMigRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -130234,9 +131149,9 @@ } }, "fields": { - "networkPolicy": { + "multiMig": { "type": "string", - "id": 504961123, + "id": 403990085, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -130266,7 +131181,7 @@ } } }, - "DeleteRegionNotificationEndpointRequest": { + "DeleteRegionNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -130275,9 +131190,9 @@ } }, "fields": { - "notificationEndpoint": { + "networkEndpointGroup": { "type": "string", - "id": 376807017, + "id": 433907078, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -130307,35 +131222,7 @@ } } }, - "DeleteRegionOperationRequest": { - "fields": { - "operation": { - "type": "string", - "id": 52090215, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "DeleteRegionOperationResponse": { - "fields": {} - }, - "DeleteRegionSecurityPolicyRequest": { + "DeleteRegionNetworkFirewallPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -130344,88 +131231,13 @@ } }, "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "securityPolicy": { + "firewallPolicy": { "type": "string", - "id": 171082513, + "id": 498173265, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "DeleteRegionSnapshotRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } }, - "snapshot": { - "type": "string", - "id": 284874180, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "DeleteRegionSslCertificateRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { "project": { "type": "string", "id": 227560217, @@ -130448,17 +131260,10 @@ "options": { "proto3_optional": true } - }, - "sslCertificate": { - "type": "string", - "id": 46443492, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "DeleteRegionSslPolicyRequest": { + "DeleteRegionNetworkPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -130467,47 +131272,280 @@ } }, "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "sslPolicy": { + "networkPolicy": { "type": "string", - "id": 295190213, + "id": 504961123, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "DeleteRegionTargetHttpProxyRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "DeleteRegionNotificationEndpointRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "notificationEndpoint": { + "type": "string", + "id": 376807017, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "DeleteRegionOperationRequest": { + "fields": { + "operation": { + "type": "string", + "id": 52090215, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteRegionOperationResponse": { + "fields": {} + }, + "DeleteRegionSecurityPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "securityPolicy": { + "type": "string", + "id": 171082513, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteRegionSnapshotRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "snapshot": { + "type": "string", + "id": 284874180, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteRegionSslCertificateRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "sslCertificate": { + "type": "string", + "id": 46443492, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteRegionSslPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "sslPolicy": { + "type": "string", + "id": 295190213, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteRegionTargetHttpProxyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { "project": { "type": "string", "id": 227560217, @@ -131678,6 +132716,47 @@ "DeleteZoneOperationResponse": { "fields": {} }, + "DeleteZoneVmExtensionPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "vmExtensionPolicy": { + "type": "string", + "id": 331532730, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "Denied": { "oneofs": { "_IPProtocol": { @@ -137656,7 +138735,8 @@ "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E": 398926997, "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P": 517384376, "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P": 517384407, - "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P": 517384438 + "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P": 517384438, + "VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X": 485271888 } }, "WorkloadType": { @@ -138161,6 +139241,31 @@ } } }, + "GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resourceId": { + "type": "string", + "id": 160795372, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetBackendBucketRequest": { "fields": { "backendBucket": { @@ -138626,6 +139731,24 @@ } } }, + "GetGlobalVmExtensionPolicyRequest": { + "fields": { + "globalVmExtensionPolicy": { + "type": "string", + "id": 8334110, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetGuestAttributesInstanceRequest": { "oneofs": { "_queryPath": { @@ -139331,6 +140454,45 @@ } } }, + "GetIamPolicyRegionBackendBucketRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetIamPolicyRegionBackendServiceRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -139526,6 +140688,52 @@ } } }, + "GetIamPolicyReservationBlockRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "parentResource": { + "type": "string", + "id": 18091011, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetIamPolicyReservationRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -139565,6 +140773,52 @@ } } }, + "GetIamPolicyReservationSubBlockRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "parentResource": { + "type": "string", + "id": 18091011, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetIamPolicyResourcePolicyRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -140831,6 +142085,31 @@ } } }, + "GetRegionBackendBucketRequest": { + "fields": { + "backendBucket": { + "type": "string", + "id": 91714037, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetRegionBackendServiceRequest": { "fields": { "backendService": { @@ -140881,6 +142160,31 @@ } } }, + "GetRegionCompositeHealthCheckRequest": { + "fields": { + "compositeHealthCheck": { + "type": "string", + "id": 466984989, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetRegionDiskRequest": { "fields": { "disk": { @@ -140949,6 +142253,31 @@ } } }, + "GetRegionHealthAggregationPolicyRequest": { + "fields": { + "healthAggregationPolicy": { + "type": "string", + "id": 240314354, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetRegionHealthCheckRequest": { "fields": { "healthCheck": { @@ -141649,6 +142978,13 @@ } }, "GetReservationSubBlockRequest": { + "oneofs": { + "_view": { + "oneof": [ + "view" + ] + } + }, "fields": { "parentName": { "type": "string", @@ -141671,6 +143007,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "view": { + "type": "string", + "id": 3619493, + "options": { + "proto3_optional": true + } + }, "zone": { "type": "string", "id": 3744684, @@ -141678,6 +143021,16 @@ "(google.api.field_behavior)": "REQUIRED" } } + }, + "nested": { + "View": { + "values": { + "UNDEFINED_VIEW": 0, + "SUB_BLOCK_VIEW_BASIC": 236009797, + "SUB_BLOCK_VIEW_FULL": 440711800, + "SUB_BLOCK_VIEW_UNSPECIFIED": 246642446 + } + } } }, "GetResourcePolicyRequest": { @@ -142800,6 +144153,31 @@ } } }, + "GetZoneVmExtensionPolicyRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "vmExtensionPolicy": { + "type": "string", + "id": 331532730, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GlobalAddressesMoveRequest": { "oneofs": { "_description": { @@ -142941,6 +144319,393 @@ } } }, + "GlobalVmExtensionPolicy": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_priority": { + "oneof": [ + "priority" + ] + }, + "_rolloutOperation": { + "oneof": [ + "rolloutOperation" + ] + }, + "_scopedResourceStatus": { + "oneof": [ + "scopedResourceStatus" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + }, + "_updateTimestamp": { + "oneof": [ + "updateTimestamp" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "extensionPolicies": { + "keyType": "string", + "type": "GlobalVmExtensionPolicyExtensionPolicy", + "id": 227761488 + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "instanceSelectors": { + "rule": "repeated", + "type": "GlobalVmExtensionPolicyInstanceSelector", + "id": 520298826 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "priority": { + "type": "int32", + "id": 445151652, + "options": { + "proto3_optional": true + } + }, + "rolloutOperation": { + "type": "GlobalVmExtensionPolicyRolloutOperation", + "id": 486746201, + "options": { + "proto3_optional": true + } + }, + "scopedResourceStatus": { + "type": "string", + "id": 181976980, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + }, + "updateTimestamp": { + "type": "string", + "id": 120894752, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "ScopedResourceStatus": { + "values": { + "UNDEFINED_SCOPED_RESOURCE_STATUS": 0, + "SCOPED_RESOURCE_STATUS_DELETING": 404198387, + "SCOPED_RESOURCE_STATUS_UNSPECIFIED": 437941996 + } + } + } + }, + "GlobalVmExtensionPolicyExtensionPolicy": { + "oneofs": { + "_pinnedVersion": { + "oneof": [ + "pinnedVersion" + ] + }, + "_stringConfig": { + "oneof": [ + "stringConfig" + ] + } + }, + "fields": { + "pinnedVersion": { + "type": "string", + "id": 446267249, + "options": { + "proto3_optional": true + } + }, + "stringConfig": { + "type": "string", + "id": 318905136, + "options": { + "proto3_optional": true + } + } + } + }, + "GlobalVmExtensionPolicyInstanceSelector": { + "oneofs": { + "_labelSelector": { + "oneof": [ + "labelSelector" + ] + } + }, + "fields": { + "labelSelector": { + "type": "GlobalVmExtensionPolicyLabelSelector", + "id": 349780170, + "options": { + "proto3_optional": true + } + } + } + }, + "GlobalVmExtensionPolicyLabelSelector": { + "fields": { + "inclusionLabels": { + "keyType": "string", + "type": "string", + "id": 501312642 + } + } + }, + "GlobalVmExtensionPolicyRolloutOperation": { + "oneofs": { + "_rolloutInput": { + "oneof": [ + "rolloutInput" + ] + }, + "_rolloutStatus": { + "oneof": [ + "rolloutStatus" + ] + } + }, + "fields": { + "rolloutInput": { + "type": "GlobalVmExtensionPolicyRolloutOperationRolloutInput", + "id": 265745340, + "options": { + "proto3_optional": true + } + }, + "rolloutStatus": { + "type": "GlobalVmExtensionPolicyRolloutOperationRolloutStatus", + "id": 476426816, + "options": { + "proto3_optional": true + } + } + } + }, + "GlobalVmExtensionPolicyRolloutOperationRolloutInput": { + "oneofs": { + "_conflictBehavior": { + "oneof": [ + "conflictBehavior" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_predefinedRolloutPlan": { + "oneof": [ + "predefinedRolloutPlan" + ] + }, + "_retryUuid": { + "oneof": [ + "retryUuid" + ] + } + }, + "fields": { + "conflictBehavior": { + "type": "string", + "id": 115729439, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "predefinedRolloutPlan": { + "type": "string", + "id": 364023440, + "options": { + "proto3_optional": true + } + }, + "retryUuid": { + "type": "string", + "id": 472838898, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "PredefinedRolloutPlan": { + "values": { + "UNDEFINED_PREDEFINED_ROLLOUT_PLAN": 0, + "FAST_ROLLOUT": 207153326, + "ROLLOUT_PLAN_UNSPECIFIED": 144511983, + "SLOW_ROLLOUT": 31032659 + } + } + } + }, + "GlobalVmExtensionPolicyRolloutOperationRolloutStatus": { + "oneofs": { + "_previousRollout": { + "oneof": [ + "previousRollout" + ] + } + }, + "fields": { + "currentRollouts": { + "rule": "repeated", + "type": "GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata", + "id": 39829736 + }, + "previousRollout": { + "type": "GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata", + "id": 375749737, + "options": { + "proto3_optional": true + } + } + } + }, + "GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata": { + "oneofs": { + "_rollout": { + "oneof": [ + "rollout" + ] + }, + "_rolloutPlan": { + "oneof": [ + "rolloutPlan" + ] + }, + "_state": { + "oneof": [ + "state" + ] + } + }, + "fields": { + "rollout": { + "type": "string", + "id": 303366577, + "options": { + "proto3_optional": true + } + }, + "rolloutPlan": { + "type": "string", + "id": 459057399, + "options": { + "proto3_optional": true + } + }, + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "State": { + "values": { + "UNDEFINED_STATE": 0, + "STATE_CANCELLED": 534636259, + "STATE_COMPLETED": 265728989, + "STATE_FAILED": 50857931, + "STATE_PAUSED": 337513660, + "STATE_PROCESSING": 74195873, + "STATE_UNKNOWN": 230861404, + "STATE_UNSPECIFIED": 470755401 + } + } + } + }, "GroupMaintenanceInfo": { "oneofs": { "_instanceMaintenanceOngoingCount": { @@ -143543,6 +145308,335 @@ } } }, + "HealthAggregationPoliciesScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "healthAggregationPolicies": { + "rule": "repeated", + "type": "HealthAggregationPolicy", + "id": 87589904 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthAggregationPolicy": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_fingerprint": { + "oneof": [ + "fingerprint" + ] + }, + "_healthyPercentThreshold": { + "oneof": [ + "healthyPercentThreshold" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_minHealthyThreshold": { + "oneof": [ + "minHealthyThreshold" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_policyType": { + "oneof": [ + "policyType" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "fingerprint": { + "type": "string", + "id": 234678500, + "options": { + "proto3_optional": true + } + }, + "healthyPercentThreshold": { + "type": "uint32", + "id": 72242895, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "minHealthyThreshold": { + "type": "uint32", + "id": 132310940, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "policyType": { + "type": "string", + "id": 18158119, + "options": { + "proto3_optional": true + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "PolicyType": { + "values": { + "UNDEFINED_POLICY_TYPE": 0, + "BACKEND_SERVICE_POLICY": 415582023, + "DNS_PUBLIC_IP_POLICY": 366354794 + } + } + } + }, + "HealthAggregationPolicyAggregatedList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "keyType": "string", + "type": "HealthAggregationPoliciesScopedList", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthAggregationPolicyList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "rule": "repeated", + "type": "HealthAggregationPolicy", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "HealthCheck": { "oneofs": { "_checkIntervalSec": { @@ -144472,6 +146566,11 @@ "proto3_optional": true } }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, "warning": { "type": "Warning", "id": 50704284, @@ -147853,7 +149952,7 @@ } } }, - "InsertRegionBackendServiceRequest": { + "InsertRegionBackendBucketRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -147862,9 +149961,9 @@ } }, "fields": { - "backendServiceResource": { - "type": "BackendService", - "id": 347586723, + "backendBucketResource": { + "type": "BackendBucket", + "id": 380757784, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -147894,7 +149993,7 @@ } } }, - "InsertRegionCommitmentRequest": { + "InsertRegionBackendServiceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -147903,9 +150002,9 @@ } }, "fields": { - "commitmentResource": { - "type": "Commitment", - "id": 244240888, + "backendServiceResource": { + "type": "BackendService", + "id": 347586723, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -147935,23 +150034,18 @@ } } }, - "InsertRegionDiskRequest": { + "InsertRegionCommitmentRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_sourceImage": { - "oneof": [ - "sourceImage" - ] } }, "fields": { - "diskResource": { - "type": "Disk", - "id": 25880688, + "commitmentResource": { + "type": "Commitment", + "id": 244240888, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -147978,17 +150072,10 @@ "options": { "proto3_optional": true } - }, - "sourceImage": { - "type": "string", - "id": 50443319, - "options": { - "proto3_optional": true - } } } }, - "InsertRegionHealthCheckRequest": { + "InsertRegionCompositeHealthCheckRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -147997,9 +150084,9 @@ } }, "fields": { - "healthCheckResource": { - "type": "HealthCheck", - "id": 201925032, + "compositeHealthCheckResource": { + "type": "CompositeHealthCheck", + "id": 132195824, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148029,18 +150116,23 @@ } } }, - "InsertRegionHealthCheckServiceRequest": { + "InsertRegionDiskRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_sourceImage": { + "oneof": [ + "sourceImage" + ] } }, "fields": { - "healthCheckServiceResource": { - "type": "HealthCheckService", - "id": 477367794, + "diskResource": { + "type": "Disk", + "id": 25880688, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148067,10 +150159,17 @@ "options": { "proto3_optional": true } + }, + "sourceImage": { + "type": "string", + "id": 50443319, + "options": { + "proto3_optional": true + } } } }, - "InsertRegionHealthSourceRequest": { + "InsertRegionHealthAggregationPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148079,9 +150178,9 @@ } }, "fields": { - "healthSourceResource": { - "type": "HealthSource", - "id": 357735375, + "healthAggregationPolicyResource": { + "type": "HealthAggregationPolicy", + "id": 293526971, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148111,7 +150210,7 @@ } } }, - "InsertRegionInstanceGroupManagerRequest": { + "InsertRegionHealthCheckRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148120,9 +150219,9 @@ } }, "fields": { - "instanceGroupManagerResource": { - "type": "InstanceGroupManager", - "id": 261063946, + "healthCheckResource": { + "type": "HealthCheck", + "id": 201925032, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148152,7 +150251,7 @@ } } }, - "InsertRegionInstanceGroupManagerResizeRequestRequest": { + "InsertRegionHealthCheckServiceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148161,16 +150260,9 @@ } }, "fields": { - "instanceGroupManager": { - "type": "string", - "id": 249363395, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "instanceGroupManagerResizeRequestResource": { - "type": "InstanceGroupManagerResizeRequest", - "id": 468541293, + "healthCheckServiceResource": { + "type": "HealthCheckService", + "id": 477367794, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148200,7 +150292,7 @@ } } }, - "InsertRegionInstanceTemplateRequest": { + "InsertRegionHealthSourceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148209,9 +150301,9 @@ } }, "fields": { - "instanceTemplateResource": { - "type": "InstanceTemplate", - "id": 10679561, + "healthSourceResource": { + "type": "HealthSource", + "id": 357735375, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148241,7 +150333,7 @@ } } }, - "InsertRegionInstantSnapshotRequest": { + "InsertRegionInstanceGroupManagerRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148250,9 +150342,9 @@ } }, "fields": { - "instantSnapshotResource": { - "type": "InstantSnapshot", - "id": 383915339, + "instanceGroupManagerResource": { + "type": "InstanceGroupManager", + "id": 261063946, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148282,7 +150374,7 @@ } } }, - "InsertRegionMultiMigRequest": { + "InsertRegionInstanceGroupManagerResizeRequestRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148291,9 +150383,16 @@ } }, "fields": { - "multiMigResource": { - "type": "MultiMig", - "id": 173722824, + "instanceGroupManager": { + "type": "string", + "id": 249363395, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instanceGroupManagerResizeRequestResource": { + "type": "InstanceGroupManagerResizeRequest", + "id": 468541293, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148323,7 +150422,7 @@ } } }, - "InsertRegionNetworkEndpointGroupRequest": { + "InsertRegionInstanceTemplateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148332,9 +150431,9 @@ } }, "fields": { - "networkEndpointGroupResource": { - "type": "NetworkEndpointGroup", - "id": 525788839, + "instanceTemplateResource": { + "type": "InstanceTemplate", + "id": 10679561, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148364,7 +150463,7 @@ } } }, - "InsertRegionNetworkFirewallPolicyRequest": { + "InsertRegionInstantSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148373,9 +150472,9 @@ } }, "fields": { - "firewallPolicyResource": { - "type": "FirewallPolicy", - "id": 495049532, + "instantSnapshotResource": { + "type": "InstantSnapshot", + "id": 383915339, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148405,7 +150504,7 @@ } } }, - "InsertRegionNetworkPolicyRequest": { + "InsertRegionMultiMigRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148414,9 +150513,9 @@ } }, "fields": { - "networkPolicyResource": { - "type": "NetworkPolicy", - "id": 437886058, + "multiMigResource": { + "type": "MultiMig", + "id": 173722824, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148446,7 +150545,7 @@ } } }, - "InsertRegionNotificationEndpointRequest": { + "InsertRegionNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148455,9 +150554,9 @@ } }, "fields": { - "notificationEndpointResource": { - "type": "NotificationEndpoint", - "id": 338459940, + "networkEndpointGroupResource": { + "type": "NetworkEndpointGroup", + "id": 525788839, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -148487,68 +150586,22 @@ } } }, - "InsertRegionSecurityPolicyRequest": { + "InsertRegionNetworkFirewallPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_validateOnly": { - "oneof": [ - "validateOnly" - ] } }, "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "securityPolicyResource": { - "type": "SecurityPolicy", - "id": 216159612, + "firewallPolicyResource": { + "type": "FirewallPolicy", + "id": 495049532, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "validateOnly": { - "type": "bool", - "id": 242744629, - "options": { - "proto3_optional": true - } - } - } - }, - "InsertRegionSnapshotRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { "project": { "type": "string", "id": 227560217, @@ -148571,17 +150624,10 @@ "options": { "proto3_optional": true } - }, - "snapshotResource": { - "type": "Snapshot", - "id": 481319977, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "InsertRegionSslCertificateRequest": { + "InsertRegionNetworkPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148590,47 +150636,13 @@ } }, "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "sslCertificateResource": { - "type": "SslCertificate", - "id": 180709897, + "networkPolicyResource": { + "type": "NetworkPolicy", + "id": 437886058, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "InsertRegionSslPolicyRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { + }, "project": { "type": "string", "id": 227560217, @@ -148653,22 +150665,61 @@ "options": { "proto3_optional": true } - }, - "sslPolicyResource": { - "type": "SslPolicy", - "id": 274891848, + } + } + }, + "InsertRegionNotificationEndpointRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "notificationEndpointResource": { + "type": "NotificationEndpoint", + "id": 338459940, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } } } }, - "InsertRegionTargetHttpProxyRequest": { + "InsertRegionSecurityPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_validateOnly": { + "oneof": [ + "validateOnly" + ] } }, "fields": { @@ -148695,16 +150746,23 @@ "proto3_optional": true } }, - "targetHttpProxyResource": { - "type": "TargetHttpProxy", - "id": 24696744, + "securityPolicyResource": { + "type": "SecurityPolicy", + "id": 216159612, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "validateOnly": { + "type": "bool", + "id": 242744629, + "options": { + "proto3_optional": true + } } } }, - "InsertRegionTargetHttpsProxyRequest": { + "InsertRegionSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148736,16 +150794,16 @@ "proto3_optional": true } }, - "targetHttpsProxyResource": { - "type": "TargetHttpsProxy", - "id": 433657473, + "snapshotResource": { + "type": "Snapshot", + "id": 481319977, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRegionTargetTcpProxyRequest": { + "InsertRegionSslCertificateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148777,16 +150835,16 @@ "proto3_optional": true } }, - "targetTcpProxyResource": { - "type": "TargetTcpProxy", - "id": 145913931, + "sslCertificateResource": { + "type": "SslCertificate", + "id": 180709897, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRegionUrlMapRequest": { + "InsertRegionSslPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148818,16 +150876,16 @@ "proto3_optional": true } }, - "urlMapResource": { - "type": "UrlMap", - "id": 168675425, + "sslPolicyResource": { + "type": "SslPolicy", + "id": 274891848, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertReservationRequest": { + "InsertRegionTargetHttpProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148844,6 +150902,14 @@ "(google.cloud.operation_request_field)": "project" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, "requestId": { "type": "string", "id": 37109963, @@ -148851,24 +150917,16 @@ "proto3_optional": true } }, - "reservationResource": { - "type": "Reservation", - "id": 285030177, + "targetHttpProxyResource": { + "type": "TargetHttpProxy", + "id": 24696744, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" - } } } }, - "InsertResourcePolicyRequest": { + "InsertRegionTargetHttpsProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148900,16 +150958,16 @@ "proto3_optional": true } }, - "resourcePolicyResource": { - "type": "ResourcePolicy", - "id": 76826186, + "targetHttpsProxyResource": { + "type": "TargetHttpsProxy", + "id": 433657473, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRouteRequest": { + "InsertRegionTargetTcpProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148926,6 +150984,14 @@ "(google.cloud.operation_request_field)": "project" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, "requestId": { "type": "string", "id": 37109963, @@ -148933,16 +150999,16 @@ "proto3_optional": true } }, - "routeResource": { - "type": "Route", - "id": 225428804, + "targetTcpProxyResource": { + "type": "TargetTcpProxy", + "id": 145913931, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertRouterRequest": { + "InsertRegionUrlMapRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -148974,26 +151040,21 @@ "proto3_optional": true } }, - "routerResource": { - "type": "Router", - "id": 155222084, + "urlMapResource": { + "type": "UrlMap", + "id": 168675425, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertSecurityPolicyRequest": { + "InsertReservationRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_validateOnly": { - "oneof": [ - "validateOnly" - ] } }, "fields": { @@ -149012,23 +151073,24 @@ "proto3_optional": true } }, - "securityPolicyResource": { - "type": "SecurityPolicy", - "id": 216159612, + "reservationResource": { + "type": "Reservation", + "id": 285030177, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "validateOnly": { - "type": "bool", - "id": 242744629, + "zone": { + "type": "string", + "id": 3744684, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" } } } }, - "InsertServiceAttachmentRequest": { + "InsertResourcePolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -149060,16 +151122,16 @@ "proto3_optional": true } }, - "serviceAttachmentResource": { - "type": "ServiceAttachment", - "id": 472980256, + "resourcePolicyResource": { + "type": "ResourcePolicy", + "id": 76826186, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertSnapshotRequest": { + "InsertRouteRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -149093,16 +151155,16 @@ "proto3_optional": true } }, - "snapshotResource": { - "type": "Snapshot", - "id": 481319977, + "routeResource": { + "type": "Route", + "id": 225428804, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertSslCertificateRequest": { + "InsertRouterRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -149119,6 +151181,14 @@ "(google.cloud.operation_request_field)": "project" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, "requestId": { "type": "string", "id": 37109963, @@ -149126,21 +151196,26 @@ "proto3_optional": true } }, - "sslCertificateResource": { - "type": "SslCertificate", - "id": 180709897, + "routerResource": { + "type": "Router", + "id": 155222084, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertSslPolicyRequest": { + "InsertSecurityPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_validateOnly": { + "oneof": [ + "validateOnly" + ] } }, "fields": { @@ -149159,16 +151234,23 @@ "proto3_optional": true } }, - "sslPolicyResource": { - "type": "SslPolicy", - "id": 274891848, + "securityPolicyResource": { + "type": "SecurityPolicy", + "id": 216159612, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "validateOnly": { + "type": "bool", + "id": 242744629, + "options": { + "proto3_optional": true + } } } }, - "InsertStoragePoolRequest": { + "InsertServiceAttachmentRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -149185,6 +151267,14 @@ "(google.cloud.operation_request_field)": "project" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, "requestId": { "type": "string", "id": 37109963, @@ -149192,24 +151282,16 @@ "proto3_optional": true } }, - "storagePoolResource": { - "type": "StoragePool", - "id": 157179405, + "serviceAttachmentResource": { + "type": "ServiceAttachment", + "id": 472980256, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" - } } } }, - "InsertSubnetworkRequest": { + "InsertSnapshotRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -149226,14 +151308,6 @@ "(google.cloud.operation_request_field)": "project" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, "requestId": { "type": "string", "id": 37109963, @@ -149241,16 +151315,164 @@ "proto3_optional": true } }, - "subnetworkResource": { - "type": "Subnetwork", - "id": 42233151, + "snapshotResource": { + "type": "Snapshot", + "id": 481319977, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "InsertTargetGrpcProxyRequest": { + "InsertSslCertificateRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "sslCertificateResource": { + "type": "SslCertificate", + "id": 180709897, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertSslPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "sslPolicyResource": { + "type": "SslPolicy", + "id": 274891848, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertStoragePoolRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "storagePoolResource": { + "type": "StoragePool", + "id": 157179405, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, + "InsertSubnetworkRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "subnetworkResource": { + "type": "Subnetwork", + "id": 42233151, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "InsertTargetGrpcProxyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -149705,6 +151927,47 @@ } } }, + "InsertZoneVmExtensionPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "vmExtensionPolicyResource": { + "type": "VmExtensionPolicy", + "id": 515669235, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "Instance": { "oneofs": { "_advancedMachineFeatures": { @@ -152689,6 +154952,55 @@ } } }, + "InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse": { + "fields": { + "acceleratorTopologiesInfo": { + "keyType": "string", + "type": "InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo", + "id": 84833420 + } + } + }, + "InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo": { + "oneofs": { + "_acceleratorTopology": { + "oneof": [ + "acceleratorTopology" + ] + }, + "_acceleratorTopologyHealth": { + "oneof": [ + "acceleratorTopologyHealth" + ] + } + }, + "fields": { + "acceleratorTopology": { + "type": "string", + "id": 389323203, + "options": { + "proto3_optional": true + } + }, + "acceleratorTopologyHealth": { + "type": "string", + "id": 323449944, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "AcceleratorTopologyHealth": { + "values": { + "UNDEFINED_ACCELERATOR_TOPOLOGY_HEALTH": 0, + "DEGRADED": 396890926, + "HEALTHY": 439801213, + "UNHEALTHY": 462118084 + } + } + } + }, "InstanceGroupManagersListErrorsResponse": { "oneofs": { "_nextPageToken": { @@ -155178,6 +157490,11 @@ "operationalStatus" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_peerIpAddress": { "oneof": [ "peerIpAddress" @@ -155383,6 +157700,13 @@ "proto3_optional": true } }, + "params": { + "type": "InterconnectParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "peerIpAddress": { "type": "string", "id": 207735769, @@ -155719,6 +158043,11 @@ "kind" ] }, + "_l2Forwarding": { + "oneof": [ + "l2Forwarding" + ] + }, "_labelFingerprint": { "oneof": [ "labelFingerprint" @@ -155744,6 +158073,11 @@ "pairingKey" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_partnerAsn": { "oneof": [ "partnerAsn" @@ -155987,6 +158321,13 @@ "proto3_optional": true } }, + "l2Forwarding": { + "type": "InterconnectAttachmentL2Forwarding", + "id": 84784022, + "options": { + "proto3_optional": true + } + }, "labelFingerprint": { "type": "string", "id": 178124825, @@ -156027,6 +158368,13 @@ "proto3_optional": true } }, + "params": { + "type": "InterconnectAttachmentParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "partnerAsn": { "type": "int64", "id": 438166149, @@ -156183,6 +158531,7 @@ "values": { "UNDEFINED_TYPE": 0, "DEDICATED": 258411983, + "L2_DEDICATED": 336595510, "PARTNER": 461924520, "PARTNER_PROVIDER": 483261352 } @@ -157019,6 +159368,141 @@ } } }, + "InterconnectAttachmentL2Forwarding": { + "oneofs": { + "_defaultApplianceIpAddress": { + "oneof": [ + "defaultApplianceIpAddress" + ] + }, + "_geneveHeader": { + "oneof": [ + "geneveHeader" + ] + }, + "_network": { + "oneof": [ + "network" + ] + }, + "_tunnelEndpointIpAddress": { + "oneof": [ + "tunnelEndpointIpAddress" + ] + } + }, + "fields": { + "applianceMappings": { + "keyType": "string", + "type": "InterconnectAttachmentL2ForwardingApplianceMapping", + "id": 374529975 + }, + "defaultApplianceIpAddress": { + "type": "string", + "id": 536490476, + "options": { + "proto3_optional": true + } + }, + "geneveHeader": { + "type": "InterconnectAttachmentL2ForwardingGeneveHeader", + "id": 118688424, + "options": { + "proto3_optional": true + } + }, + "network": { + "type": "string", + "id": 232872494, + "options": { + "proto3_optional": true + } + }, + "tunnelEndpointIpAddress": { + "type": "string", + "id": 468740975, + "options": { + "proto3_optional": true + } + } + } + }, + "InterconnectAttachmentL2ForwardingApplianceMapping": { + "oneofs": { + "_applianceIpAddress": { + "oneof": [ + "applianceIpAddress" + ] + }, + "_name": { + "oneof": [ + "name" + ] + } + }, + "fields": { + "applianceIpAddress": { + "type": "string", + "id": 57985710, + "options": { + "proto3_optional": true + } + }, + "innerVlanToApplianceMappings": { + "rule": "repeated", + "type": "InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping", + "id": 97387944 + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + } + } + }, + "InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping": { + "oneofs": { + "_innerApplianceIpAddress": { + "oneof": [ + "innerApplianceIpAddress" + ] + } + }, + "fields": { + "innerApplianceIpAddress": { + "type": "string", + "id": 350619895, + "options": { + "proto3_optional": true + } + }, + "innerVlanTags": { + "rule": "repeated", + "type": "string", + "id": 431186636 + } + } + }, + "InterconnectAttachmentL2ForwardingGeneveHeader": { + "oneofs": { + "_vni": { + "oneof": [ + "vni" + ] + } + }, + "fields": { + "vni": { + "type": "uint32", + "id": 116913, + "options": { + "proto3_optional": true + } + } + } + }, "InterconnectAttachmentList": { "oneofs": { "_id": { @@ -157090,6 +159574,15 @@ } } }, + "InterconnectAttachmentParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "InterconnectAttachmentPartnerMetadata": { "oneofs": { "_interconnectName": { @@ -158119,6 +160612,7 @@ "values": { "UNDEFINED_REQUESTED_FEATURES": 0, "IF_CROSS_SITE_NETWORK": 469111095, + "IF_L2_FORWARDING": 125563860, "IF_MACSEC": 396279300 } } @@ -158680,6 +161174,7 @@ "values": { "UNDEFINED_AVAILABLE_FEATURES": 0, "IF_CROSS_SITE_NETWORK": 469111095, + "IF_L2_FORWARDING": 125563860, "IF_MACSEC": 396279300 } }, @@ -158811,6 +161306,11 @@ "expectedRttMs" ] }, + "_l2ForwardingEnabled": { + "oneof": [ + "l2ForwardingEnabled" + ] + }, "_locationPresence": { "oneof": [ "locationPresence" @@ -158830,6 +161330,13 @@ "proto3_optional": true } }, + "l2ForwardingEnabled": { + "type": "bool", + "id": 241364888, + "options": { + "proto3_optional": true + } + }, "locationPresence": { "type": "string", "id": 101517893, @@ -159096,6 +161603,15 @@ } } }, + "InterconnectParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "InterconnectRemoteLocation": { "oneofs": { "_address": { @@ -160395,6 +162911,11 @@ }, "ListAssociationsFirewallPolicyRequest": { "oneofs": { + "_includeInheritedPolicies": { + "oneof": [ + "includeInheritedPolicies" + ] + }, "_targetResource": { "oneof": [ "targetResource" @@ -160402,6 +162923,13 @@ } }, "fields": { + "includeInheritedPolicies": { + "type": "bool", + "id": 32280076, + "options": { + "proto3_optional": true + } + }, "targetResource": { "type": "string", "id": 467318524, @@ -165977,7 +168505,7 @@ } } }, - "ListRegionBackendServicesRequest": { + "ListRegionBackendBucketsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166057,7 +168585,7 @@ } } }, - "ListRegionCommitmentsRequest": { + "ListRegionBackendServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166137,7 +168665,7 @@ } } }, - "ListRegionDiskTypesRequest": { + "ListRegionCommitmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166217,7 +168745,7 @@ } } }, - "ListRegionDisksRequest": { + "ListRegionCompositeHealthChecksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166297,7 +168825,7 @@ } } }, - "ListRegionHealthCheckServicesRequest": { + "ListRegionDiskTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166377,7 +168905,7 @@ } } }, - "ListRegionHealthChecksRequest": { + "ListRegionDisksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166457,7 +168985,7 @@ } } }, - "ListRegionHealthSourcesRequest": { + "ListRegionHealthAggregationPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166537,7 +169065,7 @@ } } }, - "ListRegionInstanceGroupManagerResizeRequestsRequest": { + "ListRegionHealthCheckServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166573,13 +169101,6 @@ "proto3_optional": true } }, - "instanceGroupManager": { - "type": "string", - "id": 249363395, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "maxResults": { "type": "uint32", "id": 54715419, @@ -166624,7 +169145,7 @@ } } }, - "ListRegionInstanceGroupManagersRequest": { + "ListRegionHealthChecksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166704,7 +169225,7 @@ } } }, - "ListRegionInstanceGroupsRequest": { + "ListRegionHealthSourcesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166784,7 +169305,7 @@ } } }, - "ListRegionInstanceTemplatesRequest": { + "ListRegionInstanceGroupManagerResizeRequestsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -166810,11 +169331,6 @@ "oneof": [ "returnPartialSuccess" ] - }, - "_view": { - "oneof": [ - "view" - ] } }, "fields": { @@ -166825,103 +169341,13 @@ "proto3_optional": true } }, - "maxResults": { - "type": "uint32", - "id": 54715419, - "options": { - "proto3_optional": true - } - }, - "orderBy": { - "type": "string", - "id": 160562920, - "options": { - "proto3_optional": true - } - }, - "pageToken": { - "type": "string", - "id": 19994697, - "options": { - "proto3_optional": true - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { + "instanceGroupManager": { "type": "string", - "id": 138946292, + "id": 249363395, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, - "options": { - "proto3_optional": true - } - }, - "view": { - "type": "string", - "id": 3619493, - "options": { - "proto3_optional": true - } - } - }, - "nested": { - "View": { - "values": { - "UNDEFINED_VIEW": 0, - "BASIC": 62970894, - "FULL": 2169487, - "INSTANCE_VIEW_UNSPECIFIED": 8444647 - } - } - } - }, - "ListRegionInstantSnapshotsRequest": { - "oneofs": { - "_filter": { - "oneof": [ - "filter" - ] - }, - "_maxResults": { - "oneof": [ - "maxResults" - ] - }, - "_orderBy": { - "oneof": [ - "orderBy" - ] - }, - "_pageToken": { - "oneof": [ - "pageToken" - ] - }, - "_returnPartialSuccess": { - "oneof": [ - "returnPartialSuccess" - ] - } - }, - "fields": { - "filter": { - "type": "string", - "id": 336120696, - "options": { - "proto3_optional": true - } - }, "maxResults": { "type": "uint32", "id": 54715419, @@ -166966,7 +169392,7 @@ } } }, - "ListRegionMultiMigsRequest": { + "ListRegionInstanceGroupManagersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167046,7 +169472,7 @@ } } }, - "ListRegionNetworkEndpointGroupsRequest": { + "ListRegionInstanceGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167126,7 +169552,7 @@ } } }, - "ListRegionNetworkFirewallPoliciesRequest": { + "ListRegionInstanceTemplatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167152,6 +169578,11 @@ "oneof": [ "returnPartialSuccess" ] + }, + "_view": { + "oneof": [ + "view" + ] } }, "fields": { @@ -167203,90 +169634,27 @@ "options": { "proto3_optional": true } - } - } - }, - "ListRegionNetworkPoliciesRequest": { - "oneofs": { - "_filter": { - "oneof": [ - "filter" - ] - }, - "_maxResults": { - "oneof": [ - "maxResults" - ] - }, - "_orderBy": { - "oneof": [ - "orderBy" - ] - }, - "_pageToken": { - "oneof": [ - "pageToken" - ] - }, - "_returnPartialSuccess": { - "oneof": [ - "returnPartialSuccess" - ] - } - }, - "fields": { - "filter": { - "type": "string", - "id": 336120696, - "options": { - "proto3_optional": true - } - }, - "maxResults": { - "type": "uint32", - "id": 54715419, - "options": { - "proto3_optional": true - } - }, - "orderBy": { - "type": "string", - "id": 160562920, - "options": { - "proto3_optional": true - } }, - "pageToken": { + "view": { "type": "string", - "id": 19994697, + "id": 3619493, "options": { "proto3_optional": true } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, - "options": { - "proto3_optional": true + } + }, + "nested": { + "View": { + "values": { + "UNDEFINED_VIEW": 0, + "BASIC": 62970894, + "FULL": 2169487, + "INSTANCE_VIEW_UNSPECIFIED": 8444647 } } } }, - "ListRegionNotificationEndpointsRequest": { + "ListRegionInstantSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167366,7 +169734,7 @@ } } }, - "ListRegionOperationsRequest": { + "ListRegionMultiMigsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167446,7 +169814,7 @@ } } }, - "ListRegionSecurityPoliciesRequest": { + "ListRegionNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167526,7 +169894,7 @@ } } }, - "ListRegionSnapshotsRequest": { + "ListRegionNetworkFirewallPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167606,7 +169974,7 @@ } } }, - "ListRegionSslCertificatesRequest": { + "ListRegionNetworkPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167686,7 +170054,7 @@ } } }, - "ListRegionSslPoliciesRequest": { + "ListRegionNotificationEndpointsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167766,7 +170134,7 @@ } } }, - "ListRegionTargetHttpProxiesRequest": { + "ListRegionOperationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167846,7 +170214,7 @@ } } }, - "ListRegionTargetHttpsProxiesRequest": { + "ListRegionSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -167926,7 +170294,7 @@ } } }, - "ListRegionTargetTcpProxiesRequest": { + "ListRegionSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168006,7 +170374,7 @@ } } }, - "ListRegionUrlMapsRequest": { + "ListRegionSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168086,7 +170454,7 @@ } } }, - "ListRegionZonesRequest": { + "ListRegionSslPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168166,7 +170534,7 @@ } } }, - "ListRegionsRequest": { + "ListRegionTargetHttpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168230,6 +170598,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -168239,7 +170614,7 @@ } } }, - "ListReservationBlocksRequest": { + "ListRegionTargetHttpsProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168303,9 +170678,9 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "reservation": { + "region": { "type": "string", - "id": 47530956, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -168316,17 +170691,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListReservationSubBlocksRequest": { + "ListRegionTargetTcpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168383,16 +170751,16 @@ "proto3_optional": true } }, - "parentName": { + "project": { "type": "string", - "id": 478151936, + "id": 227560217, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "project": { + "region": { "type": "string", - "id": 227560217, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -168403,17 +170771,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListReservationsRequest": { + "ListRegionUrlMapsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168477,23 +170838,23 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListResourcePoliciesRequest": { + "ListRegionZonesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168573,7 +170934,7 @@ } } }, - "ListRoutePoliciesRoutersRequest": { + "ListRegionsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168637,30 +170998,16 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, "options": { "proto3_optional": true } - }, - "router": { - "type": "string", - "id": 148608841, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListRoutersRequest": { + "ListReservationBlocksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168724,9 +171071,9 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "reservation": { "type": "string", - "id": 138946292, + "id": 47530956, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -168737,10 +171084,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListRoutesRequest": { + "ListReservationSubBlocksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168797,6 +171151,13 @@ "proto3_optional": true } }, + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -168810,10 +171171,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListSecurityPoliciesRequest": { + "ListReservationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168883,10 +171251,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListServiceAttachmentsRequest": { + "ListResourcePoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -168966,7 +171341,7 @@ } } }, - "ListSnapshotsRequest": { + "ListRoutePoliciesRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169030,16 +171405,30 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, "options": { "proto3_optional": true } + }, + "router": { + "type": "string", + "id": 148608841, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListSslCertificatesRequest": { + "ListRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169103,6 +171492,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -169112,7 +171508,7 @@ } } }, - "ListSslPoliciesRequest": { + "ListRoutesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169185,7 +171581,7 @@ } } }, - "ListStoragePoolTypesRequest": { + "ListSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169255,17 +171651,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListStoragePoolsRequest": { + "ListServiceAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169329,23 +171718,23 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListSubnetworksRequest": { + "ListSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169371,11 +171760,6 @@ "oneof": [ "returnPartialSuccess" ] - }, - "_views": { - "oneof": [ - "views" - ] } }, "fields": { @@ -169414,39 +171798,16 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "returnPartialSuccess": { "type": "bool", "id": 517198390, "options": { "proto3_optional": true } - }, - "views": { - "type": "string", - "id": 112204398, - "options": { - "proto3_optional": true - } - } - }, - "nested": { - "Views": { - "values": { - "UNDEFINED_VIEWS": 0, - "DEFAULT": 115302945, - "WITH_UTILIZATION": 504090633 - } } } }, - "ListTargetGrpcProxiesRequest": { + "ListSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169519,7 +171880,7 @@ } } }, - "ListTargetHttpProxiesRequest": { + "ListSslPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169592,7 +171953,7 @@ } } }, - "ListTargetHttpsProxiesRequest": { + "ListStoragePoolTypesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169662,10 +172023,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListTargetInstancesRequest": { + "ListStoragePoolsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169745,7 +172113,7 @@ } } }, - "ListTargetPoolsRequest": { + "ListSubnetworksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169771,6 +172139,11 @@ "oneof": [ "returnPartialSuccess" ] + }, + "_views": { + "oneof": [ + "views" + ] } }, "fields": { @@ -169822,10 +172195,26 @@ "options": { "proto3_optional": true } + }, + "views": { + "type": "string", + "id": 112204398, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Views": { + "values": { + "UNDEFINED_VIEWS": 0, + "DEFAULT": 115302945, + "WITH_UTILIZATION": 504090633 + } } } }, - "ListTargetSslProxiesRequest": { + "ListTargetGrpcProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169898,7 +172287,7 @@ } } }, - "ListTargetTcpProxiesRequest": { + "ListTargetHttpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -169971,7 +172360,7 @@ } } }, - "ListTargetVpnGatewaysRequest": { + "ListTargetHttpsProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170035,9 +172424,75 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListTargetInstancesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { "type": "string", - "id": 138946292, + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -170048,10 +172503,17 @@ "options": { "proto3_optional": true } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListUrlMapsRequest": { + "ListTargetPoolsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170115,6 +172577,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "returnPartialSuccess": { "type": "bool", "id": 517198390, @@ -170124,7 +172593,7 @@ } } }, - "ListUsableBackendBucketsRequest": { + "ListTargetSslProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170197,7 +172666,7 @@ } } }, - "ListUsableBackendServicesRequest": { + "ListTargetTcpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170270,7 +172739,7 @@ } } }, - "ListUsableRegionBackendServicesRequest": { + "ListTargetVpnGatewaysRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170350,7 +172819,7 @@ } } }, - "ListUsableSubnetworksRequest": { + "ListUrlMapsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170376,10 +172845,78 @@ "oneof": [ "returnPartialSuccess" ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } }, - "_serviceProject": { + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListUsableBackendBucketsRequest": { + "oneofs": { + "_filter": { "oneof": [ - "serviceProject" + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" ] } }, @@ -170425,17 +172962,83 @@ "options": { "proto3_optional": true } + } + } + }, + "ListUsableBackendServicesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] }, - "serviceProject": { + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { "type": "string", - "id": 530592655, + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, "options": { "proto3_optional": true } } } }, - "ListVpnGatewaysRequest": { + "ListUsableRegionBackendBucketsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170515,7 +173118,7 @@ } } }, - "ListVpnTunnelsRequest": { + "ListUsableRegionBackendServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170595,7 +173198,7 @@ } } }, - "ListWireGroupsRequest": { + "ListUsableSubnetworksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170621,16 +173224,14 @@ "oneof": [ "returnPartialSuccess" ] + }, + "_serviceProject": { + "oneof": [ + "serviceProject" + ] } }, "fields": { - "crossSiteNetwork": { - "type": "string", - "id": 108192469, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "filter": { "type": "string", "id": 336120696, @@ -170672,10 +173273,257 @@ "options": { "proto3_optional": true } + }, + "serviceProject": { + "type": "string", + "id": 530592655, + "options": { + "proto3_optional": true + } } } }, - "ListXpnHostsProjectsRequest": { + "ListVpnGatewaysRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListVpnTunnelsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListWireGroupsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "crossSiteNetwork": { + "type": "string", + "id": 108192469, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, + "ListXpnHostsProjectsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -170835,6 +173683,86 @@ } } }, + "ListZoneVmExtensionPoliciesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "ListZonesRequest": { "oneofs": { "_filter": { @@ -176364,6 +179292,11 @@ "allowExternalIpAccess" ] }, + "_allowFirewallPolicy": { + "oneof": [ + "allowFirewallPolicy" + ] + }, "_allowInterconnect": { "oneof": [ "allowInterconnect" @@ -176384,6 +179317,11 @@ "allowMultiNicInSameNetwork" ] }, + "_allowMulticast": { + "oneof": [ + "allowMulticast" + ] + }, "_allowNcc": { "oneof": [ "allowNcc" @@ -176434,6 +179372,11 @@ "allowVpn" ] }, + "_multicast": { + "oneof": [ + "multicast" + ] + }, "_unicast": { "oneof": [ "unicast" @@ -176495,6 +179438,13 @@ "proto3_optional": true } }, + "allowFirewallPolicy": { + "type": "string", + "id": 254200923, + "options": { + "proto3_optional": true + } + }, "allowInterconnect": { "type": "string", "id": 280512964, @@ -176523,6 +179473,13 @@ "proto3_optional": true } }, + "allowMulticast": { + "type": "string", + "id": 11002498, + "options": { + "proto3_optional": true + } + }, "allowNcc": { "type": "string", "id": 372354904, @@ -176593,11 +179550,23 @@ "proto3_optional": true } }, + "firewallPolicyTypes": { + "rule": "repeated", + "type": "string", + "id": 390742027 + }, "interfaceTypes": { "rule": "repeated", "type": "string", "id": 157981171 }, + "multicast": { + "type": "string", + "id": 404098040, + "options": { + "proto3_optional": true + } + }, "subnetPurposes": { "rule": "repeated", "type": "string", @@ -176689,6 +179658,13 @@ "EXTERNAL_IP_ACCESS_BLOCKED": 462564501 } }, + "AllowFirewallPolicy": { + "values": { + "UNDEFINED_ALLOW_FIREWALL_POLICY": 0, + "FIREWALL_POLICY_ALLOWED": 388488346, + "FIREWALL_POLICY_BLOCKED": 204651742 + } + }, "AllowInterconnect": { "values": { "UNDEFINED_ALLOW_INTERCONNECT": 0, @@ -176717,6 +179693,13 @@ "MULTI_NIC_IN_SAME_NETWORK_BLOCKED": 273718815 } }, + "AllowMulticast": { + "values": { + "UNDEFINED_ALLOW_MULTICAST": 0, + "MULTICAST_ALLOWED": 44693537, + "MULTICAST_BLOCKED": 397727845 + } + }, "AllowNcc": { "values": { "UNDEFINED_ALLOW_NCC": 0, @@ -176787,6 +179770,13 @@ "VPN_BLOCKED": 515198305 } }, + "FirewallPolicyTypes": { + "values": { + "UNDEFINED_FIREWALL_POLICY_TYPES": 0, + "RDMA_ROCE_POLICY": 148757145, + "VPC_POLICY": 74319208 + } + }, "InterfaceTypes": { "values": { "UNDEFINED_INTERFACE_TYPES": 0, @@ -176798,6 +179788,13 @@ "VIRTIO_NET": 452123481 } }, + "Multicast": { + "values": { + "UNDEFINED_MULTICAST": 0, + "MULTICAST_SDN": 532209462, + "MULTICAST_ULL": 532211630 + } + }, "SubnetPurposes": { "values": { "UNDEFINED_SUBNET_PURPOSES": 0, @@ -182028,7 +185025,7 @@ } } }, - "PatchRegionBackendServiceRequest": { + "PatchRegionBackendBucketRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -182037,16 +185034,16 @@ } }, "fields": { - "backendService": { + "backendBucket": { "type": "string", - "id": 306946058, + "id": 91714037, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "backendServiceResource": { - "type": "BackendService", - "id": 347586723, + "backendBucketResource": { + "type": "BackendBucket", + "id": 380757784, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -182076,23 +185073,25 @@ } } }, - "PatchRegionDiskSettingRequest": { + "PatchRegionBackendServiceRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_updateMask": { - "oneof": [ - "updateMask" - ] } }, "fields": { - "diskSettingsResource": { - "type": "DiskSettings", - "id": 267573896, + "backendService": { + "type": "string", + "id": 306946058, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "backendServiceResource": { + "type": "BackendService", + "id": 347586723, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -182119,17 +185118,10 @@ "options": { "proto3_optional": true } - }, - "updateMask": { - "type": "string", - "id": 500079778, - "options": { - "proto3_optional": true - } } } }, - "PatchRegionHealthCheckRequest": { + "PatchRegionCompositeHealthCheckRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -182138,16 +185130,16 @@ } }, "fields": { - "healthCheck": { + "compositeHealthCheck": { "type": "string", - "id": 308876645, + "id": 466984989, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "healthCheckResource": { - "type": "HealthCheck", - "id": 201925032, + "compositeHealthCheckResource": { + "type": "CompositeHealthCheck", + "id": 132195824, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -182177,25 +185169,23 @@ } } }, - "PatchRegionHealthCheckServiceRequest": { + "PatchRegionDiskSettingRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] } }, "fields": { - "healthCheckService": { - "type": "string", - "id": 408374747, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "healthCheckServiceResource": { - "type": "HealthCheckService", - "id": 477367794, + "diskSettingsResource": { + "type": "DiskSettings", + "id": 267573896, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -182222,10 +185212,17 @@ "options": { "proto3_optional": true } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } } } }, - "PatchRegionHealthSourceRequest": { + "PatchRegionHealthAggregationPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -182234,16 +185231,16 @@ } }, "fields": { - "healthSource": { + "healthAggregationPolicy": { "type": "string", - "id": 376521566, + "id": 240314354, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "healthSourceResource": { - "type": "HealthSource", - "id": 357735375, + "healthAggregationPolicyResource": { + "type": "HealthAggregationPolicy", + "id": 293526971, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -182273,7 +185270,7 @@ } } }, - "PatchRegionInstanceGroupManagerRequest": { + "PatchRegionHealthCheckRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -182282,16 +185279,16 @@ } }, "fields": { - "instanceGroupManager": { + "healthCheck": { "type": "string", - "id": 249363395, + "id": 308876645, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "instanceGroupManagerResource": { - "type": "InstanceGroupManager", - "id": 261063946, + "healthCheckResource": { + "type": "HealthCheck", + "id": 201925032, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -182321,7 +185318,7 @@ } } }, - "PatchRegionNetworkFirewallPolicyRequest": { + "PatchRegionHealthCheckServiceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -182330,16 +185327,16 @@ } }, "fields": { - "firewallPolicy": { + "healthCheckService": { "type": "string", - "id": 498173265, + "id": 408374747, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "firewallPolicyResource": { - "type": "FirewallPolicy", - "id": 495049532, + "healthCheckServiceResource": { + "type": "HealthCheckService", + "id": 477367794, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -182369,7 +185366,7 @@ } } }, - "PatchRegionNetworkPolicyRequest": { + "PatchRegionHealthSourceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -182378,16 +185375,16 @@ } }, "fields": { - "networkPolicy": { + "healthSource": { "type": "string", - "id": 504961123, + "id": 376521566, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "networkPolicyResource": { - "type": "NetworkPolicy", - "id": 437886058, + "healthSourceResource": { + "type": "HealthSource", + "id": 357735375, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -182417,20 +185414,29 @@ } } }, - "PatchRegionSecurityPolicyRequest": { + "PatchRegionInstanceGroupManagerRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_updateMask": { - "oneof": [ - "updateMask" - ] } }, "fields": { + "instanceGroupManager": { + "type": "string", + "id": 249363395, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instanceGroupManagerResource": { + "type": "InstanceGroupManager", + "id": 261063946, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -182453,44 +185459,80 @@ "options": { "proto3_optional": true } - }, - "securityPolicy": { + } + } + }, + "PatchRegionNetworkFirewallPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "firewallPolicy": { "type": "string", - "id": 171082513, + "id": 498173265, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "securityPolicyResource": { - "type": "SecurityPolicy", - "id": 216159612, + "firewallPolicyResource": { + "type": "FirewallPolicy", + "id": 495049532, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "updateMask": { + "project": { "type": "string", - "id": 500079778, + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, "options": { "proto3_optional": true } } } }, - "PatchRegionSnapshotSettingRequest": { + "PatchRegionNetworkPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_updateMask": { - "oneof": [ - "updateMask" - ] } }, "fields": { + "networkPolicy": { + "type": "string", + "id": 504961123, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "networkPolicyResource": { + "type": "NetworkPolicy", + "id": 437886058, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "project": { "type": "string", "id": 227560217, @@ -182513,24 +185555,123 @@ "options": { "proto3_optional": true } - }, - "snapshotSettingsResource": { - "type": "SnapshotSettings", - "id": 357664495, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "string", - "id": 500079778, - "options": { - "proto3_optional": true - } } } }, - "PatchRegionSslPolicyRequest": { + "PatchRegionSecurityPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "securityPolicy": { + "type": "string", + "id": 171082513, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "securityPolicyResource": { + "type": "SecurityPolicy", + "id": 216159612, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } + } + } + }, + "PatchRegionSnapshotSettingRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "snapshotSettingsResource": { + "type": "SnapshotSettings", + "id": 357664495, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } + } + } + }, + "PatchRegionSslPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -185215,6 +188356,11 @@ "ipCidrRange" ] }, + "_ipv6AccessType": { + "oneof": [ + "ipv6AccessType" + ] + }, "_kind": { "oneof": [ "kind" @@ -185296,6 +188442,13 @@ "proto3_optional": true } }, + "ipv6AccessType": { + "type": "string", + "id": 504658653, + "options": { + "proto3_optional": true + } + }, "kind": { "type": "string", "id": 3292052, @@ -185352,6 +188505,13 @@ "V2": 2716 } }, + "Ipv6AccessType": { + "values": { + "UNDEFINED_IPV6_ACCESS_TYPE": 0, + "EXTERNAL": 35607499, + "INTERNAL": 279295677 + } + }, "PdpScope": { "values": { "UNDEFINED_PDP_SCOPE": 0, @@ -185555,6 +188715,11 @@ "ipCidrRange" ] }, + "_ipv6AccessType": { + "oneof": [ + "ipv6AccessType" + ] + }, "_isLiveMigration": { "oneof": [ "isLiveMigration" @@ -185653,6 +188818,13 @@ "proto3_optional": true } }, + "ipv6AccessType": { + "type": "string", + "id": 504658653, + "options": { + "proto3_optional": true + } + }, "isLiveMigration": { "type": "bool", "id": 511823856, @@ -185723,17 +188895,26 @@ "V2": 2716 } }, + "Ipv6AccessType": { + "values": { + "UNDEFINED_IPV6_ACCESS_TYPE": 0, + "EXTERNAL": 35607499, + "INTERNAL": 279295677 + } + }, "Mode": { "values": { "UNDEFINED_MODE": 0, "DELEGATION": 264149288, "EXTERNAL_IPV6_FORWARDING_RULE_CREATION": 398684356, - "EXTERNAL_IPV6_SUBNETWORK_CREATION": 61198284 + "EXTERNAL_IPV6_SUBNETWORK_CREATION": 61198284, + "INTERNAL_IPV6_SUBNETWORK_CREATION": 153239834 } }, "Status": { "values": { "UNDEFINED_STATUS": 0, + "ACTIVE": 314733318, "ANNOUNCED": 365103355, "ANNOUNCED_TO_GOOGLE": 454875705, "ANNOUNCED_TO_INTERNET": 177880897, @@ -185918,6 +189099,11 @@ "ipCidrRange" ] }, + "_ipv6AccessType": { + "oneof": [ + "ipv6AccessType" + ] + }, "_isAddress": { "oneof": [ "isAddress" @@ -185980,6 +189166,13 @@ "proto3_optional": true } }, + "ipv6AccessType": { + "type": "string", + "id": 504658653, + "options": { + "proto3_optional": true + } + }, "isAddress": { "type": "bool", "id": 352617951, @@ -186017,12 +189210,20 @@ } }, "nested": { + "Ipv6AccessType": { + "values": { + "UNDEFINED_IPV6_ACCESS_TYPE": 0, + "EXTERNAL": 35607499, + "INTERNAL": 279295677 + } + }, "Mode": { "values": { "UNDEFINED_MODE": 0, "DELEGATION": 264149288, "EXTERNAL_IPV6_FORWARDING_RULE_CREATION": 398684356, - "EXTERNAL_IPV6_SUBNETWORK_CREATION": 61198284 + "EXTERNAL_IPV6_SUBNETWORK_CREATION": 61198284, + "INTERNAL_IPV6_SUBNETWORK_CREATION": 153239834 } }, "Status": { @@ -190140,6 +193341,11 @@ }, "ReservationSubBlock": { "oneofs": { + "_acceleratorTopologiesInfo": { + "oneof": [ + "acceleratorTopologiesInfo" + ] + }, "_count": { "oneof": [ "count" @@ -190212,6 +193418,13 @@ } }, "fields": { + "acceleratorTopologiesInfo": { + "type": "AcceleratorTopologiesInfo", + "id": 84833420, + "options": { + "proto3_optional": true + } + }, "count": { "type": "int32", "id": 94851343, @@ -190618,6 +193831,7 @@ "FAULT_BEHAVIOR_UNSPECIFIED": 447660743, "GPU_ERROR": 198817909, "PERFORMANCE": 135701520, + "SILENT_DATA_CORRUPTION": 111360678, "SWITCH_FAILURE": 254909279 } } @@ -191515,6 +194729,11 @@ }, "ResourcePolicyGroupPlacementPolicy": { "oneofs": { + "_acceleratorTopologyMode": { + "oneof": [ + "acceleratorTopologyMode" + ] + }, "_availabilityDomainCount": { "oneof": [ "availabilityDomainCount" @@ -191552,6 +194771,13 @@ } }, "fields": { + "acceleratorTopologyMode": { + "type": "string", + "id": 284293791, + "options": { + "proto3_optional": true + } + }, "availabilityDomainCount": { "type": "int32", "id": 12453432, @@ -191603,6 +194829,13 @@ } }, "nested": { + "AcceleratorTopologyMode": { + "values": { + "UNDEFINED_ACCELERATOR_TOPOLOGY_MODE": 0, + "AUTO_CONNECT": 491872826, + "PROVISION_ONLY": 399134966 + } + }, "Collocation": { "values": { "UNDEFINED_COLLOCATION": 0, @@ -192118,6 +195351,11 @@ "acceleratorTopology" ] }, + "_acceleratorTopologyMode": { + "oneof": [ + "acceleratorTopologyMode" + ] + }, "_maxTopologyDistance": { "oneof": [ "maxTopologyDistance" @@ -192137,6 +195375,13 @@ "proto3_optional": true } }, + "acceleratorTopologyMode": { + "type": "string", + "id": 284293791, + "options": { + "proto3_optional": true + } + }, "maxTopologyDistance": { "type": "string", "id": 7521706, @@ -192153,6 +195398,13 @@ } }, "nested": { + "AcceleratorTopologyMode": { + "values": { + "UNDEFINED_ACCELERATOR_TOPOLOGY_MODE": 0, + "AUTO_CONNECT": 491872826, + "PROVISION_ONLY": 399134966 + } + }, "MaxTopologyDistance": { "values": { "UNDEFINED_MAX_TOPOLOGY_DISTANCE": 0, @@ -192187,6 +195439,11 @@ "physicalHostTopology" ] }, + "_reservationConsumptionInfo": { + "oneof": [ + "reservationConsumptionInfo" + ] + }, "_scheduling": { "oneof": [ "scheduling" @@ -192225,6 +195482,13 @@ "proto3_optional": true } }, + "reservationConsumptionInfo": { + "type": "ResourceStatusReservationConsumptionInfo", + "id": 201056997, + "options": { + "proto3_optional": true + } + }, "scheduling": { "type": "ResourceStatusScheduling", "id": 386688404, @@ -192404,6 +195668,24 @@ } } }, + "ResourceStatusReservationConsumptionInfo": { + "oneofs": { + "_consumedReservation": { + "oneof": [ + "consumedReservation" + ] + } + }, + "fields": { + "consumedReservation": { + "type": "string", + "id": 318474741, + "options": { + "proto3_optional": true + } + } + } + }, "ResourceStatusScheduling": { "oneofs": { "_availabilityDomain": { @@ -198519,6 +201801,11 @@ "endpoint" ] }, + "_endpointWithId": { + "oneof": [ + "endpointWithId" + ] + }, "_propagatedConnectionCount": { "oneof": [ "propagatedConnectionCount" @@ -198550,6 +201837,13 @@ "proto3_optional": true } }, + "endpointWithId": { + "type": "string", + "id": 444867210, + "options": { + "proto3_optional": true + } + }, "natIps": { "rule": "repeated", "type": "string", @@ -198598,6 +201892,11 @@ "connectionLimit" ] }, + "_endpointUrl": { + "oneof": [ + "endpointUrl" + ] + }, "_networkUrl": { "oneof": [ "networkUrl" @@ -198617,6 +201916,13 @@ "proto3_optional": true } }, + "endpointUrl": { + "type": "string", + "id": 223428549, + "options": { + "proto3_optional": true + } + }, "networkUrl": { "type": "string", "id": 207194078, @@ -199878,6 +203184,38 @@ } } }, + "SetIamPolicyRegionBackendBucketRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "regionSetPolicyRequestResource": { + "type": "RegionSetPolicyRequest", + "id": 276489091, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "SetIamPolicyRegionBackendServiceRequest": { "fields": { "project": { @@ -200038,6 +203376,45 @@ } } }, + "SetIamPolicyReservationBlockRequest": { + "fields": { + "parentResource": { + "type": "string", + "id": 18091011, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zoneSetNestedPolicyRequestResource": { + "type": "ZoneSetNestedPolicyRequest", + "id": 266352851, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "SetIamPolicyReservationRequest": { "fields": { "project": { @@ -200070,6 +203447,45 @@ } } }, + "SetIamPolicyReservationSubBlockRequest": { + "fields": { + "parentResource": { + "type": "string", + "id": 18091011, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zoneSetNestedPolicyRequestResource": { + "type": "ZoneSetNestedPolicyRequest", + "id": 266352851, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "SetIamPolicyResourcePolicyRequest": { "fields": { "project": { @@ -202910,6 +206326,16 @@ }, "ShieldedInstanceIdentity": { "oneofs": { + "_eccP256EncryptionKey": { + "oneof": [ + "eccP256EncryptionKey" + ] + }, + "_eccP256SigningKey": { + "oneof": [ + "eccP256SigningKey" + ] + }, "_encryptionKey": { "oneof": [ "encryptionKey" @@ -202927,6 +206353,20 @@ } }, "fields": { + "eccP256EncryptionKey": { + "type": "ShieldedInstanceIdentityEntry", + "id": 469607365, + "options": { + "proto3_optional": true + } + }, + "eccP256SigningKey": { + "type": "ShieldedInstanceIdentityEntry", + "id": 477678403, + "options": { + "proto3_optional": true + } + }, "encryptionKey": { "type": "ShieldedInstanceIdentityEntry", "id": 488268707, @@ -205026,7 +208466,8 @@ "UNDEFINED_MIN_TLS_VERSION": 0, "TLS_1_0": 33116734, "TLS_1_1": 33116735, - "TLS_1_2": 33116736 + "TLS_1_2": 33116736, + "TLS_1_3": 33116737 } }, "Profile": { @@ -205034,6 +208475,7 @@ "UNDEFINED_PROFILE": 0, "COMPATIBLE": 179357396, "CUSTOM": 388595569, + "FIPS_202205": 475828188, "MODERN": 132013855, "RESTRICTED": 261551195 } @@ -211961,7 +215403,7 @@ } } }, - "TestIamPermissionsRegionBackendServiceRequest": { + "TestIamPermissionsRegionBackendBucketRequest": { "fields": { "project": { "type": "string", @@ -211993,7 +215435,7 @@ } } }, - "TestIamPermissionsRegionCommitmentRequest": { + "TestIamPermissionsRegionBackendServiceRequest": { "fields": { "project": { "type": "string", @@ -212025,7 +215467,7 @@ } } }, - "TestIamPermissionsRegionDiskRequest": { + "TestIamPermissionsRegionCommitmentRequest": { "fields": { "project": { "type": "string", @@ -212057,7 +215499,7 @@ } } }, - "TestIamPermissionsRegionHealthCheckRequest": { + "TestIamPermissionsRegionCompositeHealthCheckRequest": { "fields": { "project": { "type": "string", @@ -212089,7 +215531,7 @@ } } }, - "TestIamPermissionsRegionHealthCheckServiceRequest": { + "TestIamPermissionsRegionDiskRequest": { "fields": { "project": { "type": "string", @@ -212121,7 +215563,7 @@ } } }, - "TestIamPermissionsRegionHealthSourceRequest": { + "TestIamPermissionsRegionHealthAggregationPolicyRequest": { "fields": { "project": { "type": "string", @@ -212153,7 +215595,7 @@ } } }, - "TestIamPermissionsRegionInstanceGroupManagerRequest": { + "TestIamPermissionsRegionHealthCheckRequest": { "fields": { "project": { "type": "string", @@ -212185,7 +215627,7 @@ } } }, - "TestIamPermissionsRegionInstanceGroupRequest": { + "TestIamPermissionsRegionHealthCheckServiceRequest": { "fields": { "project": { "type": "string", @@ -212217,7 +215659,7 @@ } } }, - "TestIamPermissionsRegionInstantSnapshotRequest": { + "TestIamPermissionsRegionHealthSourceRequest": { "fields": { "project": { "type": "string", @@ -212249,7 +215691,7 @@ } } }, - "TestIamPermissionsRegionNetworkFirewallPolicyRequest": { + "TestIamPermissionsRegionInstanceGroupManagerRequest": { "fields": { "project": { "type": "string", @@ -212281,7 +215723,7 @@ } } }, - "TestIamPermissionsRegionNotificationEndpointRequest": { + "TestIamPermissionsRegionInstanceGroupRequest": { "fields": { "project": { "type": "string", @@ -212313,7 +215755,7 @@ } } }, - "TestIamPermissionsRegionSnapshotRequest": { + "TestIamPermissionsRegionInstantSnapshotRequest": { "fields": { "project": { "type": "string", @@ -212345,7 +215787,7 @@ } } }, - "TestIamPermissionsRegionSslCertificateRequest": { + "TestIamPermissionsRegionNetworkFirewallPolicyRequest": { "fields": { "project": { "type": "string", @@ -212377,7 +215819,7 @@ } } }, - "TestIamPermissionsRegionSslPolicyRequest": { + "TestIamPermissionsRegionNotificationEndpointRequest": { "fields": { "project": { "type": "string", @@ -212409,7 +215851,7 @@ } } }, - "TestIamPermissionsRegionTargetHttpProxyRequest": { + "TestIamPermissionsRegionSnapshotRequest": { "fields": { "project": { "type": "string", @@ -212441,7 +215883,7 @@ } } }, - "TestIamPermissionsRegionTargetHttpsProxyRequest": { + "TestIamPermissionsRegionSslCertificateRequest": { "fields": { "project": { "type": "string", @@ -212473,7 +215915,7 @@ } } }, - "TestIamPermissionsRegionTargetTcpProxyRequest": { + "TestIamPermissionsRegionSslPolicyRequest": { "fields": { "project": { "type": "string", @@ -212505,7 +215947,7 @@ } } }, - "TestIamPermissionsRegionUrlMapRequest": { + "TestIamPermissionsRegionTargetHttpProxyRequest": { "fields": { "project": { "type": "string", @@ -212537,7 +215979,7 @@ } } }, - "TestIamPermissionsReservationRequest": { + "TestIamPermissionsRegionTargetHttpsProxyRequest": { "fields": { "project": { "type": "string", @@ -212546,6 +215988,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -212559,17 +216008,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "TestIamPermissionsResourcePolicyRequest": { + "TestIamPermissionsRegionTargetTcpProxyRequest": { "fields": { "project": { "type": "string", @@ -212601,7 +216043,7 @@ } } }, - "TestIamPermissionsRouteRequest": { + "TestIamPermissionsRegionUrlMapRequest": { "fields": { "project": { "type": "string", @@ -212610,6 +216052,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -212626,18 +216075,18 @@ } } }, - "TestIamPermissionsRouterRequest": { + "TestIamPermissionsReservationBlockRequest": { "fields": { - "project": { + "parentResource": { "type": "string", - "id": 227560217, + "id": 18091011, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "project": { "type": "string", - "id": 138946292, + "id": 227560217, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -212655,10 +216104,17 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "TestIamPermissionsSecurityPolicyRequest": { + "TestIamPermissionsReservationRequest": { "fields": { "project": { "type": "string", @@ -212680,21 +216136,28 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "TestIamPermissionsServiceAttachmentRequest": { + "TestIamPermissionsReservationSubBlockRequest": { "fields": { - "project": { + "parentResource": { "type": "string", - "id": 227560217, + "id": 18091011, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "project": { "type": "string", - "id": 138946292, + "id": 227560217, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -212712,10 +216175,17 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "TestIamPermissionsSnapshotRequest": { + "TestIamPermissionsResourcePolicyRequest": { "fields": { "project": { "type": "string", @@ -212724,6 +216194,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -212740,7 +216217,7 @@ } } }, - "TestIamPermissionsSslCertificateRequest": { + "TestIamPermissionsRouteRequest": { "fields": { "project": { "type": "string", @@ -212765,7 +216242,7 @@ } } }, - "TestIamPermissionsSslPolicyRequest": { + "TestIamPermissionsRouterRequest": { "fields": { "project": { "type": "string", @@ -212774,6 +216251,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -212790,7 +216274,7 @@ } } }, - "TestIamPermissionsStoragePoolRequest": { + "TestIamPermissionsSecurityPolicyRequest": { "fields": { "project": { "type": "string", @@ -212812,17 +216296,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "TestIamPermissionsSubnetworkRequest": { + "TestIamPermissionsServiceAttachmentRequest": { "fields": { "project": { "type": "string", @@ -212854,7 +216331,7 @@ } } }, - "TestIamPermissionsTargetGrpcProxyRequest": { + "TestIamPermissionsSnapshotRequest": { "fields": { "project": { "type": "string", @@ -212879,7 +216356,7 @@ } } }, - "TestIamPermissionsTargetHttpProxyRequest": { + "TestIamPermissionsSslCertificateRequest": { "fields": { "project": { "type": "string", @@ -212904,7 +216381,7 @@ } } }, - "TestIamPermissionsTargetHttpsProxyRequest": { + "TestIamPermissionsSslPolicyRequest": { "fields": { "project": { "type": "string", @@ -212929,7 +216406,7 @@ } } }, - "TestIamPermissionsTargetInstanceRequest": { + "TestIamPermissionsStoragePoolRequest": { "fields": { "project": { "type": "string", @@ -212961,7 +216438,7 @@ } } }, - "TestIamPermissionsTargetPoolRequest": { + "TestIamPermissionsSubnetworkRequest": { "fields": { "project": { "type": "string", @@ -212993,32 +216470,7 @@ } } }, - "TestIamPermissionsTargetSslProxyRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsTargetTcpProxyRequest": { + "TestIamPermissionsTargetGrpcProxyRequest": { "fields": { "project": { "type": "string", @@ -213043,7 +216495,7 @@ } } }, - "TestIamPermissionsTargetVpnGatewayRequest": { + "TestIamPermissionsTargetHttpProxyRequest": { "fields": { "project": { "type": "string", @@ -213052,13 +216504,177 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsTargetHttpsProxyRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsTargetInstanceRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsTargetPoolRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsTargetSslProxyRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsTargetTcpProxyRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsTargetVpnGatewayRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -213322,6 +216938,7 @@ "FAILURE_NETWORK": 42811449, "FAILURE_NVLINK": 484426295, "FAILURE_REDUNDANT_HARDWARE_FAULT": 31000530, + "FAILURE_TPU": 467889412, "INFRASTRUCTURE_RELOCATION": 359845636, "MAINTENANCE_REASON_UNKNOWN": 50570235, "PLANNED_NETWORK_UPDATE": 135494677, @@ -215011,6 +218628,54 @@ } } }, + "UpdateZoneVmExtensionPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "vmExtensionPolicy": { + "type": "string", + "id": 331532730, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "vmExtensionPolicyResource": { + "type": "VmExtensionPolicy", + "id": 515669235, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "UrlMap": { "oneofs": { "_creationTimestamp": { @@ -215889,239 +219554,653 @@ } } }, - "UsageExportLocation": { + "UsageExportLocation": { + "oneofs": { + "_bucketName": { + "oneof": [ + "bucketName" + ] + }, + "_reportNamePrefix": { + "oneof": [ + "reportNamePrefix" + ] + } + }, + "fields": { + "bucketName": { + "type": "string", + "id": 283610048, + "options": { + "proto3_optional": true + } + }, + "reportNamePrefix": { + "type": "string", + "id": 320198715, + "options": { + "proto3_optional": true + } + } + } + }, + "ValidateRegionUrlMapRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "regionUrlMapsValidateRequestResource": { + "type": "RegionUrlMapsValidateRequest", + "id": 56632858, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "urlMap": { + "type": "string", + "id": 367020684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ValidateUrlMapRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "urlMap": { + "type": "string", + "id": 367020684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "urlMapsValidateRequestResource": { + "type": "UrlMapsValidateRequest", + "id": 395913455, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "VmEndpointNatMappings": { + "oneofs": { + "_instanceName": { + "oneof": [ + "instanceName" + ] + } + }, + "fields": { + "instanceName": { + "type": "string", + "id": 227947509, + "options": { + "proto3_optional": true + } + }, + "interfaceNatMappings": { + "rule": "repeated", + "type": "VmEndpointNatMappingsInterfaceNatMappings", + "id": 256196617 + } + } + }, + "VmEndpointNatMappingsInterfaceNatMappings": { + "oneofs": { + "_numTotalDrainNatPorts": { + "oneof": [ + "numTotalDrainNatPorts" + ] + }, + "_numTotalNatPorts": { + "oneof": [ + "numTotalNatPorts" + ] + }, + "_sourceAliasIpRange": { + "oneof": [ + "sourceAliasIpRange" + ] + }, + "_sourceVirtualIp": { + "oneof": [ + "sourceVirtualIp" + ] + } + }, + "fields": { + "drainNatIpPortRanges": { + "rule": "repeated", + "type": "string", + "id": 395440577 + }, + "natIpPortRanges": { + "rule": "repeated", + "type": "string", + "id": 531830810 + }, + "numTotalDrainNatPorts": { + "type": "int32", + "id": 335532793, + "options": { + "proto3_optional": true + } + }, + "numTotalNatPorts": { + "type": "int32", + "id": 299904384, + "options": { + "proto3_optional": true + } + }, + "ruleMappings": { + "rule": "repeated", + "type": "VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings", + "id": 486192968 + }, + "sourceAliasIpRange": { + "type": "string", + "id": 440340952, + "options": { + "proto3_optional": true + } + }, + "sourceVirtualIp": { + "type": "string", + "id": 149836159, + "options": { + "proto3_optional": true + } + } + } + }, + "VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings": { + "oneofs": { + "_numTotalDrainNatPorts": { + "oneof": [ + "numTotalDrainNatPorts" + ] + }, + "_numTotalNatPorts": { + "oneof": [ + "numTotalNatPorts" + ] + }, + "_ruleNumber": { + "oneof": [ + "ruleNumber" + ] + } + }, + "fields": { + "drainNatIpPortRanges": { + "rule": "repeated", + "type": "string", + "id": 395440577 + }, + "natIpPortRanges": { + "rule": "repeated", + "type": "string", + "id": 531830810 + }, + "numTotalDrainNatPorts": { + "type": "int32", + "id": 335532793, + "options": { + "proto3_optional": true + } + }, + "numTotalNatPorts": { + "type": "int32", + "id": 299904384, + "options": { + "proto3_optional": true + } + }, + "ruleNumber": { + "type": "int32", + "id": 535211500, + "options": { + "proto3_optional": true + } + } + } + }, + "VmEndpointNatMappingsList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "result": { + "rule": "repeated", + "type": "VmEndpointNatMappings", + "id": 139315229 + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "VmExtensionPoliciesScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "vmExtensionPolicies": { + "rule": "repeated", + "type": "VmExtensionPolicy", + "id": 238490584 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "VmExtensionPolicy": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_globalResourceLink": { + "oneof": [ + "globalResourceLink" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_managedByGlobal": { + "oneof": [ + "managedByGlobal" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_priority": { + "oneof": [ + "priority" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + }, + "_state": { + "oneof": [ + "state" + ] + }, + "_updateTimestamp": { + "oneof": [ + "updateTimestamp" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "extensionPolicies": { + "keyType": "string", + "type": "VmExtensionPolicyExtensionPolicy", + "id": 227761488 + }, + "globalResourceLink": { + "type": "string", + "id": 516569583, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "instanceSelectors": { + "rule": "repeated", + "type": "VmExtensionPolicyInstanceSelector", + "id": 520298826 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "managedByGlobal": { + "type": "bool", + "id": 88605675, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "priority": { + "type": "int32", + "id": 445151652, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + }, + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + }, + "updateTimestamp": { + "type": "string", + "id": 120894752, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "State": { + "values": { + "UNDEFINED_STATE": 0, + "ACTIVE": 314733318, + "DELETING": 528602024, + "STATE_UNSPECIFIED": 470755401 + } + } + } + }, + "VmExtensionPolicyAggregatedListResponse": { + "oneofs": { + "_etag": { + "oneof": [ + "etag" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "etag": { + "type": "string", + "id": 3123477, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "keyType": "string", + "type": "VmExtensionPoliciesScopedList", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "VmExtensionPolicyExtensionPolicy": { "oneofs": { - "_bucketName": { + "_pinnedVersion": { "oneof": [ - "bucketName" + "pinnedVersion" ] }, - "_reportNamePrefix": { + "_stringConfig": { "oneof": [ - "reportNamePrefix" + "stringConfig" ] } }, "fields": { - "bucketName": { + "pinnedVersion": { "type": "string", - "id": 283610048, + "id": 446267249, "options": { "proto3_optional": true } }, - "reportNamePrefix": { + "stringConfig": { "type": "string", - "id": 320198715, + "id": 318905136, "options": { "proto3_optional": true } } } }, - "ValidateRegionUrlMapRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "regionUrlMapsValidateRequestResource": { - "type": "RegionUrlMapsValidateRequest", - "id": 56632858, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "urlMap": { - "type": "string", - "id": 367020684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "ValidateUrlMapRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "urlMap": { - "type": "string", - "id": 367020684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "urlMapsValidateRequestResource": { - "type": "UrlMapsValidateRequest", - "id": 395913455, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "VmEndpointNatMappings": { + "VmExtensionPolicyInstanceSelector": { "oneofs": { - "_instanceName": { + "_labelSelector": { "oneof": [ - "instanceName" + "labelSelector" ] } }, "fields": { - "instanceName": { - "type": "string", - "id": 227947509, + "labelSelector": { + "type": "VmExtensionPolicyLabelSelector", + "id": 349780170, "options": { "proto3_optional": true } - }, - "interfaceNatMappings": { - "rule": "repeated", - "type": "VmEndpointNatMappingsInterfaceNatMappings", - "id": 256196617 } } }, - "VmEndpointNatMappingsInterfaceNatMappings": { - "oneofs": { - "_numTotalDrainNatPorts": { - "oneof": [ - "numTotalDrainNatPorts" - ] - }, - "_numTotalNatPorts": { - "oneof": [ - "numTotalNatPorts" - ] - }, - "_sourceAliasIpRange": { - "oneof": [ - "sourceAliasIpRange" - ] - }, - "_sourceVirtualIp": { - "oneof": [ - "sourceVirtualIp" - ] - } - }, + "VmExtensionPolicyLabelSelector": { "fields": { - "drainNatIpPortRanges": { - "rule": "repeated", - "type": "string", - "id": 395440577 - }, - "natIpPortRanges": { - "rule": "repeated", - "type": "string", - "id": 531830810 - }, - "numTotalDrainNatPorts": { - "type": "int32", - "id": 335532793, - "options": { - "proto3_optional": true - } - }, - "numTotalNatPorts": { - "type": "int32", - "id": 299904384, - "options": { - "proto3_optional": true - } - }, - "ruleMappings": { - "rule": "repeated", - "type": "VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings", - "id": 486192968 - }, - "sourceAliasIpRange": { - "type": "string", - "id": 440340952, - "options": { - "proto3_optional": true - } - }, - "sourceVirtualIp": { + "inclusionLabels": { + "keyType": "string", "type": "string", - "id": 149836159, - "options": { - "proto3_optional": true - } + "id": 501312642 } } }, - "VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings": { + "VmExtensionPolicyList": { "oneofs": { - "_numTotalDrainNatPorts": { - "oneof": [ - "numTotalDrainNatPorts" - ] - }, - "_numTotalNatPorts": { - "oneof": [ - "numTotalNatPorts" - ] - }, - "_ruleNumber": { + "_etag": { "oneof": [ - "ruleNumber" + "etag" ] - } - }, - "fields": { - "drainNatIpPortRanges": { - "rule": "repeated", - "type": "string", - "id": 395440577 }, - "natIpPortRanges": { - "rule": "repeated", - "type": "string", - "id": 531830810 - }, - "numTotalDrainNatPorts": { - "type": "int32", - "id": 335532793, - "options": { - "proto3_optional": true - } - }, - "numTotalNatPorts": { - "type": "int32", - "id": 299904384, - "options": { - "proto3_optional": true - } - }, - "ruleNumber": { - "type": "int32", - "id": 535211500, - "options": { - "proto3_optional": true - } - } - } - }, - "VmEndpointNatMappingsList": { - "oneofs": { "_id": { "oneof": [ "id" @@ -216149,6 +220228,13 @@ } }, "fields": { + "etag": { + "type": "string", + "id": 3123477, + "options": { + "proto3_optional": true + } + }, "id": { "type": "string", "id": 3355, @@ -216156,6 +220242,11 @@ "proto3_optional": true } }, + "items": { + "rule": "repeated", + "type": "VmExtensionPolicy", + "id": 100526016 + }, "kind": { "type": "string", "id": 3292052, @@ -216170,11 +220261,6 @@ "proto3_optional": true } }, - "result": { - "rule": "repeated", - "type": "VmEndpointNatMappings", - "id": 139315229 - }, "selfLink": { "type": "string", "id": 456214797, @@ -216182,6 +220268,11 @@ "proto3_optional": true } }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, "warning": { "type": "Warning", "id": 50704284, @@ -218487,6 +222578,41 @@ } } }, + "ZoneSetNestedPolicyRequest": { + "oneofs": { + "_etag": { + "oneof": [ + "etag" + ] + }, + "_policy": { + "oneof": [ + "policy" + ] + } + }, + "fields": { + "bindings": { + "rule": "repeated", + "type": "Binding", + "id": 403251854 + }, + "etag": { + "type": "string", + "id": 3123477, + "options": { + "proto3_optional": true + } + }, + "policy": { + "type": "Policy", + "id": 91071794, + "options": { + "proto3_optional": true + } + } + } + }, "ZoneSetPolicyRequest": { "oneofs": { "_etag": { @@ -218994,6 +223120,24 @@ } ] }, + "AggregatedList": { + "requestType": "AggregatedListBackendBucketsRequest", + "responseType": "BackendBucketAggregatedList", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/aggregated/backendBuckets", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/aggregated/backendBuckets" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, "Delete": { "requestType": "DeleteBackendBucketRequest", "responseType": "Operation", @@ -222164,6 +226308,50 @@ } } }, + "GlobalVmExtensionPolicies": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute.readonly,https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "AggregatedList": { + "requestType": "AggregatedListGlobalVmExtensionPoliciesRequest", + "responseType": "VmExtensionPolicyAggregatedListResponse", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/aggregated/vmExtensionPolicies", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/aggregated/vmExtensionPolicies" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "Get": { + "requestType": "GetGlobalVmExtensionPolicyRequest", + "responseType": "GlobalVmExtensionPolicy", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/global/vmExtensionPolicies/{global_vm_extension_policy}", + "(google.api.method_signature)": "project,global_vm_extension_policy" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/global/vmExtensionPolicies/{global_vm_extension_policy}" + } + }, + { + "(google.api.method_signature)": "project,global_vm_extension_policy" + } + ] + } + } + }, "HealthChecks": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -222900,6 +227088,24 @@ } ] }, + "GetAvailableAcceleratorTopologies": { + "requestType": "GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest", + "responseType": "InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource_id}/getAvailableAcceleratorTopologies", + "(google.api.method_signature)": "project,zone,resource_id" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource_id}/getAvailableAcceleratorTopologies" + } + }, + { + "(google.api.method_signature)": "project,zone,resource_id" + } + ] + }, "Insert": { "requestType": "InsertInstanceGroupManagerRequest", "responseType": "Operation", @@ -229774,6 +233980,196 @@ } } }, + "RegionBackendBuckets": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Delete": { + "requestType": "DeleteRegionBackendBucketRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}", + "(google.api.method_signature)": "project,region,backend_bucket", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}" + } + }, + { + "(google.api.method_signature)": "project,region,backend_bucket" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionBackendBucketRequest", + "responseType": "BackendBucket", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}", + "(google.api.method_signature)": "project,region,backend_bucket" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}" + } + }, + { + "(google.api.method_signature)": "project,region,backend_bucket" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyRegionBackendBucketRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,region,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource" + } + ] + }, + "Insert": { + "requestType": "InsertRegionBackendBucketRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "backend_bucket_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/backendBuckets", + "(google.api.method_signature)": "project,region,backend_bucket_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "backend_bucket_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/backendBuckets" + } + }, + { + "(google.api.method_signature)": "project,region,backend_bucket_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionBackendBucketsRequest", + "responseType": "BackendBucketList", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/backendBuckets", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/backendBuckets" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "ListUsable": { + "requestType": "ListUsableRegionBackendBucketsRequest", + "responseType": "BackendBucketListUsable", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/listUsable", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/listUsable" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "Patch": { + "requestType": "PatchRegionBackendBucketRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "backend_bucket_resource", + "(google.api.http).patch": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}", + "(google.api.method_signature)": "project,region,backend_bucket,backend_bucket_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "backend_bucket_resource", + "patch": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}" + } + }, + { + "(google.api.method_signature)": "project,region,backend_bucket,backend_bucket_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyRegionBackendBucketRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "region_set_policy_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy", + "(google.api.method_signature)": "project,region,resource,region_set_policy_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "region_set_policy_request_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource,region_set_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionBackendBucketRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "RegionBackendServices": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -230186,6 +234582,158 @@ } } }, + "RegionCompositeHealthChecks": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "AggregatedList": { + "requestType": "AggregatedListRegionCompositeHealthChecksRequest", + "responseType": "CompositeHealthCheckAggregatedList", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/aggregated/compositeHealthChecks", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/aggregated/compositeHealthChecks" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "Delete": { + "requestType": "DeleteRegionCompositeHealthCheckRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}", + "(google.api.method_signature)": "project,region,composite_health_check", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionCompositeHealthCheckRequest", + "responseType": "CompositeHealthCheck", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}", + "(google.api.method_signature)": "project,region,composite_health_check" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check" + } + ] + }, + "Insert": { + "requestType": "InsertRegionCompositeHealthCheckRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "composite_health_check_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks", + "(google.api.method_signature)": "project,region,composite_health_check_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "composite_health_check_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionCompositeHealthChecksRequest", + "responseType": "CompositeHealthCheckList", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "Patch": { + "requestType": "PatchRegionCompositeHealthCheckRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "composite_health_check_resource", + "(google.api.http).patch": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}", + "(google.api.method_signature)": "project,region,composite_health_check,composite_health_check_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "composite_health_check_resource", + "patch": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check,composite_health_check_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionCompositeHealthCheckRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "RegionDiskSettings": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -230666,6 +235214,158 @@ } } }, + "RegionHealthAggregationPolicies": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "AggregatedList": { + "requestType": "AggregatedListRegionHealthAggregationPoliciesRequest", + "responseType": "HealthAggregationPolicyAggregatedList", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/aggregated/healthAggregationPolicies", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/aggregated/healthAggregationPolicies" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "Delete": { + "requestType": "DeleteRegionHealthAggregationPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}", + "(google.api.method_signature)": "project,region,health_aggregation_policy", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + } + }, + { + "(google.api.method_signature)": "project,region,health_aggregation_policy" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionHealthAggregationPolicyRequest", + "responseType": "HealthAggregationPolicy", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}", + "(google.api.method_signature)": "project,region,health_aggregation_policy" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + } + }, + { + "(google.api.method_signature)": "project,region,health_aggregation_policy" + } + ] + }, + "Insert": { + "requestType": "InsertRegionHealthAggregationPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "health_aggregation_policy_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies", + "(google.api.method_signature)": "project,region,health_aggregation_policy_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "health_aggregation_policy_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies" + } + }, + { + "(google.api.method_signature)": "project,region,health_aggregation_policy_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionHealthAggregationPoliciesRequest", + "responseType": "HealthAggregationPolicyList", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "Patch": { + "requestType": "PatchRegionHealthAggregationPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "health_aggregation_policy_resource", + "(google.api.http).patch": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}", + "(google.api.method_signature)": "project,region,health_aggregation_policy,health_aggregation_policy_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "health_aggregation_policy_resource", + "patch": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + } + }, + { + "(google.api.method_signature)": "project,region,health_aggregation_policy,health_aggregation_policy_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionHealthAggregationPolicyRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/beta/projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "RegionHealthCheckServices": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -234786,6 +239486,24 @@ } ] }, + "GetIamPolicy": { + "requestType": "GetIamPolicyReservationBlockRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,zone,parent_resource,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_resource,resource" + } + ] + }, "List": { "requestType": "ListReservationBlocksRequest", "responseType": "ReservationBlocksListResponse", @@ -234827,6 +239545,46 @@ "(google.cloud.operation_service)": "ZoneOperations" } ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyReservationBlockRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "zone_set_nested_policy_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/setIamPolicy", + "(google.api.method_signature)": "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "zone_set_nested_policy_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsReservationBlockRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,zone,parent_resource,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_resource,resource,test_permissions_request_resource" + } + ] } } }, @@ -234854,6 +239612,24 @@ } ] }, + "GetIamPolicy": { + "requestType": "GetIamPolicyReservationSubBlockRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,zone,parent_resource,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_resource,resource" + } + ] + }, "List": { "requestType": "ListReservationSubBlocksRequest", "responseType": "ReservationSubBlocksListResponse", @@ -234917,6 +239693,46 @@ "(google.cloud.operation_service)": "ZoneOperations" } ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyReservationSubBlockRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "zone_set_nested_policy_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy", + "(google.api.method_signature)": "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "zone_set_nested_policy_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsReservationSubBlockRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,zone,parent_resource,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_resource,resource,test_permissions_request_resource" + } + ] } } }, @@ -239692,6 +244508,120 @@ } } }, + "ZoneVmExtensionPolicies": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Delete": { + "requestType": "DeleteZoneVmExtensionPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}", + "(google.api.method_signature)": "project,zone,vm_extension_policy", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}" + } + }, + { + "(google.api.method_signature)": "project,zone,vm_extension_policy" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, + "Get": { + "requestType": "GetZoneVmExtensionPolicyRequest", + "responseType": "VmExtensionPolicy", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}", + "(google.api.method_signature)": "project,zone,vm_extension_policy" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}" + } + }, + { + "(google.api.method_signature)": "project,zone,vm_extension_policy" + } + ] + }, + "Insert": { + "requestType": "InsertZoneVmExtensionPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "vm_extension_policy_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies", + "(google.api.method_signature)": "project,zone,vm_extension_policy_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "vm_extension_policy_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies" + } + }, + { + "(google.api.method_signature)": "project,zone,vm_extension_policy_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, + "List": { + "requestType": "ListZoneVmExtensionPoliciesRequest", + "responseType": "VmExtensionPolicyList", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies", + "(google.api.method_signature)": "project,zone" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies" + } + }, + { + "(google.api.method_signature)": "project,zone" + } + ] + }, + "Update": { + "requestType": "UpdateZoneVmExtensionPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "vm_extension_policy_resource", + "(google.api.http).patch": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}", + "(google.api.method_signature)": "project,zone,vm_extension_policy,vm_extension_policy_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "vm_extension_policy_resource", + "patch": "/compute/beta/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}" + } + }, + { + "(google.api.method_signature)": "project,zone,vm_extension_policy,vm_extension_policy_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + } + } + }, "Zones": { "options": { "(google.api.default_host)": "compute.googleapis.com", diff --git a/packages/google-cloud-compute/samples/generated/v1beta/accelerator_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/accelerator_types.aggregated_list.js index ee1918b5f3b0..2cdd8e25676f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/accelerator_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/accelerator_types.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/accelerator_types.list.js b/packages/google-cloud-compute/samples/generated/v1beta/accelerator_types.list.js index 1a563504d484..381ad66240f2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/accelerator_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/accelerator_types.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/addresses.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/addresses.aggregated_list.js index 23224d209939..cb262a047f80 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/addresses.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/addresses.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/addresses.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/addresses.delete.js index 01231135d4fd..104b5592824b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/addresses.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/addresses.delete.js @@ -41,7 +41,17 @@ function main(address, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/addresses.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/addresses.insert.js index d35fb2788d88..b67f0c7a1f88 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/addresses.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/addresses.insert.js @@ -41,7 +41,17 @@ function main(addressResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/addresses.list.js b/packages/google-cloud-compute/samples/generated/v1beta/addresses.list.js index 0e2a53475c84..cf6de1dfdf11 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/addresses.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/addresses.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/addresses.move.js b/packages/google-cloud-compute/samples/generated/v1beta/addresses.move.js index 283ae38c05a8..b4e5d90be684 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/addresses.move.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/addresses.move.js @@ -45,7 +45,17 @@ function main(address, project, region, regionAddressesMoveRequestResource) { */ // const regionAddressesMoveRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/addresses.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/addresses.set_labels.js index 0e6261994e26..851b2c3ed1d2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/addresses.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/addresses.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.aggregated_list.js index f3a0bccb71f5..1d8183bcdf63 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.delete.js index 0318468d354c..daf9f56e5224 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.delete.js @@ -37,7 +37,17 @@ function main(autoscaler, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.insert.js index 5287fc10581d..fdcf9b289958 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.insert.js @@ -37,7 +37,17 @@ function main(autoscalerResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.list.js b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.list.js index 680eb5adf133..821b41401825 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.patch.js index 2c9c44fe8b08..59c5d3108ada 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.patch.js @@ -41,7 +41,17 @@ function main(autoscalerResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.update.js b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.update.js index 6cc7b2296a0e..62fac8e23724 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/autoscalers.update.js @@ -41,7 +41,17 @@ function main(autoscalerResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.add_signed_url_key.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.add_signed_url_key.js index 6df809b27512..79655c7c0838 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.add_signed_url_key.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.add_signed_url_key.js @@ -29,7 +29,8 @@ function main(backendBucket, project, signedUrlKeyResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. + * Name of the BackendBucket resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. */ // const backendBucket = 'abc123' /** @@ -37,7 +38,17 @@ function main(backendBucket, project, signedUrlKeyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.aggregated_list.js new file mode 100644 index 000000000000..e51e3cc5b847 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.aggregated_list.js @@ -0,0 +1,163 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project) { + // [START compute_v1beta_generated_BackendBuckets_AggregatedList_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + */ + // const includeAllScopes = true + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Name of the project scoping this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + */ + // const serviceProjectNumber = 1234 + + // Imports the Compute library + const {BackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new BackendBucketsClient(); + + async function callAggregatedList() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = computeClient.aggregatedListAsync(request); + for await (const [key, value] of iterable) { + console.log(response); + } + } + + callAggregatedList(); + // [END compute_v1beta_generated_BackendBuckets_AggregatedList_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete.js index 2aa76828761f..954016d90fbf 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete.js @@ -37,7 +37,17 @@ function main(backendBucket, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete_signed_url_key.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete_signed_url_key.js index f642fe4caa05..618ec81df5a4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete_signed_url_key.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.delete_signed_url_key.js @@ -29,7 +29,8 @@ function main(backendBucket, keyName, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. + * Name of the BackendBucket resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. */ // const backendBucket = 'abc123' /** @@ -41,7 +42,17 @@ function main(backendBucket, keyName, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.insert.js index 926c522d322f..787a4b7a2972 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.insert.js @@ -37,7 +37,17 @@ function main(backendBucketResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.list.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.list.js index 9b524bafd251..591ba369863f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.list_usable.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.list_usable.js index a4e6601c7bfd..f2ae539110cb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.list_usable.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.list_usable.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.patch.js index 8d9ce9017362..2a094c883384 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.patch.js @@ -41,7 +41,17 @@ function main(backendBucket, backendBucketResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.set_edge_security_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.set_edge_security_policy.js index 1d46d6176d0d..cb6a35292950 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.set_edge_security_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.set_edge_security_policy.js @@ -29,7 +29,8 @@ function main(backendBucket, project, securityPolicyReferenceResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the BackendBucket resource to which the security policy should be + * set. The name should conform to RFC1035. */ // const backendBucket = 'abc123' /** @@ -37,7 +38,17 @@ function main(backendBucket, project, securityPolicyReferenceResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.update.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.update.js index 2b60a951cb84..eb69201d294a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_buckets.update.js @@ -41,7 +41,17 @@ function main(backendBucket, backendBucketResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.add_signed_url_key.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.add_signed_url_key.js index 28c434f79650..868c73d227f4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.add_signed_url_key.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.add_signed_url_key.js @@ -29,7 +29,8 @@ function main(backendService, project, signedUrlKeyResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. + * Name of the BackendService resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. */ // const backendService = 'abc123' /** @@ -37,7 +38,17 @@ function main(backendService, project, signedUrlKeyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.aggregated_list.js index 7da10aeffd96..54f1789ff0a2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.delete.js index c151cb43fdef..e60c9cc30b93 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.delete.js @@ -37,7 +37,17 @@ function main(backendService, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.delete_signed_url_key.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.delete_signed_url_key.js index 655ef3bc051a..0803c05db65d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.delete_signed_url_key.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.delete_signed_url_key.js @@ -29,7 +29,8 @@ function main(backendService, keyName, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. + * Name of the BackendService resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. */ // const backendService = 'abc123' /** @@ -41,7 +42,17 @@ function main(backendService, keyName, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.insert.js index f27e344cee77..d46a2dccec0e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.insert.js @@ -37,7 +37,17 @@ function main(backendServiceResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.list.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.list.js index ffa0c475b2b2..c2414eb510c2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.list_usable.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.list_usable.js index 1da75b8343fc..a4e7b684acbe 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.list_usable.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.list_usable.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.patch.js index 73d52320a4b2..a4ee2f654aad 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.patch.js @@ -41,7 +41,17 @@ function main(backendService, backendServiceResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.set_edge_security_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.set_edge_security_policy.js index a3f020cbe959..0fd21a5794a8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.set_edge_security_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.set_edge_security_policy.js @@ -29,7 +29,8 @@ function main(backendService, project, securityPolicyReferenceResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. + * Name of the BackendService resource to which the edge security policy + * should be set. The name should conform to RFC1035. */ // const backendService = 'abc123' /** @@ -37,7 +38,17 @@ function main(backendService, project, securityPolicyReferenceResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.set_security_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.set_security_policy.js index d14855e5c3bf..3f27ef5ed312 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.set_security_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.set_security_policy.js @@ -29,7 +29,8 @@ function main(backendService, project, securityPolicyReferenceResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the BackendService resource to which the security policy should be + * set. The name should conform to RFC1035. */ // const backendService = 'abc123' /** @@ -37,7 +38,17 @@ function main(backendService, project, securityPolicyReferenceResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.update.js b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.update.js index c4e786a4c3fb..fbb70686ebe5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/backend_services.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/backend_services.update.js @@ -41,7 +41,17 @@ function main(backendService, backendServiceResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.delete.js index 4efac90ad6fa..ce2256a37a15 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.delete.js @@ -37,7 +37,18 @@ function main(crossSiteNetwork, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.insert.js index 619cfd6e62a0..a3fdb3b512b5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.insert.js @@ -37,7 +37,18 @@ function main(crossSiteNetworkResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.list.js index c899d864255b..f4a2c0b93c81 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.patch.js index ab0bbd23a391..a7a9a6ebf5a6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/cross_site_networks.patch.js @@ -41,7 +41,18 @@ function main(crossSiteNetwork, crossSiteNetworkResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disk_settings_service.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/disk_settings_service.patch.js index 7027b8caf695..bf15fd2dc520 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disk_settings_service.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disk_settings_service.patch.js @@ -37,7 +37,17 @@ function main(diskSettingsResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disk_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/disk_types.aggregated_list.js index a1b4549d1df3..ec3dbb084899 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disk_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disk_types.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disk_types.list.js b/packages/google-cloud-compute/samples/generated/v1beta/disk_types.list.js index 4dfdf181b390..8ade32d25885 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disk_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disk_types.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.add_resource_policies.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.add_resource_policies.js index 1e804549f675..d15856255837 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.add_resource_policies.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.add_resource_policies.js @@ -41,7 +41,17 @@ function main(disk, disksAddResourcePoliciesRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.aggregated_list.js index 30316da28bd1..cb14c230bf8b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.bulk_insert.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.bulk_insert.js index 5efc7775d87f..858853cf92a6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.bulk_insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.bulk_insert.js @@ -37,7 +37,17 @@ function main(bulkInsertDiskResourceResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.bulk_set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.bulk_set_labels.js index d4727ddbd6cc..b0c9df76e842 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.bulk_set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.bulk_set_labels.js @@ -37,7 +37,17 @@ function main(bulkZoneSetLabelsRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.create_snapshot.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.create_snapshot.js index cf1b8d591cce..955b23aafe18 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.create_snapshot.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.create_snapshot.js @@ -33,7 +33,8 @@ function main(disk, project, snapshotResource, zone) { */ // const disk = 'abc123' /** - * Input Only Whether to attempt an application consistent snapshot by informing the OS to prepare for the snapshot process. + * Input Only Whether to attempt an application consistent snapshot by + * informing the OS to prepare for the snapshot process. */ // const guestFlush = true /** @@ -41,7 +42,17 @@ function main(disk, project, snapshotResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.delete.js index a379ce35152b..abc65e86e7e0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.delete.js @@ -37,7 +37,17 @@ function main(disk, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.insert.js index 09e9ed53e515..85fa6615c642 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.insert.js @@ -37,7 +37,17 @@ function main(diskResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.list.js index 29040513b779..3977f155db8f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.remove_resource_policies.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.remove_resource_policies.js index 6d86fb9a5a95..ce782f172b86 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.remove_resource_policies.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.remove_resource_policies.js @@ -41,7 +41,17 @@ function main(disk, disksRemoveResourcePoliciesRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.resize.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.resize.js index fcf54b501bc9..c699c3f13851 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.resize.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.resize.js @@ -41,7 +41,17 @@ function main(disk, disksResizeRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.set_labels.js index 04da5275bf16..0b4c81f8f2cf 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.set_labels.js @@ -33,7 +33,17 @@ function main(project, resource, zone, zoneSetLabelsRequestResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.start_async_replication.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.start_async_replication.js index a15026d8984c..4afc91c47772 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.start_async_replication.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.start_async_replication.js @@ -41,7 +41,17 @@ function main(disk, disksStartAsyncReplicationRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.stop_async_replication.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.stop_async_replication.js index 187c23870a0f..c4c8c6da592c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.stop_async_replication.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.stop_async_replication.js @@ -37,7 +37,17 @@ function main(disk, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.stop_group_async_replication.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.stop_group_async_replication.js index d02e6788c05e..3bb412d81ab5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.stop_group_async_replication.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.stop_group_async_replication.js @@ -37,11 +37,22 @@ function main(disksStopGroupAsyncReplicationResourceResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone for this request. This must be the zone of the primary or secondary disks in the consistency group. + * The name of the zone for this request. This must be the zone of the primary + * or secondary disks in the consistency group. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/disks.update.js b/packages/google-cloud-compute/samples/generated/v1beta/disks.update.js index 6343dd405ed1..8390deac6f07 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/disks.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/disks.update.js @@ -44,7 +44,17 @@ function main(disk, diskResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.delete.js index 7d8a4bf334b6..e3f5971bdaaa 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.delete.js @@ -37,7 +37,17 @@ function main(externalVpnGateway, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.insert.js index c7410509dd9c..a5546df8416e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.insert.js @@ -37,7 +37,17 @@ function main(externalVpnGatewayResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.list.js b/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.list.js index 610029e5ecb7..b9758b3f8518 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/external_vpn_gateways.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_association.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_association.js index d56ffcc88d84..9b060590d2c9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_association.js @@ -37,11 +37,23 @@ function main(firewallPolicy, firewallPolicyAssociationResource) { */ // const firewallPolicyAssociationResource = {} /** - * Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists. + * Indicates whether or not to replace it if an association of the attachment + * already exists. This is false by default, in which case an error will be + * returned if an association already exists. */ // const replaceExistingAssociation = true /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_packet_mirroring_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_packet_mirroring_rule.js index 90d78d523715..f14d22982bb4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_packet_mirroring_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_packet_mirroring_rule.js @@ -37,7 +37,17 @@ function main(firewallPolicy, firewallPolicyRuleResource) { */ // const firewallPolicyRuleResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_rule.js index 19cf315aa744..7d63933b9e2c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.add_rule.js @@ -37,7 +37,17 @@ function main(firewallPolicy, firewallPolicyRuleResource) { */ // const firewallPolicyRuleResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.clone_rules.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.clone_rules.js index a1cfd83e2c0e..6996c4dbb64f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.clone_rules.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.clone_rules.js @@ -33,7 +33,17 @@ function main(firewallPolicy) { */ // const firewallPolicy = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.delete.js index 858b49ef52e9..ad01c69a83c6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.delete.js @@ -33,7 +33,17 @@ function main(firewallPolicy) { */ // const firewallPolicy = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.insert.js index cfd05951fc0e..b1270cc9afcd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.insert.js @@ -33,11 +33,23 @@ function main(firewallPolicyResource, parentId) { */ // const firewallPolicyResource = {} /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + * if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + * parent is an organization. */ // const parentId = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.list.js index 84aba14de8c7..d0712a0f590b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.list.js @@ -29,27 +29,94 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + * if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + * parent is an organization. */ // const parentId = 'abc123' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.list_associations.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.list_associations.js index 520a5ed0b4a1..7a07897a5984 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.list_associations.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.list_associations.js @@ -29,7 +29,14 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The target resource to list associations. It is an organization, or a folder. + * If set to "true", the response will contain a list of all associations for + * the containing folders and the containing organization of the target. The + * parameter has no effect if the target is an organization. + */ + // const includeInheritedPolicies = true + /** + * The target resource to list associations. It is an organization, or a + * folder. */ // const targetResource = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.move.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.move.js index 0e136fc1ac64..79c34cd91142 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.move.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.move.js @@ -33,11 +33,23 @@ function main(firewallPolicy, parentId) { */ // const firewallPolicy = 'abc123' /** - * The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * The new parent of the firewall policy. The ID can be either be + * "folders/[FOLDER_ID]" if the parent is a folder or + * "organizations/[ORGANIZATION_ID]" if the parent is an organization. */ // const parentId = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch.js index cea618e24c7c..0174112059cb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch.js @@ -37,7 +37,17 @@ function main(firewallPolicy, firewallPolicyResource) { */ // const firewallPolicyResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch_packet_mirroring_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch_packet_mirroring_rule.js index c1f4c0a6c4df..d8396f6c8cf3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch_packet_mirroring_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch_packet_mirroring_rule.js @@ -41,7 +41,17 @@ function main(firewallPolicy, firewallPolicyRuleResource) { */ // const priority = 1234 /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch_rule.js index d761f486b03b..829440f89491 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.patch_rule.js @@ -41,7 +41,17 @@ function main(firewallPolicy, firewallPolicyRuleResource) { */ // const priority = 1234 /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_association.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_association.js index 8737833aed3b..4918486be562 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_association.js @@ -37,7 +37,17 @@ function main(firewallPolicy) { */ // const name = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_packet_mirroring_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_packet_mirroring_rule.js index b3cc0be02b1e..f9185a063914 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_packet_mirroring_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_packet_mirroring_rule.js @@ -37,7 +37,17 @@ function main(firewallPolicy) { */ // const priority = 1234 /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_rule.js index d04cada88c4b..31501ff9c421 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewall_policies.remove_rule.js @@ -37,7 +37,17 @@ function main(firewallPolicy) { */ // const priority = 1234 /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.delete.js index 41326f37d024..b55fc0c9ee89 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.delete.js @@ -37,7 +37,17 @@ function main(firewall, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.insert.js index 585e16960f42..236a5646aaba 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.insert.js @@ -37,7 +37,17 @@ function main(firewallResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.list.js b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.list.js index 88a442d5920a..40bdeebc80b9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.patch.js index 9264d93c4252..7c6eb0be8ecd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.patch.js @@ -41,7 +41,17 @@ function main(firewall, firewallResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.update.js b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.update.js index 9ecf6f2098e2..95b6ddcafd06 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/firewalls.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/firewalls.update.js @@ -41,7 +41,17 @@ function main(firewall, firewallResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.aggregated_list.js index 77e48bedf844..07dedd3745c4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.delete.js index e452d05607d0..2cbe77cdc306 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.delete.js @@ -41,7 +41,17 @@ function main(forwardingRule, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.insert.js index bf90fe390bd1..4328bd20f204 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.insert.js @@ -41,7 +41,17 @@ function main(forwardingRuleResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.list.js b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.list.js index 268a90892401..d38ec3df7a6c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.patch.js index e6a7b16241d9..9714494dbea6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.patch.js @@ -45,7 +45,17 @@ function main(forwardingRule, forwardingRuleResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.set_labels.js index d401cf5d99c3..69f04f7d4373 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.set_target.js b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.set_target.js index bf60fb7dada6..1a8b2b6c3d71 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.set_target.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/forwarding_rules.set_target.js @@ -41,7 +41,17 @@ function main(forwardingRule, project, region, targetReferenceResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.aggregated_list.js index 4333ad23f063..aecc1d83dbee 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.cancel.js b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.cancel.js index b5cd40c5118e..dccc2cbbd1ad 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.cancel.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.cancel.js @@ -37,7 +37,17 @@ function main(futureReservation, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.delete.js index e471d58dd055..279185b58a57 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.delete.js @@ -37,7 +37,17 @@ function main(futureReservation, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.insert.js index 6546dccfb0a6..27ccebadeae3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.insert.js @@ -37,7 +37,17 @@ function main(futureReservationResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.list.js b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.list.js index 80cf961949ef..020d6cb9e48d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.update.js b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.update.js index 0ada95b53b75..de09d0090ea9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/future_reservations.update.js @@ -41,7 +41,17 @@ function main(futureReservation, futureReservationResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.delete.js index 2394daa640e8..fc629f5cf68f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.delete.js @@ -37,7 +37,17 @@ function main(address, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.insert.js index c86d026a0867..05a532c63761 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.insert.js @@ -37,7 +37,17 @@ function main(addressResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.list.js b/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.list.js index e870ed3be101..d5a573488392 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.move.js b/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.move.js index 9a47abe6002e..926c26871530 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.move.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_addresses.move.js @@ -41,7 +41,17 @@ function main(address, globalAddressesMoveRequestResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.delete.js index 2f26e4059752..86fc918305ad 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.delete.js @@ -37,7 +37,17 @@ function main(forwardingRule, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.insert.js index 5c94230f4391..99ac185d6e68 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.insert.js @@ -37,7 +37,17 @@ function main(forwardingRuleResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.list.js b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.list.js index 99faf394db50..4fbf96ec418a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.patch.js index 28cbeba24a3b..f5f2599502d2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.patch.js @@ -41,7 +41,17 @@ function main(forwardingRule, forwardingRuleResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.set_target.js b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.set_target.js index bfb009e2d380..58d63516c76f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.set_target.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_forwarding_rules.set_target.js @@ -37,7 +37,17 @@ function main(forwardingRule, project, targetReferenceResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.attach_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.attach_network_endpoints.js index 04c8322bcd60..8fe35a0a3669 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.attach_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.attach_network_endpoints.js @@ -33,7 +33,8 @@ function main(globalNetworkEndpointGroupsAttachEndpointsRequestResource, network */ // const globalNetworkEndpointGroupsAttachEndpointsRequestResource = {} /** - * The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + * The name of the network endpoint group where you are attaching network + * endpoints to. It should comply with RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -41,7 +42,17 @@ function main(globalNetworkEndpointGroupsAttachEndpointsRequestResource, network */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.delete.js index f20005070944..14464ab61061 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.delete.js @@ -29,7 +29,8 @@ function main(networkEndpointGroup, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the network endpoint group to delete. It should comply with RFC1035. + * The name of the network endpoint group to delete. It should comply with + * RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -37,7 +38,17 @@ function main(networkEndpointGroup, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.detach_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.detach_network_endpoints.js index 60413f55c85e..dd91e1b5b853 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.detach_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.detach_network_endpoints.js @@ -33,7 +33,8 @@ function main(globalNetworkEndpointGroupsDetachEndpointsRequestResource, network */ // const globalNetworkEndpointGroupsDetachEndpointsRequestResource = {} /** - * The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. + * The name of the network endpoint group where you are removing network + * endpoints. It should comply with RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -41,7 +42,17 @@ function main(globalNetworkEndpointGroupsDetachEndpointsRequestResource, network */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.insert.js index 2aa4a5e507be..c3933ed69205 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.insert.js @@ -37,7 +37,17 @@ function main(networkEndpointGroupResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.list.js index 5a5f08066228..370632519e24 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.list_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.list_network_endpoints.js index 464f07b40006..ab985ee5f111 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.list_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_network_endpoint_groups.list_network_endpoints.js @@ -29,23 +29,85 @@ function main(networkEndpointGroup, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. */ // const networkEndpointGroup = 'abc123' /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +115,11 @@ function main(networkEndpointGroup, project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.aggregated_list.js index e9e5906d1b88..12b34b23d02c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.delete.js index cbafbee35ac7..dd952c84b61e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.delete.js @@ -29,7 +29,8 @@ function main(operation, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * Name of the Operations resource to delete, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.get.js b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.get.js index 9ceec8949dcd..2587aa56f766 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.get.js @@ -29,7 +29,8 @@ function main(operation, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.list.js b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.list.js index b750fb395bea..f29643412523 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.wait.js b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.wait.js index 363232241141..e9fb0c0024d4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_operations.wait.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_operations.wait.js @@ -29,7 +29,8 @@ function main(operation, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.delete.js index 3fb12c7bb0ad..8f1d6b48ae10 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.delete.js @@ -29,7 +29,8 @@ function main(operation) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * Name of the Operations resource to delete, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.get.js b/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.get.js index 59cff13b9d8c..1ef7d3401868 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.get.js @@ -29,7 +29,8 @@ function main(operation) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return. Parent is derived from this field. + * Name of the Operations resource to return. Parent is derived from this + * field. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.list.js b/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.list.js index 6ea49b6ebc92..e8f18e55c4d6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_organization_operations.list.js @@ -29,19 +29,80 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main() { */ // const parentId = 'abc123' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.delete.js index b90f68f8716e..66537150c6cc 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.delete.js @@ -37,7 +37,17 @@ function main(project, publicDelegatedPrefix) { */ // const publicDelegatedPrefix = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.insert.js index e9d506ad577c..47e621ba08ce 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.insert.js @@ -37,7 +37,17 @@ function main(project, publicDelegatedPrefixResource) { */ // const publicDelegatedPrefixResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.list.js b/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.list.js index 9399613382ce..59405478787c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.patch.js index f19cf3718966..091677aa2329 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_public_delegated_prefixes.patch.js @@ -41,7 +41,17 @@ function main(project, publicDelegatedPrefix, publicDelegatedPrefixResource) { */ // const publicDelegatedPrefixResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_vm_extension_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/global_vm_extension_policies.aggregated_list.js new file mode 100644 index 000000000000..c0cb67b74430 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_vm_extension_policies.aggregated_list.js @@ -0,0 +1,163 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project) { + // [START compute_v1beta_generated_GlobalVmExtensionPolicies_AggregatedList_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + */ + // const includeAllScopes = true + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Name of the project scoping this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + */ + // const serviceProjectNumber = 1234 + + // Imports the Compute library + const {GlobalVmExtensionPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new GlobalVmExtensionPoliciesClient(); + + async function callAggregatedList() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = computeClient.aggregatedListAsync(request); + for await (const [key, value] of iterable) { + console.log(response); + } + } + + callAggregatedList(); + // [END compute_v1beta_generated_GlobalVmExtensionPolicies_AggregatedList_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/global_vm_extension_policies.get.js b/packages/google-cloud-compute/samples/generated/v1beta/global_vm_extension_policies.get.js new file mode 100644 index 000000000000..6de97b51e7f0 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/global_vm_extension_policies.get.js @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(globalVmExtensionPolicy, project) { + // [START compute_v1beta_generated_GlobalVmExtensionPolicies_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the GlobalVmExtensionPolicy resource to return. + */ + // const globalVmExtensionPolicy = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + + // Imports the Compute library + const {GlobalVmExtensionPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new GlobalVmExtensionPoliciesClient(); + + async function callGet() { + // Construct request + const request = { + globalVmExtensionPolicy, + project, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1beta_generated_GlobalVmExtensionPolicies_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.aggregated_list.js index 5f1a5a27f161..c6cde956d520 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.delete.js index 7b83f30630b6..eb8b22fc0076 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.delete.js @@ -37,7 +37,17 @@ function main(healthCheck, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.insert.js index 24c4efa4debe..d7d9bd300996 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.insert.js @@ -37,7 +37,17 @@ function main(healthCheckResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.list.js index 64290b593cef..023952c2ea3d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.patch.js index 5238ddbe32c9..df03e0b47c9f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.patch.js @@ -41,7 +41,17 @@ function main(healthCheck, healthCheckResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.update.js b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.update.js index e14d74410639..e6813358fb5a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/health_checks.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/health_checks.update.js @@ -41,7 +41,17 @@ function main(healthCheck, healthCheckResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/images.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/images.delete.js index 4ac09994cb80..61ba93e355dd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/images.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/images.delete.js @@ -37,7 +37,17 @@ function main(image, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/images.deprecate.js b/packages/google-cloud-compute/samples/generated/v1beta/images.deprecate.js index fe8dbb710596..640bdd9ba45f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/images.deprecate.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/images.deprecate.js @@ -41,7 +41,17 @@ function main(deprecationStatusResource, image, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/images.get_from_family.js b/packages/google-cloud-compute/samples/generated/v1beta/images.get_from_family.js index d22a47786a23..259b4ec4141a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/images.get_from_family.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/images.get_from_family.js @@ -33,7 +33,8 @@ function main(family, project) { */ // const family = 'abc123' /** - * The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project. + * The image project that the image belongs to. For example, to get a CentOS + * image, specify centos-cloud as the image project. */ // const project = 'my-project' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/images.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/images.insert.js index 45b6aa08ce67..bafa0de9f82c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/images.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/images.insert.js @@ -41,7 +41,17 @@ function main(imageResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/images.list.js b/packages/google-cloud-compute/samples/generated/v1beta/images.list.js index cade3ac995e7..5abe2dded356 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/images.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/images.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/images.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/images.patch.js index fe77c23932a9..6a05e7855021 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/images.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/images.patch.js @@ -41,7 +41,17 @@ function main(image, imageResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.cancel.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.cancel.js index 717af36c1a7f..fe882df7b9ee 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.cancel.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.cancel.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, resizeRequest, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * The name should conform to RFC1035 or be a resource ID. */ // const instanceGroupManager = 'abc123' /** @@ -37,15 +38,27 @@ function main(instanceGroupManager, project, resizeRequest, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the resize request to cancel. The name should conform to RFC1035 or be a resource ID. + * The name of the resize request to cancel. + * The name should conform to RFC1035 or be a resource ID. */ // const resizeRequest = 'abc123' /** - * The name of the zone where the managed instance group is located. The name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. The name should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.delete.js index 2b9a6b736feb..c4a462a59e32 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.delete.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, resizeRequest, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * The name should conform to RFC1035 or be a resource ID. */ // const instanceGroupManager = 'abc123' /** @@ -37,15 +38,27 @@ function main(instanceGroupManager, project, resizeRequest, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the resize request to delete. The name should conform to RFC1035 or be a resource ID. + * The name of the resize request to delete. + * The name should conform to RFC1035 or be a resource ID. */ // const resizeRequest = 'abc123' /** - * The name of the zone where the managed instance group is located. The name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. The name should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.get.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.get.js index 2d54145af5d8..913398c82e7f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.get.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, resizeRequest, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. */ // const instanceGroupManager = 'abc123' /** @@ -37,11 +38,13 @@ function main(instanceGroupManager, project, resizeRequest, zone) { */ // const project = 'my-project' /** - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + * The name of the resize request. + * Name should conform to RFC1035 or be a resource ID. */ // const resizeRequest = 'abc123' /** - * Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should conform to RFC1035. + * Name of the href="/compute/docs/regions-zones/#available">zone + * scoping this request. Name should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.insert.js index 9f2a1948a042..fb23ff202b77 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.insert.js @@ -29,7 +29,9 @@ function main(instanceGroupManager, instanceGroupManagerResizeRequestResource, p * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group to which the resize request will be added. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group to which the resize request will + * be added. + * Name should conform to RFC1035 or be a resource ID. */ // const instanceGroupManager = 'abc123' /** @@ -41,11 +43,23 @@ function main(instanceGroupManager, instanceGroupManagerResizeRequestResource, p */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located and where the resize request will be created. Name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located and where the resize request will be created. + * Name should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.list.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.list.js index 5ff3d22df736..84d354cf06b3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_manager_resize_requests.list.js @@ -29,7 +29,54 @@ function main(instanceGroupManager, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** @@ -37,15 +84,29 @@ function main(instanceGroupManager, project, zone) { */ // const instanceGroupManager = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +114,16 @@ function main(instanceGroupManager, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The name of the zone where the managed instance group is located. The name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. The name should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.abandon_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.abandon_instances.js index f1030de73a4c..4033bf06fc56 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.abandon_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.abandon_instances.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersAbandonInstancesRequest */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.aggregated_list.js index 96f03b444106..791a0ae887b1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.apply_updates_to_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.apply_updates_to_instances.js index 3908003027c1..bc73d20eddc7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.apply_updates_to_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.apply_updates_to_instances.js @@ -41,7 +41,8 @@ function main(instanceGroupManager, instanceGroupManagersApplyUpdatesRequestReso */ // const project = 'my-project' /** - * The name of the zone where the managed instance group is located. Should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. Should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.create_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.create_instances.js index 8733501be8e1..2d422ce72f5c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.create_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.create_instances.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, instanceGroupManagersCreateInstancesRequestR * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. */ // const instanceGroupManager = 'abc123' /** @@ -41,11 +42,22 @@ function main(instanceGroupManager, instanceGroupManagersCreateInstancesRequestR */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete.js index f031483143d3..c1b6915192de 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete.js @@ -37,11 +37,22 @@ function main(instanceGroupManager, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_instances.js index 7f513e0e4418..b1e2a00f0855 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_instances.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersDeleteInstancesRequestR */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_per_instance_configs.js index c132477c24bd..b8c04cd5fde9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.delete_per_instance_configs.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, instanceGroupManagersDeletePerInstanceConfig * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. */ // const instanceGroupManager = 'abc123' /** @@ -41,7 +42,10 @@ function main(instanceGroupManager, instanceGroupManagersDeletePerInstanceConfig */ // const project = 'my-project' /** - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance + * group is located. + * It should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.get.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.get.js index 87d8c70f9e9b..3bef2aa6a51c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.get.js @@ -37,7 +37,8 @@ function main(instanceGroupManager, project, zone) { */ // const project = 'my-project' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.get_available_accelerator_topologies.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.get_available_accelerator_topologies.js new file mode 100644 index 000000000000..6ebb75ca20f8 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.get_available_accelerator_topologies.js @@ -0,0 +1,74 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, resourceId, zone) { + // [START compute_v1beta_generated_InstanceGroupManagers_GetAvailableAcceleratorTopologies_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Project ID for this request. + */ + // const project = 'my-project' + /** + * Required. The name of the managed instance group. + * It should conform to RFC1035. + */ + // const resourceId = 'abc123' + /** + * Required. The name of thezone where the managed + * instance group is located. + * Name should conform to RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstanceGroupManagersClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new InstanceGroupManagersClient(); + + async function callGetAvailableAcceleratorTopologies() { + // Construct request + const request = { + project, + resourceId, + zone, + }; + + // Run request + const response = await computeClient.getAvailableAcceleratorTopologies(request); + console.log(response); + } + + callGetAvailableAcceleratorTopologies(); + // [END compute_v1beta_generated_InstanceGroupManagers_GetAvailableAcceleratorTopologies_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.insert.js index 825e62514d34..fc3d5d1b7bdb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.insert.js @@ -37,11 +37,22 @@ function main(instanceGroupManagerResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where you want to create the managed instance group. + * The name of the zone + * where you want to create the managed instance group. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list.js index 91e1ac86515c..f1902bd5bec2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,11 +110,16 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_errors.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_errors.js index 4cc6dfdc63e1..f2053dd8447d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_errors.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_errors.js @@ -29,23 +29,87 @@ function main(instanceGroupManager, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035, or an + * unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. */ // const instanceGroupManager = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +117,17 @@ function main(instanceGroupManager, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. + * It should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_managed_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_managed_instances.js index 30ddffbf32f4..23a2cc27abfc 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_managed_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_managed_instances.js @@ -29,7 +29,54 @@ function main(instanceGroupManager, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** @@ -37,15 +84,29 @@ function main(instanceGroupManager, project, zone) { */ // const instanceGroupManager = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +114,16 @@ function main(instanceGroupManager, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_per_instance_configs.js index 4230f52b6fc9..e6cf02e2b29e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.list_per_instance_configs.js @@ -29,7 +29,54 @@ function main(instanceGroupManager, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** @@ -37,15 +84,29 @@ function main(instanceGroupManager, project, zone) { */ // const instanceGroupManager = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +114,17 @@ function main(instanceGroupManager, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.patch.js index 19c14958a540..b269f5caa7c1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.patch.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagerResource, project, zone) */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where you want to create the managed instance group. + * The name of the zone where + * you want to create the managed instance group. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.patch_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.patch_per_instance_configs.js index f080e39a44d2..3e1ffad9b745 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.patch_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.patch_per_instance_configs.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, instanceGroupManagersPatchPerInstanceConfigs * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. */ // const instanceGroupManager = 'abc123' /** @@ -41,11 +42,23 @@ function main(instanceGroupManager, instanceGroupManagersPatchPerInstanceConfigs */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.recreate_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.recreate_instances.js index 8702783dc51b..a42383dbd102 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.recreate_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.recreate_instances.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersRecreateInstancesReques */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resize.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resize.js index b5afdf84f4d2..28e8434ac06b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resize.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resize.js @@ -37,15 +37,28 @@ function main(instanceGroupManager, project, size, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter. + * The number of running instances that the managed instance group should + * maintain at any given time. The group automatically adds or removes + * instances to maintain the number of instances specified by this parameter. */ // const size = 1234 /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resize_advanced.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resize_advanced.js index f305327a4f1b..60bf610006f6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resize_advanced.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resize_advanced.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersResizeAdvancedRequestRe */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resume_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resume_instances.js index f4eb900d7c54..45fa8d8341a0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resume_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.resume_instances.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersResumeInstancesRequestR */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_auto_healing_policies.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_auto_healing_policies.js index 73fea9ec97ac..d9bf6e95cdba 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_auto_healing_policies.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_auto_healing_policies.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersSetAutoHealingRequestRe */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_instance_template.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_instance_template.js index 736013e4e2f3..2973636d0e51 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_instance_template.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_instance_template.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersSetInstanceTemplateRequ */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_target_pools.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_target_pools.js index b87ab7191bb2..cb1974c7ba4c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_target_pools.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.set_target_pools.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersSetTargetPoolsRequestRe */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.start_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.start_instances.js index 49edb1652f6d..d5ed0fa1e7ba 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.start_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.start_instances.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersStartInstancesRequestRe */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.stop_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.stop_instances.js index de9a4168e030..4d4e7b7e3e3f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.stop_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.stop_instances.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersStopInstancesRequestRes */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.suspend_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.suspend_instances.js index 53fedef4cf6a..8a90f6140670 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.suspend_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.suspend_instances.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagersSuspendInstancesRequest */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.update.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.update.js index 2b9968aca64e..8f3f78b5d9c8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.update.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, instanceGroupManagerResource, project, zone) */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where you want to create the managed instance group. + * The name of the zone + * where you want to create the managed instance group. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.update_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.update_per_instance_configs.js index 47f342c0434b..ec9dc3221dee 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.update_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_group_managers.update_per_instance_configs.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, instanceGroupManagersUpdatePerInstanceConfig * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. */ // const instanceGroupManager = 'abc123' /** @@ -41,11 +42,23 @@ function main(instanceGroupManager, instanceGroupManagersUpdatePerInstanceConfig */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.add_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.add_instances.js index cee857cd2042..e88e775f5365 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.add_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.add_instances.js @@ -41,11 +41,22 @@ function main(instanceGroup, instanceGroupsAddInstancesRequestResource, project, */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.aggregated_list.js index 0851d984018e..b019193e58a9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.delete.js index f5a131614fe5..bb15a05b2971 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.delete.js @@ -37,11 +37,22 @@ function main(instanceGroup, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.get.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.get.js index b00cf78aa46e..16bee7c89457 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.get.js @@ -37,7 +37,8 @@ function main(instanceGroup, project, zone) { */ // const project = 'my-project' /** - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.insert.js index d1c6686b14f6..adf90e144921 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.insert.js @@ -37,11 +37,22 @@ function main(instanceGroupResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where you want to create the instance group. + * The name of the zone + * where you want to create the instance group. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.list.js index c428b46cd778..9f667a3a816d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,11 +110,16 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The name of the zone where the instance group is located. + * The name of thezone + * where the instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.list_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.list_instances.js index 23fdcf75abcd..b0468fbe2f86 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.list_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.list_instances.js @@ -29,11 +29,59 @@ function main(instanceGroup, instanceGroupsListInstancesRequestResource, project * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The name of the instance group from which you want to generate a list of included instances. + * The name of the instance group from which you want to generate a list + * of included instances. */ // const instanceGroup = 'abc123' /** @@ -41,15 +89,29 @@ function main(instanceGroup, instanceGroupsListInstancesRequestResource, project */ // const instanceGroupsListInstancesRequestResource = {} /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -57,11 +119,16 @@ function main(instanceGroup, instanceGroupsListInstancesRequestResource, project */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.remove_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.remove_instances.js index c821d7916e64..f4761de8571d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.remove_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.remove_instances.js @@ -29,7 +29,8 @@ function main(instanceGroup, instanceGroupsRemoveInstancesRequestResource, proje * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the instance group where the specified instances will be removed. + * The name of the instance group where the specified instances will be + * removed. */ // const instanceGroup = 'abc123' /** @@ -41,11 +42,22 @@ function main(instanceGroup, instanceGroupsRemoveInstancesRequestResource, proje */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.set_named_ports.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.set_named_ports.js index 18230a21a093..319d8bc830eb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.set_named_ports.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_groups.set_named_ports.js @@ -41,11 +41,22 @@ function main(instanceGroup, instanceGroupsSetNamedPortsRequestResource, project */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_settings_service.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_settings_service.patch.js index 77eb628f89ce..3eefa3de54e3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_settings_service.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_settings_service.patch.js @@ -37,7 +37,17 @@ function main(instanceSettingsResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.aggregated_list.js index a40c2da88932..97d549263ce8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.delete.js index 9d9704c0520f..5248f4397755 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.delete.js @@ -37,7 +37,17 @@ function main(instanceTemplate, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.insert.js index da033842c338..fe2591ea0be3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.insert.js @@ -37,7 +37,17 @@ function main(instanceTemplateResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.list.js b/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.list.js index db6e66ca0b33..527ff4beafb2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instance_templates.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.add_access_config.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.add_access_config.js index b1864dbcc8f3..1827e01b343f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.add_access_config.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.add_access_config.js @@ -45,7 +45,17 @@ function main(accessConfigResource, instance, networkInterface, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.add_network_interface.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.add_network_interface.js index 703c7954e4c6..b66c7af39fd7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.add_network_interface.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.add_network_interface.js @@ -29,7 +29,8 @@ function main(instance, networkInterfaceResource, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer. + * The instance name for this request stored as resource_id. + * Name should conform to RFC1035 or be an unsigned long integer. */ // const instance = 'abc123' /** @@ -41,7 +42,17 @@ function main(instance, networkInterfaceResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.add_resource_policies.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.add_resource_policies.js index 0f9821e0043a..ffbb4f03c35f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.add_resource_policies.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.add_resource_policies.js @@ -41,7 +41,17 @@ function main(instance, instancesAddResourcePoliciesRequestResource, project, zo */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.aggregated_list.js index d2e4e7cd8db3..d8e4c765ab8c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.attach_disk.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.attach_disk.js index abfbc430c6a3..6e62d1ab0fb7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.attach_disk.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.attach_disk.js @@ -33,7 +33,9 @@ function main(attachedDiskResource, instance, project, zone) { */ // const attachedDiskResource = {} /** - * Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error. + * Whether to force attach the regional disk even if it's currently attached + * to another instance. If you try to force attach a zonal disk to an + * instance, you will receive an error. */ // const forceAttach = true /** @@ -45,7 +47,17 @@ function main(attachedDiskResource, instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.bulk_insert.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.bulk_insert.js index f78b8dca101a..e07da07ffa43 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.bulk_insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.bulk_insert.js @@ -37,7 +37,17 @@ function main(bulkInsertInstanceResourceResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.delete.js index 25bedd49311b..0401af114f91 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.delete.js @@ -41,7 +41,17 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.delete_access_config.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.delete_access_config.js index 33308b66a3e7..ad90ea0b9967 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.delete_access_config.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.delete_access_config.js @@ -45,7 +45,17 @@ function main(accessConfig, instance, networkInterface, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.delete_network_interface.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.delete_network_interface.js index 63d4e974b6c7..cda9815f94b1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.delete_network_interface.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.delete_network_interface.js @@ -29,7 +29,8 @@ function main(instance, networkInterfaceName, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer. + * The instance name for this request stored as resource_id. + * Name should conform to RFC1035 or be an unsigned long integer. */ // const instance = 'abc123' /** @@ -41,7 +42,17 @@ function main(instance, networkInterfaceName, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.detach_disk.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.detach_disk.js index d6eea372928a..30cb9fd59da4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.detach_disk.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.detach_disk.js @@ -29,7 +29,8 @@ function main(deviceName, instance, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The device name of the disk to detach. Make a get() request on the instance to view currently attached disks and device names. + * The device name of the disk to detach. Make a get() request on + * the instance to view currently attached disks and device names. */ // const deviceName = 'abc123' /** @@ -41,7 +42,17 @@ function main(deviceName, instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.get_serial_port_output.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.get_serial_port_output.js index 7eb3de7d0acb..15d4b2df35d1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.get_serial_port_output.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.get_serial_port_output.js @@ -41,7 +41,21 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size. + * Specifies the starting byte position of the output to return. To start with + * the first byte of output to the specified port, omit this field or set it + * to `0`. + * If the output for that byte position is available, this field matches the + * `start` parameter sent with the request. If the amount of serial console + * output exceeds the size of the buffer (1 MB), the oldest output is + * discarded and is no longer available. If the requested start position + * refers to discarded output, the start position is adjusted to the oldest + * output still available, and the adjusted start position is returned as the + * `start` property value. + * You can also provide a negative start position, which translates to the + * most recent number of bytes written to the serial port. For example, -3 is + * interpreted as the most recent 3 bytes written to the serial console. Note + * that the negative start is bounded by the retained buffer size, and the + * returned serial console output will not exceed the max buffer size. */ // const start = 1234 /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.insert.js index ef31068dfccc..2fa076d2417e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.insert.js @@ -37,15 +37,35 @@ function main(instanceResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate + * Specifies instance template to create the instance. + * This field is optional. It can be a full or partial URL. For example, the + * following are all valid URLs to an instance template: + * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + * - projects/project/global/instanceTemplates/instanceTemplate + * - global/instanceTemplates/instanceTemplate */ // const sourceInstanceTemplate = 'abc123' /** - * Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage + * Specifies the machine image to use to create the instance. + * This field is optional. It can be a full or partial URL. For example, the + * following are all valid URLs to a machine image: + * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage + * - projects/project/global/global/machineImages/machineImage + * - global/machineImages/machineImage */ // const sourceMachineImage = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.list.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.list.js index d5a76fa65bd9..ad5903e6db9c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.list_referrers.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.list_referrers.js index 56de7b8e7a06..4e90656bc07c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.list_referrers.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.list_referrers.js @@ -29,23 +29,85 @@ function main(instance, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. + * Name of the target instance scoping this request, or '-' if the + * request should span over all instances in the container. */ // const instance = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +115,11 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.patch_partner_metadata.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.patch_partner_metadata.js index 1af33f5ea1f7..d4684107b7c9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.patch_partner_metadata.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.patch_partner_metadata.js @@ -41,7 +41,17 @@ function main(instance, partnerMetadataResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.perform_maintenance.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.perform_maintenance.js index 1a9134725a64..0d83dcc7039d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.perform_maintenance.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.perform_maintenance.js @@ -37,7 +37,17 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.remove_resource_policies.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.remove_resource_policies.js index bfd9a9574722..762571070392 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.remove_resource_policies.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.remove_resource_policies.js @@ -41,7 +41,17 @@ function main(instance, instancesRemoveResourcePoliciesRequestResource, project, */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.report_host_as_faulty.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.report_host_as_faulty.js index 09efd0e15b2e..26c2be11a9f7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.report_host_as_faulty.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.report_host_as_faulty.js @@ -41,7 +41,17 @@ function main(instance, instancesReportHostAsFaultyRequestResource, project, zon */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.reset.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.reset.js index 1cd24dd0a9b6..75a5a57ff373 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.reset.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.reset.js @@ -37,7 +37,17 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.resume.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.resume.js index 915813c5bc72..3b486a063dd2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.resume.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.resume.js @@ -41,7 +41,17 @@ function main(instance, instancesResumeRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_deletion_protection.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_deletion_protection.js index 95c6e5f76443..573683ee7ba8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_deletion_protection.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_deletion_protection.js @@ -37,7 +37,17 @@ function main(project, resource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_disk_auto_delete.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_disk_auto_delete.js index 4b0172dcb763..5f1e9b5e89b5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_disk_auto_delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_disk_auto_delete.js @@ -33,7 +33,8 @@ function main(autoDelete, deviceName, instance, project, zone) { */ // const autoDelete = true /** - * The device name of the disk to modify. Make a get() request on the instance to view currently attached disks and device names. + * The device name of the disk to modify. Make a get() request + * on the instance to view currently attached disks and device names. */ // const deviceName = 'abc123' /** @@ -45,7 +46,17 @@ function main(autoDelete, deviceName, instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_labels.js index 9f3baf96ca06..b3dedfe1ad45 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_labels.js @@ -41,7 +41,17 @@ function main(instance, instancesSetLabelsRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_machine_resources.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_machine_resources.js index a00671e9411c..2be86aec700a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_machine_resources.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_machine_resources.js @@ -41,7 +41,17 @@ function main(instance, instancesSetMachineResourcesRequestResource, project, zo */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_machine_type.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_machine_type.js index 0ef72d629cde..4cc8bfee55c2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_machine_type.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_machine_type.js @@ -41,7 +41,17 @@ function main(instance, instancesSetMachineTypeRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_metadata.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_metadata.js index fb4797c1c74a..c3a021fa4211 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_metadata.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_metadata.js @@ -41,7 +41,17 @@ function main(instance, metadataResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_min_cpu_platform.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_min_cpu_platform.js index 579a14d0b258..25297c480966 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_min_cpu_platform.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_min_cpu_platform.js @@ -41,7 +41,17 @@ function main(instance, instancesSetMinCpuPlatformRequestResource, project, zone */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_name.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_name.js index 1be3dadfc7fb..cb78518271ed 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_name.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_name.js @@ -41,7 +41,17 @@ function main(instance, instancesSetNameRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_scheduling.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_scheduling.js index 70654416efb3..75362db02f14 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_scheduling.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_scheduling.js @@ -37,7 +37,17 @@ function main(instance, project, schedulingResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_security_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_security_policy.js index 188aafca19a8..5a9e78777ca6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_security_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_security_policy.js @@ -29,7 +29,8 @@ function main(instance, instancesSetSecurityPolicyRequestResource, project, zone * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Instance resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the Instance resource to which the security policy should be + * set. The name should conform to RFC1035. */ // const instance = 'abc123' /** @@ -41,7 +42,17 @@ function main(instance, instancesSetSecurityPolicyRequestResource, project, zone */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_service_account.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_service_account.js index a9a88ea0458f..d28e0a582ff1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_service_account.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_service_account.js @@ -41,7 +41,17 @@ function main(instance, instancesSetServiceAccountRequestResource, project, zone */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_shielded_instance_integrity_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_shielded_instance_integrity_policy.js index fcd9da567825..3b04e8af9b39 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_shielded_instance_integrity_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_shielded_instance_integrity_policy.js @@ -37,7 +37,17 @@ function main(instance, project, shieldedInstanceIntegrityPolicyResource, zone) */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_shielded_vm_integrity_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_shielded_vm_integrity_policy.js index 2aec6f14303c..3f17af9a4ddf 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_shielded_vm_integrity_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_shielded_vm_integrity_policy.js @@ -37,7 +37,17 @@ function main(instance, project, shieldedVmIntegrityPolicyResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_tags.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_tags.js index d5de2bb45b74..b1bd6f10b7f7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.set_tags.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.set_tags.js @@ -37,7 +37,17 @@ function main(instance, project, tagsResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.simulate_maintenance_event.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.simulate_maintenance_event.js index 9ccbd401c7e5..77eb5cc3ffd0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.simulate_maintenance_event.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.simulate_maintenance_event.js @@ -37,11 +37,22 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * Determines whether the customers receive notifications before migration. Only applicable to SF vms. + * Determines whether the customers receive notifications before migration. + * Only applicable to SF vms. */ // const withExtendedNotifications = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.start.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.start.js index aba819eb5e0e..bcd48bc1e954 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.start.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.start.js @@ -37,7 +37,17 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.start_with_encryption_key.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.start_with_encryption_key.js index 0cb658feb44f..2f41dc6d235b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.start_with_encryption_key.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.start_with_encryption_key.js @@ -41,7 +41,17 @@ function main(instance, instancesStartWithEncryptionKeyRequestResource, project, */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.stop.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.stop.js index 02ff28345765..e0a3a53316d4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.stop.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.stop.js @@ -29,7 +29,9 @@ function main(instance, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. + * This property is required if the instance has any attached Local SSD disks. + * If false, Local SSD data will be preserved when the instance is suspended. + * If true, the contents of any attached Local SSD disks will be discarded. */ // const discardLocalSsd = true /** @@ -45,7 +47,17 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.suspend.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.suspend.js index 800fd3880673..2ae1618c817a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.suspend.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.suspend.js @@ -29,7 +29,9 @@ function main(instance, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. + * This property is required if the instance has any attached Local SSD disks. + * If false, Local SSD data will be preserved when the instance is suspended. + * If true, the contents of any attached Local SSD disks will be discarded. */ // const discardLocalSsd = true /** @@ -41,7 +43,17 @@ function main(instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.update.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.update.js index 9d6219860d90..dce8e809d175 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.update.js @@ -37,12 +37,19 @@ function main(instance, instanceResource, project, zone) { */ // const instanceResource = {} /** - * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require. + * Specifies the action to take when updating an instance even if the + * updated properties do not require it. If not specified, then + * Compute Engine acts based on the minimum action that the updated + * properties require. * Check the MinimalAction enum for the list of possible values. */ // const minimalAction = 'abc123' /** - * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART. + * Specifies the most disruptive action that can be taken on the instance + * as part of the update. Compute Engine returns an error if the + * instance properties require a more disruptive action as part of the + * instance update. Valid options from lowest to highest are + * NO_EFFECT, REFRESH, and RESTART. * Check the MostDisruptiveAllowedAction enum for the list of possible values. */ // const mostDisruptiveAllowedAction = 'abc123' @@ -51,7 +58,17 @@ function main(instance, instanceResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_access_config.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_access_config.js index 69437f33064c..aedf05cc38da 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_access_config.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_access_config.js @@ -45,7 +45,17 @@ function main(accessConfigResource, instance, networkInterface, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_display_device.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_display_device.js index 0b5529b57b61..9feaaa797ffe 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_display_device.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_display_device.js @@ -41,7 +41,17 @@ function main(displayDeviceResource, instance, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_network_interface.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_network_interface.js index 977234f2f8a7..428247a36ac7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_network_interface.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_network_interface.js @@ -45,7 +45,17 @@ function main(instance, networkInterface, networkInterfaceResource, project, zon */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_instance_config.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_instance_config.js index 1e9aada08b15..70cc66490b9f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_instance_config.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_instance_config.js @@ -37,7 +37,17 @@ function main(instance, project, shieldedInstanceConfigResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_vm_config.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_vm_config.js index 2db1789fe0ab..357942fa3302 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_vm_config.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.update_shielded_vm_config.js @@ -37,7 +37,17 @@ function main(instance, project, shieldedVmConfigResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.aggregated_list.js index 741fb9b0bbe8..3ea43a68bcab 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.delete.js index 8694dcb7c26d..8f5f7518f747 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.delete.js @@ -37,7 +37,17 @@ function main(instantSnapshot, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.insert.js index 10c30bccb94c..7969c9988648 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.insert.js @@ -37,7 +37,17 @@ function main(instantSnapshotResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.list.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.list.js index 927d41516cdf..0637e95e9833 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.set_labels.js index 9145281f1712..c47a0da4704a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instant_snapshots.set_labels.js @@ -33,7 +33,17 @@ function main(project, resource, zone, zoneSetLabelsRequestResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.delete.js index 72a9d00519a9..4d903fe30139 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.delete.js @@ -37,7 +37,18 @@ function main(interconnectAttachmentGroup, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.insert.js index 147cbf8ac40a..1b5b61288458 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.insert.js @@ -37,7 +37,18 @@ function main(interconnectAttachmentGroupResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.list.js index 7e308929824f..a59967dd207e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.patch.js index e8148c09cc5e..a280ceb45e28 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachment_groups.patch.js @@ -41,7 +41,18 @@ function main(interconnectAttachmentGroup, interconnectAttachmentGroupResource, */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.aggregated_list.js index 6c04177e8abb..1c89c9811ff4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.delete.js index 773bd15c18b4..18331cc6b764 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.delete.js @@ -41,7 +41,17 @@ function main(interconnectAttachment, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.insert.js index 4e51f671d821..b893cd2de4b1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.insert.js @@ -41,7 +41,17 @@ function main(interconnectAttachmentResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.list.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.list.js index ae2d6d048397..f9fbb13d0adf 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.patch.js index ddc47c469657..8f2aad4c71b5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.patch.js @@ -45,7 +45,17 @@ function main(interconnectAttachment, interconnectAttachmentResource, project, r */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.set_labels.js index 53b32f3a3165..fb1c763dcfce 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_attachments.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.delete.js index 702edbd01269..6bc2fa71f3f2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.delete.js @@ -37,7 +37,18 @@ function main(interconnectGroup, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.insert.js index b656e3cef768..385977f0c24a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.insert.js @@ -37,7 +37,18 @@ function main(interconnectGroupResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.list.js index e91cac6cba67..ee9d83973dea 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.patch.js index 9de71026373a..7d46dc11457c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_groups.patch.js @@ -41,7 +41,18 @@ function main(interconnectGroup, interconnectGroupResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_locations.list.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_locations.list.js index da4e737e81ce..18bfa47ef77b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_locations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_locations.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_remote_locations.list.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_remote_locations.list.js index 10ea39683dae..860bd082daad 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnect_remote_locations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnect_remote_locations.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnects.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnects.delete.js index 0ea06d6f6e1d..2d769757cdd5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnects.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnects.delete.js @@ -37,7 +37,17 @@ function main(interconnect, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnects.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnects.insert.js index 96df25097ee9..532beb97cefb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnects.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnects.insert.js @@ -37,7 +37,17 @@ function main(interconnectResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnects.list.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnects.list.js index e51fef82a8c1..d6ec7f822c9b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnects.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnects.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/interconnects.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/interconnects.patch.js index 949e9285fc50..de3ad094a03e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/interconnects.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/interconnects.patch.js @@ -41,7 +41,17 @@ function main(interconnect, interconnectResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/licenses.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/licenses.delete.js index 21a9ac398e3d..4aad6540334d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/licenses.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/licenses.delete.js @@ -37,7 +37,17 @@ function main(license, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/licenses.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/licenses.insert.js index c73e1f3dfb70..3b39751c1974 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/licenses.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/licenses.insert.js @@ -37,7 +37,17 @@ function main(licenseResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/licenses.list.js b/packages/google-cloud-compute/samples/generated/v1beta/licenses.list.js index 786576aba412..a548cf4e90d5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/licenses.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/licenses.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/licenses.update.js b/packages/google-cloud-compute/samples/generated/v1beta/licenses.update.js index 897535cc09e0..fa2d1af9fdc0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/licenses.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/licenses.update.js @@ -41,7 +41,17 @@ function main(license, licenseResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/machine_images.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/machine_images.delete.js index c5b8a329aad3..7fabdfd25fb0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/machine_images.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/machine_images.delete.js @@ -37,7 +37,17 @@ function main(machineImage, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/machine_images.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/machine_images.insert.js index 1f7758569aac..40a455194f39 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/machine_images.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/machine_images.insert.js @@ -37,7 +37,17 @@ function main(machineImageResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/machine_images.list.js b/packages/google-cloud-compute/samples/generated/v1beta/machine_images.list.js index c874c9c04c1f..1c32f66344c8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/machine_images.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/machine_images.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/machine_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/machine_types.aggregated_list.js index 8efd9b671e3f..d6277b0b079a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/machine_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/machine_types.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/machine_types.list.js b/packages/google-cloud-compute/samples/generated/v1beta/machine_types.list.js index dc6c76cedf2d..f56ad5d8986b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/machine_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/machine_types.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.aggregated_list.js index be70752e5ef5..e80cb058a8e3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.delete.js index f4e86ad156e3..32864defb217 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.delete.js @@ -41,7 +41,18 @@ function main(networkAttachment, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.insert.js index f80f8a19b199..61fceea07d71 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.insert.js @@ -41,7 +41,18 @@ function main(networkAttachmentResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.list.js b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.list.js index d0d0a2ab207a..4be79996779e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.patch.js index 995c6808a589..6047e344277b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_attachments.patch.js @@ -45,7 +45,18 @@ function main(networkAttachment, networkAttachmentResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.aggregated_list.js index 2d7bc0860203..1b5d063e179f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.delete.js index f980c2cbbadc..d69774d2b394 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.delete.js @@ -41,7 +41,17 @@ function main(networkEdgeSecurityService, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.insert.js index 107937226336..df9192af6cbe 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.insert.js @@ -41,7 +41,17 @@ function main(networkEdgeSecurityServiceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.patch.js index 35a70c5a7951..3cb0a246ab2d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_edge_security_services.patch.js @@ -48,7 +48,17 @@ function main(networkEdgeSecurityService, networkEdgeSecurityServiceResource, pr */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.aggregated_list.js index 9b9bac88146f..ade35ffdd8c2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.attach_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.attach_network_endpoints.js index 541eb908c219..3ae166812c3b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.attach_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.attach_network_endpoints.js @@ -29,7 +29,8 @@ function main(networkEndpointGroup, networkEndpointGroupsAttachEndpointsRequestR * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + * The name of the network endpoint group where you are attaching network + * endpoints to. It should comply with RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -41,11 +42,22 @@ function main(networkEndpointGroup, networkEndpointGroupsAttachEndpointsRequestR */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.delete.js index 865063ca068b..bc243a25d4e7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.delete.js @@ -29,7 +29,8 @@ function main(networkEndpointGroup, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the network endpoint group to delete. It should comply with RFC1035. + * The name of the network endpoint group to delete. It should comply with + * RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -37,11 +38,22 @@ function main(networkEndpointGroup, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.detach_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.detach_network_endpoints.js index c7176643a32e..764be4aca5e6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.detach_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.detach_network_endpoints.js @@ -29,7 +29,8 @@ function main(networkEndpointGroup, networkEndpointGroupsDetachEndpointsRequestR * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. + * The name of the network endpoint group where you are removing network + * endpoints. It should comply with RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -41,11 +42,22 @@ function main(networkEndpointGroup, networkEndpointGroupsDetachEndpointsRequestR */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.get.js b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.get.js index 34cf62f7d164..5d483f1ef2bc 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.get.js @@ -37,7 +37,8 @@ function main(networkEndpointGroup, project, zone) { */ // const project = 'my-project' /** - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.insert.js index 73695db74715..596390a571b0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.insert.js @@ -37,11 +37,23 @@ function main(networkEndpointGroupResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. + * The name of the zone where + * you want to create the network endpoint group. It should comply with + * RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.list.js index 824122687617..e790eecacda4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,11 +110,16 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of thezone + * where the network endpoint group is located. It should comply with RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.list_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.list_network_endpoints.js index b006cbb2d541..7a572588f05f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.list_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_endpoint_groups.list_network_endpoints.js @@ -29,15 +29,67 @@ function main(networkEndpointGroup, networkEndpointGroupsListEndpointsRequestRes * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -45,11 +97,21 @@ function main(networkEndpointGroup, networkEndpointGroupsListEndpointsRequestRes */ // const networkEndpointGroupsListEndpointsRequestResource = {} /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -57,11 +119,16 @@ function main(networkEndpointGroup, networkEndpointGroupsListEndpointsRequestRes */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. */ // const zone = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_association.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_association.js index c0b3bb56d921..4f09f8bbaaa8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_association.js @@ -41,11 +41,23 @@ function main(firewallPolicy, firewallPolicyAssociationResource, project) { */ // const project = 'my-project' /** - * Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists. + * Indicates whether or not to replace it if an association of the attachment + * already exists. This is false by default, in which case an error will be + * returned if an association already exists. */ // const replaceExistingAssociation = true /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_packet_mirroring_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_packet_mirroring_rule.js index 495bde7ce3ee..aec347fd5047 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_packet_mirroring_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_packet_mirroring_rule.js @@ -37,11 +37,13 @@ function main(firewallPolicy, firewallPolicyRuleResource, project) { */ // const firewallPolicyRuleResource = {} /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. */ // const maxPriority = 1234 /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. */ // const minPriority = 1234 /** @@ -49,7 +51,17 @@ function main(firewallPolicy, firewallPolicyRuleResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_rule.js index 4106d4941e5a..090bd6a5d959 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.add_rule.js @@ -37,11 +37,13 @@ function main(firewallPolicy, firewallPolicyRuleResource, project) { */ // const firewallPolicyRuleResource = {} /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. */ // const maxPriority = 1234 /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. */ // const minPriority = 1234 /** @@ -49,7 +51,17 @@ function main(firewallPolicy, firewallPolicyRuleResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.aggregated_list.js index 19fa13fdc88e..d3c9a0f779da 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.clone_rules.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.clone_rules.js index 7fa76f945bcd..5b86810788b4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.clone_rules.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.clone_rules.js @@ -37,7 +37,17 @@ function main(firewallPolicy, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.delete.js index 4b5ccd5ab98c..22ce286fd500 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.delete.js @@ -37,7 +37,17 @@ function main(firewallPolicy, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.insert.js index c4a17dde5eac..f7f3ddafdd3f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.insert.js @@ -37,7 +37,17 @@ function main(firewallPolicyResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.list.js index 6b5f836596a5..3c5e74be80fa 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch.js index 03bb8d27b131..659b6152e36a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch.js @@ -41,7 +41,17 @@ function main(firewallPolicy, firewallPolicyResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch_packet_mirroring_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch_packet_mirroring_rule.js index e60f323d5045..83a285f4a265 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch_packet_mirroring_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch_packet_mirroring_rule.js @@ -45,7 +45,17 @@ function main(firewallPolicy, firewallPolicyRuleResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch_rule.js index 9396a4ce642b..66072248f807 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.patch_rule.js @@ -45,7 +45,17 @@ function main(firewallPolicy, firewallPolicyRuleResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_association.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_association.js index fcafbb51fe8e..a38f23ce3770 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_association.js @@ -41,7 +41,17 @@ function main(firewallPolicy, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_packet_mirroring_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_packet_mirroring_rule.js index 981e02d7862c..5075d1d3359f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_packet_mirroring_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_packet_mirroring_rule.js @@ -41,7 +41,17 @@ function main(firewallPolicy, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_rule.js index ec89599b6755..b3216fa57a97 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_firewall_policies.remove_rule.js @@ -41,7 +41,17 @@ function main(firewallPolicy, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/network_profiles.list.js b/packages/google-cloud-compute/samples/generated/v1beta/network_profiles.list.js index dc6c7cb7bb49..f9014e822c0c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/network_profiles.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/network_profiles.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.add_peering.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.add_peering.js index 90f15e24a198..67cd610bcd7b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.add_peering.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.add_peering.js @@ -41,7 +41,17 @@ function main(network, networksAddPeeringRequestResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.delete.js index cb6a922b53ab..1697ef154b0f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.delete.js @@ -37,7 +37,17 @@ function main(network, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.insert.js index f7ec63778cde..be821815b64c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.insert.js @@ -37,7 +37,17 @@ function main(networkResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.list.js index 754fee2014fb..53fedae45f83 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.list_peering_routes.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.list_peering_routes.js index 9b14302f4bc8..5b6513783119 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.list_peering_routes.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.list_peering_routes.js @@ -34,11 +34,62 @@ function main(network, project) { */ // const direction = 'abc123' /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** @@ -46,11 +97,21 @@ function main(network, project) { */ // const network = 'abc123' /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -62,11 +123,16 @@ function main(network, project) { */ // const project = 'my-project' /** - * The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region. + * The region of the request. The response will include all subnet routes, + * static routes and dynamic routes in the region. */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.patch.js index 06f2bd8fe33b..2038847725fb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.patch.js @@ -41,7 +41,17 @@ function main(network, networkResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.remove_peering.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.remove_peering.js index 4186ae150784..45b71b2c636b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.remove_peering.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.remove_peering.js @@ -41,7 +41,17 @@ function main(network, networksRemovePeeringRequestResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.request_remove_peering.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.request_remove_peering.js index e6920f73ff1a..8e5191e522b0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.request_remove_peering.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.request_remove_peering.js @@ -41,7 +41,17 @@ function main(network, networksRequestRemovePeeringRequestResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.switch_to_custom_mode.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.switch_to_custom_mode.js index cce5d2250782..693b7673f87a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.switch_to_custom_mode.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.switch_to_custom_mode.js @@ -37,7 +37,17 @@ function main(network, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/networks.update_peering.js b/packages/google-cloud-compute/samples/generated/v1beta/networks.update_peering.js index 617294d36f6f..2cf5af3e3b2e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/networks.update_peering.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/networks.update_peering.js @@ -41,7 +41,17 @@ function main(network, networksUpdatePeeringRequestResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.add_nodes.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.add_nodes.js index 67e14aef74ae..afa5f48d0967 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.add_nodes.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.add_nodes.js @@ -41,7 +41,17 @@ function main(nodeGroup, nodeGroupsAddNodesRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.aggregated_list.js index 206ba027d8c8..3135a443aae4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.delete.js index 0bea64e8c8e3..4f37e72297cc 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.delete.js @@ -37,7 +37,17 @@ function main(nodeGroup, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.delete_nodes.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.delete_nodes.js index 4ec89fb767ef..2e624b4a15bf 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.delete_nodes.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.delete_nodes.js @@ -41,7 +41,17 @@ function main(nodeGroup, nodeGroupsDeleteNodesRequestResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.insert.js index 271a54b1f257..499cf5eba77c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.insert.js @@ -41,7 +41,17 @@ function main(initialNodeCount, nodeGroupResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.list.js index aa76f2a10199..fc08cf40509d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.list_nodes.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.list_nodes.js index dcd8ff51c5a1..a8f4694fcc4c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.list_nodes.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.list_nodes.js @@ -29,11 +29,62 @@ function main(nodeGroup, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** @@ -41,11 +92,21 @@ function main(nodeGroup, project, zone) { */ // const nodeGroup = 'abc123' /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(nodeGroup, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.patch.js index 9fd66f9125f4..b435a842ec2d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.patch.js @@ -41,7 +41,17 @@ function main(nodeGroup, nodeGroupResource, project, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.perform_maintenance.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.perform_maintenance.js index 9bb68785e86d..f556bb4ed01d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.perform_maintenance.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.perform_maintenance.js @@ -41,7 +41,17 @@ function main(nodeGroup, nodeGroupsPerformMaintenanceRequestResource, project, z */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.set_node_template.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.set_node_template.js index 1b1f76748676..38ebc8ac3b93 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.set_node_template.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.set_node_template.js @@ -41,7 +41,17 @@ function main(nodeGroup, nodeGroupsSetNodeTemplateRequestResource, project, zone */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.simulate_maintenance_event.js b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.simulate_maintenance_event.js index 3c3759856a4f..3c06c611a323 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_groups.simulate_maintenance_event.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_groups.simulate_maintenance_event.js @@ -29,7 +29,8 @@ function main(nodeGroup, nodeGroupsSimulateMaintenanceEventRequestResource, proj * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the NodeGroup resource whose nodes will go under maintenance simulation. + * Name of the NodeGroup resource whose nodes will go under maintenance + * simulation. */ // const nodeGroup = 'abc123' /** @@ -41,7 +42,17 @@ function main(nodeGroup, nodeGroupsSimulateMaintenanceEventRequestResource, proj */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_templates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/node_templates.aggregated_list.js index b92572eb2f74..fa71609a71d4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_templates.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_templates.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_templates.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/node_templates.delete.js index 36d9966cef85..aff0a3403b26 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_templates.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_templates.delete.js @@ -41,7 +41,17 @@ function main(nodeTemplate, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_templates.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/node_templates.insert.js index 2878779d77f0..cdaed6d29253 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_templates.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_templates.insert.js @@ -41,7 +41,17 @@ function main(nodeTemplateResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_templates.list.js b/packages/google-cloud-compute/samples/generated/v1beta/node_templates.list.js index 03b7b4f4392d..a82f2913bd84 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_templates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_templates.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/node_types.aggregated_list.js index e96075bc222e..dc3592f38ffd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_types.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/node_types.list.js b/packages/google-cloud-compute/samples/generated/v1beta/node_types.list.js index 41ca29998386..fb146e0a7c6f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/node_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/node_types.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.add_association.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.add_association.js index cf4c5485d51d..edbf47831696 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.add_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.add_association.js @@ -29,11 +29,23 @@ function main(securityPolicy, securityPolicyAssociationResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists. + * Indicates whether or not to replace it if an association of the attachment + * already exists. This is false by default, in which case an error will be + * returned if an association already exists. */ // const replaceExistingAssociation = true /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.add_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.add_rule.js index a91f7d46863d..0ac629d58936 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.add_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.add_rule.js @@ -29,7 +29,17 @@ function main(securityPolicy, securityPolicyRuleResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.copy_rules.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.copy_rules.js index cba00d4e799b..256f1d2f5d94 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.copy_rules.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.copy_rules.js @@ -29,7 +29,17 @@ function main(securityPolicy) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.delete.js index 9227cc799a34..082ccb8e3e19 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.delete.js @@ -29,7 +29,17 @@ function main(securityPolicy) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.insert.js index 69df1677f323..878d89d89dd5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.insert.js @@ -29,11 +29,23 @@ function main(securityPolicyResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + * if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + * parent is an organization. */ // const parentId = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list.js index 5e2999dada8b..3c03906267a4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list.js @@ -29,19 +29,80 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main() { */ // const parentId = 'abc123' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list_associations.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list_associations.js index 97f7022b5515..fddeaa664d62 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list_associations.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list_associations.js @@ -29,7 +29,8 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The target resource to list associations. It is an organization, or a folder. + * The target resource to list associations. It is an organization, or a + * folder. */ // const targetResource = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list_preconfigured_expression_sets.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list_preconfigured_expression_sets.js index 1fe451938b00..9d72ff0fa705 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list_preconfigured_expression_sets.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.list_preconfigured_expression_sets.js @@ -29,19 +29,80 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main() { */ // const parentId = 'abc123' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.move.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.move.js index 32b3bdbd08c3..fc68b5b0e40a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.move.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.move.js @@ -33,7 +33,17 @@ function main(securityPolicy) { */ // const parentId = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.patch.js index 23db83e7d8c2..0ba009931f17 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.patch.js @@ -29,7 +29,17 @@ function main(securityPolicy, securityPolicyResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.patch_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.patch_rule.js index 5222ec7c7550..00026e361c43 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.patch_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.patch_rule.js @@ -33,7 +33,17 @@ function main(securityPolicy, securityPolicyRuleResource) { */ // const priority = 1234 /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.remove_association.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.remove_association.js index f5dac751b29a..bd4ff6ce8fab 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.remove_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.remove_association.js @@ -33,7 +33,17 @@ function main(securityPolicy) { */ // const name = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.remove_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.remove_rule.js index 6da8c11b5e3c..44a18184f697 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.remove_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/organization_security_policies.remove_rule.js @@ -33,7 +33,17 @@ function main(securityPolicy) { */ // const priority = 1234 /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.aggregated_list.js index bb63b78376fe..5cd22f78ca91 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.delete.js index 8d6761761b7f..b744ab499f43 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.delete.js @@ -41,7 +41,17 @@ function main(packetMirroring, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.insert.js index 798f0ed55fb7..3ceb9711de6d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.insert.js @@ -41,7 +41,17 @@ function main(packetMirroringResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.list.js b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.list.js index b63bb58ea308..048b39e01c56 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.patch.js index 706b3ebfa062..44f4ab776836 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/packet_mirrorings.patch.js @@ -45,7 +45,17 @@ function main(packetMirroring, packetMirroringResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/preview_features.list.js b/packages/google-cloud-compute/samples/generated/v1beta/preview_features.list.js index 0e3500982cea..bb9676194bc9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/preview_features.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/preview_features.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/preview_features.update.js b/packages/google-cloud-compute/samples/generated/v1beta/preview_features.update.js index 3c784c80b85e..ba1cd51c99b4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/preview_features.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/preview_features.update.js @@ -41,7 +41,17 @@ function main(previewFeature, previewFeatureResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.disable_xpn_host.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.disable_xpn_host.js index 34b9e3af789e..2bfe80e76679 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.disable_xpn_host.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.disable_xpn_host.js @@ -33,7 +33,17 @@ function main(project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.disable_xpn_resource.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.disable_xpn_resource.js index 498fcffd798c..c896f9502a72 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.disable_xpn_resource.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.disable_xpn_resource.js @@ -37,7 +37,17 @@ function main(project, projectsDisableXpnResourceRequestResource) { */ // const projectsDisableXpnResourceRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.enable_xpn_host.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.enable_xpn_host.js index 09e865157a35..6c2566a25acd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.enable_xpn_host.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.enable_xpn_host.js @@ -33,7 +33,17 @@ function main(project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.enable_xpn_resource.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.enable_xpn_resource.js index f064e990baad..db5ab3e59750 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.enable_xpn_resource.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.enable_xpn_resource.js @@ -37,7 +37,17 @@ function main(project, projectsEnableXpnResourceRequestResource) { */ // const projectsEnableXpnResourceRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.get_xpn_resources.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.get_xpn_resources.js index 58ab3a36f70f..ff84a6c4723b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.get_xpn_resources.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.get_xpn_resources.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.list_xpn_hosts.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.list_xpn_hosts.js index 845ab4781677..910d41d45127 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.list_xpn_hosts.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.list_xpn_hosts.js @@ -29,19 +29,80 @@ function main(project, projectsListXpnHostsRequestResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, projectsListXpnHostsRequestResource) { */ // const projectsListXpnHostsRequestResource = {} /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.move_disk.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.move_disk.js index 6023172742d1..14ebf18bc8b9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.move_disk.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.move_disk.js @@ -37,7 +37,17 @@ function main(diskMoveRequestResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.move_instance.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.move_instance.js index a2482009f39f..defc532322d9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.move_instance.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.move_instance.js @@ -37,7 +37,17 @@ function main(instanceMoveRequestResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_cloud_armor_tier.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_cloud_armor_tier.js index 5ae81797965d..d9d174cbabaf 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_cloud_armor_tier.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_cloud_armor_tier.js @@ -37,7 +37,17 @@ function main(project, projectsSetCloudArmorTierRequestResource) { */ // const projectsSetCloudArmorTierRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_common_instance_metadata.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_common_instance_metadata.js index 20d887fd419e..b792f89a7f9a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_common_instance_metadata.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_common_instance_metadata.js @@ -37,7 +37,17 @@ function main(metadataResource, project) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_default_network_tier.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_default_network_tier.js index 95993804db5b..aba059c0d2fb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_default_network_tier.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_default_network_tier.js @@ -37,7 +37,17 @@ function main(project, projectsSetDefaultNetworkTierRequestResource) { */ // const projectsSetDefaultNetworkTierRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_managed_protection_tier.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_managed_protection_tier.js index 28d031ca0484..6172a0df9dc6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_managed_protection_tier.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_managed_protection_tier.js @@ -37,7 +37,17 @@ function main(project, projectsSetManagedProtectionTierRequestResource) { */ // const projectsSetManagedProtectionTierRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_usage_export_bucket.js b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_usage_export_bucket.js index 7cd0cdc5d82f..c066891d5ba5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/projects.set_usage_export_bucket.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/projects.set_usage_export_bucket.js @@ -33,7 +33,17 @@ function main(project, usageExportLocationResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.announce.js b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.announce.js index bb052fc88f5f..9f382e645b62 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.announce.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.announce.js @@ -37,7 +37,17 @@ function main(project, publicAdvertisedPrefix) { */ // const publicAdvertisedPrefix = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.delete.js index ff702bd9618b..2f90d5ffac1e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.delete.js @@ -37,7 +37,17 @@ function main(project, publicAdvertisedPrefix) { */ // const publicAdvertisedPrefix = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.insert.js index 52b0c68820f9..0f8e376d89f5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.insert.js @@ -37,7 +37,17 @@ function main(project, publicAdvertisedPrefixResource) { */ // const publicAdvertisedPrefixResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.list.js b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.list.js index 95c43f36b7d6..0305ce8d6467 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.patch.js index b50d13777fbc..d5c4e4c1620e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.patch.js @@ -41,7 +41,17 @@ function main(project, publicAdvertisedPrefix, publicAdvertisedPrefixResource) { */ // const publicAdvertisedPrefixResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.withdraw.js b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.withdraw.js index f9208df6412f..b22bf787439f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.withdraw.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_advertised_prefixes.withdraw.js @@ -37,7 +37,17 @@ function main(project, publicAdvertisedPrefix) { */ // const publicAdvertisedPrefix = 'abc123' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.aggregated_list.js index fe44086ef345..637eb61054d2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.announce.js b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.announce.js index a3c7d1431ae5..b2196a94cf8a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.announce.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.announce.js @@ -37,11 +37,22 @@ function main(project, publicDelegatedPrefix, region) { */ // const publicDelegatedPrefix = 'abc123' /** - * The name of the region where the public delegated prefix is located. It should comply with RFC1035. + * The name of theregion where + * the public delegated prefix is located. It should comply with RFC1035. */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.delete.js index 0d6104f430db..5e12ff9d82a0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.delete.js @@ -41,7 +41,17 @@ function main(project, publicDelegatedPrefix, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.insert.js index 8c144e06974d..7c5eef90a4fa 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.insert.js @@ -41,7 +41,17 @@ function main(project, publicDelegatedPrefixResource, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.list.js b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.list.js index 8a071ea425fb..5fb29122ab1a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.patch.js index 80a2cbb56861..2a99cfd19d6f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.patch.js @@ -45,7 +45,17 @@ function main(project, publicDelegatedPrefix, publicDelegatedPrefixResource, reg */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.withdraw.js b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.withdraw.js index 2fa7e8fb963d..5eaa38d12828 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.withdraw.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/public_delegated_prefixes.withdraw.js @@ -37,11 +37,22 @@ function main(project, publicDelegatedPrefix, region) { */ // const publicDelegatedPrefix = 'abc123' /** - * The name of the region where the public delegated prefix is located. It should comply with RFC1035. + * The name of theregion where + * the public delegated prefix is located. It should comply with RFC1035. */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.delete.js index 60edce6b748d..27f3128e7d41 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.delete.js @@ -41,7 +41,17 @@ function main(autoscaler, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.insert.js index de0a4b10b53f..7aaca7bfc264 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.insert.js @@ -41,7 +41,17 @@ function main(autoscalerResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.list.js index 3a818251fb79..e57206eccc53 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.patch.js index 00e8ecc063ec..72611ea6f5ff 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.patch.js @@ -45,7 +45,17 @@ function main(autoscalerResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.update.js b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.update.js index 140c9bd970eb..9326054e7a9a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_autoscalers.update.js @@ -45,7 +45,17 @@ function main(autoscalerResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.delete.js new file mode 100644 index 000000000000..d8eba7c71a98 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.delete.js @@ -0,0 +1,92 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(backendBucket, project, region) { + // [START compute_v1beta_generated_RegionBackendBuckets_Delete_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the BackendBucket resource to delete. + */ + // const backendBucket = 'abc123' + /** + * Force delete the backend bucket even if it is still in use by other + * resources. It's intended to be used internally only for requests from + * wipeout. + */ + // const forceDelete = true + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionBackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionBackendBucketsClient(); + + async function callDelete() { + // Construct request + const request = { + backendBucket, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1beta_generated_RegionBackendBuckets_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.get.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.get.js new file mode 100644 index 000000000000..8eaa8e1b2ab7 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.get.js @@ -0,0 +1,71 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(backendBucket, project, region) { + // [START compute_v1beta_generated_RegionBackendBuckets_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the BackendBucket resource to return. + */ + // const backendBucket = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionBackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionBackendBucketsClient(); + + async function callGet() { + // Construct request + const request = { + backendBucket, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1beta_generated_RegionBackendBuckets_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.get_iam_policy.js new file mode 100644 index 000000000000..d4f4c960a930 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.get_iam_policy.js @@ -0,0 +1,75 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, resource) { + // [START compute_v1beta_generated_RegionBackendBuckets_GetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Requested IAM Policy version. + */ + // const optionsRequestedPolicyVersion = 1234 + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {RegionBackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionBackendBucketsClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + project, + region, + resource, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1beta_generated_RegionBackendBuckets_GetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.insert.js new file mode 100644 index 000000000000..46a48c69b6bc --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.insert.js @@ -0,0 +1,85 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(backendBucketResource, project, region) { + // [START compute_v1beta_generated_RegionBackendBuckets_Insert_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const backendBucketResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region of this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionBackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionBackendBucketsClient(); + + async function callInsert() { + // Construct request + const request = { + backendBucketResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1beta_generated_RegionBackendBuckets_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.list.js new file mode 100644 index 000000000000..7ea0c8b14476 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.list.js @@ -0,0 +1,153 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region) { + // [START compute_v1beta_generated_RegionBackendBuckets_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region of this request. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {RegionBackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionBackendBucketsClient(); + + async function callList() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1beta_generated_RegionBackendBuckets_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.list_usable.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.list_usable.js new file mode 100644 index 000000000000..6197acdeb840 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.list_usable.js @@ -0,0 +1,154 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region) { + // [START compute_v1beta_generated_RegionBackendBuckets_ListUsable_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {RegionBackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionBackendBucketsClient(); + + async function callListUsable() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const iterable = computeClient.listUsableAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListUsable(); + // [END compute_v1beta_generated_RegionBackendBuckets_ListUsable_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.patch.js new file mode 100644 index 000000000000..d03b551c9105 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.patch.js @@ -0,0 +1,91 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(backendBucket, backendBucketResource, project, region) { + // [START compute_v1beta_generated_RegionBackendBuckets_Patch_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the BackendBucket resource to patch. + */ + // const backendBucket = 'abc123' + /** + * The body resource for this request + */ + // const backendBucketResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionBackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionBackendBucketsClient(); + + async function callPatch() { + // Construct request + const request = { + backendBucket, + backendBucketResource, + project, + region, + }; + + // Run request + const response = await computeClient.patch(request); + console.log(response); + } + + callPatch(); + // [END compute_v1beta_generated_RegionBackendBuckets_Patch_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.set_iam_policy.js new file mode 100644 index 000000000000..4dddad1c2dad --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.set_iam_policy.js @@ -0,0 +1,76 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, regionSetPolicyRequestResource, resource) { + // [START compute_v1beta_generated_RegionBackendBuckets_SetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * The body resource for this request + */ + // const regionSetPolicyRequestResource = {} + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {RegionBackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionBackendBucketsClient(); + + async function callSetIamPolicy() { + // Construct request + const request = { + project, + region, + regionSetPolicyRequestResource, + resource, + }; + + // Run request + const response = await computeClient.setIamPolicy(request); + console.log(response); + } + + callSetIamPolicy(); + // [END compute_v1beta_generated_RegionBackendBuckets_SetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.test_iam_permissions.js new file mode 100644 index 000000000000..cf47182dc60f --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_buckets.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, resource, testPermissionsRequestResource) { + // [START compute_v1beta_generated_RegionBackendBuckets_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + + // Imports the Compute library + const {RegionBackendBucketsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionBackendBucketsClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + region, + resource, + testPermissionsRequestResource, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1beta_generated_RegionBackendBuckets_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.delete.js index 07167d763616..785a7ed70c23 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.delete.js @@ -41,7 +41,17 @@ function main(backendService, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.insert.js index 3ba7abfb321f..ba42d736a155 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.insert.js @@ -41,7 +41,17 @@ function main(backendServiceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.list.js index 4d7da157ba84..610d195433d3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.list_usable.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.list_usable.js index b51cdab6295c..97a0ea4d4fe2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.list_usable.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.list_usable.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,11 +110,16 @@ function main(project, region) { */ // const project = 'my-project' /** - * Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.patch.js index 88b5dbfaba81..493118496ab0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.patch.js @@ -45,7 +45,17 @@ function main(backendService, backendServiceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.set_security_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.set_security_policy.js index b328a1e53241..557e2977c38b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.set_security_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.set_security_policy.js @@ -29,7 +29,8 @@ function main(backendService, project, region, securityPolicyReferenceResource) * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the BackendService resource to which the security policy should be + * set. The name should conform to RFC1035. */ // const backendService = 'abc123' /** @@ -41,7 +42,17 @@ function main(backendService, project, region, securityPolicyReferenceResource) */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.update.js b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.update.js index 6fa735263dba..cb2a872289f8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_backend_services.update.js @@ -45,7 +45,17 @@ function main(backendService, backendServiceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.aggregated_list.js index 70b6ad601975..a49b6ee2a11b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.insert.js index a7122f21e035..d13528ba74dd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.insert.js @@ -41,7 +41,17 @@ function main(commitmentResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.list.js index 23f4320f6283..dfed8326e92b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update.js b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update.js index 5cc35cfee171..d754e531dca4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update.js @@ -48,7 +48,17 @@ function main(commitment, commitmentResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update_reservations.js b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update_reservations.js index 1c04dc1c36d7..1ca839156402 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update_reservations.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_commitments.update_reservations.js @@ -45,7 +45,17 @@ function main(commitment, project, region, regionCommitmentsUpdateReservationsRe */ // const regionCommitmentsUpdateReservationsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.aggregated_list.js new file mode 100644 index 000000000000..398c0e0bd513 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.aggregated_list.js @@ -0,0 +1,163 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project) { + // [START compute_v1beta_generated_RegionCompositeHealthChecks_AggregatedList_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + */ + // const includeAllScopes = true + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Name of the project scoping this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + */ + // const serviceProjectNumber = 1234 + + // Imports the Compute library + const {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callAggregatedList() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = computeClient.aggregatedListAsync(request); + for await (const [key, value] of iterable) { + console.log(response); + } + } + + callAggregatedList(); + // [END compute_v1beta_generated_RegionCompositeHealthChecks_AggregatedList_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.delete.js new file mode 100644 index 000000000000..dbaa0d5485eb --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.delete.js @@ -0,0 +1,85 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(compositeHealthCheck, project, region) { + // [START compute_v1beta_generated_RegionCompositeHealthChecks_Delete_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the CompositeHealthCheck resource to delete. + */ + // const compositeHealthCheck = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callDelete() { + // Construct request + const request = { + compositeHealthCheck, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1beta_generated_RegionCompositeHealthChecks_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.get.js b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.get.js new file mode 100644 index 000000000000..3a5d586c658a --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.get.js @@ -0,0 +1,71 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(compositeHealthCheck, project, region) { + // [START compute_v1beta_generated_RegionCompositeHealthChecks_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the CompositeHealthCheck resource to return. + */ + // const compositeHealthCheck = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callGet() { + // Construct request + const request = { + compositeHealthCheck, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1beta_generated_RegionCompositeHealthChecks_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.insert.js new file mode 100644 index 000000000000..cf221697906d --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.insert.js @@ -0,0 +1,85 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(compositeHealthCheckResource, project, region) { + // [START compute_v1beta_generated_RegionCompositeHealthChecks_Insert_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const compositeHealthCheckResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callInsert() { + // Construct request + const request = { + compositeHealthCheckResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1beta_generated_RegionCompositeHealthChecks_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.list.js new file mode 100644 index 000000000000..3b1211d598da --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.list.js @@ -0,0 +1,153 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region) { + // [START compute_v1beta_generated_RegionCompositeHealthChecks_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callList() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1beta_generated_RegionCompositeHealthChecks_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.patch.js new file mode 100644 index 000000000000..4436efbeaaf9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.patch.js @@ -0,0 +1,91 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(compositeHealthCheck, compositeHealthCheckResource, project, region) { + // [START compute_v1beta_generated_RegionCompositeHealthChecks_Patch_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the CompositeHealthCheck to update. The name + * must be 1-63 characters long, and comply with RFC1035. + */ + // const compositeHealthCheck = 'abc123' + /** + * The body resource for this request + */ + // const compositeHealthCheckResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callPatch() { + // Construct request + const request = { + compositeHealthCheck, + compositeHealthCheckResource, + project, + region, + }; + + // Run request + const response = await computeClient.patch(request); + console.log(response); + } + + callPatch(); + // [END compute_v1beta_generated_RegionCompositeHealthChecks_Patch_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.test_iam_permissions.js new file mode 100644 index 000000000000..6c822f22d356 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_composite_health_checks.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, resource, testPermissionsRequestResource) { + // [START compute_v1beta_generated_RegionCompositeHealthChecks_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + + // Imports the Compute library + const {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + region, + resource, + testPermissionsRequestResource, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1beta_generated_RegionCompositeHealthChecks_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disk_settings.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disk_settings.patch.js index 262b0a4ea9a8..163b780bcd92 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disk_settings.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disk_settings.patch.js @@ -41,7 +41,17 @@ function main(diskSettingsResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disk_types.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disk_types.list.js index 8b25cf51ff30..ad5d6afae9f8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disk_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disk_types.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.add_resource_policies.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.add_resource_policies.js index cba0afa8cbc2..de813a825df7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.add_resource_policies.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.add_resource_policies.js @@ -45,7 +45,17 @@ function main(disk, project, region, regionDisksAddResourcePoliciesRequestResour */ // const regionDisksAddResourcePoliciesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.bulk_insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.bulk_insert.js index 4417966a6f5f..0b4087b37397 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.bulk_insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.bulk_insert.js @@ -41,7 +41,17 @@ function main(bulkInsertDiskResourceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.create_snapshot.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.create_snapshot.js index 29648b172fa9..8e5c6a4739d8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.create_snapshot.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.create_snapshot.js @@ -41,7 +41,17 @@ function main(disk, project, region, snapshotResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.delete.js index d1080b20930f..96dd48f5e27b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.delete.js @@ -41,7 +41,17 @@ function main(disk, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.insert.js index b48e3820e74b..c016e1466c9f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.insert.js @@ -41,7 +41,17 @@ function main(diskResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.list.js index d0b865462017..2f8acbb86ca1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.remove_resource_policies.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.remove_resource_policies.js index 5e30b32a20e6..6d61f6be2b2c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.remove_resource_policies.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.remove_resource_policies.js @@ -45,7 +45,17 @@ function main(disk, project, region, regionDisksRemoveResourcePoliciesRequestRes */ // const regionDisksRemoveResourcePoliciesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.resize.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.resize.js index 340a6add643d..98a858195c92 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.resize.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.resize.js @@ -45,7 +45,17 @@ function main(disk, project, region, regionDisksResizeRequestResource) { */ // const regionDisksResizeRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.set_labels.js index a685e7e69b1d..eafc57ab652a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.start_async_replication.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.start_async_replication.js index a3cfccc6f236..7c59ed761ae9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.start_async_replication.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.start_async_replication.js @@ -45,7 +45,17 @@ function main(disk, project, region, regionDisksStartAsyncReplicationRequestReso */ // const regionDisksStartAsyncReplicationRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.stop_async_replication.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.stop_async_replication.js index 8d4e47658d92..b4a1605f0540 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.stop_async_replication.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.stop_async_replication.js @@ -41,7 +41,17 @@ function main(disk, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.stop_group_async_replication.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.stop_group_async_replication.js index 295abec98e20..7b1ab9551301 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.stop_group_async_replication.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.stop_group_async_replication.js @@ -37,11 +37,22 @@ function main(disksStopGroupAsyncReplicationResourceResource, project, region) { */ // const project = 'my-project' /** - * The name of the region for this request. This must be the region of the primary or secondary disks in the consistency group. + * The name of the region for this request. This must be the region of the + * primary or secondary disks in the consistency group. */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.update.js b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.update.js index 40b3206d11f5..3fd844b8e183 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_disks.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_disks.update.js @@ -48,7 +48,17 @@ function main(disk, diskResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.aggregated_list.js new file mode 100644 index 000000000000..af666706e7b4 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.aggregated_list.js @@ -0,0 +1,163 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project) { + // [START compute_v1beta_generated_RegionHealthAggregationPolicies_AggregatedList_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + */ + // const includeAllScopes = true + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Name of the project scoping this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + */ + // const serviceProjectNumber = 1234 + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callAggregatedList() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = computeClient.aggregatedListAsync(request); + for await (const [key, value] of iterable) { + console.log(response); + } + } + + callAggregatedList(); + // [END compute_v1beta_generated_RegionHealthAggregationPolicies_AggregatedList_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.delete.js new file mode 100644 index 000000000000..2cc5bf6b30d5 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.delete.js @@ -0,0 +1,85 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(healthAggregationPolicy, project, region) { + // [START compute_v1beta_generated_RegionHealthAggregationPolicies_Delete_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the HealthAggregationPolicy resource to delete. + */ + // const healthAggregationPolicy = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callDelete() { + // Construct request + const request = { + healthAggregationPolicy, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1beta_generated_RegionHealthAggregationPolicies_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.get.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.get.js new file mode 100644 index 000000000000..042671c4e202 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.get.js @@ -0,0 +1,71 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(healthAggregationPolicy, project, region) { + // [START compute_v1beta_generated_RegionHealthAggregationPolicies_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the HealthAggregationPolicy resource to return. + */ + // const healthAggregationPolicy = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callGet() { + // Construct request + const request = { + healthAggregationPolicy, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1beta_generated_RegionHealthAggregationPolicies_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.insert.js new file mode 100644 index 000000000000..3c4e13388fca --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.insert.js @@ -0,0 +1,85 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(healthAggregationPolicyResource, project, region) { + // [START compute_v1beta_generated_RegionHealthAggregationPolicies_Insert_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const healthAggregationPolicyResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callInsert() { + // Construct request + const request = { + healthAggregationPolicyResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1beta_generated_RegionHealthAggregationPolicies_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.list.js new file mode 100644 index 000000000000..647984002411 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.list.js @@ -0,0 +1,153 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region) { + // [START compute_v1beta_generated_RegionHealthAggregationPolicies_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callList() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1beta_generated_RegionHealthAggregationPolicies_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.patch.js new file mode 100644 index 000000000000..113dfab3fcb6 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.patch.js @@ -0,0 +1,91 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(healthAggregationPolicy, healthAggregationPolicyResource, project, region) { + // [START compute_v1beta_generated_RegionHealthAggregationPolicies_Patch_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the HealthAggregationPolicy to update. The name + * must be 1-63 characters long, and comply with RFC1035. + */ + // const healthAggregationPolicy = 'abc123' + /** + * The body resource for this request + */ + // const healthAggregationPolicyResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callPatch() { + // Construct request + const request = { + healthAggregationPolicy, + healthAggregationPolicyResource, + project, + region, + }; + + // Run request + const response = await computeClient.patch(request); + console.log(response); + } + + callPatch(); + // [END compute_v1beta_generated_RegionHealthAggregationPolicies_Patch_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.test_iam_permissions.js new file mode 100644 index 000000000000..76ab067602fa --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, resource, testPermissionsRequestResource) { + // [START compute_v1beta_generated_RegionHealthAggregationPolicies_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + region, + resource, + testPermissionsRequestResource, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1beta_generated_RegionHealthAggregationPolicies_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.delete.js index 88fd16e85794..98912ea0f139 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.delete.js @@ -29,7 +29,8 @@ function main(healthCheckService, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the HealthCheckService to delete. The name + * must be 1-63 characters long, and comply with RFC1035. */ // const healthCheckService = 'abc123' /** @@ -41,7 +42,17 @@ function main(healthCheckService, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.get.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.get.js index 2ea76d0be967..c719bc628304 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.get.js @@ -29,7 +29,8 @@ function main(healthCheckService, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the HealthCheckService to update. The name + * must be 1-63 characters long, and comply with RFC1035. */ // const healthCheckService = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.insert.js index 1afbf00f6a11..cf83ff361a3e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.insert.js @@ -41,7 +41,17 @@ function main(healthCheckServiceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.list.js index d85768276623..1e79dd8ecb56 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.patch.js index f16cbd20749e..1d38e6720835 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.patch.js @@ -29,7 +29,8 @@ function main(healthCheckService, healthCheckServiceResource, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the HealthCheckService to update. The name + * must be 1-63 characters long, and comply with RFC1035. */ // const healthCheckService = 'abc123' /** @@ -45,7 +46,17 @@ function main(healthCheckService, healthCheckServiceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.delete.js index ab55ed507674..fe27316b78f7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.delete.js @@ -41,7 +41,17 @@ function main(healthCheck, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.insert.js index a42e5fccdb09..c11629b51494 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.insert.js @@ -41,7 +41,17 @@ function main(healthCheckResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.list.js index 7b53fa6d0efa..0f34f51ce49e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.patch.js index a280b8e90555..5967be3d025b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.patch.js @@ -45,7 +45,17 @@ function main(healthCheck, healthCheckResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.update.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.update.js index d4f25927726a..9a5cd233e1b2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_checks.update.js @@ -45,7 +45,17 @@ function main(healthCheck, healthCheckResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.aggregated_list.js index 30c6a3822c77..876992c02581 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.delete.js index 74120103c0ca..8f11a075bf92 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.delete.js @@ -41,7 +41,17 @@ function main(healthSource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.insert.js index a89eb2201a96..6cc7743dec08 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.insert.js @@ -41,7 +41,17 @@ function main(healthSourceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.list.js index b286725ddacc..e6233f6e2c57 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.patch.js index 8ce8639327f0..6daf3f6539ac 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_sources.patch.js @@ -29,7 +29,8 @@ function main(healthSource, healthSourceResource, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the HealthSource to update. The name + * must be 1-63 characters long, and comply with RFC1035. */ // const healthSource = 'abc123' /** @@ -45,7 +46,17 @@ function main(healthSource, healthSourceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.cancel.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.cancel.js index e1515786734c..768d3ccb5748 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.cancel.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.cancel.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, region, resizeRequest) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. */ // const instanceGroupManager = 'abc123' /** @@ -37,15 +38,27 @@ function main(instanceGroupManager, project, region, resizeRequest) { */ // const project = 'my-project' /** - * The name of the region scoping this request. Name should conform to RFC1035. + * The name of the region + * scoping this request. Name should conform to RFC1035. */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the resize request to cancel. Name should conform to RFC1035 or be a resource ID. + * The name of the resize request to cancel. + * Name should conform to RFC1035 or be a resource ID. */ // const resizeRequest = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.delete.js index 6cd81713d114..c7871ac2c05c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.delete.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, region, resizeRequest) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. */ // const instanceGroupManager = 'abc123' /** @@ -37,15 +38,27 @@ function main(instanceGroupManager, project, region, resizeRequest) { */ // const project = 'my-project' /** - * The name of the region scoping this request. Name should conform to RFC1035. + * The name of the region + * scoping this request. Name should conform to RFC1035. */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the resize request to delete. Name should conform to RFC1035 or be a resource ID. + * The name of the resize request to delete. + * Name should conform to RFC1035 or be a resource ID. */ // const resizeRequest = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.get.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.get.js index 9cb36890f1e8..e3244ce56737 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.get.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, region, resizeRequest) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. */ // const instanceGroupManager = 'abc123' /** @@ -37,11 +38,13 @@ function main(instanceGroupManager, project, region, resizeRequest) { */ // const project = 'my-project' /** - * The name of the region scoping this request. Name should conform to RFC1035. + * The name of the region + * scoping this request. Name should conform to RFC1035. */ // const region = 'us-central1' /** - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + * The name of the resize request. + * Name should conform to RFC1035 or be a resource ID. */ // const resizeRequest = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.insert.js index 935d3caee189..6613cfd6308c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.insert.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, instanceGroupManagerResizeRequestResource, p * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the managed instance group to which the resize request is scoped. Name should conform to RFC1035 or be a resource ID. + * Name of the managed instance group to which the resize request is scoped. + * Name should conform to RFC1035 or be a resource ID. */ // const instanceGroupManager = 'abc123' /** @@ -41,11 +42,22 @@ function main(instanceGroupManager, instanceGroupManagerResizeRequestResource, p */ // const project = 'my-project' /** - * Name of the region scoping this request. Name should conform to RFC1035. + * Name of the region + * scoping this request. Name should conform to RFC1035. */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.list.js index 58774f56ce2b..2602556ffc00 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_manager_resize_requests.list.js @@ -29,7 +29,54 @@ function main(instanceGroupManager, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** @@ -37,15 +84,29 @@ function main(instanceGroupManager, project, region) { */ // const instanceGroupManager = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +114,16 @@ function main(instanceGroupManager, project, region) { */ // const project = 'my-project' /** - * Name of the region scoping this request. Name should conform to RFC1035. + * Name of the region + * scoping this request. Name should conform to RFC1035. */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.abandon_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.abandon_instances.js index 3843c62c1b03..1f0939dc17ae 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.abandon_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.abandon_instances.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersAbandonInstancesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.create_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.create_instances.js index 678fe5ee51fe..98c095b84ae9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.create_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.create_instances.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. */ // const instanceGroupManager = 'abc123' /** @@ -37,7 +38,9 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const project = 'my-project' /** - * The name of the region where the managed instance group is located. It should conform to RFC1035. + * The name of theregion + * where the managed instance group is located. + * It should conform to RFC1035. */ // const region = 'us-central1' /** @@ -45,7 +48,16 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersCreateInstancesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.delete.js index 8f260cd0e5e9..9495b5f8c712 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.delete.js @@ -41,7 +41,17 @@ function main(instanceGroupManager, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.delete_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.delete_instances.js index 259995c56530..20f268afdb17 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.delete_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.delete_instances.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersDeleteInstancesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.insert.js index 7e408781c6ea..a2b6937e5923 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.insert.js @@ -41,7 +41,17 @@ function main(instanceGroupManagerResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list.js index ec1c4a83cd8d..576ee936a70d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_errors.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_errors.js index 898bd1064f68..d9c99c6e71f4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_errors.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_errors.js @@ -29,23 +29,87 @@ function main(instanceGroupManager, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035, or an + * unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. */ // const instanceGroupManager = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +117,16 @@ function main(instanceGroupManager, project, region) { */ // const project = 'my-project' /** - * Name of the region scoping this request. This should conform to RFC1035. + * Name of the region scoping this request. + * This should conform to RFC1035. */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_managed_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_managed_instances.js index 3aaed0a6f319..0ef877503b18 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_managed_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_managed_instances.js @@ -29,7 +29,54 @@ function main(instanceGroupManager, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** @@ -37,15 +84,29 @@ function main(instanceGroupManager, project, region) { */ // const instanceGroupManager = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -57,7 +118,11 @@ function main(instanceGroupManager, project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_per_instance_configs.js index f08e114ea64e..a0ba6d930a9c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.list_per_instance_configs.js @@ -29,7 +29,54 @@ function main(instanceGroupManager, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** @@ -37,15 +84,29 @@ function main(instanceGroupManager, project, region) { */ // const instanceGroupManager = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -57,7 +118,11 @@ function main(instanceGroupManager, project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.patch.js index b0c411fe2a6b..a24f6aab3255 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.patch.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, instanceGroupManagerResource, project, regio */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.patch_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.patch_per_instance_configs.js index ce475530c63e..08103dcaadd7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.patch_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.patch_per_instance_configs.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagerP * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. */ // const instanceGroupManager = 'abc123' /** @@ -45,7 +46,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagerP */ // const regionInstanceGroupManagerPatchInstanceConfigReqResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.recreate_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.recreate_instances.js index 722123af89f1..76e6e6926bab 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.recreate_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.recreate_instances.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersRecreateRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resize.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resize.js index c5d57d7b1b9a..42decab9612a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resize.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resize.js @@ -41,11 +41,22 @@ function main(instanceGroupManager, project, region, size) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * Number of instances that should exist in this instance group manager. + * Number of instances that should exist in this instance group + * manager. */ // const size = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resize_advanced.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resize_advanced.js index 043600c23c6f..215fa81df285 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resize_advanced.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resize_advanced.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035. */ // const instanceGroupManager = 'abc123' /** @@ -37,7 +38,8 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const project = 'my-project' /** - * Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. */ // const region = 'us-central1' /** @@ -45,7 +47,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersResizeAdvancedRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resume_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resume_instances.js index 4f4792d3463a..a278d0c4433e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resume_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.resume_instances.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersResumeInstancesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_auto_healing_policies.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_auto_healing_policies.js index 62f2ceb71e52..e34005975e25 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_auto_healing_policies.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_auto_healing_policies.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersSetAutoHealingRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_instance_template.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_instance_template.js index 0dd188b8dd06..ac4a3991a5a8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_instance_template.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_instance_template.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersSetTemplateRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_target_pools.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_target_pools.js index 7bf2ed311809..fd9b19cc1b65 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_target_pools.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.set_target_pools.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersSetTargetPoolsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.start_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.start_instances.js index 475ad8013bca..83c7543bf8fe 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.start_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.start_instances.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersStartInstancesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.stop_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.stop_instances.js index e9d7b6c61248..84ab295aeea1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.stop_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.stop_instances.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersStopInstancesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.suspend_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.suspend_instances.js index fb3ee2603249..590df0010d04 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.suspend_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.suspend_instances.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagers */ // const regionInstanceGroupManagersSuspendInstancesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.update.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.update.js index ac03a6cb75e1..2fa0688f603c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.update.js @@ -45,7 +45,17 @@ function main(instanceGroupManager, instanceGroupManagerResource, project, regio */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.update_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.update_per_instance_configs.js index e060b1d5ee93..441f99c87884 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.update_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_group_managers.update_per_instance_configs.js @@ -29,7 +29,8 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagerU * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. */ // const instanceGroupManager = 'abc123' /** @@ -45,7 +46,17 @@ function main(instanceGroupManager, project, region, regionInstanceGroupManagerU */ // const regionInstanceGroupManagerUpdateInstanceConfigReqResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.list.js index 343c57760eef..232c7f1221d9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.list_instances.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.list_instances.js index b21a9f650d0f..d209e1a5fa76 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.list_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.list_instances.js @@ -29,23 +29,85 @@ function main(instanceGroup, project, region, regionInstanceGroupsListInstancesR * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Name of the regional instance group for which we want to list the instances. + * Name of the regional instance group for which we want to list the + * instances. */ // const instanceGroup = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -61,7 +123,11 @@ function main(instanceGroup, project, region, regionInstanceGroupsListInstancesR */ // const regionInstanceGroupsListInstancesRequestResource = {} /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.set_named_ports.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.set_named_ports.js index a9659106ad4c..4560e0274d1e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.set_named_ports.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_groups.set_named_ports.js @@ -45,7 +45,17 @@ function main(instanceGroup, project, region, regionInstanceGroupsSetNamedPortsR */ // const regionInstanceGroupsSetNamedPortsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.delete.js index 3b99ffbfa3b9..f4402308d505 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.delete.js @@ -41,7 +41,17 @@ function main(instanceTemplate, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.insert.js index 1875ac4210f8..00b431d8affc 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.insert.js @@ -41,7 +41,17 @@ function main(instanceTemplateResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.list.js index 3c0f159ca52e..a0b982c9f735 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instance_templates.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instances.bulk_insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instances.bulk_insert.js index a9d8008d8fe4..9e7ce6c77a99 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instances.bulk_insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instances.bulk_insert.js @@ -41,7 +41,17 @@ function main(bulkInsertInstanceResourceResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.delete.js index 2a49ddd81ec6..40467185667d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.delete.js @@ -41,7 +41,17 @@ function main(instantSnapshot, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.insert.js index fe5fb9f38ac4..2f8699bb0494 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.insert.js @@ -41,7 +41,17 @@ function main(instantSnapshotResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.list.js index 26195e6d046b..a5ad3e972a9d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.set_labels.js index 9f878ec10762..810c71783b9b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_instant_snapshots.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.delete.js index 039a67b9ca1f..b472f46a007b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.delete.js @@ -41,7 +41,17 @@ function main(multiMig, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.insert.js index fdb94a065186..5a16b7f6fa56 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.insert.js @@ -41,7 +41,17 @@ function main(multiMigResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents you from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents you from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.list.js index 0213356b871b..9d76375f879e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_multi_migs.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.attach_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.attach_network_endpoints.js index 4234fd3d02f6..0f74e49520e2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.attach_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.attach_network_endpoints.js @@ -29,7 +29,8 @@ function main(networkEndpointGroup, project, region, regionNetworkEndpointGroups * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + * The name of the network endpoint group where you are attaching network + * endpoints to. It should comply with RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -37,7 +38,9 @@ function main(networkEndpointGroup, project, region, regionNetworkEndpointGroups */ // const project = 'my-project' /** - * The name of the region where you want to create the network endpoint group. It should comply with RFC1035. + * The name of the region where + * you want to create the network endpoint group. It should comply with + * RFC1035. */ // const region = 'us-central1' /** @@ -45,7 +48,17 @@ function main(networkEndpointGroup, project, region, regionNetworkEndpointGroups */ // const regionNetworkEndpointGroupsAttachEndpointsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.delete.js index ded3997b0780..6de617ea2dda 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.delete.js @@ -29,7 +29,8 @@ function main(networkEndpointGroup, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the network endpoint group to delete. It should comply with RFC1035. + * The name of the network endpoint group to delete. It should comply with + * RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -37,11 +38,22 @@ function main(networkEndpointGroup, project, region) { */ // const project = 'my-project' /** - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of the region where + * the network endpoint group is located. It should comply with RFC1035. */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.detach_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.detach_network_endpoints.js index 3ba2a4096ec2..f9e6a8b4dde3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.detach_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.detach_network_endpoints.js @@ -29,7 +29,8 @@ function main(networkEndpointGroup, project, region, regionNetworkEndpointGroups * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the network endpoint group you are detaching network endpoints from. It should comply with RFC1035. + * The name of the network endpoint group you are detaching network + * endpoints from. It should comply with RFC1035. */ // const networkEndpointGroup = 'abc123' /** @@ -37,7 +38,9 @@ function main(networkEndpointGroup, project, region, regionNetworkEndpointGroups */ // const project = 'my-project' /** - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of the region where + * the network endpoint group is located. It should comply with + * RFC1035. */ // const region = 'us-central1' /** @@ -45,7 +48,18 @@ function main(networkEndpointGroup, project, region, regionNetworkEndpointGroups */ // const regionNetworkEndpointGroupsDetachEndpointsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.get.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.get.js index 9a29f2ea6860..ccbab62c0e83 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.get.js @@ -37,7 +37,8 @@ function main(networkEndpointGroup, project, region) { */ // const project = 'my-project' /** - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of the region where + * the network endpoint group is located. It should comply with RFC1035. */ // const region = 'us-central1' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.insert.js index 8e9a8aa4a26c..2e650d85c298 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.insert.js @@ -37,11 +37,23 @@ function main(networkEndpointGroupResource, project, region) { */ // const project = 'my-project' /** - * The name of the region where you want to create the network endpoint group. It should comply with RFC1035. + * The name of the region where + * you want to create the network endpoint group. It should comply with + * RFC1035. */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.list.js index f6096e3b08a4..eff3b3295883 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,11 +110,16 @@ function main(project, region) { */ // const project = 'my-project' /** - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of theregion + * where the network endpoint group is located. It should comply with RFC1035. */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.list_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.list_network_endpoints.js index d96e0171a3c4..c0965cac6210 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.list_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_endpoint_groups.list_network_endpoints.js @@ -29,23 +29,85 @@ function main(networkEndpointGroup, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. */ // const networkEndpointGroup = 'abc123' /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +115,16 @@ function main(networkEndpointGroup, project, region) { */ // const project = 'my-project' /** - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of theregion + * where the network endpoint group is located. It should comply with RFC1035. */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.add_association.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.add_association.js index 39759e679b06..62eedd0376a5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.add_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.add_association.js @@ -29,7 +29,9 @@ function main(firewallPolicy, firewallPolicyAssociationResource, project, region * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the firewall policy associated with the target network to swap association with. This field is mutually exclusive with 'replace_existing_association'. + * Name of the firewall policy associated with the target network to swap + * association with. This field is mutually exclusive with + * 'replace_existing_association'. */ // const associatedPolicyToBeReplaced = 'abc123' /** @@ -49,11 +51,23 @@ function main(firewallPolicy, firewallPolicyAssociationResource, project, region */ // const region = 'us-central1' /** - * Indicates whether or not to replace it if an association already exists. This is false by default, in which case an error will be returned if an association already exists. + * Indicates whether or not to replace it if an association already exists. + * This is false by default, in which case an error will be returned if an + * association already exists. */ // const replaceExistingAssociation = true /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.add_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.add_rule.js index a528d21b7149..aac8536e99bd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.add_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.add_rule.js @@ -37,11 +37,13 @@ function main(firewallPolicy, firewallPolicyRuleResource, project, region) { */ // const firewallPolicyRuleResource = {} /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. */ // const maxPriority = 1234 /** - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. */ // const minPriority = 1234 /** @@ -53,7 +55,17 @@ function main(firewallPolicy, firewallPolicyRuleResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.clone_rules.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.clone_rules.js index 421f94568f20..bb70f4683f7a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.clone_rules.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.clone_rules.js @@ -41,7 +41,17 @@ function main(firewallPolicy, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.delete.js index ede8332451c0..3ec03e8ef373 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.delete.js @@ -41,7 +41,17 @@ function main(firewallPolicy, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.insert.js index 6d317bcd11a5..e7efd0c98125 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.insert.js @@ -41,7 +41,17 @@ function main(firewallPolicyResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.list.js index a70e135d355e..bdca286764be 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch.js index f05ae78f184f..538cacc9d519 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch.js @@ -45,7 +45,17 @@ function main(firewallPolicy, firewallPolicyResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch_association.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch_association.js index 98d12522e879..bf3ab48ff149 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch_association.js @@ -45,7 +45,17 @@ function main(firewallPolicy, firewallPolicyAssociationResource, project, region */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch_rule.js index 9d62b20ae09d..015bfd598092 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.patch_rule.js @@ -49,7 +49,17 @@ function main(firewallPolicy, firewallPolicyRuleResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.remove_association.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.remove_association.js index 394948ed3192..048329bb2efd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.remove_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.remove_association.js @@ -45,7 +45,17 @@ function main(firewallPolicy, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.remove_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.remove_rule.js index 1e0693c91ccf..a3af95530fec 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.remove_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_firewall_policies.remove_rule.js @@ -45,7 +45,17 @@ function main(firewallPolicy, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.add_association.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.add_association.js index 7020e930cc3e..e09ead431b62 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.add_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.add_association.js @@ -45,7 +45,17 @@ function main(networkPolicy, networkPolicyAssociationResource, project, region) */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.add_traffic_classification_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.add_traffic_classification_rule.js index 1d2406dcc959..c7d522656045 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.add_traffic_classification_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.add_traffic_classification_rule.js @@ -45,7 +45,17 @@ function main(networkPolicy, networkPolicyTrafficClassificationRuleResource, pro */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.aggregated_list.js index 94b344a94b9d..0ec6e2c3d298 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.delete.js index 1637d6da88f5..abba49a1ad60 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.delete.js @@ -41,7 +41,17 @@ function main(networkPolicy, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.insert.js index 79ef21969bf6..a8f549f8eccf 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.insert.js @@ -41,7 +41,17 @@ function main(networkPolicyResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.list.js index dfcbcd99680a..817910eeec13 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.patch.js index 99c287a455db..13b411e6a5be 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.patch.js @@ -45,7 +45,17 @@ function main(networkPolicy, networkPolicyResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.patch_traffic_classification_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.patch_traffic_classification_rule.js index 5fa01320bf4a..42f428cafad9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.patch_traffic_classification_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.patch_traffic_classification_rule.js @@ -37,7 +37,8 @@ function main(networkPolicy, networkPolicyTrafficClassificationRuleResource, pro */ // const networkPolicyTrafficClassificationRuleResource = {} /** - * The priority of the traffic classification rule to patch. Only rules with a priority value between 1 and 2147482647 (inclusive) can be patched. + * The priority of the traffic classification rule to patch. Only rules with + * a priority value between 1 and 2147482647 (inclusive) can be patched. */ // const priority = 1234 /** @@ -49,7 +50,17 @@ function main(networkPolicy, networkPolicyTrafficClassificationRuleResource, pro */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_association.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_association.js index b8761cdd3103..68fe32facfd0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_association.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_association.js @@ -45,7 +45,17 @@ function main(networkPolicy, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_traffic_classification_rule.js b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_traffic_classification_rule.js index edd402cb9b2f..db4e727a82c0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_traffic_classification_rule.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_traffic_classification_rule.js @@ -45,7 +45,17 @@ function main(networkPolicy, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.delete.js index c66a5a837f76..f2f0be8597b4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.delete.js @@ -41,7 +41,17 @@ function main(notificationEndpoint, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.insert.js index 146fa4ac8698..d4e7bb63b498 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.insert.js @@ -41,7 +41,17 @@ function main(notificationEndpointResource, project, region) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.list.js index 7b67dce48900..46bc9f7ac9c5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_operations.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_operations.delete.js index 9adc0d970b99..46238a457246 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_operations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_operations.delete.js @@ -29,7 +29,8 @@ function main(operation, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * Name of the Operations resource to delete, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_operations.get.js b/packages/google-cloud-compute/samples/generated/v1beta/region_operations.get.js index 82d21a1f7be9..8ca2a2195876 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_operations.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_operations.get.js @@ -29,7 +29,8 @@ function main(operation, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_operations.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_operations.list.js index a865fa10b44c..572b82d1140b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_operations.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_operations.wait.js b/packages/google-cloud-compute/samples/generated/v1beta/region_operations.wait.js index e763caca7915..4a525dbb8305 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_operations.wait.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_operations.wait.js @@ -29,7 +29,8 @@ function main(operation, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.delete.js index 3806dfd7dd6e..cb363ebf3923 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.delete.js @@ -37,7 +37,17 @@ function main(project, region, securityPolicy) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.insert.js index 9a67818486a9..6785fe2036b0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.insert.js @@ -37,7 +37,17 @@ function main(project, region, securityPolicyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.list.js index 7bd360adfae4..39d198b06b8c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.patch.js index 2f8b80425d06..0951447d21b2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.patch.js @@ -37,7 +37,17 @@ function main(project, region, securityPolicy, securityPolicyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.set_labels.js index aae82c48ba3b..45435cfc3db1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_security_policies.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshot_settings.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshot_settings.patch.js index 64f960f8ae6a..2be9a072bc94 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshot_settings.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshot_settings.patch.js @@ -37,7 +37,17 @@ function main(project, region, snapshotSettingsResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.delete.js index 76b289e465af..c32782857b88 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.delete.js @@ -37,7 +37,17 @@ function main(project, region, snapshot) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.insert.js index bf5513cbdcd7..20731440f747 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.insert.js @@ -37,7 +37,17 @@ function main(project, region, snapshotResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.list.js index b3e1645cac7a..76f0eadf3a6c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.set_labels.js index e0cf29df1105..f25bcdc64f7d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_snapshots.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.delete.js index f9a6197a4fa9..2ac69e9001ea 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.delete.js @@ -37,7 +37,17 @@ function main(project, region, sslCertificate) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.insert.js index 72238a67107c..9d17fc1f8260 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.insert.js @@ -37,7 +37,17 @@ function main(project, region, sslCertificateResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.list.js index de26a749f49d..4613bd4def17 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_certificates.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.delete.js index 643d86e83e57..b1e8fcc27c06 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.delete.js @@ -37,11 +37,22 @@ function main(project, region, sslPolicy) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to delete. The name must be 1-63 characters long, + * and comply with RFC1035. */ // const sslPolicy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.get.js b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.get.js index 7fb86048be5f..04da01c727d3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.get.js @@ -37,7 +37,8 @@ function main(project, region, sslPolicy) { */ // const region = 'us-central1' /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. */ // const sslPolicy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.insert.js index 6b29953af014..be9e1ad63194 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.insert.js @@ -37,7 +37,17 @@ function main(project, region, sslPolicyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.list.js index 7b65a7132f22..fdfcee5ca55c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.list_available_features.js b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.list_available_features.js index f9ddcd2ab741..359aa90a7a56 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.list_available_features.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.list_available_features.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.patch.js index e34a9d336e34..5360e38a736b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_ssl_policies.patch.js @@ -37,11 +37,22 @@ function main(project, region, sslPolicy, sslPolicyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. */ // const sslPolicy = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.delete.js index a416e846a879..2d6e7ab5a371 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.delete.js @@ -37,7 +37,17 @@ function main(project, region, targetHttpProxy) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.insert.js index 967ae5472c15..8fa14374427b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.insert.js @@ -37,7 +37,17 @@ function main(project, region, targetHttpProxyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.list.js index 68ce59820b21..dab869605e3c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.set_url_map.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.set_url_map.js index a92fb2d4dc3f..44416172f4f4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.set_url_map.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_http_proxies.set_url_map.js @@ -37,7 +37,17 @@ function main(project, region, targetHttpProxy, urlMapReferenceResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.delete.js index be36b981c30a..7be21b858724 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.delete.js @@ -37,7 +37,17 @@ function main(project, region, targetHttpsProxy) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.insert.js index d50b8b119203..30cc3318fd05 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.insert.js @@ -37,7 +37,17 @@ function main(project, region, targetHttpsProxyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.list.js index ab22d334fc10..bcc591c3f55d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.patch.js index 853b14ec79cb..7dd3bc1f839c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.patch.js @@ -37,7 +37,17 @@ function main(project, region, targetHttpsProxy, targetHttpsProxyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.set_ssl_certificates.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.set_ssl_certificates.js index 2c572f6b76f0..5a5ae4dc4af5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.set_ssl_certificates.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.set_ssl_certificates.js @@ -41,11 +41,22 @@ function main(project, region, regionTargetHttpsProxiesSetSslCertificatesRequest */ // const regionTargetHttpsProxiesSetSslCertificatesRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + * Name of the TargetHttpsProxy resource to set an + * SslCertificates resource for. */ // const targetHttpsProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.set_url_map.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.set_url_map.js index 4ec5e8cc73ba..7c8163b6b9b7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.set_url_map.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_https_proxies.set_url_map.js @@ -37,7 +37,17 @@ function main(project, region, targetHttpsProxy, urlMapReferenceResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.delete.js index 9cec012bb2cf..85eecb77592c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.delete.js @@ -37,7 +37,17 @@ function main(project, region, targetTcpProxy) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.insert.js index 54e60685694e..eb6eb8cbd2d9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.insert.js @@ -37,7 +37,17 @@ function main(project, region, targetTcpProxyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.list.js index 829234c086f8..231b03d22c66 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_target_tcp_proxies.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.delete.js index 74678d7bda09..5380fa9fbe4d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.delete.js @@ -37,7 +37,8 @@ function main(project, region, urlMap) { */ // const region = 'us-central1' /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.insert.js index b18ab07fc346..6c1cc1342dd5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.insert.js @@ -37,7 +37,8 @@ function main(project, region, urlMapResource) { */ // const region = 'us-central1' /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.invalidate_cache.js b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.invalidate_cache.js index 6dc7f90d0f8a..d6e21a91ab80 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.invalidate_cache.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.invalidate_cache.js @@ -41,7 +41,8 @@ function main(cacheInvalidationRuleResource, project, region, urlMap) { */ // const region = 'us-central1' /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.list.js index 1ad15700ffd9..49af4196b73b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.patch.js index 0fb9a6be85c9..a13e6dae49dc 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.patch.js @@ -37,7 +37,8 @@ function main(project, region, urlMap, urlMapResource) { */ // const region = 'us-central1' /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.update.js b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.update.js index 36701716fbfd..4b7efc6478a3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_url_maps.update.js @@ -37,7 +37,8 @@ function main(project, region, urlMap, urlMapResource) { */ // const region = 'us-central1' /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_zones.list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_zones.list.js index a947bd5b854a..786f848b2f4b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/region_zones.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_zones.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/regions.list.js b/packages/google-cloud-compute/samples/generated/v1beta/regions.list.js index 5fe84dc4b213..025776f3ea36 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/regions.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/regions.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.get.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.get.js index 4eb9f17a8f23..fdb2ada00eec 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.get.js @@ -33,11 +33,13 @@ function main(project, reservation, reservationBlock, zone) { */ // const project = 'my-project' /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. */ // const reservation = 'abc123' /** - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation block. + * Name should conform to RFC1035 or be a resource ID. */ // const reservationBlock = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.get_iam_policy.js new file mode 100644 index 000000000000..6037edc21e58 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.get_iam_policy.js @@ -0,0 +1,80 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentResource, project, resource, zone) { + // [START compute_v1beta_generated_ReservationBlocks_GetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Requested IAM Policy version. + */ + // const optionsRequestedPolicyVersion = 1234 + /** + * Name or id of parent resource of the resource for this request. + */ + // const parentResource = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationBlocksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationBlocksClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + parentResource, + project, + resource, + zone, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1beta_generated_ReservationBlocks_GetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.list.js index 6fa8b22be801..d16e4d0165d0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.list.js @@ -29,19 +29,80 @@ function main(project, reservation, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,11 +110,16 @@ function main(project, reservation, zone) { */ // const project = 'my-project' /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. */ // const reservation = 'abc123' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.perform_maintenance.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.perform_maintenance.js index 050d4503f2f5..1debe0caae13 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.perform_maintenance.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.perform_maintenance.js @@ -33,15 +33,27 @@ function main(project, reservation, reservationBlock, reservationsBlocksPerformM */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. */ // const reservation = 'abc123' /** - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation block. + * Name should conform to RFC1035 or be a resource ID. */ // const reservationBlock = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.set_iam_policy.js new file mode 100644 index 000000000000..07951a995f19 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.set_iam_policy.js @@ -0,0 +1,81 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentResource, project, resource, zone, zoneSetNestedPolicyRequestResource) { + // [START compute_v1beta_generated_ReservationBlocks_SetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name or id of parent resource of the resource for this request. + */ + // const parentResource = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + /** + * The body resource for this request + */ + // const zoneSetNestedPolicyRequestResource = {} + + // Imports the Compute library + const {ReservationBlocksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationBlocksClient(); + + async function callSetIamPolicy() { + // Construct request + const request = { + parentResource, + project, + resource, + zone, + zoneSetNestedPolicyRequestResource, + }; + + // Run request + const response = await computeClient.setIamPolicy(request); + console.log(response); + } + + callSetIamPolicy(); + // [END compute_v1beta_generated_ReservationBlocks_SetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.test_iam_permissions.js new file mode 100644 index 000000000000..77d104022bbf --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_blocks.test_iam_permissions.js @@ -0,0 +1,81 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentResource, project, resource, testPermissionsRequestResource, zone) { + // [START compute_v1beta_generated_ReservationBlocks_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name or id of parent resource of the resource for this request. + */ + // const parentResource = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationBlocksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationBlocksClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + parentResource, + project, + resource, + testPermissionsRequestResource, + zone, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1beta_generated_ReservationBlocks_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get.js index 9d099338d8bc..9ae343eb1506 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get.js @@ -29,7 +29,8 @@ function main(parentName, project, reservationSubBlock, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ // const parentName = 'abc123' /** @@ -37,9 +38,15 @@ function main(parentName, project, reservationSubBlock, zone) { */ // const project = 'my-project' /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. */ // const reservationSubBlock = 'abc123' + /** + * View of the subBlock. + * Check the View enum for the list of possible values. + */ + // const view = 'abc123' /** * Name of the zone for this request. Zone name should conform to RFC1035. */ diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get_iam_policy.js new file mode 100644 index 000000000000..5b149628a96c --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get_iam_policy.js @@ -0,0 +1,80 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentResource, project, resource, zone) { + // [START compute_v1beta_generated_ReservationSubBlocks_GetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Requested IAM Policy version. + */ + // const optionsRequestedPolicyVersion = 1234 + /** + * Name or id of parent resource of the resource for this request. + */ + // const parentResource = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSubBlocksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationSubBlocksClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + parentResource, + project, + resource, + zone, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1beta_generated_ReservationSubBlocks_GetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.list.js index e214071042ff..474377bbde0c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.list.js @@ -29,23 +29,85 @@ function main(parentName, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ // const parentName = 'abc123' /** @@ -53,7 +115,11 @@ function main(parentName, project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.perform_maintenance.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.perform_maintenance.js index 9859990e4a2d..27e2ddcb0d11 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.perform_maintenance.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.perform_maintenance.js @@ -29,7 +29,8 @@ function main(parentName, project, reservationSubBlock, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ // const parentName = 'abc123' /** @@ -37,11 +38,22 @@ function main(parentName, project, reservationSubBlock, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. */ // const reservationSubBlock = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.report_faulty.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.report_faulty.js index f84ba27dedac..f1b5d8bc72ca 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.report_faulty.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.report_faulty.js @@ -29,7 +29,8 @@ function main(parentName, project, reservationSubBlock, reservationSubBlocksRepo * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ // const parentName = 'abc123' /** @@ -37,11 +38,22 @@ function main(parentName, project, reservationSubBlock, reservationSubBlocksRepo */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. */ // const reservationSubBlock = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.set_iam_policy.js new file mode 100644 index 000000000000..f10a9346316c --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.set_iam_policy.js @@ -0,0 +1,81 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentResource, project, resource, zone, zoneSetNestedPolicyRequestResource) { + // [START compute_v1beta_generated_ReservationSubBlocks_SetIamPolicy_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name or id of parent resource of the resource for this request. + */ + // const parentResource = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + /** + * The body resource for this request + */ + // const zoneSetNestedPolicyRequestResource = {} + + // Imports the Compute library + const {ReservationSubBlocksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationSubBlocksClient(); + + async function callSetIamPolicy() { + // Construct request + const request = { + parentResource, + project, + resource, + zone, + zoneSetNestedPolicyRequestResource, + }; + + // Run request + const response = await computeClient.setIamPolicy(request); + console.log(response); + } + + callSetIamPolicy(); + // [END compute_v1beta_generated_ReservationSubBlocks_SetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.test_iam_permissions.js new file mode 100644 index 000000000000..d7a39184c27b --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.test_iam_permissions.js @@ -0,0 +1,81 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentResource, project, resource, testPermissionsRequestResource, zone) { + // [START compute_v1beta_generated_ReservationSubBlocks_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name or id of parent resource of the resource for this request. + */ + // const parentResource = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + /** + * The name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSubBlocksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationSubBlocksClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + parentResource, + project, + resource, + testPermissionsRequestResource, + zone, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1beta_generated_ReservationSubBlocks_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservations.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/reservations.aggregated_list.js index be02e4ce370c..bb10999b17fd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservations.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservations.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservations.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/reservations.delete.js index 6b0e7424c719..406339c39816 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservations.delete.js @@ -33,7 +33,17 @@ function main(project, reservation, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservations.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/reservations.insert.js index a76368b0f742..29d6063948ab 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservations.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservations.insert.js @@ -33,7 +33,17 @@ function main(project, reservationResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservations.list.js b/packages/google-cloud-compute/samples/generated/v1beta/reservations.list.js index d6fa8d99dcbd..74e38b0f2ca9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservations.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservations.perform_maintenance.js b/packages/google-cloud-compute/samples/generated/v1beta/reservations.perform_maintenance.js index ecb9561a8e75..a7f12fa4cf15 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservations.perform_maintenance.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservations.perform_maintenance.js @@ -33,11 +33,22 @@ function main(project, reservation, reservationsPerformMaintenanceRequestResourc */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. */ // const reservation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservations.resize.js b/packages/google-cloud-compute/samples/generated/v1beta/reservations.resize.js index dc5df63e059e..8f7d3e8bbff2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservations.resize.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservations.resize.js @@ -33,7 +33,17 @@ function main(project, reservation, reservationsResizeRequestResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/reservations.update.js b/packages/google-cloud-compute/samples/generated/v1beta/reservations.update.js index 01d81b542380..d2784b1c529c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/reservations.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservations.update.js @@ -36,7 +36,17 @@ function main(project, reservation, reservationResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.aggregated_list.js index 3404cd2caa7e..1c6773652bc9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.delete.js index d7e77999906f..fe9b07a6fdde 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.delete.js @@ -37,7 +37,17 @@ function main(project, region, resourcePolicy) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.insert.js index 4f98c58ae665..9c30876b6d03 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.insert.js @@ -37,7 +37,17 @@ function main(project, region, resourcePolicyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.list.js index 76cbd06a98ac..018e03910772 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.patch.js index a11bb54037b2..881b43b9b9e2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/resource_policies.patch.js @@ -37,7 +37,17 @@ function main(project, region, resourcePolicy, resourcePolicyResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.aggregated_list.js index 9986ddd4ce56..e49e439e332d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.delete.js index faff1d5b227e..75f58cf7776c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.delete.js @@ -37,7 +37,17 @@ function main(project, region, router) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.delete_route_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.delete_route_policy.js index 8beeacdc97f7..dc06addfd545 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.delete_route_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.delete_route_policy.js @@ -41,7 +41,17 @@ function main(project, region, router) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_ip_info.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_ip_info.js index 970bee16e919..79c6155e286a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_ip_info.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_ip_info.js @@ -29,7 +29,9 @@ function main(project, region, router) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. + * Name of the nat service to filter the NAT IP information. + * If it is omitted, all nats for this router will be returned. + * Name should conform to RFC1035. */ // const natName = 'abc123' /** @@ -41,7 +43,8 @@ function main(project, region, router) { */ // const region = 'us-central1' /** - * Name of the Router resource to query for Nat IP information. The name should conform to RFC1035. + * Name of the Router resource to query for Nat IP information. The name + * should conform to RFC1035. */ // const router = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_mapping_info.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_mapping_info.js index b0ac2a8b0dd8..d9b95bb7ecf8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_mapping_info.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.get_nat_mapping_info.js @@ -29,23 +29,86 @@ function main(project, region, router) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. + * Name of the nat service to filter the Nat Mapping information. + * If it is omitted, all nats for this router will be returned. + * Name should conform to RFC1035. */ // const natName = 'abc123' /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -57,11 +120,16 @@ function main(project, region, router) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * Name of the Router resource to query for Nat Mapping information of VM endpoints. + * Name of the Router resource to query for Nat Mapping information of + * VM endpoints. */ // const router = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.get_route_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.get_route_policy.js index 1b359d7cf2eb..6b36a5399fe8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.get_route_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.get_route_policy.js @@ -41,7 +41,8 @@ function main(project, region, router) { */ // const region = 'us-central1' /** - * Name of the Router resource to query for the route policy. The name should conform to RFC1035. + * Name of the Router resource to query for the route policy. The name should + * conform to RFC1035. */ // const router = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.insert.js index 0e8a3b431d43..172c9db775cb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.insert.js @@ -37,7 +37,17 @@ function main(project, region, routerResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.list.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.list.js index 44d5dd69f6d4..c8fb58bc0ab7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.list_bgp_routes.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.list_bgp_routes.js index 883df48e779b..22a7a7e36c6f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.list_bgp_routes.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.list_bgp_routes.js @@ -38,27 +38,90 @@ function main(project, region, router) { */ // const destinationPrefix = 'abc123' /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** - * (Required) limit results to the BGP peer with the given name. Name should conform to RFC1035. + * (Required) limit results to the BGP peer with the given name. + * Name should conform to RFC1035. */ // const peer = 'abc123' /** - * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + * When true, the method returns post-policy routes. Otherwise, it returns + * pre-policy routes. */ // const policyApplied = true /** @@ -70,16 +133,22 @@ function main(project, region, router) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + * (Required) limit results to this type of route (either LEARNED or + * ADVERTISED) * Check the RouteType enum for the list of possible values. */ // const routeType = 'abc123' /** - * Name or id of the resource for this request. Name should conform to RFC1035. + * Name or id of the resource for this request. + * Name should conform to RFC1035. */ // const router = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.list_route_policies.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.list_route_policies.js index e7b29cfc7330..231aae213ec4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.list_route_policies.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.list_route_policies.js @@ -29,19 +29,80 @@ function main(project, region, router) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +114,16 @@ function main(project, region, router) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * Name or id of the resource for this request. Name should conform to RFC1035. + * Name or id of the resource for this request. + * Name should conform to RFC1035. */ // const router = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.patch.js index a71a12dbd23b..7465050be8a1 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.patch.js @@ -37,7 +37,17 @@ function main(project, region, router, routerResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.patch_route_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.patch_route_policy.js index 0c70867c20e5..8311960453f2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.patch_route_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.patch_route_policy.js @@ -37,7 +37,17 @@ function main(project, region, routePolicyResource, router) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.update.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.update.js index 858b3b7baaa3..b9c0062b12c0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.update.js @@ -37,7 +37,17 @@ function main(project, region, router, routerResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routers.update_route_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/routers.update_route_policy.js index fc528680baa7..65dea38dc206 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routers.update_route_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routers.update_route_policy.js @@ -37,7 +37,17 @@ function main(project, region, routePolicyResource, router) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routes.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/routes.delete.js index 119b3902ef48..49013765f505 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routes.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routes.delete.js @@ -33,7 +33,17 @@ function main(project, route) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routes.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/routes.insert.js index e48fba5d0090..918bae621712 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routes.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routes.insert.js @@ -33,7 +33,17 @@ function main(project, routeResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/routes.list.js b/packages/google-cloud-compute/samples/generated/v1beta/routes.list.js index c91e5699a2eb..c6bb3115bbe7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/routes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/routes.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.aggregated_list.js index 2b21fb2dd0e7..5bc75bb3594b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.delete.js index c358713845be..26f560a25136 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.delete.js @@ -33,7 +33,17 @@ function main(project, securityPolicy) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.insert.js index a2be1aa6733b..c8b4c12078b2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.insert.js @@ -33,7 +33,17 @@ function main(project, securityPolicyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.list.js index 9f954bdebf6e..10a3f0007e46 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.list_preconfigured_expression_sets.js b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.list_preconfigured_expression_sets.js index dddf5d3a57ca..40525f913758 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.list_preconfigured_expression_sets.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.list_preconfigured_expression_sets.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.patch.js index fa012a1ec5b1..4da95bd8ae71 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/security_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/security_policies.patch.js @@ -33,7 +33,17 @@ function main(project, securityPolicy, securityPolicyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.aggregated_list.js index 2bd80f91975e..0ef1efa9f725 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.delete.js index 9100151937b1..071e96f13528 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.delete.js @@ -37,7 +37,17 @@ function main(project, region, serviceAttachment) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.insert.js index 8835f1bacea2..e35613fc52e5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.insert.js @@ -37,7 +37,17 @@ function main(project, region, serviceAttachmentResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.list.js b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.list.js index 52219d7a2f0f..3700ca8e75b5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.patch.js index 6ef854aa0f70..23eb2e2d1b23 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/service_attachments.patch.js @@ -37,11 +37,22 @@ function main(project, region, serviceAttachment, serviceAttachmentResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number. + * The resource id of the ServiceAttachment to patch. It should conform to + * RFC1035 resource name or be a string form on an unsigned long number. */ // const serviceAttachment = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshot_settings_service.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_settings_service.patch.js index a12680c368b6..c2a80d9eae3e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/snapshot_settings_service.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshot_settings_service.patch.js @@ -33,7 +33,17 @@ function main(project, snapshotSettingsResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshots.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.aggregated_list.js index 972beab8a3c8..bc137cbdf37e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/snapshots.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshots.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.delete.js index 8c762a395227..db33d0df274c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/snapshots.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.delete.js @@ -33,7 +33,17 @@ function main(project, snapshot) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshots.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.insert.js index dd2dde49608b..7d2c45cb03a7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/snapshots.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.insert.js @@ -33,7 +33,17 @@ function main(project, snapshotResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snapshots.list.js b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.list.js index 846466cd2f2f..953cee3722e3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/snapshots.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/snapshots.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json b/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json index e710e635aa4c..df43d3f09a26 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json +++ b/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json @@ -15,14 +15,14 @@ "regionTag": "compute_v1beta_generated_AcceleratorTypes_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves an aggregated list of accelerator types. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "accelerator_types.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -138,7 +138,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -195,14 +195,14 @@ "regionTag": "compute_v1beta_generated_Addresses_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves an aggregated list of addresses. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "addresses.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -270,7 +270,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -370,7 +370,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -422,7 +422,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -486,7 +486,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -535,14 +535,14 @@ "regionTag": "compute_v1beta_generated_Addresses_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on an Address. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "addresses.set_labels.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -691,14 +691,14 @@ "regionTag": "compute_v1beta_generated_Autoscalers_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves an aggregated list of autoscalers. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "autoscalers.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -766,7 +766,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -866,7 +866,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -918,7 +918,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -975,14 +975,14 @@ "regionTag": "compute_v1beta_generated_Autoscalers_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates an autoscaler in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "autoscalers.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -1090,7 +1090,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -1146,7 +1146,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -1187,6 +1187,74 @@ } } }, + { + "regionTag": "compute_v1beta_generated_BackendBuckets_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all BackendBucket resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", + "canonical": true, + "file": "backend_buckets.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 155, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.BackendBuckets.AggregatedList", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "include_all_scopes", + "type": "TYPE_BOOL" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "service_project_number", + "type": "TYPE_INT64" + } + ], + "resultType": ".google.cloud.compute.v1beta.BackendBucketAggregatedList", + "client": { + "shortName": "BackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.BackendBuckets.AggregatedList", + "service": { + "shortName": "BackendBuckets", + "fullName": "google.cloud.compute.v1beta.BackendBuckets" + } + } + } + }, { "regionTag": "compute_v1beta_generated_BackendBuckets_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -1198,7 +1266,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -1246,7 +1314,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -1390,7 +1458,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -1438,7 +1506,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -1498,7 +1566,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -1551,14 +1619,14 @@ "regionTag": "compute_v1beta_generated_BackendBuckets_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified BackendBucket resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "backend_buckets.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -1610,7 +1678,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -1758,7 +1826,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -1810,7 +1878,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -1855,14 +1923,14 @@ "regionTag": "compute_v1beta_generated_BackendServices_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "backend_services.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -1930,7 +1998,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -1978,7 +2046,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -2111,7 +2179,7 @@ "regionTag": "compute_v1beta_generated_BackendServices_GetHealth_async", "title": "AcceleratorTypes getHealth Sample", "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this BackendService. Example request body: { \"group\": \"/zones/us-east1-b/instanceGroups/lb-backend-example\" }", + "description": " Gets the most recent health check results for this BackendService. Example request body: { \"group\": \"/zones/us-east1-b/instanceGroups/lb-backend-example\" }", "canonical": true, "file": "backend_services.get_health.js", "language": "JAVASCRIPT", @@ -2207,14 +2275,14 @@ "regionTag": "compute_v1beta_generated_BackendServices_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .", + "description": " Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.", "canonical": true, "file": "backend_services.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -2262,7 +2330,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -2322,7 +2390,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -2382,7 +2450,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -2434,7 +2502,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -2527,14 +2595,14 @@ "regionTag": "compute_v1beta_generated_BackendServices_SetSecurityPolicy_async", "title": "AcceleratorTypes setSecurityPolicy Sample", "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview", + "description": " Sets the Google Cloud Armor security policy for the specified backend service. For more information, seeGoogle Cloud Armor Overview", "canonical": true, "file": "backend_services.set_security_policy.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -2627,14 +2695,14 @@ "regionTag": "compute_v1beta_generated_BackendServices_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.", + "description": " Updates the specified BackendService resource with the data included in the request. For more information, seeBackend services overview.", "canonical": true, "file": "backend_services.update.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -2686,7 +2754,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 73, "type": "FULL" } ], @@ -2778,7 +2846,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 77, "type": "FULL" } ], @@ -2830,7 +2898,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -2883,14 +2951,14 @@ "regionTag": "compute_v1beta_generated_CrossSiteNetworks_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified cross-site network with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the specified cross-site network with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "cross_site_networks.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 75, + "end": 86, "type": "FULL" } ], @@ -2950,7 +3018,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -2999,14 +3067,14 @@ "regionTag": "compute_v1beta_generated_Disks_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves an aggregated list of persistent disks. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "disks.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -3074,7 +3142,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -3119,14 +3187,14 @@ "regionTag": "compute_v1beta_generated_Disks_BulkSetLabels_async", "title": "AcceleratorTypes bulkSetLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on many disks at once. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "disks.bulk_set_labels.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -3182,7 +3250,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 87, "type": "FULL" } ], @@ -3235,14 +3303,14 @@ "regionTag": "compute_v1beta_generated_Disks_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.", + "description": " Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separatelydelete snapshots.", "canonical": true, "file": "disks.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -3387,14 +3455,14 @@ "regionTag": "compute_v1beta_generated_Disks_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, or sourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.", + "description": " Creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.", "canonical": true, "file": "disks.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -3450,7 +3518,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -3514,7 +3582,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -3570,7 +3638,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -3671,14 +3739,14 @@ "regionTag": "compute_v1beta_generated_Disks_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on a disk. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "disks.set_labels.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -3734,7 +3802,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -3790,7 +3858,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -3842,7 +3910,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -3946,7 +4014,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 89, "type": "FULL" } ], @@ -4054,7 +4122,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -4103,14 +4171,14 @@ "regionTag": "compute_v1beta_generated_DiskTypes_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves an aggregated list of disk types. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "disk_types.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -4226,7 +4294,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -4290,7 +4358,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -4382,7 +4450,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -4430,7 +4498,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -4586,7 +4654,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 78, "type": "FULL" } ], @@ -4638,7 +4706,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -4686,7 +4754,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -4734,7 +4802,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 71, "type": "FULL" } ], @@ -4782,7 +4850,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 67, "type": "FULL" } ], @@ -5042,7 +5110,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 74, "type": "FULL" } ], @@ -5090,7 +5158,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 141, "type": "FULL" } ], @@ -5150,7 +5218,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 59, "type": "FULL" } ], @@ -5159,6 +5227,10 @@ "fullName": "google.cloud.compute.v1beta.FirewallPolicies.ListAssociations", "async": true, "parameters": [ + { + "name": "include_inherited_policies", + "type": "TYPE_BOOL" + }, { "name": "target_resource", "type": "TYPE_STRING" @@ -5190,7 +5262,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 74, "type": "FULL" } ], @@ -5238,7 +5310,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -5286,7 +5358,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -5338,7 +5410,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -5390,7 +5462,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 71, "type": "FULL" } ], @@ -5438,7 +5510,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 71, "type": "FULL" } ], @@ -5486,7 +5558,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 71, "type": "FULL" } ], @@ -5622,7 +5694,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -5714,7 +5786,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -5762,7 +5834,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -5815,14 +5887,14 @@ "regionTag": "compute_v1beta_generated_Firewalls_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified firewall rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the specified firewall rule with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "firewalls.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -5922,7 +5994,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -5967,14 +6039,14 @@ "regionTag": "compute_v1beta_generated_ForwardingRules_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves an aggregated list of forwarding rules. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "forwarding_rules.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -6042,7 +6114,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -6142,7 +6214,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -6194,7 +6266,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -6251,14 +6323,14 @@ "regionTag": "compute_v1beta_generated_ForwardingRules_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.", + "description": " Updates the specified forwarding rule with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you can only patch the network_tier field.", "canonical": true, "file": "forwarding_rules.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -6314,7 +6386,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -6370,7 +6442,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -6471,14 +6543,14 @@ "regionTag": "compute_v1beta_generated_FutureReservations_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of future reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves an aggregated list of future reservations. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "future_reservations.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -6546,7 +6618,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -6598,7 +6670,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -6698,7 +6770,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -6750,7 +6822,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -6814,7 +6886,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 86, "type": "FULL" } ], @@ -6874,7 +6946,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -6966,7 +7038,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -7014,7 +7086,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -7074,7 +7146,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -7119,7 +7191,7 @@ "regionTag": "compute_v1beta_generated_GlobalAddresses_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "global_addresses.set_labels.js", "language": "JAVASCRIPT", @@ -7222,7 +7294,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -7314,7 +7386,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -7362,7 +7434,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -7415,14 +7487,14 @@ "regionTag": "compute_v1beta_generated_GlobalForwardingRules_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.", + "description": " Updates the specified forwarding rule with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you can only patch the network_tier field.", "canonical": true, "file": "global_forwarding_rules.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -7522,7 +7594,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -7622,7 +7694,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -7674,7 +7746,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 73, "type": "FULL" } ], @@ -7722,7 +7794,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -7818,7 +7890,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -7866,7 +7938,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -7926,7 +7998,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 146, "type": "FULL" } ], @@ -7990,7 +8062,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -8058,7 +8130,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -8102,7 +8174,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -8146,7 +8218,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -8199,14 +8271,14 @@ "regionTag": "compute_v1beta_generated_GlobalOperations_Wait_async", "title": "AcceleratorTypes wait Sample", "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. ", + "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", "canonical": true, "file": "global_operations.wait.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -8250,7 +8322,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 58, "type": "FULL" } ], @@ -8294,7 +8366,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 58, "type": "FULL" } ], @@ -8338,7 +8410,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 139, "type": "FULL" } ], @@ -8398,7 +8470,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -8490,7 +8562,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -8538,7 +8610,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -8591,14 +8663,14 @@ "regionTag": "compute_v1beta_generated_GlobalPublicDelegatedPrefixes_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "global_public_delegated_prefixes.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -8640,23 +8712,135 @@ } }, { - "regionTag": "compute_v1beta_generated_HealthChecks_AggregatedList_async", + "regionTag": "compute_v1beta_generated_GlobalVmExtensionPolicies_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves the list of all VM Extension Policy resources available to the specified project. To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, - "file": "health_checks.aggregated_list.js", + "file": "global_vm_extension_policies.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], "clientMethod": { "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.HealthChecks.AggregatedList", + "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.AggregatedList", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "include_all_scopes", + "type": "TYPE_BOOL" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "service_project_number", + "type": "TYPE_INT64" + } + ], + "resultType": ".google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse", + "client": { + "shortName": "GlobalVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPoliciesClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.AggregatedList", + "service": { + "shortName": "GlobalVmExtensionPolicies", + "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_GlobalVmExtensionPolicies_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a global VM extension policy.", + "canonical": true, + "file": "global_vm_extension_policies.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Get", + "async": true, + "parameters": [ + { + "name": "global_vm_extension_policy", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.GlobalVmExtensionPolicy", + "client": { + "shortName": "GlobalVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPoliciesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Get", + "service": { + "shortName": "GlobalVmExtensionPolicies", + "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_HealthChecks_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "canonical": true, + "file": "health_checks.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 155, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.HealthChecks.AggregatedList", "async": true, "parameters": [ { @@ -8718,7 +8902,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -8810,7 +8994,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -8858,7 +9042,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -8911,14 +9095,14 @@ "regionTag": "compute_v1beta_generated_HealthChecks_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "health_checks.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -9018,7 +9202,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -9118,7 +9302,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -9166,7 +9350,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -9255,14 +9439,14 @@ "regionTag": "compute_v1beta_generated_Images_GetFromFamily_async", "title": "AcceleratorTypes getFromFamily Sample", "origin": "API_DEFINITION", - "description": " Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation.", + "description": " Returns the latest image that is part of an image family and is not deprecated. For more information on image families, seePublic image families documentation.", "canonical": true, "file": "images.get_from_family.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -9354,7 +9538,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -9406,7 +9590,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 144, "type": "FULL" } ], @@ -9470,7 +9654,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -9563,7 +9747,7 @@ "regionTag": "compute_v1beta_generated_Images_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on an image. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "images.set_labels.js", "language": "JAVASCRIPT", @@ -9666,7 +9850,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 85, "type": "FULL" } ], @@ -9722,7 +9906,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 85, "type": "FULL" } ], @@ -9778,7 +9962,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -9830,7 +10014,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 86, "type": "FULL" } ], @@ -9886,7 +10070,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 151, "type": "FULL" } ], @@ -9947,14 +10131,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_AbandonInstances_async", "title": "AcceleratorTypes abandonInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "instance_group_managers.abandon_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -10010,7 +10194,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -10078,7 +10262,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 69, "type": "FULL" } ], @@ -10123,14 +10307,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_CreateInstances_async", "title": "AcceleratorTypes createInstances Sample", "origin": "API_DEFINITION", - "description": " Creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.", + "description": " Creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. Thecreate instances operation is marked DONE if thecreateInstances request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances method.", "canonical": true, "file": "instance_group_managers.create_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 84, "type": "FULL" } ], @@ -10186,7 +10370,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -10231,14 +10415,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_DeleteInstances_async", "title": "AcceleratorTypes deleteInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "instance_group_managers.delete_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -10294,7 +10478,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 72, "type": "FULL" } ], @@ -10346,7 +10530,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -10383,18 +10567,66 @@ } } }, + { + "regionTag": "compute_v1beta_generated_InstanceGroupManagers_GetAvailableAcceleratorTopologies_async", + "title": "AcceleratorTypes getAvailableAcceleratorTopologies Sample", + "origin": "API_DEFINITION", + "description": " Returns information about available accelerator topologies for a given MIG.", + "canonical": true, + "file": "instance_group_managers.get_available_accelerator_topologies.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAvailableAcceleratorTopologies", + "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.GetAvailableAcceleratorTopologies", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse", + "client": { + "shortName": "InstanceGroupManagersClient", + "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" + }, + "method": { + "shortName": "GetAvailableAcceleratorTopologies", + "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.GetAvailableAcceleratorTopologies", + "service": { + "shortName": "InstanceGroupManagers", + "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" + } + } + } + }, { "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit.", + "description": " Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with thelistmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit.", "canonical": true, "file": "instance_group_managers.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -10446,7 +10678,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 146, "type": "FULL" } ], @@ -10510,7 +10742,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 155, "type": "FULL" } ], @@ -10578,7 +10810,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 151, "type": "FULL" } ], @@ -10646,7 +10878,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 152, "type": "FULL" } ], @@ -10707,14 +10939,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listManagedInstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.", + "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with thelistManagedInstances method. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", "canonical": true, "file": "instance_group_managers.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -10770,7 +11002,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 85, "type": "FULL" } ], @@ -10819,14 +11051,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_RecreateInstances_async", "title": "AcceleratorTypes recreateInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "instance_group_managers.recreate_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -10875,14 +11107,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Resize_async", "title": "AcceleratorTypes resize Sample", "origin": "API_DEFINITION", - "description": " Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", + "description": " Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with thelistmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", "canonical": true, "file": "instance_group_managers.resize.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 85, "type": "FULL" } ], @@ -10931,14 +11163,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ResizeAdvanced_async", "title": "AcceleratorTypes resizeAdvanced Sample", "origin": "API_DEFINITION", - "description": " Resizes the managed instance group with advanced configuration options like disabling creation retries. This is an extended version of the resize method. If you increase the size of the instance group, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating, creatingWithoutRetries, or deleting actions with the get or listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", + "description": " Resizes the managed instance group with advanced configuration options like disabling creation retries. This is an extended version of theresize method. If you increase the size of the instance group, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating,creatingWithoutRetries, or deleting actions with the get orlistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", "canonical": true, "file": "instance_group_managers.resize_advanced.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -10987,14 +11219,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ResumeInstances_async", "title": "AcceleratorTypes resumeInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group to be resumed. This method increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "instance_group_managers.resume_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -11043,14 +11275,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_SetAutoHealingPolicies_async", "title": "AcceleratorTypes setAutoHealingPolicies Sample", "origin": "API_DEFINITION", - "description": " Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. Use instanceGroupManagers.patch instead.", + "description": " Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. UseinstanceGroupManagers.patch instead.", "canonical": true, "file": "instance_group_managers.set_auto_healing_policies.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -11099,14 +11331,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_SetInstanceTemplate_async", "title": "AcceleratorTypes setInstanceTemplate Sample", "origin": "API_DEFINITION", - "description": " Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", + "description": " Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.", "canonical": true, "file": "instance_group_managers.set_instance_template.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -11155,14 +11387,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_SetTargetPools_async", "title": "AcceleratorTypes setTargetPools Sample", "origin": "API_DEFINITION", - "description": " Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is marked DONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group.", + "description": " Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is markedDONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group.", "canonical": true, "file": "instance_group_managers.set_target_pools.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -11211,14 +11443,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_StartInstances_async", "title": "AcceleratorTypes startInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group to be started. This method increases thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "instance_group_managers.start_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -11267,14 +11499,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_StopInstances_async", "title": "AcceleratorTypes stopInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "instance_group_managers.stop_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -11323,14 +11555,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_SuspendInstances_async", "title": "AcceleratorTypes suspendInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "instance_group_managers.suspend_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -11431,14 +11663,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with the listManagedInstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.", + "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with thelistManagedInstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", "canonical": true, "file": "instance_group_managers.update.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -11494,7 +11726,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 85, "type": "FULL" } ], @@ -11543,14 +11775,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroups_AddInstances_async", "title": "AcceleratorTypes addInstances Sample", "origin": "API_DEFINITION", - "description": " Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.", + "description": " Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.", "canonical": true, "file": "instance_groups.add_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -11606,7 +11838,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -11674,7 +11906,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -11719,14 +11951,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroups_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.", + "description": " Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods instead.", "canonical": true, "file": "instance_groups.get.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -11774,7 +12006,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -11819,14 +12051,14 @@ "regionTag": "compute_v1beta_generated_InstanceGroups_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.", + "description": " Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods instead.", "canonical": true, "file": "instance_groups.list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 80, + "end": 146, "type": "FULL" } ], @@ -11890,7 +12122,7 @@ "segments": [ { "start": 25, - "end": 90, + "end": 157, "type": "FULL" } ], @@ -11962,7 +12194,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 84, "type": "FULL" } ], @@ -12018,7 +12250,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -12126,7 +12358,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 87, "type": "FULL" } ], @@ -12186,7 +12418,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -12242,7 +12474,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -12298,7 +12530,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -12359,14 +12591,14 @@ "regionTag": "compute_v1beta_generated_Instances_AttachDisk_async", "title": "AcceleratorTypes attachDisk Sample", "origin": "API_DEFINITION", - "description": " Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance.", + "description": " Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, readAdding a persistent disk to your instance.", "canonical": true, "file": "instances.attach_disk.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 76, + "end": 88, "type": "FULL" } ], @@ -12419,14 +12651,14 @@ "regionTag": "compute_v1beta_generated_Instances_BulkInsert_async", "title": "AcceleratorTypes bulkInsert Sample", "origin": "API_DEFINITION", - "description": " Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.", + "description": " Creates multiple instances. Count specifies the number of instances to create. For more information, seeAbout bulk creation of VMs.", "canonical": true, "file": "instances.bulk_insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -12471,14 +12703,14 @@ "regionTag": "compute_v1beta_generated_Instances_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified Instance resource. For more information, see Deleting an instance.", + "description": " Deletes the specified Instance resource. For more information, seeDeleting an instance.", "canonical": true, "file": "instances.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -12534,7 +12766,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 87, "type": "FULL" } ], @@ -12594,7 +12826,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -12650,7 +12882,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -13018,7 +13250,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 85, "type": "FULL" } ], @@ -13170,7 +13402,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 95, "type": "FULL" } ], @@ -13230,7 +13462,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 150, "type": "FULL" } ], @@ -13291,14 +13523,14 @@ "regionTag": "compute_v1beta_generated_Instances_ListReferrers_async", "title": "AcceleratorTypes listReferrers Sample", "origin": "API_DEFINITION", - "description": " Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.", + "description": " Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, readViewing referrers to VM instances.", "canonical": true, "file": "instances.list_referrers.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 85, + "end": 151, "type": "FULL" } ], @@ -13366,7 +13598,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -13422,7 +13654,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -13474,7 +13706,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -13530,7 +13762,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -13579,14 +13811,14 @@ "regionTag": "compute_v1beta_generated_Instances_Reset_async", "title": "AcceleratorTypes reset Sample", "origin": "API_DEFINITION", - "description": " Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.", + "description": " Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, seeResetting an instance.", "canonical": true, "file": "instances.reset.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -13631,14 +13863,14 @@ "regionTag": "compute_v1beta_generated_Instances_Resume_async", "title": "AcceleratorTypes resume Sample", "origin": "API_DEFINITION", - "description": " Resumes an instance that was suspended using the instances().suspend method.", + "description": " Resumes an instance that was suspended using theinstances().suspend method.", "canonical": true, "file": "instances.resume.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -13742,7 +13974,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -13798,7 +14030,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 88, "type": "FULL" } ], @@ -13903,14 +14135,14 @@ "regionTag": "compute_v1beta_generated_Instances_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets labels on an instance. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "instances.set_labels.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -13966,7 +14198,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14022,7 +14254,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14078,7 +14310,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14127,14 +14359,14 @@ "regionTag": "compute_v1beta_generated_Instances_SetMinCpuPlatform_async", "title": "AcceleratorTypes setMinCpuPlatform Sample", "origin": "API_DEFINITION", - "description": " Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform.", + "description": " Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, readSpecifying a Minimum CPU Platform.", "canonical": true, "file": "instances.set_min_cpu_platform.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14190,7 +14422,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14239,14 +14471,14 @@ "regionTag": "compute_v1beta_generated_Instances_SetScheduling_async", "title": "AcceleratorTypes setScheduling Sample", "origin": "API_DEFINITION", - "description": " Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.", + "description": " Sets an instance's scheduling options. You can only call this method on astopped instance, that is, a VM instance that is in a `TERMINATED` state. SeeInstance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, seeSet VM host maintenance policy.", "canonical": true, "file": "instances.set_scheduling.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14295,14 +14527,14 @@ "regionTag": "compute_v1beta_generated_Instances_SetSecurityPolicy_async", "title": "AcceleratorTypes setSecurityPolicy Sample", "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview", + "description": " Sets the Google Cloud Armor security policy for the specified instance. For more information, seeGoogle Cloud Armor Overview", "canonical": true, "file": "instances.set_security_policy.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -14351,14 +14583,14 @@ "regionTag": "compute_v1beta_generated_Instances_SetServiceAccount_async", "title": "AcceleratorTypes setServiceAccount Sample", "origin": "API_DEFINITION", - "description": " Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.", + "description": " Sets the service account on the instance. For more information, readChanging the service account and access scopes for an instance.", "canonical": true, "file": "instances.set_service_account.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14414,7 +14646,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14470,7 +14702,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14526,7 +14758,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14582,7 +14814,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 82, "type": "FULL" } ], @@ -14631,14 +14863,14 @@ "regionTag": "compute_v1beta_generated_Instances_Start_async", "title": "AcceleratorTypes start Sample", "origin": "API_DEFINITION", - "description": " Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.", + "description": " Starts an instance that was stopped using theinstances().stop method. For more information, seeRestart an instance.", "canonical": true, "file": "instances.start.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -14683,14 +14915,14 @@ "regionTag": "compute_v1beta_generated_Instances_StartWithEncryptionKey_async", "title": "AcceleratorTypes startWithEncryptionKey Sample", "origin": "API_DEFINITION", - "description": " Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.", + "description": " Starts an instance that was stopped using theinstances().stop method. For more information, seeRestart an instance.", "canonical": true, "file": "instances.start_with_encryption_key.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -14739,14 +14971,14 @@ "regionTag": "compute_v1beta_generated_Instances_Stop_async", "title": "AcceleratorTypes stop Sample", "origin": "API_DEFINITION", - "description": " Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.", + "description": " Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, seeStopping an instance.", "canonical": true, "file": "instances.stop.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 75, + "end": 87, "type": "FULL" } ], @@ -14806,7 +15038,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 83, "type": "FULL" } ], @@ -14913,8 +15145,8 @@ "language": "JAVASCRIPT", "segments": [ { - "start": 46, - "end": 82, + "start": 53, + "end": 99, "type": "FULL" } ], @@ -14971,14 +15203,14 @@ "regionTag": "compute_v1beta_generated_Instances_UpdateAccessConfig_async", "title": "AcceleratorTypes updateAccessConfig Sample", "origin": "API_DEFINITION", - "description": " Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the specified access config from an instance's network interface with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "instances.update_access_config.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 77, + "end": 87, "type": "FULL" } ], @@ -15031,14 +15263,14 @@ "regionTag": "compute_v1beta_generated_Instances_UpdateDisplayDevice_async", "title": "AcceleratorTypes updateDisplayDevice Sample", "origin": "API_DEFINITION", - "description": " Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "instances.update_display_device.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -15094,7 +15326,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 87, "type": "FULL" } ], @@ -15147,14 +15379,14 @@ "regionTag": "compute_v1beta_generated_Instances_UpdateShieldedInstanceConfig_async", "title": "AcceleratorTypes updateShieldedInstanceConfig Sample", "origin": "API_DEFINITION", - "description": " Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "instances.update_shielded_instance_config.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -15203,14 +15435,14 @@ "regionTag": "compute_v1beta_generated_Instances_UpdateShieldedVmConfig_async", "title": "AcceleratorTypes updateShieldedVmConfig Sample", "origin": "API_DEFINITION", - "description": " Updates the Shielded VM config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the Shielded VM config for a VM instance. You can only use this method on a stopped VM instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "instances.update_shielded_vm_config.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -15310,7 +15542,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -15366,7 +15598,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -15434,7 +15666,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -15578,7 +15810,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -15626,7 +15858,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -15786,7 +16018,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -15847,14 +16079,14 @@ "regionTag": "compute_v1beta_generated_InstantSnapshots_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.", + "description": " Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, seeDeleting instantSnapshots.", "canonical": true, "file": "instant_snapshots.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -16006,7 +16238,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -16058,7 +16290,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -16174,7 +16406,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -16282,7 +16514,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 73, "type": "FULL" } ], @@ -16466,7 +16698,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 73, "type": "FULL" } ], @@ -16514,7 +16746,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -16567,14 +16799,14 @@ "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified InterconnectAttachmentGroup resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified InterconnectAttachmentGroup resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "interconnect_attachment_groups.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 71, + "end": 82, "type": "FULL" } ], @@ -16726,7 +16958,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -16794,7 +17026,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -16894,7 +17126,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -16950,7 +17182,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -17007,14 +17239,14 @@ "regionTag": "compute_v1beta_generated_InterconnectAttachments_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the specified interconnect attachment with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "interconnect_attachments.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -17070,7 +17302,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -17226,7 +17458,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 73, "type": "FULL" } ], @@ -17410,7 +17642,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 73, "type": "FULL" } ], @@ -17458,7 +17690,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -17511,14 +17743,14 @@ "regionTag": "compute_v1beta_generated_InterconnectGroups_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified InterconnectGroup resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified InterconnectGroup resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "interconnect_groups.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 71, + "end": 82, "type": "FULL" } ], @@ -17714,7 +17946,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -17767,7 +17999,7 @@ "regionTag": "compute_v1beta_generated_InterconnectRemoteLocations_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making a list() request.", + "description": " Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making alist() request.", "canonical": true, "file": "interconnect_remote_locations.get.js", "language": "JAVASCRIPT", @@ -17818,7 +18050,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -17878,7 +18110,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -18058,7 +18290,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -18106,7 +18338,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -18159,14 +18391,14 @@ "regionTag": "compute_v1beta_generated_Interconnects_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the specified Interconnect with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "interconnects.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -18307,7 +18539,7 @@ "regionTag": "compute_v1beta_generated_LicenseCodes_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "license_codes.get.js", "language": "JAVASCRIPT", @@ -18351,7 +18583,7 @@ "regionTag": "compute_v1beta_generated_LicenseCodes_TestIamPermissions_async", "title": "AcceleratorTypes testIamPermissions Sample", "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "license_codes.test_iam_permissions.js", "language": "JAVASCRIPT", @@ -18399,14 +18631,14 @@ "regionTag": "compute_v1beta_generated_Licenses_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "licenses.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -18447,7 +18679,7 @@ "regionTag": "compute_v1beta_generated_Licenses_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "licenses.get.js", "language": "JAVASCRIPT", @@ -18491,7 +18723,7 @@ "regionTag": "compute_v1beta_generated_Licenses_GetIamPolicy_async", "title": "AcceleratorTypes getIamPolicy Sample", "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "licenses.get_iam_policy.js", "language": "JAVASCRIPT", @@ -18539,14 +18771,14 @@ "regionTag": "compute_v1beta_generated_Licenses_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "licenses.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -18587,14 +18819,14 @@ "regionTag": "compute_v1beta_generated_Licenses_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud orwindows-cloud. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "licenses.list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -18647,7 +18879,7 @@ "regionTag": "compute_v1beta_generated_Licenses_SetIamPolicy_async", "title": "AcceleratorTypes setIamPolicy Sample", "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "licenses.set_iam_policy.js", "language": "JAVASCRIPT", @@ -18695,7 +18927,7 @@ "regionTag": "compute_v1beta_generated_Licenses_TestIamPermissions_async", "title": "AcceleratorTypes testIamPermissions Sample", "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "licenses.test_iam_permissions.js", "language": "JAVASCRIPT", @@ -18743,14 +18975,14 @@ "regionTag": "compute_v1beta_generated_Licenses_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Updates a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. ", + "description": " Updates a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", "canonical": true, "file": "licenses.update.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -18806,7 +19038,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -18946,7 +19178,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -18998,7 +19230,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -19099,7 +19331,7 @@ "regionTag": "compute_v1beta_generated_MachineImages_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on a machine image. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on a machine image. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "machine_images.set_labels.js", "language": "JAVASCRIPT", @@ -19202,7 +19434,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -19318,7 +19550,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -19382,7 +19614,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -19450,7 +19682,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -19602,7 +19834,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -19654,7 +19886,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -19711,14 +19943,14 @@ "regionTag": "compute_v1beta_generated_NetworkAttachments_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "network_attachments.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -19878,7 +20110,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -19946,7 +20178,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -20046,7 +20278,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -20102,7 +20334,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 89, "type": "FULL" } ], @@ -20166,7 +20398,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -20234,7 +20466,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 84, "type": "FULL" } ], @@ -20290,7 +20522,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 79, "type": "FULL" } ], @@ -20342,7 +20574,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 84, "type": "FULL" } ], @@ -20398,7 +20630,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -20446,7 +20678,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 79, "type": "FULL" } ], @@ -20498,7 +20730,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 146, "type": "FULL" } ], @@ -20562,7 +20794,7 @@ "segments": [ { "start": 25, - "end": 90, + "end": 157, "type": "FULL" } ], @@ -20686,7 +20918,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 83, "type": "FULL" } ], @@ -20742,7 +20974,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 87, "type": "FULL" } ], @@ -20802,7 +21034,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 87, "type": "FULL" } ], @@ -20855,14 +21087,14 @@ "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "network_firewall_policies.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -20930,7 +21162,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -20982,7 +21214,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -21266,7 +21498,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -21314,7 +21546,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -21374,7 +21606,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -21426,7 +21658,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -21482,7 +21714,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -21538,7 +21770,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -21590,7 +21822,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -21642,7 +21874,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -21834,7 +22066,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -21894,7 +22126,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -21946,7 +22178,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -22082,7 +22314,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -22130,7 +22362,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -22190,7 +22422,7 @@ "segments": [ { "start": 25, - "end": 93, + "end": 159, "type": "FULL" } ], @@ -22266,7 +22498,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -22318,7 +22550,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -22370,7 +22602,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -22422,7 +22654,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -22518,7 +22750,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -22570,7 +22802,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -22626,7 +22858,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -22694,7 +22926,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -22746,7 +22978,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -22902,7 +23134,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -22958,7 +23190,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -23022,7 +23254,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 150, "type": "FULL" } ], @@ -23090,7 +23322,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -23146,7 +23378,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -23254,7 +23486,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -23310,7 +23542,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -23418,7 +23650,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -23486,7 +23718,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -23638,7 +23870,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -23690,7 +23922,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -23858,7 +24090,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -23974,7 +24206,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -24031,14 +24263,14 @@ "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_AddAssociation_async", "title": "AcceleratorTypes addAssociation Sample", "origin": "API_DEFINITION", - "description": " Inserts an association for the specified security policy. This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.addAssociation instead if possible.", + "description": " Inserts an association for the specified security policy. This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.addAssociation instead if possible.", "canonical": true, "file": "organization_security_policies.add_association.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 66, + "end": 78, "type": "FULL" } ], @@ -24090,7 +24322,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -24138,7 +24370,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 71, "type": "FULL" } ], @@ -24186,7 +24418,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 67, "type": "FULL" } ], @@ -24351,14 +24583,14 @@ "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request. Use of this API to insert firewall policies is deprecated. Use firewallPolicies.insert instead.", + "description": " Creates a new policy in the specified organization using the data included in the request. Use of this API to insert firewall policies is deprecated. Use firewallPolicies.insert instead.", "canonical": true, "file": "organization_security_policies.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 61, + "end": 73, "type": "FULL" } ], @@ -24399,14 +24631,14 @@ "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " List all the policies that have been configured for the specified project. Use of this API to read firewall policies is deprecated. Use firewallPolicies.list instead.", + "description": " List all the policies that have been configured for the specified organization. Use of this API to read firewall policies is deprecated. Use firewallPolicies.list instead.", "canonical": true, "file": "organization_security_policies.list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 74, + "end": 139, "type": "FULL" } ], @@ -24466,7 +24698,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 53, "type": "FULL" } ], @@ -24506,7 +24738,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 137, "type": "FULL" } ], @@ -24566,7 +24798,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 71, "type": "FULL" } ], @@ -24614,7 +24846,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -24666,7 +24898,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 80, "type": "FULL" } ], @@ -24722,7 +24954,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 71, "type": "FULL" } ], @@ -24770,7 +25002,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 71, "type": "FULL" } ], @@ -24818,7 +25050,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -24886,7 +25118,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -24986,7 +25218,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -25038,7 +25270,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -25095,14 +25327,14 @@ "regionTag": "compute_v1beta_generated_PacketMirrorings_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified PacketMirroring resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "packet_mirrorings.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -25254,7 +25486,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -25314,7 +25546,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -25366,7 +25598,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 67, "type": "FULL" } ], @@ -25410,7 +25642,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -25458,7 +25690,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 67, "type": "FULL" } ], @@ -25502,7 +25734,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -25630,7 +25862,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -25690,7 +25922,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -25747,14 +25979,14 @@ "regionTag": "compute_v1beta_generated_Projects_MoveDisk_async", "title": "AcceleratorTypes moveDisk Sample", "origin": "API_DEFINITION", - "description": " Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a different region or zone, follow the steps in [Change the location of a disk](https://{$universe.dns_names.final_documentation_domain}/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). Projects that already use the moveDisk API can continue usage until September 29, 2026. Starting November 1, 2025, API responses will include a warning message in the response body about the upcoming deprecation. You can skip the message to continue using the service without interruption.", + "description": " Moves a persistent disk from one zone to another. *Note*: The moveDisk API will be deprecated on September 29, 2026. Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a different region or zone, follow the steps in [Change the location of a disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). Projects that already use the moveDisk API can continue usage until September 29, 2026. Starting November 1, 2025, API responses will include a warning message in the response body about the upcoming deprecation. You can skip the message to continue using the service without interruption.", "canonical": true, "file": "projects.move_disk.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -25795,14 +26027,14 @@ "regionTag": "compute_v1beta_generated_Projects_MoveInstance_async", "title": "AcceleratorTypes moveInstance Sample", "origin": "API_DEFINITION", - "description": " Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.", + "description": " Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.", "canonical": true, "file": "projects.move_instance.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -25850,7 +26082,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -25898,7 +26130,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -25946,7 +26178,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -25994,7 +26226,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -26035,14 +26267,14 @@ "regionTag": "compute_v1beta_generated_Projects_SetUsageExportBucket_async", "title": "AcceleratorTypes setUsageExportBucket Sample", "origin": "API_DEFINITION", - "description": " Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.", + "description": " Enables the usage export feature and sets theusage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.", "canonical": true, "file": "projects.set_usage_export_bucket.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -26090,7 +26322,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -26138,7 +26370,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -26230,7 +26462,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -26278,7 +26510,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -26331,14 +26563,14 @@ "regionTag": "compute_v1beta_generated_PublicAdvertisedPrefixes_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified Router resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "public_advertised_prefixes.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -26390,7 +26622,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -26438,7 +26670,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -26506,7 +26738,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -26558,7 +26790,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -26658,7 +26890,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -26710,7 +26942,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -26767,14 +26999,14 @@ "regionTag": "compute_v1beta_generated_PublicDelegatedPrefixes_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "public_delegated_prefixes.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -26830,7 +27062,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -26882,7 +27114,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -26982,7 +27214,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -27034,7 +27266,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -27091,14 +27323,14 @@ "regionTag": "compute_v1beta_generated_RegionAutoscalers_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates an autoscaler in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "region_autoscalers.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -27206,7 +27438,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -27252,29 +27484,33 @@ } }, { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Delete_async", + "regionTag": "compute_v1beta_generated_RegionBackendBuckets_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified regional BackendService resource.", + "description": " Deletes the specified regional BackendBucket resource.", "canonical": true, - "file": "region_backend_services.delete.js", + "file": "region_backend_buckets.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 84, "type": "FULL" } ], "clientMethod": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Delete", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Delete", "async": true, "parameters": [ { - "name": "backend_service", + "name": "backend_bucket", "type": "TYPE_STRING" }, + { + "name": "force_delete", + "type": "TYPE_BOOL" + }, { "name": "project", "type": "TYPE_STRING" @@ -27290,26 +27526,26 @@ ], "resultType": ".google.cloud.compute.v1beta.Operation", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" }, "method": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Delete", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Delete", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Get_async", + "regionTag": "compute_v1beta_generated_RegionBackendBuckets_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified regional BackendService resource.", + "description": " Returns the specified regional BackendBucket resource.", "canonical": true, - "file": "region_backend_services.get.js", + "file": "region_backend_buckets.get.js", "language": "JAVASCRIPT", "segments": [ { @@ -27320,11 +27556,11 @@ ], "clientMethod": { "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Get", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Get", "async": true, "parameters": [ { - "name": "backend_service", + "name": "backend_bucket", "type": "TYPE_STRING" }, { @@ -27336,28 +27572,28 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1beta.BackendService", + "resultType": ".google.cloud.compute.v1beta.BackendBucket", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" }, "method": { "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Get", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Get", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1beta_generated_RegionBackendServices_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", + "regionTag": "compute_v1beta_generated_RegionBackendBuckets_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this regional BackendService.", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", "canonical": true, - "file": "region_backend_services.get_health.js", + "file": "region_backend_buckets.get_iam_policy.js", "language": "JAVASCRIPT", "segments": [ { @@ -27367,13 +27603,13 @@ } ], "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetHealth", + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.GetIamPolicy", "async": true, "parameters": [ { - "name": "backend_service", - "type": "TYPE_STRING" + "name": "options_requested_policy_version", + "type": "TYPE_INT32" }, { "name": "project", @@ -27384,48 +27620,48 @@ "type": "TYPE_STRING" }, { - "name": "resource_group_reference_resource", - "type": ".google.cloud.compute.v1beta.ResourceGroupReference" + "name": "resource", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceGroupHealth", + "resultType": ".google.cloud.compute.v1beta.Policy", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" }, "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetHealth", + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.GetIamPolicy", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1beta_generated_RegionBackendServices_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", + "regionTag": "compute_v1beta_generated_RegionBackendBuckets_Insert_async", + "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "description": " Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.", "canonical": true, - "file": "region_backend_services.get_iam_policy.js", + "file": "region_backend_buckets.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetIamPolicy", + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Insert", "async": true, "parameters": [ { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" + "name": "backend_bucket_resource", + "type": ".google.cloud.compute.v1beta.BackendBucket" }, { "name": "project", @@ -27436,48 +27672,60 @@ "type": "TYPE_STRING" }, { - "name": "resource", + "name": "request_id", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1beta.Policy", + "resultType": ".google.cloud.compute.v1beta.Operation", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" }, "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetIamPolicy", + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Insert", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Insert_async", - "title": "AcceleratorTypes insert Sample", + "regionTag": "compute_v1beta_generated_RegionBackendBuckets_List_async", + "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.", + "description": " Retrieves the list of BackendBucket resources available to the specified project in the given region.", "canonical": true, - "file": "region_backend_services.insert.js", + "file": "region_backend_buckets.list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 145, "type": "FULL" } ], "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Insert", + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.List", "async": true, "parameters": [ { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1beta.BackendService" + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" }, { "name": "project", @@ -27488,43 +27736,43 @@ "type": "TYPE_STRING" }, { - "name": "request_id", - "type": "TYPE_STRING" + "name": "return_partial_success", + "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1beta.Operation", + "resultType": ".google.cloud.compute.v1beta.BackendBucketList", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" }, "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Insert", + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.List", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1beta_generated_RegionBackendServices_List_async", - "title": "AcceleratorTypes list Sample", + "regionTag": "compute_v1beta_generated_RegionBackendBuckets_ListUsable_async", + "title": "AcceleratorTypes listUsable Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of regional BackendService resources available to the specified project in the given region.", + "description": " Retrieves a list of all usable backend buckets in the specified project in the given region.", "canonical": true, - "file": "region_backend_services.list.js", + "file": "region_backend_buckets.list_usable.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 80, + "end": 146, "type": "FULL" } ], "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.List", + "shortName": "ListUsable", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.ListUsable", "async": true, "parameters": [ { @@ -27556,57 +27804,97 @@ "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceList", + "resultType": ".google.cloud.compute.v1beta.BackendBucketListUsable", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" }, "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.List", + "shortName": "ListUsable", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.ListUsable", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1beta_generated_RegionBackendServices_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", + "regionTag": "compute_v1beta_generated_RegionBackendBuckets_Patch_async", + "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Retrieves a list of all usable backend services in the specified project in the given region.", + "description": " Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, - "file": "region_backend_services.list_usable.js", + "file": "region_backend_buckets.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 80, + "end": 83, "type": "FULL" } ], "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.ListUsable", + "shortName": "Patch", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Patch", "async": true, "parameters": [ { - "name": "filter", + "name": "backend_bucket", "type": "TYPE_STRING" }, { - "name": "max_results", - "type": "TYPE_UINT32" + "name": "backend_bucket_resource", + "type": ".google.cloud.compute.v1beta.BackendBucket" }, { - "name": "order_by", + "name": "project", "type": "TYPE_STRING" }, { - "name": "page_token", + "name": "region", "type": "TYPE_STRING" }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" + }, + "method": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Patch", + "service": { + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendBuckets_SetIamPolicy_async", + "title": "AcceleratorTypes setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", + "canonical": true, + "file": "region_backend_buckets.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.SetIamPolicy", + "async": true, + "parameters": [ { "name": "project", "type": "TYPE_STRING" @@ -27616,52 +27904,492 @@ "type": "TYPE_STRING" }, { - "name": "return_partial_success", - "type": "TYPE_BOOL" + "name": "region_set_policy_request_resource", + "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" + }, + { + "name": "resource", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceListUsable", + "resultType": ".google.cloud.compute.v1beta.Policy", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" }, "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.ListUsable", + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.SetIamPolicy", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" } } } }, { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Patch_async", - "title": "AcceleratorTypes patch Sample", + "regionTag": "compute_v1beta_generated_RegionBackendBuckets_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", "origin": "API_DEFINITION", - "description": " Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Returns permissions that a caller has on the specified resource.", "canonical": true, - "file": "region_backend_services.patch.js", + "file": "region_backend_buckets.test_iam_permissions.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 68, "type": "FULL" } ], "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Patch", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.TestIamPermissions", "async": true, "parameters": [ { - "name": "backend_service", + "name": "project", "type": "TYPE_STRING" }, { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1beta.BackendService" + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", + "client": { + "shortName": "RegionBackendBucketsClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.TestIamPermissions", + "service": { + "shortName": "RegionBackendBuckets", + "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendServices_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified regional BackendService resource.", + "canonical": true, + "file": "region_backend_services.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Delete", + "async": true, + "parameters": [ + { + "name": "backend_service", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Delete", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendServices_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified regional BackendService resource.", + "canonical": true, + "file": "region_backend_services.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Get", + "async": true, + "parameters": [ + { + "name": "backend_service", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.BackendService", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Get", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendServices_GetHealth_async", + "title": "AcceleratorTypes getHealth Sample", + "origin": "API_DEFINITION", + "description": " Gets the most recent health check results for this regional BackendService.", + "canonical": true, + "file": "region_backend_services.get_health.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetHealth", + "async": true, + "parameters": [ + { + "name": "backend_service", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource_group_reference_resource", + "type": ".google.cloud.compute.v1beta.ResourceGroupReference" + } + ], + "resultType": ".google.cloud.compute.v1beta.BackendServiceGroupHealth", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + }, + "method": { + "shortName": "GetHealth", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetHealth", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendServices_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "canonical": true, + "file": "region_backend_services.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "options_requested_policy_version", + "type": "TYPE_INT32" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetIamPolicy", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendServices_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.", + "canonical": true, + "file": "region_backend_services.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Insert", + "async": true, + "parameters": [ + { + "name": "backend_service_resource", + "type": ".google.cloud.compute.v1beta.BackendService" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Insert", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendServices_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of regional BackendService resources available to the specified project in the given region.", + "canonical": true, + "file": "region_backend_services.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1beta.BackendServiceList", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.List", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendServices_ListUsable_async", + "title": "AcceleratorTypes listUsable Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of all usable backend services in the specified project in the given region.", + "canonical": true, + "file": "region_backend_services.list_usable.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 146, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUsable", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.ListUsable", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1beta.BackendServiceListUsable", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + }, + "method": { + "shortName": "ListUsable", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.ListUsable", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendServices_Patch_async", + "title": "AcceleratorTypes patch Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "canonical": true, + "file": "region_backend_services.patch.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Patch", + "async": true, + "parameters": [ + { + "name": "backend_service", + "type": "TYPE_STRING" + }, + { + "name": "backend_service_resource", + "type": ".google.cloud.compute.v1beta.BackendService" }, { "name": "project", @@ -27747,14 +28475,14 @@ "regionTag": "compute_v1beta_generated_RegionBackendServices_SetSecurityPolicy_async", "title": "AcceleratorTypes setSecurityPolicy Sample", "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview", + "description": " Sets the Google Cloud Armor security policy for the specified backend service. For more information, seeGoogle Cloud Armor Overview", "canonical": true, "file": "region_backend_services.set_security_policy.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -27838,46 +28566,390 @@ ], "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.TestIamPermissions", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionBackendServices_Update_async", + "title": "AcceleratorTypes update Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview.", + "canonical": true, + "file": "region_backend_services.update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Update", + "async": true, + "parameters": [ + { + "name": "backend_service", + "type": "TYPE_STRING" + }, + { + "name": "backend_service_resource", + "type": ".google.cloud.compute.v1beta.BackendService" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionBackendServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Update", + "service": { + "shortName": "RegionBackendServices", + "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionCommitments_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves an aggregated list of commitments by region. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", + "canonical": true, + "file": "region_commitments.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 155, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.AggregatedList", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "include_all_scopes", + "type": "TYPE_BOOL" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "service_project_number", + "type": "TYPE_INT64" + } + ], + "resultType": ".google.cloud.compute.v1beta.CommitmentAggregatedList", + "client": { + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.AggregatedList", + "service": { + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1beta.RegionCommitments" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionCommitments_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified commitment resource.", + "canonical": true, + "file": "region_commitments.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.Get", + "async": true, + "parameters": [ + { + "name": "commitment", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Commitment", + "client": { + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.Get", + "service": { + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1beta.RegionCommitments" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionCommitments_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates a commitment in the specified project using the data included in the request.", + "canonical": true, + "file": "region_commitments.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.Insert", + "async": true, + "parameters": [ + { + "name": "commitment_resource", + "type": ".google.cloud.compute.v1beta.Commitment" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.Insert", + "service": { + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1beta.RegionCommitments" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionCommitments_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of commitments contained within the specified region.", + "canonical": true, + "file": "region_commitments.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1beta.CommitmentList", + "client": { + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.List", + "service": { + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1beta.RegionCommitments" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionCommitments_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "region_commitments.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", + "client": { + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" }, "method": { "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.TestIamPermissions", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1beta.RegionCommitments" } } } }, { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Update_async", + "regionTag": "compute_v1beta_generated_RegionCommitments_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview .", + "description": " Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be updated: auto_renew and plan.", "canonical": true, - "file": "region_backend_services.update.js", + "file": "region_commitments.update.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 89, "type": "FULL" } ], "clientMethod": { "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Update", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.Update", "async": true, "parameters": [ { - "name": "backend_service", + "name": "commitment", "type": "TYPE_STRING" }, { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1beta.BackendService" + "name": "commitment_resource", + "type": ".google.cloud.compute.v1beta.Commitment" + }, + { + "name": "paths", + "type": "TYPE_STRING" }, { "name": "project", @@ -27890,41 +28962,101 @@ { "name": "request_id", "type": "TYPE_STRING" + }, + { + "name": "update_mask", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.compute.v1beta.Operation", "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" }, "method": { "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Update", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.Update", "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1beta.RegionCommitments" } } } }, { - "regionTag": "compute_v1beta_generated_RegionCommitments_AggregatedList_async", + "regionTag": "compute_v1beta_generated_RegionCommitments_UpdateReservations_async", + "title": "AcceleratorTypes updateReservations Sample", + "origin": "API_DEFINITION", + "description": " Transfers GPUs or Local SSD disks between reservations that are attached to the same commitment.", + "canonical": true, + "file": "region_commitments.update_reservations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateReservations", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.UpdateReservations", + "async": true, + "parameters": [ + { + "name": "commitment", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_commitments_update_reservations_request_resource", + "type": ".google.cloud.compute.v1beta.RegionCommitmentsUpdateReservationsRequest" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionCommitmentsClient", + "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + }, + "method": { + "shortName": "UpdateReservations", + "fullName": "google.cloud.compute.v1beta.RegionCommitments.UpdateReservations", + "service": { + "shortName": "RegionCommitments", + "fullName": "google.cloud.compute.v1beta.RegionCommitments" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves the list of all CompositeHealthCheck resources (all regional) available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, - "file": "region_commitments.aggregated_list.js", + "file": "region_composite_health_checks.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], "clientMethod": { "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.AggregatedList", "async": true, "parameters": [ { @@ -27960,43 +29092,43 @@ "type": "TYPE_INT64" } ], - "resultType": ".google.cloud.compute.v1beta.CommitmentAggregatedList", + "resultType": ".google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" }, "method": { "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.AggregatedList", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1beta_generated_RegionCommitments_Get_async", - "title": "AcceleratorTypes get Sample", + "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_Delete_async", + "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Returns the specified commitment resource.", + "description": " Deletes the specified CompositeHealthCheck in the given region", "canonical": true, - "file": "region_commitments.get.js", + "file": "region_composite_health_checks.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 77, "type": "FULL" } ], "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Get", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Delete", "async": true, "parameters": [ { - "name": "commitment", + "name": "composite_health_check", "type": "TYPE_STRING" }, { @@ -28006,46 +29138,50 @@ { "name": "region", "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1beta.Commitment", + "resultType": ".google.cloud.compute.v1beta.Operation", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Get", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Delete", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1beta_generated_RegionCommitments_Insert_async", - "title": "AcceleratorTypes insert Sample", + "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_Get_async", + "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Creates a commitment in the specified project using the data included in the request.", + "description": " Returns the specified CompositeHealthCheck resource in the given region.", "canonical": true, - "file": "region_commitments.insert.js", + "file": "region_composite_health_checks.get.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 63, "type": "FULL" } ], "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Insert", + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Get", "async": true, "parameters": [ { - "name": "commitment_resource", - "type": ".google.cloud.compute.v1beta.Commitment" + "name": "composite_health_check", + "type": "TYPE_STRING" }, { "name": "project", @@ -28054,62 +29190,46 @@ { "name": "region", "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1beta.Operation", + "resultType": ".google.cloud.compute.v1beta.CompositeHealthCheck", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Insert", + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Get", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1beta_generated_RegionCommitments_List_async", - "title": "AcceleratorTypes list Sample", + "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_Insert_async", + "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Retrieves a list of commitments contained within the specified region.", + "description": " Create a CompositeHealthCheck in the specified project in the given region using the parameters that are included in the request.", "canonical": true, - "file": "region_commitments.list.js", + "file": "region_composite_health_checks.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 80, + "end": 77, "type": "FULL" } ], "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.List", + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Insert", "async": true, "parameters": [ { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" + "name": "composite_health_check_resource", + "type": ".google.cloud.compute.v1beta.CompositeHealthCheck" }, { "name": "project", @@ -28120,108 +29240,116 @@ "type": "TYPE_STRING" }, { - "name": "return_partial_success", - "type": "TYPE_BOOL" + "name": "request_id", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1beta.CommitmentList", + "resultType": ".google.cloud.compute.v1beta.Operation", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.List", + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Insert", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1beta_generated_RegionCommitments_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", + "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_List_async", + "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", + "description": " Lists the CompositeHealthChecks for a project in the given region.", "canonical": true, - "file": "region_commitments.test_iam_permissions.js", + "file": "region_composite_health_checks.list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 68, + "end": 145, "type": "FULL" } ], "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.TestIamPermissions", + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.List", "async": true, "parameters": [ { - "name": "project", + "name": "filter", "type": "TYPE_STRING" }, { - "name": "region", + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", "type": "TYPE_STRING" }, { - "name": "resource", + "name": "page_token", "type": "TYPE_STRING" }, { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", + "resultType": ".google.cloud.compute.v1beta.CompositeHealthCheckList", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.TestIamPermissions", + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.List", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1beta_generated_RegionCommitments_Update_async", - "title": "AcceleratorTypes update Sample", + "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_Patch_async", + "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be updated: auto_renew and plan.", + "description": " Updates the specified regional CompositeHealthCheck resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, - "file": "region_commitments.update.js", + "file": "region_composite_health_checks.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 79, + "end": 83, "type": "FULL" } ], "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Update", + "shortName": "Patch", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Patch", "async": true, "parameters": [ { - "name": "commitment", + "name": "composite_health_check", "type": "TYPE_STRING" }, { - "name": "commitment_resource", - "type": ".google.cloud.compute.v1beta.Commitment" - }, - { - "name": "paths", - "type": "TYPE_STRING" + "name": "composite_health_check_resource", + "type": ".google.cloud.compute.v1beta.CompositeHealthCheck" }, { "name": "project", @@ -28234,51 +29362,43 @@ { "name": "request_id", "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" } ], "resultType": ".google.cloud.compute.v1beta.Operation", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Update", + "shortName": "Patch", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Patch", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1beta_generated_RegionCommitments_UpdateReservations_async", - "title": "AcceleratorTypes updateReservations Sample", + "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", "origin": "API_DEFINITION", - "description": " Transfers GPUs or Local SSD disks between reservations that are attached to the same commitment.", + "description": " Returns permissions that a caller has on the specified resource.", "canonical": true, - "file": "region_commitments.update_reservations.js", + "file": "region_composite_health_checks.test_iam_permissions.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 68, "type": "FULL" } ], "clientMethod": { - "shortName": "UpdateReservations", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.UpdateReservations", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.TestIamPermissions", "async": true, "parameters": [ - { - "name": "commitment", - "type": "TYPE_STRING" - }, { "name": "project", "type": "TYPE_STRING" @@ -28288,25 +29408,25 @@ "type": "TYPE_STRING" }, { - "name": "region_commitments_update_reservations_request_resource", - "type": ".google.cloud.compute.v1beta.RegionCommitmentsUpdateReservationsRequest" + "name": "resource", + "type": "TYPE_STRING" }, { - "name": "request_id", - "type": "TYPE_STRING" + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" } ], - "resultType": ".google.cloud.compute.v1beta.Operation", + "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "UpdateReservations", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.UpdateReservations", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.TestIamPermissions", "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" } } } @@ -28322,7 +29442,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -28378,7 +29498,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -28430,7 +29550,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -28479,14 +29599,14 @@ "regionTag": "compute_v1beta_generated_RegionDisks_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.", + "description": " Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete anysnapshots previously made from the disk. You must separatelydelete snapshots.", "canonical": true, "file": "region_disks.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -28638,7 +29758,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -28694,7 +29814,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -28758,7 +29878,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -28814,7 +29934,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -28922,7 +30042,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -28978,7 +30098,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -29034,7 +30154,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -29086,7 +30206,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -29190,7 +30310,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 89, "type": "FULL" } ], @@ -29298,7 +30418,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -29402,7 +30522,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -29455,6 +30575,398 @@ } } }, + { + "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", + "canonical": true, + "file": "region_health_aggregation_policies.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 155, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.AggregatedList", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "include_all_scopes", + "type": "TYPE_BOOL" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "service_project_number", + "type": "TYPE_INT64" + } + ], + "resultType": ".google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.AggregatedList", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified HealthAggregationPolicy in the given region.", + "canonical": true, + "file": "region_health_aggregation_policies.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Delete", + "async": true, + "parameters": [ + { + "name": "health_aggregation_policy", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Delete", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified HealthAggregationPolicy resource in the given region.", + "canonical": true, + "file": "region_health_aggregation_policies.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Get", + "async": true, + "parameters": [ + { + "name": "health_aggregation_policy", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.HealthAggregationPolicy", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Get", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.", + "canonical": true, + "file": "region_health_aggregation_policies.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Insert", + "async": true, + "parameters": [ + { + "name": "health_aggregation_policy_resource", + "type": ".google.cloud.compute.v1beta.HealthAggregationPolicy" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Insert", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Lists the HealthAggregationPolicies for a project in the given region.", + "canonical": true, + "file": "region_health_aggregation_policies.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1beta.HealthAggregationPolicyList", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.List", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_Patch_async", + "title": "AcceleratorTypes patch Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", + "canonical": true, + "file": "region_health_aggregation_policies.patch.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 83, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Patch", + "async": true, + "parameters": [ + { + "name": "health_aggregation_policy", + "type": "TYPE_STRING" + }, + { + "name": "health_aggregation_policy_resource", + "type": ".google.cloud.compute.v1beta.HealthAggregationPolicy" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Patch", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "region_health_aggregation_policies.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.TestIamPermissions", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" + } + } + } + }, { "regionTag": "compute_v1beta_generated_RegionHealthChecks_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -29466,7 +30978,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -29566,7 +31078,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -29618,7 +31130,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -29675,14 +31187,14 @@ "regionTag": "compute_v1beta_generated_RegionHealthChecks_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "region_health_checks.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -29790,7 +31302,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -29846,7 +31358,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -29898,7 +31410,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -29946,7 +31458,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -29998,7 +31510,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -30055,14 +31567,14 @@ "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified regional HealthCheckService resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the specified regional HealthCheckService resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "region_health_check_services.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -30170,7 +31682,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -30238,7 +31750,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -30338,7 +31850,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -30390,7 +31902,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -30447,14 +31959,14 @@ "regionTag": "compute_v1beta_generated_RegionHealthSources_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified regional HealthSource resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the specified regional HealthSource resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "region_health_sources.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -30562,7 +32074,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 85, "type": "FULL" } ], @@ -30618,7 +32130,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 85, "type": "FULL" } ], @@ -30674,7 +32186,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -30726,7 +32238,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 84, "type": "FULL" } ], @@ -30782,7 +32294,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 151, "type": "FULL" } ], @@ -30843,14 +32355,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_AbandonInstances_async", "title": "AcceleratorTypes abandonInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "region_instance_group_managers.abandon_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -30951,14 +32463,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_CreateInstances_async", "title": "AcceleratorTypes createInstances Sample", "origin": "API_DEFINITION", - "description": " Creates instances with per-instance configurations in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.", + "description": " Creates instances with per-instance configurations in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances method.", "canonical": true, "file": "region_instance_group_managers.create_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 84, "type": "FULL" } ], @@ -31014,7 +32526,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -31059,14 +32571,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_DeleteInstances_async", "title": "AcceleratorTypes deleteInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of thedeleting action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "region_instance_group_managers.delete_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -31215,14 +32727,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A regional managed instance group can contain up to 2000 instances.", + "description": " Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with thelistmanagedinstances method. A regional managed instance group can contain up to 2000 instances.", "canonical": true, "file": "region_instance_group_managers.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -31274,7 +32786,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -31331,14 +32843,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ListErrors_async", "title": "AcceleratorTypes listErrors Sample", "origin": "API_DEFINITION", - "description": " Lists all errors thrown by actions on instances for a given regional managed instance group. The filter and orderBy query parameters are not supported.", + "description": " Lists all errors thrown by actions on instances for a given regional managed instance group. The filter andorderBy query parameters are not supported.", "canonical": true, "file": "region_instance_group_managers.list_errors.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 85, + "end": 154, "type": "FULL" } ], @@ -31399,14 +32911,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ListManagedInstances_async", "title": "AcceleratorTypes listManagedInstances Sample", "origin": "API_DEFINITION", - "description": " Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", + "description": " Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", "canonical": true, "file": "region_instance_group_managers.list_managed_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 85, + "end": 150, "type": "FULL" } ], @@ -31474,7 +32986,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 150, "type": "FULL" } ], @@ -31535,14 +33047,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.", + "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", "canonical": true, "file": "region_instance_group_managers.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -31598,7 +33110,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -31647,14 +33159,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_RecreateInstances_async", "title": "AcceleratorTypes recreateInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "region_instance_group_managers.recreate_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -31703,14 +33215,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Resize_async", "title": "AcceleratorTypes resize Sample", "origin": "API_DEFINITION", - "description": " Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", + "description": " Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if theresize request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or deleting actions with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", "canonical": true, "file": "region_instance_group_managers.resize.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -31759,14 +33271,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ResizeAdvanced_async", "title": "AcceleratorTypes resizeAdvanced Sample", "origin": "API_DEFINITION", - "description": " Resizes the regional managed instance group with advanced configuration options like disabling creation retries. This is an extended version of the resize method. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the get or listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", + "description": " Resizes the regional managed instance group with advanced configuration options like disabling creation retries. This is an extended version of theresize method. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if theresize request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or deleting actions with the get orlistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", "canonical": true, "file": "region_instance_group_managers.resize_advanced.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 84, "type": "FULL" } ], @@ -31815,14 +33327,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ResumeInstances_async", "title": "AcceleratorTypes resumeInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group to be resumed. This method increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "region_instance_group_managers.resume_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -31871,14 +33383,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_SetAutoHealingPolicies_async", "title": "AcceleratorTypes setAutoHealingPolicies Sample", "origin": "API_DEFINITION", - "description": " Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.patch instead.", + "description": " Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. UseregionInstanceGroupManagers.patch instead.", "canonical": true, "file": "region_instance_group_managers.set_auto_healing_policies.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -31934,7 +33446,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -31990,7 +33502,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -32039,14 +33551,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_StartInstances_async", "title": "AcceleratorTypes startInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group to be started. This method increases thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "region_instance_group_managers.start_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -32095,14 +33607,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_StopInstances_async", "title": "AcceleratorTypes stopInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "region_instance_group_managers.stop_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -32151,14 +33663,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_SuspendInstances_async", "title": "AcceleratorTypes suspendInstances Sample", "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request.", + "description": " Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request.", "canonical": true, "file": "region_instance_group_managers.suspend_instances.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -32259,14 +33771,14 @@ "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with the listmanagedinstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.", + "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with thelistmanagedinstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", "canonical": true, "file": "region_instance_group_managers.update.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -32322,7 +33834,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -32426,7 +33938,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -32490,7 +34002,7 @@ "segments": [ { "start": 25, - "end": 90, + "end": 156, "type": "FULL" } ], @@ -32562,7 +34074,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -32670,7 +34182,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -32722,7 +34234,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -32826,7 +34338,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -32878,7 +34390,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 150, "type": "FULL" } ], @@ -32939,14 +34451,14 @@ "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.", + "description": " Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, seeDeleting instantSnapshots.", "canonical": true, "file": "region_instant_snapshots.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -33098,7 +34610,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -33150,7 +34662,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -33266,7 +34778,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -33374,7 +34886,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -33474,7 +34986,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -33526,7 +35038,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -33590,7 +35102,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 85, "type": "FULL" } ], @@ -33646,7 +35158,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 79, "type": "FULL" } ], @@ -33698,7 +35210,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 86, "type": "FULL" } ], @@ -33754,7 +35266,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -33802,7 +35314,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 79, "type": "FULL" } ], @@ -33854,7 +35366,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 146, "type": "FULL" } ], @@ -33918,7 +35430,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 152, "type": "FULL" } ], @@ -33986,7 +35498,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 94, "type": "FULL" } ], @@ -34050,7 +35562,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 92, "type": "FULL" } ], @@ -34114,7 +35626,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -34170,7 +35682,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -34474,7 +35986,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -34526,7 +36038,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -34590,7 +36102,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -34646,7 +36158,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -34702,7 +36214,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 86, "type": "FULL" } ], @@ -34762,7 +36274,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -34818,7 +36330,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -34978,7 +36490,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -35034,7 +36546,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -35090,7 +36602,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -35158,7 +36670,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -35362,7 +36874,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -35414,7 +36926,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -35478,7 +36990,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -35534,7 +37046,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 87, "type": "FULL" } ], @@ -35594,7 +37106,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -35650,7 +37162,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -35706,7 +37218,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -35806,7 +37318,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -35858,7 +37370,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -35974,7 +37486,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -36022,7 +37534,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -36070,7 +37582,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -36127,14 +37639,14 @@ "regionTag": "compute_v1beta_generated_RegionOperations_Wait_async", "title": "AcceleratorTypes wait Sample", "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. ", + "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", "canonical": true, "file": "region_operations.wait.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -36226,7 +37738,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -36342,7 +37854,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -36494,7 +38006,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -36550,7 +38062,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -36614,7 +38126,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 86, "type": "FULL" } ], @@ -36790,7 +38302,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -36839,14 +38351,14 @@ "regionTag": "compute_v1beta_generated_RegionSnapshots_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.", + "description": " Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, seeDeleting snapshots.", "canonical": true, "file": "region_snapshots.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -36998,7 +38510,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -37050,7 +38562,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -37166,7 +38678,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -37318,7 +38830,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -37374,7 +38886,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -37474,7 +38986,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -37526,7 +39038,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -37642,7 +39154,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -37694,7 +39206,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -37742,7 +39254,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -37794,7 +39306,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -37858,7 +39370,7 @@ "segments": [ { "start": 25, - "end": 78, + "end": 143, "type": "FULL" } ], @@ -37922,7 +39434,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -38030,7 +39542,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -38130,7 +39642,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -38182,7 +39694,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -38246,7 +39758,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -38354,7 +39866,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -38454,7 +39966,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -38506,7 +40018,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -38563,14 +40075,14 @@ "regionTag": "compute_v1beta_generated_RegionTargetHttpsProxies_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "region_target_https_proxies.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -38626,7 +40138,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -38682,7 +40194,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -38790,7 +40302,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -38890,7 +40402,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -38942,7 +40454,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -39058,7 +40570,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 68, "type": "FULL" } ], @@ -39158,7 +40670,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 68, "type": "FULL" } ], @@ -39210,7 +40722,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 73, "type": "FULL" } ], @@ -39266,7 +40778,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -39323,14 +40835,14 @@ "regionTag": "compute_v1beta_generated_RegionUrlMaps_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified UrlMap resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "region_url_maps.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 73, "type": "FULL" } ], @@ -39438,7 +40950,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 73, "type": "FULL" } ], @@ -39546,7 +41058,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -39610,7 +41122,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 75, "type": "FULL" } ], @@ -39655,6 +41167,62 @@ } } }, + { + "regionTag": "compute_v1beta_generated_ReservationBlocks_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "canonical": true, + "file": "reservation_blocks.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.ReservationBlocks.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "options_requested_policy_version", + "type": "TYPE_INT32" + }, + { + "name": "parent_resource", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "ReservationBlocksClient", + "fullName": "google.cloud.compute.v1beta.ReservationBlocksClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.ReservationBlocks.GetIamPolicy", + "service": { + "shortName": "ReservationBlocks", + "fullName": "google.cloud.compute.v1beta.ReservationBlocks" + } + } + } + }, { "regionTag": "compute_v1beta_generated_ReservationBlocks_List_async", "title": "AcceleratorTypes list Sample", @@ -39666,7 +41234,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 151, "type": "FULL" } ], @@ -39734,7 +41302,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 89, "type": "FULL" } ], @@ -39783,18 +41351,130 @@ } } }, + { + "regionTag": "compute_v1beta_generated_ReservationBlocks_SetIamPolicy_async", + "title": "AcceleratorTypes setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", + "canonical": true, + "file": "reservation_blocks.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.ReservationBlocks.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "parent_resource", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "zone_set_nested_policy_request_resource", + "type": ".google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "ReservationBlocksClient", + "fullName": "google.cloud.compute.v1beta.ReservationBlocksClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.ReservationBlocks.SetIamPolicy", + "service": { + "shortName": "ReservationBlocks", + "fullName": "google.cloud.compute.v1beta.ReservationBlocks" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_ReservationBlocks_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "reservation_blocks.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.ReservationBlocks.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "parent_resource", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", + "client": { + "shortName": "ReservationBlocksClient", + "fullName": "google.cloud.compute.v1beta.ReservationBlocksClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.ReservationBlocks.TestIamPermissions", + "service": { + "shortName": "ReservationBlocks", + "fullName": "google.cloud.compute.v1beta.ReservationBlocks" + } + } + } + }, { "regionTag": "compute_v1beta_generated_Reservations_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "description": " Retrieves an aggregated list of reservations. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, "file": "reservations.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -39862,7 +41542,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -40007,14 +41687,14 @@ "regionTag": "compute_v1beta_generated_Reservations_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a new reservation. For more information, read Reserving zonal resources.", + "description": " Creates a new reservation. For more information, readReserving zonal resources.", "canonical": true, "file": "reservations.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -40066,7 +41746,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -40130,7 +41810,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -40179,14 +41859,14 @@ "regionTag": "compute_v1beta_generated_Reservations_Resize_async", "title": "AcceleratorTypes resize Sample", "origin": "API_DEFINITION", - "description": " Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations.", + "description": " Resizes the reservation (applicable to standalone reservations only). For more information, readModifying reservations.", "canonical": true, "file": "reservations.resize.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -40346,7 +42026,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 89, "type": "FULL" } ], @@ -40410,7 +42090,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 75, "type": "FULL" } ], @@ -40431,6 +42111,10 @@ "name": "reservation_sub_block", "type": "TYPE_STRING" }, + { + "name": "view", + "type": "TYPE_STRING" + }, { "name": "zone", "type": "TYPE_STRING" @@ -40451,6 +42135,62 @@ } } }, + { + "regionTag": "compute_v1beta_generated_ReservationSubBlocks_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "canonical": true, + "file": "reservation_sub_blocks.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "options_requested_policy_version", + "type": "TYPE_INT32" + }, + { + "name": "parent_resource", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "ReservationSubBlocksClient", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.GetIamPolicy", + "service": { + "shortName": "ReservationSubBlocks", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" + } + } + } + }, { "regionTag": "compute_v1beta_generated_ReservationSubBlocks_List_async", "title": "AcceleratorTypes list Sample", @@ -40462,7 +42202,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 151, "type": "FULL" } ], @@ -40530,7 +42270,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 84, "type": "FULL" } ], @@ -40586,7 +42326,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 89, "type": "FULL" } ], @@ -40635,6 +42375,118 @@ } } }, + { + "regionTag": "compute_v1beta_generated_ReservationSubBlocks_SetIamPolicy_async", + "title": "AcceleratorTypes setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", + "canonical": true, + "file": "reservation_sub_blocks.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "parent_resource", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "zone_set_nested_policy_request_resource", + "type": ".google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest" + } + ], + "resultType": ".google.cloud.compute.v1beta.Policy", + "client": { + "shortName": "ReservationSubBlocksClient", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.SetIamPolicy", + "service": { + "shortName": "ReservationSubBlocks", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_ReservationSubBlocks_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "reservation_sub_blocks.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "parent_resource", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", + "client": { + "shortName": "ReservationSubBlocksClient", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.TestIamPermissions", + "service": { + "shortName": "ReservationSubBlocks", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" + } + } + } + }, { "regionTag": "compute_v1beta_generated_ResourcePolicies_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", @@ -40646,7 +42498,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -40714,7 +42566,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -40866,7 +42718,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -40918,7 +42770,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -40982,7 +42834,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 86, "type": "FULL" } ], @@ -41146,7 +42998,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -41214,7 +43066,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -41266,7 +43118,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -41370,7 +43222,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -41422,7 +43274,7 @@ "segments": [ { "start": 25, - "end": 89, + "end": 157, "type": "FULL" } ], @@ -41494,7 +43346,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 68, "type": "FULL" } ], @@ -41594,7 +43446,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -41646,7 +43498,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -41710,7 +43562,7 @@ "segments": [ { "start": 25, - "end": 107, + "end": 176, "type": "FULL" } ], @@ -41798,7 +43650,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 151, "type": "FULL" } ], @@ -41859,14 +43711,14 @@ "regionTag": "compute_v1beta_generated_Routers_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified Router resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "routers.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -41922,7 +43774,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -41971,7 +43823,7 @@ "regionTag": "compute_v1beta_generated_Routers_Preview_async", "title": "AcceleratorTypes preview Sample", "origin": "API_DEFINITION", - "description": " Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.", + "description": " Preview fields auto-generated during router create andupdate operations. Calling this method does NOT create or update the router.", "canonical": true, "file": "routers.preview.js", "language": "JAVASCRIPT", @@ -42075,14 +43927,14 @@ "regionTag": "compute_v1beta_generated_Routers_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.", + "description": " Updates the specified Router resource with the data included in the request. This method conforms toPUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.", "canonical": true, "file": "routers.update.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -42138,7 +43990,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -42194,7 +44046,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -42286,7 +44138,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -42334,7 +44186,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -42494,7 +44346,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -42562,7 +44414,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -42702,7 +44554,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -42754,7 +44606,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -42814,7 +44666,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 138, "type": "FULL" } ], @@ -42874,7 +44726,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 81, "type": "FULL" } ], @@ -43134,7 +44986,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -43202,7 +45054,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -43358,7 +45210,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -43410,7 +45262,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -43467,14 +45319,14 @@ "regionTag": "compute_v1beta_generated_ServiceAttachments_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "service_attachments.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -43634,7 +45486,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -43695,14 +45547,14 @@ "regionTag": "compute_v1beta_generated_Snapshots_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.", + "description": " Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, seeDeleting snapshots.", "canonical": true, "file": "snapshots.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -43842,7 +45694,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -43890,7 +45742,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -43991,7 +45843,7 @@ "regionTag": "compute_v1beta_generated_Snapshots_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "snapshots.set_labels.js", "language": "JAVASCRIPT", @@ -44134,7 +45986,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 76, "type": "FULL" } ], @@ -44186,7 +46038,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -44254,7 +46106,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -44346,7 +46198,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -44394,7 +46246,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -44502,7 +46354,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -44570,7 +46422,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 73, "type": "FULL" } ], @@ -44618,7 +46470,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -44662,7 +46514,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -44710,7 +46562,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -44770,7 +46622,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 138, "type": "FULL" } ], @@ -44830,7 +46682,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -44930,7 +46782,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -44998,7 +46850,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -45150,7 +47002,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -45202,7 +47054,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -45266,7 +47118,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 150, "type": "FULL" } ], @@ -45438,7 +47290,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 86, "type": "FULL" } ], @@ -45498,7 +47350,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -45538,186 +47390,190 @@ { "name": "service_project_number", "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePoolTypeAggregatedList", - "client": { - "shortName": "StoragePoolTypesClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.AggregatedList", - "service": { - "shortName": "StoragePoolTypes", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePoolTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified storage pool type.", - "canonical": true, - "file": "storage_pool_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool_type", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePoolType", - "client": { - "shortName": "StoragePoolTypesClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.Get", - "service": { - "shortName": "StoragePoolTypes", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePoolTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of storage pool types available to the specified project.", - "canonical": true, - "file": "storage_pool_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePoolTypeList", - "client": { - "shortName": "StoragePoolTypesClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.List", - "service": { - "shortName": "StoragePoolTypes", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "subnetworks.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Subnetworks.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.StoragePoolTypeAggregatedList", + "client": { + "shortName": "StoragePoolTypesClient", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypesClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.AggregatedList", + "service": { + "shortName": "StoragePoolTypes", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypes" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_StoragePoolTypes_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified storage pool type.", + "canonical": true, + "file": "storage_pool_types.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.Get", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "storage_pool_type", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.StoragePoolType", + "client": { + "shortName": "StoragePoolTypesClient", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.Get", + "service": { + "shortName": "StoragePoolTypes", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypes" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_StoragePoolTypes_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of storage pool types available to the specified project.", + "canonical": true, + "file": "storage_pool_types.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.StoragePoolTypeList", + "client": { + "shortName": "StoragePoolTypesClient", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.List", + "service": { + "shortName": "StoragePoolTypes", + "fullName": "google.cloud.compute.v1beta.StoragePoolTypes" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_Subnetworks_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", + "canonical": true, + "file": "subnetworks.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 163, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.Subnetworks.AggregatedList", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "include_all_scopes", + "type": "TYPE_BOOL" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "service_project_number", + "type": "TYPE_INT64" }, { - "name": "project", + "name": "views", "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" } ], "resultType": ".google.cloud.compute.v1beta.SubnetworkAggregatedList", @@ -45746,7 +47602,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -45798,7 +47654,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -45854,7 +47710,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -45958,7 +47814,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -46010,7 +47866,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 153, "type": "FULL" } ], @@ -46078,7 +47934,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 146, "type": "FULL" } ], @@ -46142,7 +47998,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 94, "type": "FULL" } ], @@ -46254,7 +48110,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -46362,7 +48218,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -46454,7 +48310,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -46502,7 +48358,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -46555,14 +48411,14 @@ "regionTag": "compute_v1beta_generated_TargetGrpcProxies_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "target_grpc_proxies.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -46662,7 +48518,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -46730,7 +48586,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -46822,7 +48678,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -46870,7 +48726,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -46923,14 +48779,14 @@ "regionTag": "compute_v1beta_generated_TargetHttpProxies_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "target_http_proxies.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -46982,7 +48838,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -47082,7 +48938,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -47150,7 +49006,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -47242,7 +49098,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -47290,7 +49146,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -47343,14 +49199,14 @@ "regionTag": "compute_v1beta_generated_TargetHttpsProxies_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "target_https_proxies.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -47402,7 +49258,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -47454,7 +49310,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -47506,7 +49362,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -47558,7 +49414,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -47610,7 +49466,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -47710,7 +49566,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -47778,7 +49634,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -47878,7 +49734,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -47930,7 +49786,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -47987,14 +49843,14 @@ "regionTag": "compute_v1beta_generated_TargetInstances_SetSecurityPolicy_async", "title": "AcceleratorTypes setSecurityPolicy Sample", "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview", + "description": " Sets the Google Cloud Armor security policy for the specified target instance. For more information, seeGoogle Cloud Armor Overview", "canonical": true, "file": "target_instances.set_security_policy.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -48102,7 +49958,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -48158,7 +50014,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -48214,7 +50070,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -48282,7 +50138,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -48434,7 +50290,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -48486,7 +50342,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -48550,7 +50406,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -48606,7 +50462,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -48662,7 +50518,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 86, "type": "FULL" } ], @@ -48715,14 +50571,14 @@ "regionTag": "compute_v1beta_generated_TargetPools_SetSecurityPolicy_async", "title": "AcceleratorTypes setSecurityPolicy Sample", "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified target pool. For more information, see Google Cloud Armor Overview", + "description": " Sets the Google Cloud Armor security policy for the specified target pool. For more information, seeGoogle Cloud Armor Overview", "canonical": true, "file": "target_pools.set_security_policy.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 83, "type": "FULL" } ], @@ -48830,7 +50686,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -48922,7 +50778,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -48970,7 +50826,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -49030,7 +50886,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -49082,7 +50938,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -49134,7 +50990,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -49186,7 +51042,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -49238,7 +51094,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -49338,7 +51194,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -49406,7 +51262,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -49498,7 +51354,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -49546,7 +51402,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -49606,7 +51462,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 78, "type": "FULL" } ], @@ -49658,7 +51514,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -49758,7 +51614,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -49826,7 +51682,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -49926,7 +51782,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -49978,7 +51834,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -50035,14 +51891,14 @@ "regionTag": "compute_v1beta_generated_TargetVpnGateways_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "target_vpn_gateways.set_labels.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -50150,7 +52006,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -50218,7 +52074,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -50310,7 +52166,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 72, "type": "FULL" } ], @@ -50358,7 +52214,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -50410,7 +52266,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -50463,14 +52319,14 @@ "regionTag": "compute_v1beta_generated_UrlMaps_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Patches the specified UrlMap resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, "file": "url_maps.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -50570,7 +52426,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -50670,7 +52526,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -50738,7 +52594,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -50886,7 +52742,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -50938,7 +52794,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -50995,14 +52851,14 @@ "regionTag": "compute_v1beta_generated_VpnGateways_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "vpn_gateways.set_labels.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -51110,7 +52966,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 155, "type": "FULL" } ], @@ -51178,7 +53034,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -51278,7 +53134,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 77, "type": "FULL" } ], @@ -51330,7 +53186,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -51387,14 +53243,14 @@ "regionTag": "compute_v1beta_generated_VpnTunnels_SetLabels_async", "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation.", + "description": " Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources documentation.", "canonical": true, "file": "vpn_tunnels.set_labels.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 72, + "end": 82, "type": "FULL" } ], @@ -51502,7 +53358,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 77, "type": "FULL" } ], @@ -51602,7 +53458,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 81, "type": "FULL" } ], @@ -51658,7 +53514,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 144, "type": "FULL" } ], @@ -51715,14 +53571,14 @@ "regionTag": "compute_v1beta_generated_WireGroups_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified wire group resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "description": " Updates the specified wire group resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", "canonical": true, "file": "wire_groups.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 79, + "end": 90, "type": "FULL" } ], @@ -51786,7 +53642,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -51834,7 +53690,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -51882,7 +53738,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 145, "type": "FULL" } ], @@ -51939,14 +53795,14 @@ "regionTag": "compute_v1beta_generated_ZoneOperations_Wait_async", "title": "AcceleratorTypes wait Sample", "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. ", + "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", "canonical": true, "file": "zone_operations.wait.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], @@ -52038,7 +53894,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 140, "type": "FULL" } ], @@ -52086,6 +53942,278 @@ } } } + }, + { + "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes a specified zone VM extension policy.", + "canonical": true, + "file": "zone_vm_extension_policies.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Delete", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "vm_extension_policy", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Delete", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Retrieves details of a specific zone VM extension policy.", + "canonical": true, + "file": "zone_vm_extension_policies.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Get", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "vm_extension_policy", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.VmExtensionPolicy", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Get", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates a new zone-level VM extension policy within a project.", + "canonical": true, + "file": "zone_vm_extension_policies.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Insert", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "vm_extension_policy_resource", + "type": ".google.cloud.compute.v1beta.VmExtensionPolicy" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Insert", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Lists all VM extension policies within a specific zone for a project.", + "canonical": true, + "file": "zone_vm_extension_policies.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.VmExtensionPolicyList", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.List", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" + } + } + } + }, + { + "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_Update_async", + "title": "AcceleratorTypes update Sample", + "origin": "API_DEFINITION", + "description": " Modifies an existing zone VM extension policy.", + "canonical": true, + "file": "zone_vm_extension_policies.update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Update", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "vm_extension_policy", + "type": "TYPE_STRING" + }, + { + "name": "vm_extension_policy_resource", + "type": ".google.cloud.compute.v1beta.VmExtensionPolicy" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "ZoneVmExtensionPoliciesClient", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Update", + "service": { + "shortName": "ZoneVmExtensionPolicies", + "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" + } + } + } } ] } diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.aggregated_list.js index 87f0fe9173a6..1568ba431174 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.delete.js index 9c80f70eb4c5..a14ce7650cd0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.delete.js @@ -33,7 +33,17 @@ function main(project, sslCertificate) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.insert.js index be38e9269aaa..bb5f3a348b93 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.insert.js @@ -33,7 +33,17 @@ function main(project, sslCertificateResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.list.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.list.js index 571ed54b3982..edc4a2e5dcc0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_certificates.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.aggregated_list.js index 5c0e79d6f5ed..9e662ae930d8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.delete.js index 0055121aa192..0ed69c1b57fe 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.delete.js @@ -33,11 +33,22 @@ function main(project, sslPolicy) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to delete. The name must be 1-63 characters long, + * and comply with RFC1035. */ // const sslPolicy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.get.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.get.js index c7e447783ef2..2eaa279dfebb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.get.js @@ -33,7 +33,8 @@ function main(project, sslPolicy) { */ // const project = 'my-project' /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. */ // const sslPolicy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.insert.js index ad28971973b0..66561ec1d82a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.insert.js @@ -33,7 +33,17 @@ function main(project, sslPolicyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.list.js index 69bb4f131dd6..90956108c1bb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.list_available_features.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.list_available_features.js index 62becf070de3..670d4e6b0ec3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.list_available_features.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.list_available_features.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.patch.js index 161c7e97aa3a..b9ed5202f485 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/ssl_policies.patch.js @@ -33,11 +33,22 @@ function main(project, sslPolicy, sslPolicyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. */ // const sslPolicy = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/storage_pool_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/storage_pool_types.aggregated_list.js index eb34ebe83ccc..b96041500111 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/storage_pool_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/storage_pool_types.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/storage_pool_types.list.js b/packages/google-cloud-compute/samples/generated/v1beta/storage_pool_types.list.js index 4420a4941609..d36c164ff8d3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/storage_pool_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/storage_pool_types.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.aggregated_list.js index 028df312bb5b..44e4b21e7e67 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.delete.js index 740f309f62cd..6c7d60643e7b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.delete.js @@ -33,7 +33,17 @@ function main(project, storagePool, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.insert.js index bf8ceb623501..05ac9ae66825 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.insert.js @@ -33,7 +33,17 @@ function main(project, storagePoolResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.list.js b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.list.js index f3e64f3de462..58e42cfcd03c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.list_disks.js b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.list_disks.js index dd0fc70a0d69..c2f075fca47a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.list_disks.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.list_disks.js @@ -29,19 +29,80 @@ function main(project, storagePool, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, storagePool, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.update.js b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.update.js index a13429b48f97..a0bac1723892 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/storage_pools.update.js @@ -33,7 +33,17 @@ function main(project, storagePool, storagePoolResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.aggregated_list.js index 279777cadea6..68c47f4a6351 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,13 +120,26 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 + /** + * Defines the extra views returned back in the subnetwork resource. + * Supported values: + * - WITH_UTILIZATION: Utilization data is included in the + * response. + * Check the Views enum for the list of possible values. + */ + // const views = 'abc123' // Imports the Compute library const {SubnetworksClient} = require('@google-cloud/compute').v1beta; diff --git a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.delete.js index 28e995b45eb9..906370450403 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.delete.js @@ -37,7 +37,17 @@ function main(project, region, subnetwork) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.expand_ip_cidr_range.js b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.expand_ip_cidr_range.js index 7a4c01fcc697..11e673e89cdd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.expand_ip_cidr_range.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.expand_ip_cidr_range.js @@ -37,7 +37,17 @@ function main(project, region, subnetwork, subnetworksExpandIpCidrRangeRequestRe */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.get.js b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.get.js index 658e1a3b8491..43fa8cf6ad73 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.get.js @@ -41,7 +41,10 @@ function main(project, region, subnetwork) { */ // const subnetwork = 'abc123' /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + * Defines the extra views returned back in the subnetwork resource. + * Supported values: + * - WITH_UTILIZATION: Utilization data is included in the + * response. * Check the Views enum for the list of possible values. */ // const views = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.insert.js index fdde93163751..c01d6ea7f83b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.insert.js @@ -37,7 +37,17 @@ function main(project, region, subnetworkResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.list.js b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.list.js index c3a0376de325..15e621c2674c 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +114,18 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + * Defines the extra views returned back in the subnetwork resource. + * Supported values: + * - WITH_UTILIZATION: Utilization data is included in the + * response. * Check the Views enum for the list of possible values. */ // const views = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.list_usable.js b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.list_usable.js index 92b8a1a661a0..c4697499f163 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.list_usable.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.list_usable.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,11 +110,17 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The project id or project number in which the subnetwork is intended to be used. Only applied for Shared VPC. See Shared VPC documentation (https://cloud.google.com/vpc/docs/shared-vpc/) + * The project id or project number in which the subnetwork is intended to be + * used. Only applied for Shared VPC. See Shared VPC + * documentation (https://cloud.google.com/vpc/docs/shared-vpc/) */ // const serviceProject = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.patch.js index d812160cf5c0..7d6a4d7da6c3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.patch.js @@ -29,7 +29,15 @@ function main(project, region, subnetwork, subnetworkResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. + * The drain timeout specifies the upper bound in seconds on the amount of + * time allowed to drain connections from the current ACTIVE subnetwork + * to the current BACKUP subnetwork. The drain timeout is only applicable + * when the following conditions are true: + * - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER + * - the subnetwork being patched has role = BACKUP + * - the patch request is setting the role to ACTIVE. Note that after this + * patch operation the roles of the ACTIVE and BACKUP subnetworks will be + * swapped. */ // const drainTimeoutSeconds = 1234 /** @@ -41,7 +49,17 @@ function main(project, region, subnetwork, subnetworkResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.set_private_ip_google_access.js b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.set_private_ip_google_access.js index 83adc01172c6..02d0f628682d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.set_private_ip_google_access.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/subnetworks.set_private_ip_google_access.js @@ -37,7 +37,17 @@ function main(project, region, subnetwork, subnetworksSetPrivateIpGoogleAccessRe */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.delete.js index 8a8ae129271e..5a0e30802fb3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.delete.js @@ -33,7 +33,17 @@ function main(project, targetGrpcProxy) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.insert.js index 055619208e5e..de4e28ac4627 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.insert.js @@ -33,7 +33,17 @@ function main(project, targetGrpcProxyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.list.js index 5234520d0205..060e28dee047 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.patch.js index 88ed4d62a53c..190e427f4385 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_grpc_proxies.patch.js @@ -33,7 +33,17 @@ function main(project, targetGrpcProxy, targetGrpcProxyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.aggregated_list.js index 16e7ad4cd815..ebd66a1235a3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.delete.js index 16df1030744a..769450f63b61 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.delete.js @@ -33,7 +33,17 @@ function main(project, targetHttpProxy) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.insert.js index 295a4d51abfe..fca5e1399b58 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.insert.js @@ -33,7 +33,17 @@ function main(project, targetHttpProxyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.list.js index 23e885310384..729109ff969f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.patch.js index 8e3a182aa502..cea307d47a7f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.patch.js @@ -33,7 +33,17 @@ function main(project, targetHttpProxy, targetHttpProxyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.set_url_map.js b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.set_url_map.js index 9387905dc8b6..26774c7fdc2f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.set_url_map.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_http_proxies.set_url_map.js @@ -33,7 +33,17 @@ function main(project, targetHttpProxy, urlMapReferenceResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.aggregated_list.js index 815d6858d57c..9b56c5cd622f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.delete.js index 00229d14a7ad..a505b2153093 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.delete.js @@ -33,7 +33,17 @@ function main(project, targetHttpsProxy) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.insert.js index d98193ab3b22..d6de95bc1b22 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.insert.js @@ -33,7 +33,17 @@ function main(project, targetHttpsProxyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.list.js index 24104c0cfaf9..71121e1cd104 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.patch.js index 52e6d40e3f7e..8f9e8252b99b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.patch.js @@ -33,7 +33,17 @@ function main(project, targetHttpsProxy, targetHttpsProxyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_certificate_map.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_certificate_map.js index 72050a539c11..6e12328dbe50 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_certificate_map.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_certificate_map.js @@ -33,7 +33,17 @@ function main(project, targetHttpsProxiesSetCertificateMapRequestResource, targe */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, targetHttpsProxiesSetCertificateMapRequestResource, targe */ // const targetHttpsProxiesSetCertificateMapRequestResource = {} /** - * Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the TargetHttpsProxy resource whose CertificateMap is + * to be set. The name must be 1-63 characters long, and comply with RFC1035. */ // const targetHttpsProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_quic_override.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_quic_override.js index 0c78176ab6eb..fc0964c81323 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_quic_override.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_quic_override.js @@ -33,7 +33,17 @@ function main(project, targetHttpsProxiesSetQuicOverrideRequestResource, targetH */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, targetHttpsProxiesSetQuicOverrideRequestResource, targetH */ // const targetHttpsProxiesSetQuicOverrideRequestResource = {} /** - * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035. + * Name of the TargetHttpsProxy resource to set the QUIC override policy for. + * The name should conform to RFC1035. */ // const targetHttpsProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_ssl_certificates.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_ssl_certificates.js index c06ba7d4fef3..0fce15c7f53f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_ssl_certificates.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_ssl_certificates.js @@ -33,7 +33,17 @@ function main(project, targetHttpsProxiesSetSslCertificatesRequestResource, targ */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, targetHttpsProxiesSetSslCertificatesRequestResource, targ */ // const targetHttpsProxiesSetSslCertificatesRequestResource = {} /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + * Name of the TargetHttpsProxy resource to set an + * SslCertificates resource for. */ // const targetHttpsProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_ssl_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_ssl_policy.js index 5e3f6addcb12..bfc5ab4c2da8 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_ssl_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_ssl_policy.js @@ -33,7 +33,17 @@ function main(project, sslPolicyReferenceResource, targetHttpsProxy) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, sslPolicyReferenceResource, targetHttpsProxy) { */ // const sslPolicyReferenceResource = {} /** - * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the TargetHttpsProxy resource whose SSL policy is + * to be set. The name must be 1-63 characters long, and comply with RFC1035. */ // const targetHttpsProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_url_map.js b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_url_map.js index 7141d92b6fa7..f50c9a88a1c2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_url_map.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_https_proxies.set_url_map.js @@ -33,11 +33,22 @@ function main(project, targetHttpsProxy, urlMapReferenceResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** - * Name of the TargetHttpsProxy resource whose URL map is to be set. + * Name of the TargetHttpsProxy resource whose URL map is + * to be set. */ // const targetHttpsProxy = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.aggregated_list.js index d87844146d1f..953f8cef55dc 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.delete.js index 16ecba24767f..9ec867cff330 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.delete.js @@ -33,7 +33,17 @@ function main(project, targetInstance, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.insert.js index 3ec43f4581c7..4d1061a916e4 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.insert.js @@ -33,7 +33,17 @@ function main(project, targetInstanceResource, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.list.js index dfcffb4a2e28..e5728a5de9b5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.set_security_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.set_security_policy.js index cfd34ba43a30..55c03e013c52 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_instances.set_security_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_instances.set_security_policy.js @@ -33,7 +33,17 @@ function main(project, securityPolicyReferenceResource, targetInstance, zone) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, securityPolicyReferenceResource, targetInstance, zone) { */ // const securityPolicyReferenceResource = {} /** - * Name of the TargetInstance resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the TargetInstance resource to which the security policy should be + * set. The name should conform to RFC1035. */ // const targetInstance = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.add_health_check.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.add_health_check.js index a6badad90d8a..688916f3265f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.add_health_check.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.add_health_check.js @@ -37,7 +37,17 @@ function main(project, region, targetPool, targetPoolsAddHealthCheckRequestResou */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.add_instance.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.add_instance.js index c7217e83fcdb..bc1ee0fd73bd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.add_instance.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.add_instance.js @@ -37,7 +37,17 @@ function main(project, region, targetPool, targetPoolsAddInstanceRequestResource */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.aggregated_list.js index 5a6c74b75e8d..fff1ef955c86 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.delete.js index a120fe591b47..fecdaa964aa2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.delete.js @@ -37,7 +37,17 @@ function main(project, region, targetPool) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.insert.js index b742ede481dd..fcafff2ec33a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.insert.js @@ -37,7 +37,17 @@ function main(project, region, targetPoolResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.list.js index a6e747fc6552..3290ab4513ff 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.remove_health_check.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.remove_health_check.js index 18a89f380e58..c35d205beffe 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.remove_health_check.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.remove_health_check.js @@ -37,7 +37,17 @@ function main(project, region, targetPool, targetPoolsRemoveHealthCheckRequestRe */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.remove_instance.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.remove_instance.js index d2f86a985abc..dd4e6e445953 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.remove_instance.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.remove_instance.js @@ -37,7 +37,17 @@ function main(project, region, targetPool, targetPoolsRemoveInstanceRequestResou */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.set_backup.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.set_backup.js index c2673dbe8e21..ed20c13fa324 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.set_backup.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.set_backup.js @@ -41,7 +41,17 @@ function main(project, region, targetPool, targetReferenceResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.set_security_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.set_security_policy.js index 793e6a52aef3..11ddda3f97e2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_pools.set_security_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_pools.set_security_policy.js @@ -37,7 +37,17 @@ function main(project, region, securityPolicyReferenceResource, targetPool) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -45,7 +55,8 @@ function main(project, region, securityPolicyReferenceResource, targetPool) { */ // const securityPolicyReferenceResource = {} /** - * Name of the TargetPool resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the TargetPool resource to which the security policy should be + * set. The name should conform to RFC1035. */ // const targetPool = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.delete.js index 1d01bed38e7d..656d9a01148d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.delete.js @@ -33,7 +33,17 @@ function main(project, targetSslProxy) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.insert.js index 27063d334186..e8b0b3db9336 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.insert.js @@ -33,7 +33,17 @@ function main(project, targetSslProxyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.list.js index dae87204cd84..035e47d7ea50 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_backend_service.js b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_backend_service.js index e609468929ff..b86482185114 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_backend_service.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_backend_service.js @@ -33,7 +33,17 @@ function main(project, targetSslProxiesSetBackendServiceRequestResource, targetS */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, targetSslProxiesSetBackendServiceRequestResource, targetS */ // const targetSslProxiesSetBackendServiceRequestResource = {} /** - * Name of the TargetSslProxy resource whose BackendService resource is to be set. + * Name of the TargetSslProxy resource whose BackendService resource + * is to be set. */ // const targetSslProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_certificate_map.js b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_certificate_map.js index 5e7e49d40b00..a988d34f300d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_certificate_map.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_certificate_map.js @@ -33,7 +33,17 @@ function main(project, targetSslProxiesSetCertificateMapRequestResource, targetS */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, targetSslProxiesSetCertificateMapRequestResource, targetS */ // const targetSslProxiesSetCertificateMapRequestResource = {} /** - * Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the TargetSslProxy resource whose CertificateMap is + * to be set. The name must be 1-63 characters long, and comply with RFC1035. */ // const targetSslProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_proxy_header.js b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_proxy_header.js index c53774af8ea2..f38d38fa37f2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_proxy_header.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_proxy_header.js @@ -33,7 +33,17 @@ function main(project, targetSslProxiesSetProxyHeaderRequestResource, targetSslP */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_ssl_certificates.js b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_ssl_certificates.js index 29111fd740fc..68243adeaa7e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_ssl_certificates.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_ssl_certificates.js @@ -33,7 +33,17 @@ function main(project, targetSslProxiesSetSslCertificatesRequestResource, target */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, targetSslProxiesSetSslCertificatesRequestResource, target */ // const targetSslProxiesSetSslCertificatesRequestResource = {} /** - * Name of the TargetSslProxy resource whose SslCertificate resource is to be set. + * Name of the TargetSslProxy resource whose SslCertificate resource + * is to be set. */ // const targetSslProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_ssl_policy.js b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_ssl_policy.js index 10a439956bc7..f6b518a17fb2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_ssl_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_ssl_proxies.set_ssl_policy.js @@ -33,7 +33,17 @@ function main(project, sslPolicyReferenceResource, targetSslProxy) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, sslPolicyReferenceResource, targetSslProxy) { */ // const sslPolicyReferenceResource = {} /** - * Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the TargetSslProxy resource whose SSL policy is + * to be set. The name must be 1-63 characters long, and comply with RFC1035. */ // const targetSslProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.aggregated_list.js index 3a3444a0748e..59cd1ee168eb 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.delete.js index 21606c7bc07d..6de8b9ef20f0 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.delete.js @@ -33,7 +33,17 @@ function main(project, targetTcpProxy) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.insert.js index 1d38b17e7c44..2104e6e94e28 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.insert.js @@ -33,7 +33,17 @@ function main(project, targetTcpProxyResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.list.js index 8b917141cffb..f8a19b7743da 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.set_backend_service.js b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.set_backend_service.js index 90452e4e9e72..69197e3a2d41 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.set_backend_service.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.set_backend_service.js @@ -33,7 +33,17 @@ function main(project, targetTcpProxiesSetBackendServiceRequestResource, targetT */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** @@ -41,7 +51,8 @@ function main(project, targetTcpProxiesSetBackendServiceRequestResource, targetT */ // const targetTcpProxiesSetBackendServiceRequestResource = {} /** - * Name of the TargetTcpProxy resource whose BackendService resource is to be set. + * Name of the TargetTcpProxy resource whose BackendService resource + * is to be set. */ // const targetTcpProxy = 'abc123' diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.set_proxy_header.js b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.set_proxy_header.js index c34b45ac6a6e..dce9cc366fb3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.set_proxy_header.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_tcp_proxies.set_proxy_header.js @@ -33,7 +33,17 @@ function main(project, targetTcpProxiesSetProxyHeaderRequestResource, targetTcpP */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.aggregated_list.js index c2eeeeb8c01e..2883cf698c4e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.delete.js index 8f29b7089078..6cc1a3d40fbd 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.delete.js @@ -37,7 +37,17 @@ function main(project, region, targetVpnGateway) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.insert.js index 66f0f20e9c3a..af777b35ba8e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.insert.js @@ -37,7 +37,17 @@ function main(project, region, targetVpnGatewayResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.list.js b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.list.js index 53ed9e399422..98ae440e461d 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.set_labels.js index 81198b9ac39d..90ba83e4c64f 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/target_vpn_gateways.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.aggregated_list.js index f04d26576dcf..8a47062a1dda 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.delete.js index e9a19d3cdd64..b90c1c21fd02 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.delete.js @@ -33,7 +33,17 @@ function main(project, urlMap) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.insert.js index 319bc4604087..6e8d61e1067e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.insert.js @@ -33,7 +33,17 @@ function main(project, urlMapResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.invalidate_cache.js b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.invalidate_cache.js index c1bbb85f5e2f..1d807bd00b55 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.invalidate_cache.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.invalidate_cache.js @@ -37,7 +37,17 @@ function main(cacheInvalidationRuleResource, project, urlMap) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.list.js b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.list.js index f92c1e0d7305..ba937181a4f2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.patch.js index 21bba3b5aa93..0bb55fc7bde6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.patch.js @@ -33,7 +33,17 @@ function main(project, urlMap, urlMapResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.update.js b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.update.js index 168634603151..d061e7618a30 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/url_maps.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/url_maps.update.js @@ -33,7 +33,17 @@ function main(project, urlMap, urlMapResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.aggregated_list.js index 2d6afbd923aa..32a9bf291b24 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.delete.js index 4f71a2a70226..eb27737026a9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.delete.js @@ -37,7 +37,17 @@ function main(project, region, vpnGateway) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.insert.js index 67db96b385bd..4df660db4834 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.insert.js @@ -37,7 +37,17 @@ function main(project, region, vpnGatewayResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.list.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.list.js index 6d78b4519d9d..90bb45665867 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.set_labels.js index 20229951b71e..9c338a8b988e 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_gateways.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.aggregated_list.js index 030f1991ad83..6783de870e61 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.aggregated_list.js @@ -29,23 +29,90 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. */ // const includeAllScopes = true /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,11 +120,16 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.delete.js index 781da177517d..bbc6df83b3a5 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.delete.js @@ -37,7 +37,17 @@ function main(project, region, vpnTunnel) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.insert.js index d39e2cc29b5d..6c1ed255d9c7 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.insert.js @@ -37,7 +37,17 @@ function main(project, region, vpnTunnelResource) { */ // const region = 'us-central1' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.list.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.list.js index 09815ca10d5f..74a43f4817d3 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.list.js @@ -29,19 +29,80 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -53,7 +114,11 @@ function main(project, region) { */ // const region = 'us-central1' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.set_labels.js b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.set_labels.js index 6b435e19b178..3941bf4589b6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.set_labels.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/vpn_tunnels.set_labels.js @@ -41,7 +41,17 @@ function main(project, region, regionSetLabelsRequestResource, resource) { */ // const regionSetLabelsRequestResource = {} /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.delete.js index cc3ac60429d2..4898c0b5b851 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.delete.js @@ -36,7 +36,18 @@ function main(crossSiteNetwork, project, wireGroup) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.insert.js index 18cac5c64ae1..17096fb5d6f9 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.insert.js @@ -36,7 +36,18 @@ function main(crossSiteNetwork, project, wireGroupResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.list.js b/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.list.js index b2c223bf7117..9403c8967a34 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.list.js @@ -32,19 +32,80 @@ function main(crossSiteNetwork, project) { */ // const crossSiteNetwork = 'abc123' /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -52,7 +113,11 @@ function main(crossSiteNetwork, project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.patch.js b/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.patch.js index 0e8db921fa19..aabdd3cd0261 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/wire_groups.patch.js @@ -36,7 +36,18 @@ function main(crossSiteNetwork, project, wireGroup, wireGroupResource) { */ // const project = 'my-project' /** - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder */ // const requestId = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.delete.js index f1d56f4c4ade..ffbbed55958b 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.delete.js @@ -29,7 +29,8 @@ function main(operation, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * Name of the Operations resource to delete, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.get.js b/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.get.js index 3e3c172d5903..20b2e94f87d2 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.get.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.get.js @@ -29,7 +29,8 @@ function main(operation, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.list.js b/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.list.js index 0fb11f590cae..c23c8ce5d99a 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.list.js @@ -29,19 +29,80 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project, zone) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.wait.js b/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.wait.js index 5220b99de975..1e7299105304 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.wait.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/zone_operations.wait.js @@ -29,7 +29,8 @@ function main(operation, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. */ // const operation = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.delete.js new file mode 100644 index 000000000000..0872493a968f --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.delete.js @@ -0,0 +1,85 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, vmExtensionPolicy, zone) { + // [START compute_v1beta_generated_ZoneVmExtensionPolicies_Delete_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * Name of the zone VM extension policy to delete. + */ + // const vmExtensionPolicy = 'abc123' + /** + * Name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ZoneVmExtensionPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ZoneVmExtensionPoliciesClient(); + + async function callDelete() { + // Construct request + const request = { + project, + vmExtensionPolicy, + zone, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1beta_generated_ZoneVmExtensionPolicies_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.get.js b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.get.js new file mode 100644 index 000000000000..bc37f712ced8 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.get.js @@ -0,0 +1,71 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, vmExtensionPolicy, zone) { + // [START compute_v1beta_generated_ZoneVmExtensionPolicies_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the VM extension policy resource to return. + */ + // const vmExtensionPolicy = 'abc123' + /** + * Name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ZoneVmExtensionPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ZoneVmExtensionPoliciesClient(); + + async function callGet() { + // Construct request + const request = { + project, + vmExtensionPolicy, + zone, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1beta_generated_ZoneVmExtensionPolicies_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.insert.js new file mode 100644 index 000000000000..de39a64366ac --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.insert.js @@ -0,0 +1,85 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, vmExtensionPolicyResource, zone) { + // [START compute_v1beta_generated_ZoneVmExtensionPolicies_Insert_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * The body resource for this request + */ + // const vmExtensionPolicyResource = {} + /** + * Name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ZoneVmExtensionPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ZoneVmExtensionPoliciesClient(); + + async function callInsert() { + // Construct request + const request = { + project, + vmExtensionPolicyResource, + zone, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1beta_generated_ZoneVmExtensionPolicies_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.list.js b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.list.js new file mode 100644 index 000000000000..1cc27b84cafb --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.list.js @@ -0,0 +1,153 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, zone) { + // [START compute_v1beta_generated_ZoneVmExtensionPolicies_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * Name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ZoneVmExtensionPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ZoneVmExtensionPoliciesClient(); + + async function callList() { + // Construct request + const request = { + project, + zone, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1beta_generated_ZoneVmExtensionPolicies_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.update.js b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.update.js new file mode 100644 index 000000000000..7885eef6b610 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/zone_vm_extension_policies.update.js @@ -0,0 +1,90 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, vmExtensionPolicy, vmExtensionPolicyResource, zone) { + // [START compute_v1beta_generated_ZoneVmExtensionPolicies_Update_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * Name of the zone VM extension policy to update. + */ + // const vmExtensionPolicy = 'abc123' + /** + * The body resource for this request + */ + // const vmExtensionPolicyResource = {} + /** + * Name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ZoneVmExtensionPoliciesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ZoneVmExtensionPoliciesClient(); + + async function callUpdate() { + // Construct request + const request = { + project, + vmExtensionPolicy, + vmExtensionPolicyResource, + zone, + }; + + // Run request + const response = await computeClient.update(request); + console.log(response); + } + + callUpdate(); + // [END compute_v1beta_generated_ZoneVmExtensionPolicies_Update_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1beta/zones.list.js b/packages/google-cloud-compute/samples/generated/v1beta/zones.list.js index a8296b56c899..9423ad6b89f6 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/zones.list.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/zones.list.js @@ -29,19 +29,80 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. */ // const filter = 'abc123' /** - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) */ // const maxResults = 1234 /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. */ // const orderBy = 'abc123' /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. */ // const pageToken = 'abc123' /** @@ -49,7 +110,11 @@ function main(project) { */ // const project = 'my-project' /** - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. */ // const returnPartialSuccess = true diff --git a/packages/google-cloud-compute/samples/package.json b/packages/google-cloud-compute/samples/package.json index 5cac1e345923..b5ee3dfd5b1a 100644 --- a/packages/google-cloud-compute/samples/package.json +++ b/packages/google-cloud-compute/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha test --timeout 1200000" }, "dependencies": { - "@google-cloud/compute": "^6.4.0", + "@google-cloud/compute": "^6.5.0", "@sendgrid/mail": "^8.0.0", "nodemailer": "^7.0.0", "nodemailer-smtp-transport": "^2.7.4" diff --git a/packages/google-cloud-compute/src/index.ts b/packages/google-cloud-compute/src/index.ts index 936abc38e4e0..0f5bf5d49924 100644 --- a/packages/google-cloud-compute/src/index.ts +++ b/packages/google-cloud-compute/src/index.ts @@ -16,9 +16,9 @@ // ** https://github.com/googleapis/synthtool ** // ** All changes to this file may be overwritten. ** +import * as v1small from './v1small'; import * as v1 from './v1'; import * as v1beta from './v1beta'; -import * as v1small from './v1small'; const AcceleratorTypesClient = v1.AcceleratorTypesClient; type AcceleratorTypesClient = v1.AcceleratorTypesClient; @@ -231,7 +231,7 @@ type ZoneOperationsClient = v1.ZoneOperationsClient; const ZonesClient = v1.ZonesClient; type ZonesClient = v1.ZonesClient; -export {v1, v1beta, v1small, AcceleratorTypesClient, AddressesClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotsClient, InterconnectAttachmentGroupsClient, InterconnectAttachmentsClient, InterconnectGroupsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, InterconnectsClient, LicenseCodesClient, LicensesClient, MachineImagesClient, MachineTypesClient, NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, NetworkProfilesClient, NetworksClient, NodeGroupsClient, NodeTemplatesClient, NodeTypesClient, OrganizationSecurityPoliciesClient, PacketMirroringsClient, PreviewFeaturesClient, ProjectsClient, PublicAdvertisedPrefixesClient, PublicDelegatedPrefixesClient, RegionAutoscalersClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, ZoneOperationsClient, ZonesClient}; -export default {v1, v1beta, v1small, AcceleratorTypesClient, AddressesClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotsClient, InterconnectAttachmentGroupsClient, InterconnectAttachmentsClient, InterconnectGroupsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, InterconnectsClient, LicenseCodesClient, LicensesClient, MachineImagesClient, MachineTypesClient, NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, NetworkProfilesClient, NetworksClient, NodeGroupsClient, NodeTemplatesClient, NodeTypesClient, OrganizationSecurityPoliciesClient, PacketMirroringsClient, PreviewFeaturesClient, ProjectsClient, PublicAdvertisedPrefixesClient, PublicDelegatedPrefixesClient, RegionAutoscalersClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, ZoneOperationsClient, ZonesClient}; +export {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotsClient, InterconnectAttachmentGroupsClient, InterconnectAttachmentsClient, InterconnectGroupsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, InterconnectsClient, LicenseCodesClient, LicensesClient, MachineImagesClient, MachineTypesClient, NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, NetworkProfilesClient, NetworksClient, NodeGroupsClient, NodeTemplatesClient, NodeTypesClient, OrganizationSecurityPoliciesClient, PacketMirroringsClient, PreviewFeaturesClient, ProjectsClient, PublicAdvertisedPrefixesClient, PublicDelegatedPrefixesClient, RegionAutoscalersClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, ZoneOperationsClient, ZonesClient}; +export default {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotsClient, InterconnectAttachmentGroupsClient, InterconnectAttachmentsClient, InterconnectGroupsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, InterconnectsClient, LicenseCodesClient, LicensesClient, MachineImagesClient, MachineTypesClient, NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, NetworkProfilesClient, NetworksClient, NodeGroupsClient, NodeTemplatesClient, NodeTypesClient, OrganizationSecurityPoliciesClient, PacketMirroringsClient, PreviewFeaturesClient, ProjectsClient, PublicAdvertisedPrefixesClient, PublicDelegatedPrefixesClient, RegionAutoscalersClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, ZoneOperationsClient, ZonesClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-cloud-compute/src/v1beta/accelerator_types_client.ts b/packages/google-cloud-compute/src/v1beta/accelerator_types_client.ts index 76140c6d2f48..b8bbac16809e 100644 --- a/packages/google-cloud-compute/src/v1beta/accelerator_types_client.ts +++ b/packages/google-cloud-compute/src/v1beta/accelerator_types_client.ts @@ -436,27 +436,115 @@ export class AcceleratorTypesClient { /** - * Retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of accelerator types. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -493,22 +581,101 @@ export class AcceleratorTypesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IAcceleratorTypesScopedList]>; } /** - * Retrieves a list of accelerator types that are available to the specified project. + * Retrieves a list of accelerator types that are available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -605,17 +772,95 @@ export class AcceleratorTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -661,17 +906,95 @@ export class AcceleratorTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/addresses_client.ts b/packages/google-cloud-compute/src/v1beta/addresses_client.ts index 95d2eca5ae77..13e757d2eff1 100644 --- a/packages/google-cloud-compute/src/v1beta/addresses_client.ts +++ b/packages/google-cloud-compute/src/v1beta/addresses_client.ts @@ -341,7 +341,19 @@ export class AddressesClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,7 +548,8 @@ export class AddressesClient { }); } /** - * Creates an address resource in the specified project by using the data included in the request. + * Creates an address resource in the specified project by using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -547,7 +560,19 @@ export class AddressesClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -654,7 +679,19 @@ export class AddressesClient { * @param {google.cloud.compute.v1beta.RegionAddressesMoveRequest} request.regionAddressesMoveRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -749,7 +786,8 @@ export class AddressesClient { }); } /** - * Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on an Address. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -760,7 +798,19 @@ export class AddressesClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -961,27 +1011,115 @@ export class AddressesClient { /** - * Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of addresses. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1018,24 +1156,103 @@ export class AddressesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IAddressesScopedList]>; } /** - * Retrieves a list of addresses contained within the specified region. + * Retrieves a list of addresses contained within + * the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1130,19 +1347,97 @@ export class AddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1186,19 +1481,97 @@ export class AddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/advice_client.ts b/packages/google-cloud-compute/src/v1beta/advice_client.ts index ab312e898b87..2139bcb06ce8 100644 --- a/packages/google-cloud-compute/src/v1beta/advice_client.ts +++ b/packages/google-cloud-compute/src/v1beta/advice_client.ts @@ -319,7 +319,10 @@ export class AdviceClient { // -- Service calls -- // ------------------- /** - * Advise how, where and when to create the requested amount of instances with specified accelerators, within the specified time and location limits. The method recommends creating future reservations for the requested resources. + * Advise how, where and when to create the requested amount of instances + * with specified accelerators, within the specified time and location limits. + * The method recommends creating future reservations for the requested + * resources. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1beta/autoscalers_client.ts b/packages/google-cloud-compute/src/v1beta/autoscalers_client.ts index 46bb4f4b931c..52ecb84ff051 100644 --- a/packages/google-cloud-compute/src/v1beta/autoscalers_client.ts +++ b/packages/google-cloud-compute/src/v1beta/autoscalers_client.ts @@ -339,7 +339,19 @@ export class AutoscalersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] @@ -536,7 +548,8 @@ export class AutoscalersClient { }); } /** - * Creates an autoscaler in the specified project using the data included in the request. + * Creates an autoscaler in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -545,7 +558,19 @@ export class AutoscalersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] @@ -641,7 +666,10 @@ export class AutoscalersClient { }); } /** - * Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates an autoscaler in the specified project using the data + * included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -652,7 +680,19 @@ export class AutoscalersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] @@ -850,7 +890,8 @@ export class AutoscalersClient { }); } /** - * Updates an autoscaler in the specified project using the data included in the request. + * Updates an autoscaler in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -861,7 +902,19 @@ export class AutoscalersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] @@ -959,27 +1012,115 @@ export class AutoscalersClient { /** - * Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of autoscalers. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1016,22 +1157,101 @@ export class AutoscalersClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IAutoscalersScopedList]>; } /** - * Retrieves a list of autoscalers contained within the specified zone. + * Retrieves a list of autoscalers contained within + * the specified zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] @@ -1128,17 +1348,95 @@ export class AutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] @@ -1184,17 +1482,95 @@ export class AutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/backend_buckets_client.ts b/packages/google-cloud-compute/src/v1beta/backend_buckets_client.ts index 58e2031cb2b6..37a6964aac7e 100644 --- a/packages/google-cloud-compute/src/v1beta/backend_buckets_client.ts +++ b/packages/google-cloud-compute/src/v1beta/backend_buckets_client.ts @@ -176,6 +176,8 @@ export class BackendBucketsClient { // (e.g. 50 results at a time, with tokens to get subsequent // pages). Denote the keys used for pagination and results. this.descriptors.page = { + aggregatedList: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items'), list: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items'), listUsable: @@ -225,7 +227,7 @@ export class BackendBucketsClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const backendBucketsStubMethods = - ['addSignedUrlKey', 'delete', 'deleteSignedUrlKey', 'get', 'getIamPolicy', 'insert', 'list', 'listUsable', 'patch', 'setEdgeSecurityPolicy', 'setIamPolicy', 'testIamPermissions', 'update']; + ['addSignedUrlKey', 'aggregatedList', 'delete', 'deleteSignedUrlKey', 'get', 'getIamPolicy', 'insert', 'list', 'listUsable', 'patch', 'setEdgeSecurityPolicy', 'setIamPolicy', 'testIamPermissions', 'update']; for (const methodName of backendBucketsStubMethods) { const callPromise = this.backendBucketsStub.then( stub => (...args: Array<{}>) => { @@ -330,16 +332,30 @@ export class BackendBucketsClient { // -- Service calls -- // ------------------- /** - * Adds a key for validating requests with signed URLs for this backend bucket. + * Adds a key for validating requests with signed URLs for this backend + * bucket. * * @param {Object} request * The request object that will be sent. * @param {string} request.backendBucket - * Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. + * Name of the BackendBucket resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SignedUrlKey} request.signedUrlKeyResource * The body resource for this request * @param {object} [options] @@ -444,7 +460,19 @@ export class BackendBucketsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -538,18 +566,32 @@ export class BackendBucketsClient { }); } /** - * Deletes a key for validating requests with signed URLs for this backend bucket. + * Deletes a key for validating requests with signed URLs for this backend + * bucket. * * @param {Object} request * The request object that will be sent. * @param {string} request.backendBucket - * Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. + * Name of the BackendBucket resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. * @param {string} request.keyName * The name of the Signed URL Key to delete. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -740,7 +782,8 @@ export class BackendBucketsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -839,7 +882,8 @@ export class BackendBucketsClient { }); } /** - * Creates a BackendBucket resource in the specified project using the data included in the request. + * Creates a BackendBucket resource in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -848,7 +892,19 @@ export class BackendBucketsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -941,7 +997,10 @@ export class BackendBucketsClient { }); } /** - * Updates the specified BackendBucket resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified BackendBucket resource with the data included in the + * request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -952,7 +1011,19 @@ export class BackendBucketsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1051,11 +1122,24 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.backendBucket - * Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the BackendBucket resource to which the security policy should be + * set. The name should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SecurityPolicyReference} request.securityPolicyReferenceResource * The body resource for this request * @param {object} [options] @@ -1151,7 +1235,8 @@ export class BackendBucketsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1349,7 +1434,8 @@ export class BackendBucketsClient { }); } /** - * Updates the specified BackendBucket resource with the data included in the request. + * Updates the specified BackendBucket resource with the data included in the + * request. * * @param {Object} request * The request object that will be sent. @@ -1360,7 +1446,19 @@ export class BackendBucketsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1454,23 +1552,249 @@ export class BackendBucketsClient { }); } + +/** + * Retrieves the list of all BackendBucket resources, regional and global, + * available to the specified project. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {boolean} request.includeAllScopes + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Name of the project scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * as tuple [string, {@link protos.google.cloud.compute.v1beta.BackendBucketsScopedList|BackendBucketsScopedList}]. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/backend_buckets.aggregated_list.js + * region_tag:compute_v1beta_generated_BackendBuckets_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1beta.IBackendBucketsScopedList]>{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + }); + const defaultCallSettings = this._defaults['aggregatedList']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('aggregatedList iterate %j', request); + return this.descriptors.page.aggregatedList.asyncIterate( + this.innerApiCalls['aggregatedList'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IBackendBucketsScopedList]>; + } /** - * Retrieves the list of BackendBucket resources available to the specified project. + * Retrieves the list of BackendBucket resources available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1564,17 +1888,95 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1617,17 +2019,95 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1669,17 +2149,95 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1773,17 +2331,95 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1826,17 +2462,95 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/backend_buckets_client_config.json b/packages/google-cloud-compute/src/v1beta/backend_buckets_client_config.json index de3f76d0a83d..ee0efca5f44e 100644 --- a/packages/google-cloud-compute/src/v1beta/backend_buckets_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/backend_buckets_client_config.json @@ -24,6 +24,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "Delete": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1beta/backend_services_client.ts b/packages/google-cloud-compute/src/v1beta/backend_services_client.ts index 74dea6858e65..21e39500a13c 100644 --- a/packages/google-cloud-compute/src/v1beta/backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1beta/backend_services_client.ts @@ -332,16 +332,30 @@ export class BackendServicesClient { // -- Service calls -- // ------------------- /** - * Adds a key for validating requests with signed URLs for this backend service. + * Adds a key for validating requests with signed URLs for this backend + * service. * * @param {Object} request * The request object that will be sent. * @param {string} request.backendService - * Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. + * Name of the BackendService resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SignedUrlKey} request.signedUrlKeyResource * The body resource for this request * @param {object} [options] @@ -446,7 +460,19 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -540,18 +566,32 @@ export class BackendServicesClient { }); } /** - * Deletes a key for validating requests with signed URLs for this backend service. + * Deletes a key for validating requests with signed URLs for this backend + * service. * * @param {Object} request * The request object that will be sent. * @param {string} request.backendService - * Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. + * Name of the BackendService resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. * @param {string} request.keyName * The name of the Signed URL Key to delete. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -839,7 +879,14 @@ export class BackendServicesClient { }); } /** - * Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" } + * Gets the most recent health check results for this + * BackendService. + * + * Example request body: + * + * { + * "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" + * } * * @param {Object} request * The request object that will be sent. @@ -937,7 +984,8 @@ export class BackendServicesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -1036,7 +1084,9 @@ export class BackendServicesClient { }); } /** - * Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview . + * Creates a BackendService resource in the specified project using + * the data included in the request. For more information, see + * Backend services overview. * * @param {Object} request * The request object that will be sent. @@ -1045,7 +1095,19 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1138,7 +1200,11 @@ export class BackendServicesClient { }); } /** - * Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Patches the specified BackendService resource with the data included in the + * request. For more information, see + * Backend services overview. This method + * supports PATCH semantics and uses the JSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -1149,7 +1215,19 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1248,11 +1326,24 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.backendService - * Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. + * Name of the BackendService resource to which the edge security policy + * should be set. The name should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SecurityPolicyReference} request.securityPolicyReferenceResource * The body resource for this request * @param {object} [options] @@ -1348,7 +1439,8 @@ export class BackendServicesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1447,16 +1539,31 @@ export class BackendServicesClient { }); } /** - * Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview + * Sets the Google Cloud Armor security policy for the specified backend + * service. For more information, seeGoogle + * Cloud Armor Overview * * @param {Object} request * The request object that will be sent. * @param {string} request.backendService - * Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the BackendService resource to which the security policy should be + * set. The name should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SecurityPolicyReference} request.securityPolicyReferenceResource * The body resource for this request * @param {object} [options] @@ -1651,7 +1758,9 @@ export class BackendServicesClient { }); } /** - * Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview. + * Updates the specified BackendService resource with the data included in the + * request. For more information, seeBackend + * services overview. * * @param {Object} request * The request object that will be sent. @@ -1662,7 +1771,19 @@ export class BackendServicesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1758,27 +1879,116 @@ export class BackendServicesClient { /** - * Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all BackendService resources, regional and global, + * available to the specified project. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1815,22 +2025,101 @@ export class BackendServicesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IBackendServicesScopedList]>; } /** - * Retrieves the list of BackendService resources available to the specified project. + * Retrieves the list of BackendService resources available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1924,17 +2213,95 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1977,17 +2344,95 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -2029,17 +2474,95 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2133,17 +2656,95 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2186,17 +2787,95 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/cross_site_networks_client.ts b/packages/google-cloud-compute/src/v1beta/cross_site_networks_client.ts index da0a4ed88e19..52c0887eff51 100644 --- a/packages/google-cloud-compute/src/v1beta/cross_site_networks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/cross_site_networks_client.ts @@ -337,7 +337,20 @@ export class CrossSiteNetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -528,7 +541,8 @@ export class CrossSiteNetworksClient { }); } /** - * Creates a cross-site network in the specified project in the given scope using the parameters that are included in the request. + * Creates a cross-site network in the specified project in the given scope + * using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -537,7 +551,20 @@ export class CrossSiteNetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {boolean} request.validateOnly * [Input Only] Validate the new configuration, but don't create it. * @param {object} [options] @@ -632,7 +659,10 @@ export class CrossSiteNetworksClient { }); } /** - * Updates the specified cross-site network with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified cross-site network with the data included in + * the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -643,7 +673,20 @@ export class CrossSiteNetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {boolean} request.validateOnly @@ -747,17 +790,95 @@ export class CrossSiteNetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -851,17 +972,95 @@ export class CrossSiteNetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -904,17 +1103,95 @@ export class CrossSiteNetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/disk_settings_service_client.ts b/packages/google-cloud-compute/src/v1beta/disk_settings_service_client.ts index f1e859d90fb2..9443ee1a2613 100644 --- a/packages/google-cloud-compute/src/v1beta/disk_settings_service_client.ts +++ b/packages/google-cloud-compute/src/v1beta/disk_settings_service_client.ts @@ -425,7 +425,19 @@ export class DiskSettingsServiceClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {string} request.zone diff --git a/packages/google-cloud-compute/src/v1beta/disk_types_client.ts b/packages/google-cloud-compute/src/v1beta/disk_types_client.ts index 46e2461f3da0..c81d9c439684 100644 --- a/packages/google-cloud-compute/src/v1beta/disk_types_client.ts +++ b/packages/google-cloud-compute/src/v1beta/disk_types_client.ts @@ -433,27 +433,115 @@ export class DiskTypesClient { /** - * Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of disk types. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -490,22 +578,101 @@ export class DiskTypesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IDiskTypesScopedList]>; } /** - * Retrieves a list of disk types available to the specified project. + * Retrieves a list of disk types available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -602,17 +769,95 @@ export class DiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -658,17 +903,95 @@ export class DiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/disks_client.ts b/packages/google-cloud-compute/src/v1beta/disks_client.ts index 18459b2d9c72..5baec2712334 100644 --- a/packages/google-cloud-compute/src/v1beta/disks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/disks_client.ts @@ -330,7 +330,9 @@ export class DisksClient { // -- Service calls -- // ------------------- /** - * Adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation. + * Adds existing resource policies to a disk. You can only add one + * policy which will be applied to this disk for scheduling snapshot + * creation. * * @param {Object} request * The request object that will be sent. @@ -341,7 +343,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -447,7 +461,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -543,7 +569,8 @@ export class DisksClient { }); } /** - * Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on many disks at once. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -552,7 +579,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {string} request.zone @@ -650,18 +689,34 @@ export class DisksClient { }); } /** - * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. + * Creates a snapshot of a specified persistent disk. For regular snapshot + * creation, consider using snapshots.insert + * instead, as that method supports more features, such as creating snapshots + * in a project different from the source disk project. * * @param {Object} request * The request object that will be sent. * @param {string} request.disk * Name of the persistent disk to snapshot. * @param {boolean} request.guestFlush - * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare for the snapshot process. + * [Input Only] Whether to attempt an application consistent snapshot by + * informing the OS to prepare for the snapshot process. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Snapshot} request.snapshotResource * The body resource for this request * @param {string} request.zone @@ -760,7 +815,11 @@ export class DisksClient { }); } /** - * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots. + * Deletes the specified persistent disk. Deleting a disk removes its data + * permanently and is irreversible. However, deleting a disk does not + * delete any snapshots + * previously made from the disk. You must separatelydelete + * snapshots. * * @param {Object} request * The request object that will be sent. @@ -769,7 +828,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -966,7 +1037,8 @@ export class DisksClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -1068,7 +1140,11 @@ export class DisksClient { }); } /** - * Creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, or sourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property. + * Creates a persistent disk in the specified project using the data + * in the request. You can create a disk from a source + * (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data disk by + * omitting all properties. You can also create a disk that is larger than + * the default size by specifying the sizeGb property. * * @param {Object} request * The request object that will be sent. @@ -1077,7 +1153,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sourceImage * Source image to restore onto a disk. This field is optional. * @param {string} request.zone @@ -1186,7 +1274,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1283,7 +1383,8 @@ export class DisksClient { }); } /** - * Resizes the specified persistent disk. You can only increase the size of the disk. + * Resizes the specified persistent disk. + * You can only increase the size of the disk. * * @param {Object} request * The request object that will be sent. @@ -1294,7 +1395,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1391,7 +1504,8 @@ export class DisksClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1493,14 +1607,27 @@ export class DisksClient { }); } /** - * Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a disk. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {string} request.zone @@ -1601,7 +1728,8 @@ export class DisksClient { }); } /** - * Starts asynchronous replication. Must be invoked on the primary disk. + * Starts asynchronous replication. + * Must be invoked on the primary disk. * * @param {Object} request * The request object that will be sent. @@ -1612,7 +1740,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1709,7 +1849,8 @@ export class DisksClient { }); } /** - * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + * Stops asynchronous replication. + * Can be invoked either on the primary or on the secondary disk. * * @param {Object} request * The request object that will be sent. @@ -1718,7 +1859,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1815,7 +1968,8 @@ export class DisksClient { }); } /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope. + * Stops asynchronous replication for a consistency group of disks. + * Can be invoked either in the primary or secondary scope. * * @param {Object} request * The request object that will be sent. @@ -1824,9 +1978,22 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone for this request. This must be the zone of the primary or secondary disks in the consistency group. + * The name of the zone for this request. This must be the zone of the primary + * or secondary disks in the consistency group. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2022,7 +2189,9 @@ export class DisksClient { }); } /** - * Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. + * Updates the specified disk with the data included in the request. + * The update is performed only on selected fields included as part + * of update-mask. Only the following fields can be modified: user_license. * * @param {Object} request * The request object that will be sent. @@ -2034,7 +2203,19 @@ export class DisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {string} request.zone @@ -2135,27 +2316,115 @@ export class DisksClient { /** - * Retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of persistent disks. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -2192,22 +2461,101 @@ export class DisksClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IDisksScopedList]>; } /** - * Retrieves a list of persistent disks contained within the specified zone. + * Retrieves a list of persistent disks contained within + * the specified zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2304,17 +2652,95 @@ export class DisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2360,17 +2786,95 @@ export class DisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/external_vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1beta/external_vpn_gateways_client.ts index ca6d17fd12c6..ab0f8b0fd6f8 100644 --- a/packages/google-cloud-compute/src/v1beta/external_vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1beta/external_vpn_gateways_client.ts @@ -337,7 +337,19 @@ export class ExternalVpnGatewaysClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -431,7 +443,8 @@ export class ExternalVpnGatewaysClient { }); } /** - * Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request. + * Returns the specified externalVpnGateway. Get a list of available + * externalVpnGateways by making a list() request. * * @param {Object} request * The request object that will be sent. @@ -528,7 +541,8 @@ export class ExternalVpnGatewaysClient { }); } /** - * Creates a ExternalVpnGateway in the specified project using the data included in the request. + * Creates a ExternalVpnGateway in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -537,7 +551,19 @@ export class ExternalVpnGatewaysClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -630,7 +656,9 @@ export class ExternalVpnGatewaysClient { }); } /** - * Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on an ExternalVpnGateway. To learn more about labels, + * read the Labeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -833,22 +861,101 @@ export class ExternalVpnGatewaysClient { } /** - * Retrieves the list of ExternalVpnGateway available to the specified project. + * Retrieves the list of ExternalVpnGateway available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -942,17 +1049,95 @@ export class ExternalVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -995,17 +1180,95 @@ export class ExternalVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/firewall_policies_client.ts b/packages/google-cloud-compute/src/v1beta/firewall_policies_client.ts index b906e58558d8..f50e15b7675c 100644 --- a/packages/google-cloud-compute/src/v1beta/firewall_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/firewall_policies_client.ts @@ -337,9 +337,23 @@ export class FirewallPoliciesClient { * @param {google.cloud.compute.v1beta.FirewallPolicyAssociation} request.firewallPolicyAssociationResource * The body resource for this request * @param {boolean} request.replaceExistingAssociation - * Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists. + * Indicates whether or not to replace it if an association of the attachment + * already exists. This is false by default, in which case an error will be + * returned if an association already exists. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -441,7 +455,19 @@ export class FirewallPoliciesClient { * @param {google.cloud.compute.v1beta.FirewallPolicyRule} request.firewallPolicyRuleResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -543,7 +569,19 @@ export class FirewallPoliciesClient { * @param {google.cloud.compute.v1beta.FirewallPolicyRule} request.firewallPolicyRuleResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -643,7 +681,19 @@ export class FirewallPoliciesClient { * @param {string} request.firewallPolicy * Name of the firewall policy to update. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sourceFirewallPolicy * The firewall policy from which to copy rules. * @param {object} [options] @@ -745,7 +795,19 @@ export class FirewallPoliciesClient { * @param {string} request.firewallPolicy * Name of the firewall policy to delete. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1028,7 +1090,8 @@ export class FirewallPoliciesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -1316,16 +1379,31 @@ export class FirewallPoliciesClient { }); } /** - * Creates a new policy in the specified project using the data included in the request. + * Creates a new policy in the specified project using the data included in + * the request. * * @param {Object} request * The request object that will be sent. * @param {google.cloud.compute.v1beta.FirewallPolicy} request.firewallPolicyResource * The body resource for this request * @param {string} request.parentId - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + * if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + * parent is an organization. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1417,8 +1495,13 @@ export class FirewallPoliciesClient { * * @param {Object} request * The request object that will be sent. + * @param {boolean} request.includeInheritedPolicies + * If set to "true", the response will contain a list of all associations for + * the containing folders and the containing organization of the target. The + * parameter has no effect if the target is an organization. * @param {string} request.targetResource - * The target resource to list associations. It is an organization, or a folder. + * The target resource to list associations. It is an organization, or a + * folder. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1509,9 +1592,23 @@ export class FirewallPoliciesClient { * @param {string} request.firewallPolicy * Name of the firewall policy to update. * @param {string} request.parentId - * The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * The new parent of the firewall policy. The ID can be either be + * "folders/[FOLDER_ID]" if the parent is a folder or + * "organizations/[ORGANIZATION_ID]" if the parent is an organization. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1613,7 +1710,19 @@ export class FirewallPoliciesClient { * @param {google.cloud.compute.v1beta.FirewallPolicy} request.firewallPolicyResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1717,7 +1826,19 @@ export class FirewallPoliciesClient { * @param {number} request.priority * The priority of the rule to patch. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1821,7 +1942,19 @@ export class FirewallPoliciesClient { * @param {number} request.priority * The priority of the rule to patch. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1923,7 +2056,19 @@ export class FirewallPoliciesClient { * @param {string} request.name * Name for the attachment that will be removed. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2025,7 +2170,19 @@ export class FirewallPoliciesClient { * @param {number} request.priority * The priority of the rule to remove from the firewall policy. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2127,7 +2284,19 @@ export class FirewallPoliciesClient { * @param {number} request.priority * The priority of the rule to remove from the firewall policy. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2220,7 +2389,8 @@ export class FirewallPoliciesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -2413,22 +2583,103 @@ export class FirewallPoliciesClient { } /** - * Lists all the policies that have been configured for the specified folder or organization. + * Lists all the policies that have been configured for the specified + * folder or organization. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + * if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + * parent is an organization. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2517,17 +2768,97 @@ export class FirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + * if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + * parent is an organization. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2565,17 +2896,97 @@ export class FirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + * if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + * parent is an organization. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/firewalls_client.ts b/packages/google-cloud-compute/src/v1beta/firewalls_client.ts index 37e3fa8e0a97..a44aab6949ef 100644 --- a/packages/google-cloud-compute/src/v1beta/firewalls_client.ts +++ b/packages/google-cloud-compute/src/v1beta/firewalls_client.ts @@ -337,7 +337,19 @@ export class FirewallsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -528,7 +540,8 @@ export class FirewallsClient { }); } /** - * Creates a firewall rule in the specified project using the data included in the request. + * Creates a firewall rule in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -537,7 +550,19 @@ export class FirewallsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -630,7 +655,10 @@ export class FirewallsClient { }); } /** - * Updates the specified firewall rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified firewall rule with the data included in the + * request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -641,7 +669,19 @@ export class FirewallsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -834,7 +874,10 @@ export class FirewallsClient { }); } /** - * Updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead. + * Updates the specified firewall rule with the data included in the + * request. + * Note that all fields will be updated if using PUT, even fields that are not + * specified. To update individual fields, please use PATCH instead. * * @param {Object} request * The request object that will be sent. @@ -845,7 +888,19 @@ export class FirewallsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -940,22 +995,101 @@ export class FirewallsClient { } /** - * Retrieves the list of firewall rules available to the specified project. + * Retrieves the list of firewall rules available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1049,17 +1183,95 @@ export class FirewallsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1102,17 +1314,95 @@ export class FirewallsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/forwarding_rules_client.ts b/packages/google-cloud-compute/src/v1beta/forwarding_rules_client.ts index 6d548976f05b..501fbdeccef1 100644 --- a/packages/google-cloud-compute/src/v1beta/forwarding_rules_client.ts +++ b/packages/google-cloud-compute/src/v1beta/forwarding_rules_client.ts @@ -341,7 +341,19 @@ export class ForwardingRulesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,7 +548,8 @@ export class ForwardingRulesClient { }); } /** - * Creates a ForwardingRule resource in the specified project and region using the data included in the request. + * Creates a ForwardingRule resource in the specified project and region using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -547,7 +560,19 @@ export class ForwardingRulesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -641,7 +666,11 @@ export class ForwardingRulesClient { }); } /** - * Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. + * Updates the specified forwarding rule with the data included in the + * request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. Currently, you can only + * patch the network_tier field. * * @param {Object} request * The request object that will be sent. @@ -654,7 +683,19 @@ export class ForwardingRulesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -749,7 +790,9 @@ export class ForwardingRulesClient { }); } /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on the specified resource. To learn more about labels, + * read the + * Labeling Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -760,7 +803,19 @@ export class ForwardingRulesClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -857,7 +912,8 @@ export class ForwardingRulesClient { }); } /** - * Changes target URL for forwarding rule. The new target should be of the same type as the old target. + * Changes target URL for forwarding rule. The new target should be of the + * same type as the old target. * * @param {Object} request * The request object that will be sent. @@ -868,7 +924,19 @@ export class ForwardingRulesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetReference} request.targetReferenceResource * The body resource for this request * @param {object} [options] @@ -1069,27 +1137,115 @@ export class ForwardingRulesClient { /** - * Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of forwarding rules. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1126,24 +1282,103 @@ export class ForwardingRulesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IForwardingRulesScopedList]>; } /** - * Retrieves a list of ForwardingRule resources available to the specified project and region. + * Retrieves a list of ForwardingRule resources available to the specified + * project and region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1238,19 +1473,97 @@ export class ForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1294,19 +1607,97 @@ export class ForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/future_reservations_client.ts b/packages/google-cloud-compute/src/v1beta/future_reservations_client.ts index 0b57a29e3829..14743645f59c 100644 --- a/packages/google-cloud-compute/src/v1beta/future_reservations_client.ts +++ b/packages/google-cloud-compute/src/v1beta/future_reservations_client.ts @@ -339,7 +339,19 @@ export class FutureReservationsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * Name of the zone for this request. Name should conform to RFC1035. * @param {object} [options] @@ -445,7 +457,19 @@ export class FutureReservationsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * Name of the zone for this request. Name should conform to RFC1035. * @param {object} [options] @@ -651,7 +675,19 @@ export class FutureReservationsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * Name of the zone for this request. Name should conform to RFC1035. * @param {object} [options] @@ -758,7 +794,19 @@ export class FutureReservationsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {string} request.zone @@ -859,27 +907,115 @@ export class FutureReservationsClient { /** - * Retrieves an aggregated list of future reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of future reservations. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -916,22 +1052,101 @@ export class FutureReservationsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IFutureReservationsScopedList]>; } /** - * A list of all the future reservations that have been configured for the specified project in specified zone. + * A list of all the future reservations that have been configured for the + * specified project in specified zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. Name should conform to RFC1035. * @param {object} [options] @@ -1028,17 +1243,95 @@ export class FutureReservationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. Name should conform to RFC1035. * @param {object} [options] @@ -1084,17 +1377,95 @@ export class FutureReservationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. Name should conform to RFC1035. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/gapic_metadata.json b/packages/google-cloud-compute/src/v1beta/gapic_metadata.json index 4fb564d6eada..1c37fbbdd099 100644 --- a/packages/google-cloud-compute/src/v1beta/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1beta/gapic_metadata.json @@ -345,6 +345,13 @@ "update" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -419,6 +426,13 @@ "update" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -2073,6 +2087,44 @@ } } }, + "GlobalVmExtensionPolicies": { + "clients": { + "grpc": { + "libraryClient": "GlobalVmExtensionPoliciesClient", + "rpcs": { + "Get": { + "methods": [ + "get" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "GlobalVmExtensionPoliciesClient", + "rpcs": { + "Get": { + "methods": [ + "get" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + } + } + } + } + }, "HealthChecks": { "clients": { "grpc": { @@ -2435,6 +2487,11 @@ "get" ] }, + "GetAvailableAcceleratorTopologies": { + "methods": [ + "getAvailableAcceleratorTopologies" + ] + }, "Insert": { "methods": [ "insert" @@ -2590,6 +2647,11 @@ "get" ] }, + "GetAvailableAcceleratorTopologies": { + "methods": [ + "getAvailableAcceleratorTopologies" + ] + }, "Insert": { "methods": [ "insert" @@ -6279,6 +6341,118 @@ } } }, + "RegionBackendBuckets": { + "clients": { + "grpc": { + "libraryClient": "RegionBackendBucketsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + }, + "ListUsable": { + "methods": [ + "listUsable", + "listUsableStream", + "listUsableAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionBackendBucketsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + }, + "ListUsable": { + "methods": [ + "listUsable", + "listUsableStream", + "listUsableAsync" + ] + } + } + } + } + }, "RegionBackendServices": { "clients": { "grpc": { @@ -6513,6 +6687,98 @@ } } }, + "RegionCompositeHealthChecks": { + "clients": { + "grpc": { + "libraryClient": "RegionCompositeHealthChecksClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionCompositeHealthChecksClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "RegionDisks": { "clients": { "grpc": { @@ -6773,6 +7039,98 @@ } } }, + "RegionHealthAggregationPolicies": { + "clients": { + "grpc": { + "libraryClient": "RegionHealthAggregationPoliciesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionHealthAggregationPoliciesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "RegionHealthChecks": { "clients": { "grpc": { @@ -9111,11 +9469,26 @@ "get" ] }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, "PerformMaintenance": { "methods": [ "performMaintenance" ] }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, "List": { "methods": [ "list", @@ -9133,11 +9506,26 @@ "get" ] }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, "PerformMaintenance": { "methods": [ "performMaintenance" ] }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, "List": { "methods": [ "list", @@ -9291,6 +9679,11 @@ "get" ] }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, "PerformMaintenance": { "methods": [ "performMaintenance" @@ -9301,6 +9694,16 @@ "reportFaulty" ] }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, "List": { "methods": [ "list", @@ -9318,6 +9721,11 @@ "get" ] }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, "PerformMaintenance": { "methods": [ "performMaintenance" @@ -9328,6 +9736,16 @@ "reportFaulty" ] }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, "List": { "methods": [ "list", @@ -12008,6 +12426,74 @@ } } } + }, + "ZoneVmExtensionPolicies": { + "clients": { + "grpc": { + "libraryClient": "ZoneVmExtensionPoliciesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Update": { + "methods": [ + "update" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "ZoneVmExtensionPoliciesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Update": { + "methods": [ + "update" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } } } } diff --git a/packages/google-cloud-compute/src/v1beta/global_addresses_client.ts b/packages/google-cloud-compute/src/v1beta/global_addresses_client.ts index 49f67e1f3ccc..f3e423db5762 100644 --- a/packages/google-cloud-compute/src/v1beta/global_addresses_client.ts +++ b/packages/google-cloud-compute/src/v1beta/global_addresses_client.ts @@ -337,7 +337,19 @@ export class GlobalAddressesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -528,7 +540,8 @@ export class GlobalAddressesClient { }); } /** - * Creates an address resource in the specified project by using the data included in the request. + * Creates an address resource in the specified project by using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -537,7 +550,19 @@ export class GlobalAddressesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -641,7 +666,19 @@ export class GlobalAddressesClient { * @param {string} request.project * Source project ID which the Address is moved from. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -735,7 +772,8 @@ export class GlobalAddressesClient { }); } /** - * Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -943,17 +981,95 @@ export class GlobalAddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1047,17 +1163,95 @@ export class GlobalAddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1100,17 +1294,95 @@ export class GlobalAddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/global_forwarding_rules_client.ts b/packages/google-cloud-compute/src/v1beta/global_forwarding_rules_client.ts index ed77b58ef4c7..f13c873ca6c3 100644 --- a/packages/google-cloud-compute/src/v1beta/global_forwarding_rules_client.ts +++ b/packages/google-cloud-compute/src/v1beta/global_forwarding_rules_client.ts @@ -337,7 +337,19 @@ export class GlobalForwardingRulesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -431,7 +443,8 @@ export class GlobalForwardingRulesClient { }); } /** - * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request. + * Returns the specified GlobalForwardingRule resource. Gets a list of + * available forwarding rules by making a list() request. * * @param {Object} request * The request object that will be sent. @@ -528,7 +541,8 @@ export class GlobalForwardingRulesClient { }); } /** - * Creates a GlobalForwardingRule resource in the specified project using the data included in the request. + * Creates a GlobalForwardingRule resource in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -537,7 +551,19 @@ export class GlobalForwardingRulesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -630,7 +656,11 @@ export class GlobalForwardingRulesClient { }); } /** - * Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. + * Updates the specified forwarding rule with the data included in the + * request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. Currently, you can only + * patch the network_tier field. * * @param {Object} request * The request object that will be sent. @@ -641,7 +671,19 @@ export class GlobalForwardingRulesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -735,7 +777,9 @@ export class GlobalForwardingRulesClient { }); } /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation. + * Sets the labels on the specified resource. To learn more about labels, + * read the + * Labeling resources documentation. * * @param {Object} request * The request object that will be sent. @@ -838,7 +882,8 @@ export class GlobalForwardingRulesClient { }); } /** - * Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target. + * Changes target URL for the GlobalForwardingRule resource. The new target + * should be of the same type as the old target. * * @param {Object} request * The request object that will be sent. @@ -847,7 +892,19 @@ export class GlobalForwardingRulesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetReference} request.targetReferenceResource * The body resource for this request * @param {object} [options] @@ -1043,22 +1100,101 @@ export class GlobalForwardingRulesClient { } /** - * Retrieves a list of GlobalForwardingRule resources available to the specified project. + * Retrieves a list of GlobalForwardingRule resources available to the + * specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1152,17 +1288,95 @@ export class GlobalForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1205,17 +1419,95 @@ export class GlobalForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/global_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1beta/global_network_endpoint_groups_client.ts index 14bc323775a4..8955083a0b30 100644 --- a/packages/google-cloud-compute/src/v1beta/global_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/global_network_endpoint_groups_client.ts @@ -337,11 +337,24 @@ export class GlobalNetworkEndpointGroupsClient { * @param {google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsAttachEndpointsRequest} request.globalNetworkEndpointGroupsAttachEndpointsRequestResource * The body resource for this request * @param {string} request.networkEndpointGroup - * The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + * The name of the network endpoint group where you are attaching network + * endpoints to. It should comply with RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -435,16 +448,30 @@ export class GlobalNetworkEndpointGroupsClient { }); } /** - * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it. + * Deletes the specified network endpoint group.Note that the NEG cannot be + * deleted if there are backend services referencing it. * * @param {Object} request * The request object that will be sent. * @param {string} request.networkEndpointGroup - * The name of the network endpoint group to delete. It should comply with RFC1035. + * The name of the network endpoint group to delete. It should comply with + * RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -545,11 +572,24 @@ export class GlobalNetworkEndpointGroupsClient { * @param {google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsDetachEndpointsRequest} request.globalNetworkEndpointGroupsDetachEndpointsRequestResource * The body resource for this request * @param {string} request.networkEndpointGroup - * The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. + * The name of the network endpoint group where you are removing network + * endpoints. It should comply with RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -740,7 +780,8 @@ export class GlobalNetworkEndpointGroupsClient { }); } /** - * Creates a network endpoint group in the specified project using the parameters that are included in the request. + * Creates a network endpoint group in the specified project using the + * parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -749,7 +790,19 @@ export class GlobalNetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -843,22 +896,101 @@ export class GlobalNetworkEndpointGroupsClient { } /** - * Retrieves the list of network endpoint groups that are located in the specified project. + * Retrieves the list of network endpoint groups that are located in the + * specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -952,17 +1084,95 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1005,17 +1215,95 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1057,19 +1345,98 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.networkEndpointGroup - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1164,19 +1531,98 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.networkEndpointGroup - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1220,19 +1666,98 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.networkEndpointGroup - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/global_operations_client.ts b/packages/google-cloud-compute/src/v1beta/global_operations_client.ts index 5f27c199e31b..60bca7dc096b 100644 --- a/packages/google-cloud-compute/src/v1beta/global_operations_client.ts +++ b/packages/google-cloud-compute/src/v1beta/global_operations_client.ts @@ -335,7 +335,8 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to delete, or its unique numeric identifier. + * Name of the Operations resource to delete, or its unique numeric + * identifier. * @param {string} request.project * Project ID for this request. * @param {object} [options] @@ -432,7 +433,8 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. * @param {string} request.project * Project ID for this request. * @param {object} [options] @@ -524,12 +526,28 @@ export class GlobalOperationsClient { }); } /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. + * Waits for the specified Operation resource to return as `DONE` + * or for the request to approach the 2 minute deadline, and retrieves the + * specified Operation resource. This method differs from the + * `GET` method in that it waits for no more than the default + * deadline (2 minutes) and then returns the current state of the operation, + * which might be `DONE` or still in progress. + * + * This method is called on a best-effort basis. Specifically: + * + * + * - In uncommon cases, when the server is overloaded, the request might + * return before the default deadline is reached, or might return after zero + * seconds. + * - If the default deadline is reached, there is no guarantee that the + * operation is actually done when the method returns. Be prepared to retry + * if the operation is not `DONE`. * * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. * @param {string} request.project * Project ID for this request. * @param {object} [options] @@ -623,27 +641,115 @@ export class GlobalOperationsClient { /** - * Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of all operations. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -680,22 +786,101 @@ export class GlobalOperationsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IOperationsScopedList]>; } /** - * Retrieves a list of Operation resources contained within the specified project. + * Retrieves a list of Operation resources contained within the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -789,17 +974,95 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -842,17 +1105,95 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/global_organization_operations_client.ts b/packages/google-cloud-compute/src/v1beta/global_organization_operations_client.ts index d0c81a83c0b6..5f2c0daf55fa 100644 --- a/packages/google-cloud-compute/src/v1beta/global_organization_operations_client.ts +++ b/packages/google-cloud-compute/src/v1beta/global_organization_operations_client.ts @@ -333,7 +333,8 @@ export class GlobalOrganizationOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to delete, or its unique numeric identifier. + * Name of the Operations resource to delete, or its unique numeric + * identifier. * @param {string} request.parentId * Parent ID for this request. * @param {object} [options] @@ -424,12 +425,14 @@ export class GlobalOrganizationOperationsClient { }); } /** - * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` request. + * Retrieves the specified Operations resource. Gets a list of operations + * by making a `list()` request. * * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return. Parent is derived from this field. + * Name of the Operations resource to return. Parent is derived from this + * field. * @param {string} request.parentId * Parent ID for this request. Not used. Parent is derived from resource_id. * @param {object} [options] @@ -521,22 +524,101 @@ export class GlobalOrganizationOperationsClient { } /** - * Retrieves a list of Operation resources contained within the specified organization. + * Retrieves a list of Operation resources contained within the specified + * organization. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -625,17 +707,95 @@ export class GlobalOrganizationOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -673,17 +833,95 @@ export class GlobalOrganizationOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/global_public_delegated_prefixes_client.ts b/packages/google-cloud-compute/src/v1beta/global_public_delegated_prefixes_client.ts index c48a414af39b..820a88991479 100644 --- a/packages/google-cloud-compute/src/v1beta/global_public_delegated_prefixes_client.ts +++ b/packages/google-cloud-compute/src/v1beta/global_public_delegated_prefixes_client.ts @@ -337,7 +337,19 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {string} request.publicDelegatedPrefix * Name of the PublicDelegatedPrefix resource to delete. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -528,7 +540,8 @@ export class GlobalPublicDelegatedPrefixesClient { }); } /** - * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are included in the request. + * Creates a global PublicDelegatedPrefix in the specified project using the + * parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -537,7 +550,19 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {google.cloud.compute.v1beta.PublicDelegatedPrefix} request.publicDelegatedPrefixResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -630,7 +655,10 @@ export class GlobalPublicDelegatedPrefixesClient { }); } /** - * Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified global PublicDelegatedPrefix resource with the data + * included in the request. This method supportsPATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -641,7 +669,19 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {google.cloud.compute.v1beta.PublicDelegatedPrefix} request.publicDelegatedPrefixResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -741,17 +781,95 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -845,17 +963,95 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -898,17 +1094,95 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/global_vm_extension_policies_client.ts b/packages/google-cloud-compute/src/v1beta/global_vm_extension_policies_client.ts new file mode 100644 index 000000000000..255ef3486226 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/global_vm_extension_policies_client.ts @@ -0,0 +1,593 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1beta/global_vm_extension_policies_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './global_vm_extension_policies_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The GlobalVmExtensionPolicies API. + * @class + * @memberof v1beta + */ +export class GlobalVmExtensionPoliciesClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + globalVmExtensionPoliciesStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of GlobalVmExtensionPoliciesClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new GlobalVmExtensionPoliciesClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof GlobalVmExtensionPoliciesClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + aggregatedList: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1beta.GlobalVmExtensionPolicies', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.globalVmExtensionPoliciesStub) { + return this.globalVmExtensionPoliciesStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1beta.GlobalVmExtensionPolicies. + this.globalVmExtensionPoliciesStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1beta.GlobalVmExtensionPolicies') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1beta.GlobalVmExtensionPolicies, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const globalVmExtensionPoliciesStubMethods = + ['aggregatedList', 'get']; + for (const methodName of globalVmExtensionPoliciesStubMethods) { + const callPromise = this.globalVmExtensionPoliciesStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.globalVmExtensionPoliciesStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute.readonly', + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * Gets details of a global VM extension policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.globalVmExtensionPolicy + * Name of the GlobalVmExtensionPolicy resource to return. + * @param {string} request.project + * Project ID for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.GlobalVmExtensionPolicy|GlobalVmExtensionPolicy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/global_vm_extension_policies.get.js + * region_tag:compute_v1beta_generated_GlobalVmExtensionPolicies_Get_async + */ + get( + request?: protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'global_vm_extension_policy': request.globalVmExtensionPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IGlobalVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetGlobalVmExtensionPolicyRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + +/** + * Retrieves the list of all VM Extension Policy resources + * available to the specified project. + * + * To prevent failure, it's recommended that you set the + * `returnPartialSuccess` parameter to `true`. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {boolean} request.includeAllScopes + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Name of the project scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * as tuple [string, {@link protos.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList|VmExtensionPoliciesScopedList}]. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/global_vm_extension_policies.aggregated_list.js + * region_tag:compute_v1beta_generated_GlobalVmExtensionPolicies_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList]>{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + }); + const defaultCallSettings = this._defaults['aggregatedList']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('aggregatedList iterate %j', request); + return this.descriptors.page.aggregatedList.asyncIterate( + this.innerApiCalls['aggregatedList'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList]>; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.globalVmExtensionPoliciesStub && !this._terminated) { + return this.globalVmExtensionPoliciesStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1beta/global_vm_extension_policies_client_config.json b/packages/google-cloud-compute/src/v1beta/global_vm_extension_policies_client_config.json new file mode 100644 index 000000000000..d5f4429f6ef7 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/global_vm_extension_policies_client_config.json @@ -0,0 +1,34 @@ +{ + "interfaces": { + "google.cloud.compute.v1beta.GlobalVmExtensionPolicies": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1beta/global_vm_extension_policies_proto_list.json b/packages/google-cloud-compute/src/v1beta/global_vm_extension_policies_proto_list.json new file mode 100644 index 000000000000..ecbfc90443e6 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/global_vm_extension_policies_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1beta/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1beta/health_checks_client.ts b/packages/google-cloud-compute/src/v1beta/health_checks_client.ts index 43eeea621b22..04cddf56bf5a 100644 --- a/packages/google-cloud-compute/src/v1beta/health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/health_checks_client.ts @@ -339,7 +339,19 @@ export class HealthChecksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -530,7 +542,8 @@ export class HealthChecksClient { }); } /** - * Creates a HealthCheck resource in the specified project using the data included in the request. + * Creates a HealthCheck resource in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -539,7 +552,19 @@ export class HealthChecksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -632,7 +657,10 @@ export class HealthChecksClient { }); } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates a HealthCheck resource in the specified project using the data + * included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -643,7 +671,19 @@ export class HealthChecksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -836,7 +876,8 @@ export class HealthChecksClient { }); } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. + * Updates a HealthCheck resource in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -847,7 +888,19 @@ export class HealthChecksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -943,27 +996,116 @@ export class HealthChecksClient { /** - * Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all HealthCheck resources, regional and global, + * available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1000,22 +1142,101 @@ export class HealthChecksClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IHealthChecksScopedList]>; } /** - * Retrieves the list of HealthCheck resources available to the specified project. + * Retrieves the list of HealthCheck resources available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1109,17 +1330,95 @@ export class HealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1162,17 +1461,95 @@ export class HealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/image_family_views_client.ts b/packages/google-cloud-compute/src/v1beta/image_family_views_client.ts index 20ff77b74c41..5f2d883f21ad 100644 --- a/packages/google-cloud-compute/src/v1beta/image_family_views_client.ts +++ b/packages/google-cloud-compute/src/v1beta/image_family_views_client.ts @@ -320,7 +320,8 @@ export class ImageFamilyViewsClient { // -- Service calls -- // ------------------- /** - * Returns the latest image that is part of an image family, is not deprecated and is rolled out in the specified zone. + * Returns the latest image that is part of an image family, is not + * deprecated and is rolled out in the specified zone. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1beta/images_client.ts b/packages/google-cloud-compute/src/v1beta/images_client.ts index 30612b1ac3dc..b7509eea7791 100644 --- a/packages/google-cloud-compute/src/v1beta/images_client.ts +++ b/packages/google-cloud-compute/src/v1beta/images_client.ts @@ -337,7 +337,19 @@ export class ImagesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -431,7 +443,9 @@ export class ImagesClient { }); } /** - * Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead. + * Sets the deprecation status of an image. + * + * If an empty request body is given, clears the deprecation status instead. * * @param {Object} request * The request object that will be sent. @@ -442,7 +456,19 @@ export class ImagesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -633,14 +659,17 @@ export class ImagesClient { }); } /** - * Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation. + * Returns the latest image that is part of an image family and is not + * deprecated. For more information on image families, seePublic + * image families documentation. * * @param {Object} request * The request object that will be sent. * @param {string} request.family * Name of the image family to search for. * @param {string} request.project - * The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project. + * The image project that the image belongs to. For example, to get a CentOS + * image, specify centos-cloud as the image project. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -730,7 +759,8 @@ export class ImagesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -829,7 +859,8 @@ export class ImagesClient { }); } /** - * Creates an image in the specified project using the data included in the request. + * Creates an image in the specified project using the data included + * in the request. * * @param {Object} request * The request object that will be sent. @@ -840,7 +871,19 @@ export class ImagesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -933,7 +976,9 @@ export class ImagesClient { }); } /** - * Patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status. + * Patches the specified image with the data included in the request. + * Only the following fields can be modified: family, description, + * deprecation status. * * @param {Object} request * The request object that will be sent. @@ -944,7 +989,19 @@ export class ImagesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1038,7 +1095,8 @@ export class ImagesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1137,7 +1195,8 @@ export class ImagesClient { }); } /** - * Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on an image. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -1340,22 +1399,106 @@ export class ImagesClient { } /** - * Retrieves the list of custom images available to the specified project. Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly-available images, like Debian 8. If you want to get a list of publicly-available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. + * Retrieves the list of custom images + * available to the specified project. Custom images are images you + * create that belong to your project. This method does not + * get any images that belong to other projects, including publicly-available + * images, like Debian 8. If you want to get a list of publicly-available + * images, use this method to make a request to the respective image project, + * such as debian-cloud or windows-cloud. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The zone query parameter. * @param {object} [options] @@ -1451,17 +1594,95 @@ export class ImagesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The zone query parameter. * @param {object} [options] @@ -1506,17 +1727,95 @@ export class ImagesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The zone query parameter. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/index.ts b/packages/google-cloud-compute/src/v1beta/index.ts index 67043ebfd47c..b00af103751e 100644 --- a/packages/google-cloud-compute/src/v1beta/index.ts +++ b/packages/google-cloud-compute/src/v1beta/index.ts @@ -37,6 +37,7 @@ export {GlobalNetworkEndpointGroupsClient} from './global_network_endpoint_group export {GlobalOperationsClient} from './global_operations_client'; export {GlobalOrganizationOperationsClient} from './global_organization_operations_client'; export {GlobalPublicDelegatedPrefixesClient} from './global_public_delegated_prefixes_client'; +export {GlobalVmExtensionPoliciesClient} from './global_vm_extension_policies_client'; export {HealthChecksClient} from './health_checks_client'; export {ImageFamilyViewsClient} from './image_family_views_client'; export {ImagesClient} from './images_client'; @@ -73,11 +74,14 @@ export {ProjectsClient} from './projects_client'; export {PublicAdvertisedPrefixesClient} from './public_advertised_prefixes_client'; export {PublicDelegatedPrefixesClient} from './public_delegated_prefixes_client'; export {RegionAutoscalersClient} from './region_autoscalers_client'; +export {RegionBackendBucketsClient} from './region_backend_buckets_client'; export {RegionBackendServicesClient} from './region_backend_services_client'; export {RegionCommitmentsClient} from './region_commitments_client'; +export {RegionCompositeHealthChecksClient} from './region_composite_health_checks_client'; export {RegionDisksClient} from './region_disks_client'; export {RegionDiskSettingsClient} from './region_disk_settings_client'; export {RegionDiskTypesClient} from './region_disk_types_client'; +export {RegionHealthAggregationPoliciesClient} from './region_health_aggregation_policies_client'; export {RegionHealthChecksClient} from './region_health_checks_client'; export {RegionHealthCheckServicesClient} from './region_health_check_services_client'; export {RegionHealthSourcesClient} from './region_health_sources_client'; @@ -133,3 +137,4 @@ export {VpnTunnelsClient} from './vpn_tunnels_client'; export {WireGroupsClient} from './wire_groups_client'; export {ZoneOperationsClient} from './zone_operations_client'; export {ZonesClient} from './zones_client'; +export {ZoneVmExtensionPoliciesClient} from './zone_vm_extension_policies_client'; diff --git a/packages/google-cloud-compute/src/v1beta/instance_group_manager_resize_requests_client.ts b/packages/google-cloud-compute/src/v1beta/instance_group_manager_resize_requests_client.ts index 884485c90164..7ff4e53d5acb 100644 --- a/packages/google-cloud-compute/src/v1beta/instance_group_manager_resize_requests_client.ts +++ b/packages/google-cloud-compute/src/v1beta/instance_group_manager_resize_requests_client.ts @@ -328,20 +328,38 @@ export class InstanceGroupManagerResizeRequestsClient { // -- Service calls -- // ------------------- /** - * Cancels the specified resize request and removes it from the queue. Cancelled resize request does no longer wait for the resources to be provisioned. Cancel is only possible for requests that are accepted in the queue. + * Cancels the specified resize request and removes it from the queue. + * Cancelled resize request does no longer wait for the resources to be + * provisioned. Cancel is only possible for requests that are accepted in the + * queue. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * The name should conform to RFC1035 or be a resource ID. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resizeRequest - * The name of the resize request to cancel. The name should conform to RFC1035 or be a resource ID. + * The name of the resize request to cancel. + * The name should conform to RFC1035 or be a resource ID. * @param {string} request.zone - * The name of the zone where the managed instance group is located. The name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. The name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -437,20 +455,37 @@ export class InstanceGroupManagerResizeRequestsClient { }); } /** - * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously. + * Deletes the specified, inactive resize request. Requests that are still + * active cannot be deleted. Deleting request does not delete instances that + * were provisioned previously. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * The name should conform to RFC1035 or be a resource ID. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resizeRequest - * The name of the resize request to delete. The name should conform to RFC1035 or be a resource ID. + * The name of the resize request to delete. + * The name should conform to RFC1035 or be a resource ID. * @param {string} request.zone - * The name of the zone where the managed instance group is located. The name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. The name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -551,13 +586,16 @@ export class InstanceGroupManagerResizeRequestsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. * @param {string} request.project * Project ID for this request. * @param {string} request.resizeRequest - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + * The name of the resize request. + * Name should conform to RFC1035 or be a resource ID. * @param {string} request.zone - * Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should conform to RFC1035. + * Name of the href="/compute/docs/regions-zones/#available">zone + * scoping this request. Name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -649,20 +687,37 @@ export class InstanceGroupManagerResizeRequestsClient { }); } /** - * Creates a new resize request that starts provisioning VMs immediately or queues VM creation. + * Creates a new resize request that starts provisioning VMs immediately + * or queues VM creation. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group to which the resize request will be added. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group to which the resize request will + * be added. + * Name should conform to RFC1035 or be a resource ID. * @param {google.cloud.compute.v1beta.InstanceGroupManagerResizeRequest} request.instanceGroupManagerResizeRequestResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located and where the resize request will be created. Name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located and where the resize request will be created. + * Name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -758,26 +813,106 @@ export class InstanceGroupManagerResizeRequestsClient { } /** - * Retrieves a list of resize requests that are contained in the managed instance group. + * Retrieves a list of resize requests that are contained in the + * managed instance group. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. The name should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. The name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. The name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -873,21 +1008,100 @@ export class InstanceGroupManagerResizeRequestsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. The name should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. The name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. The name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -932,21 +1146,100 @@ export class InstanceGroupManagerResizeRequestsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. The name should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. The name should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. The name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/instance_group_managers_client.ts b/packages/google-cloud-compute/src/v1beta/instance_group_managers_client.ts index 63f987ad9eb9..b17554d6dd5a 100644 --- a/packages/google-cloud-compute/src/v1beta/instance_group_managers_client.ts +++ b/packages/google-cloud-compute/src/v1beta/instance_group_managers_client.ts @@ -231,7 +231,7 @@ export class InstanceGroupManagersClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const instanceGroupManagersStubMethods = - ['abandonInstances', 'aggregatedList', 'applyUpdatesToInstances', 'createInstances', 'delete', 'deleteInstances', 'deletePerInstanceConfigs', 'get', 'insert', 'list', 'listErrors', 'listManagedInstances', 'listPerInstanceConfigs', 'patch', 'patchPerInstanceConfigs', 'recreateInstances', 'resize', 'resizeAdvanced', 'resumeInstances', 'setAutoHealingPolicies', 'setInstanceTemplate', 'setTargetPools', 'startInstances', 'stopInstances', 'suspendInstances', 'testIamPermissions', 'update', 'updatePerInstanceConfigs']; + ['abandonInstances', 'aggregatedList', 'applyUpdatesToInstances', 'createInstances', 'delete', 'deleteInstances', 'deletePerInstanceConfigs', 'get', 'getAvailableAcceleratorTopologies', 'insert', 'list', 'listErrors', 'listManagedInstances', 'listPerInstanceConfigs', 'patch', 'patchPerInstanceConfigs', 'recreateInstances', 'resize', 'resizeAdvanced', 'resumeInstances', 'setAutoHealingPolicies', 'setInstanceTemplate', 'setTargetPools', 'startInstances', 'stopInstances', 'suspendInstances', 'testIamPermissions', 'update', 'updatePerInstanceConfigs']; for (const methodName of instanceGroupManagersStubMethods) { const callPromise = this.instanceGroupManagersStub.then( stub => (...args: Array<{}>) => { @@ -336,7 +336,21 @@ export class InstanceGroupManagersClient { // -- Service calls -- // ------------------- /** - * Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances to be removed from the + * managed instance group. Abandoning an instance does not delete the + * instance, but it does remove the instance from any target pools that are + * applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the + * number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have + * not yet been removed from the group. You must separately verify the + * status of the abandoning action with thelistmanagedinstances + * method. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -347,9 +361,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -444,7 +471,8 @@ export class InstanceGroupManagersClient { }); } /** - * Applies changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions. + * Applies changes to selected instances on the managed instance group. + * This method can be used to apply new overrides and/or new versions. * * @param {Object} request * The request object that will be sent. @@ -455,7 +483,8 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.zone - * The name of the zone where the managed instance group is located. Should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. Should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -550,20 +579,37 @@ export class InstanceGroupManagersClient { }); } /** - * Creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method. + * Creates instances with per-instance configurations in this managed instance + * group. Instances are created using the current instance template. Thecreate instances operation is marked DONE if thecreateInstances request is successful. The underlying actions + * take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances + * method. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. * @param {google.cloud.compute.v1beta.InstanceGroupManagersCreateInstancesRequest} request.instanceGroupManagersCreateInstancesRequestResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -658,7 +704,10 @@ export class InstanceGroupManagersClient { }); } /** - * Deletes the specified managed instance group and all of the instances in that group. Note that the instance group must not belong to a backend service. Read Deleting an instance group for more information. + * Deletes the specified managed instance group and all of the instances + * in that group. Note that the instance group must not belong to a + * backend service. Read + * Deleting an instance group for more information. * * @param {Object} request * The request object that will be sent. @@ -667,9 +716,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -764,7 +826,21 @@ export class InstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group for immediate + * deletion. The instances are also removed from any target + * pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of + * instances that you delete. This operation is marked as DONE + * when the action is scheduled even if the instances are still being deleted. + * You must separately verify the status of the deleting action + * with thelistmanagedinstances + * method. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -775,9 +851,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -872,18 +961,23 @@ export class InstanceGroupManagersClient { }); } /** - * Deletes selected per-instance configurations for the managed instance group. + * Deletes selected per-instance configurations for the managed instance + * group. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. * @param {google.cloud.compute.v1beta.InstanceGroupManagersDeletePerInstanceConfigsReq} request.instanceGroupManagersDeletePerInstanceConfigsReqResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance + * group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -987,7 +1081,8 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1078,7 +1173,120 @@ export class InstanceGroupManagersClient { }); } /** - * Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit. + * Returns information about available accelerator topologies for a given MIG. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Required. Project ID for this request. + * @param {string} request.resourceId + * Required. The name of the managed instance group. + * It should conform to RFC1035. + * @param {string} request.zone + * Required. The name of thezone where the managed + * instance group is located. + * Name should conform to RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse|InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/instance_group_managers.get_available_accelerator_topologies.js + * region_tag:compute_v1beta_generated_InstanceGroupManagers_GetAvailableAcceleratorTopologies_async + */ + getAvailableAcceleratorTopologies( + request?: protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, + protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest|undefined, {}|undefined + ]>; + getAvailableAcceleratorTopologies( + request: protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, + protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>): void; + getAvailableAcceleratorTopologies( + request: protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, + protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>): void; + getAvailableAcceleratorTopologies( + request?: protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, + protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, + protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, + protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'resource_id': request.resourceId?.toString() ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getAvailableAcceleratorTopologies request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, + protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getAvailableAcceleratorTopologies response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getAvailableAcceleratorTopologies(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse, + protos.google.cloud.compute.v1beta.IGetAvailableAcceleratorTopologiesInstanceGroupManagerRequest|undefined, + {}|undefined + ]) => { + this._log.info('getAvailableAcceleratorTopologies response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Creates a managed instance group using the information that you specify + * in the request. After the group is created, instances in the group are + * created using the specified instance template. + * This operation is marked as DONE when the group is created + * even if the instances in the group have not yet been created. You + * must separately verify the status of the individual instances with thelistmanagedinstances + * method. + * + * A managed instance group can have up to 1000 VM instances per group. Please + * contact Cloud Support if you need an increase in + * this limit. * * @param {Object} request * The request object that will be sent. @@ -1087,9 +1295,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where you want to create the managed instance group. + * The name of the zone + * where you want to create the managed instance group. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1183,7 +1404,21 @@ export class InstanceGroupManagersClient { }); } /** - * Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listManagedInstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + * Updates a managed instance group using the information that you specify + * in the request. + * This operation is marked as DONE when the group is patched + * even if the instances in the group are still in the process of being + * patched. You must separately verify the status of the individual instances + * with thelistManagedInstances + * method. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. + * + * If you update your group to specify a new template or instance + * configuration, it's possible that your intended specification for each VM + * in the group is different from the current state of that VM. To learn how + * to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + * a MIG. * * @param {Object} request * The request object that will be sent. @@ -1194,9 +1429,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where you want to create the managed instance group. + * The name of the zone where + * you want to create the managed instance group. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1291,20 +1539,37 @@ export class InstanceGroupManagersClient { }); } /** - * Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * Inserts or patches per-instance configurations for the managed instance + * group. perInstanceConfig.name serves as a key used to + * distinguish whether to perform insert or patch. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. * @param {google.cloud.compute.v1beta.InstanceGroupManagersPatchPerInstanceConfigsReq} request.instanceGroupManagersPatchPerInstanceConfigsReqResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1399,7 +1664,19 @@ export class InstanceGroupManagersClient { }); } /** - * Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified VM instances in the managed instance group to be + * immediately recreated. Each instance is recreated using the group's current + * configuration. This operation is marked as DONE when the flag + * is set even if the instances have not yet been recreated. You must + * separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking + * the status of managed instances. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -1410,9 +1687,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1507,7 +1797,29 @@ export class InstanceGroupManagersClient { }); } /** - * Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. + * Resizes the managed instance group. If you increase the size, the group + * creates new instances using the current instance template. If you decrease + * the size, the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group + * has not yet added or deleted any instances. You must separately + * verify the status of the creating or deleting + * actions with thelistmanagedinstances + * method. + * + * When resizing down, the instance group arbitrarily chooses the order in + * which VMs are deleted. The group takes into account some VM attributes when + * making the selection including: + * + * + The status of the VM instance. + * + The health of the VM instance. + * + The instance template version the VM is based on. + * + For regional managed instance groups, the location of the VM instance. + * + * This list is subject to change. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. * * @param {Object} request * The request object that will be sent. @@ -1516,11 +1828,26 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {number} request.size - * The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter. + * The number of running instances that the managed instance group should + * maintain at any given time. The group automatically adds or removes + * instances to maintain the number of instances specified by this parameter. * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1615,7 +1942,22 @@ export class InstanceGroupManagersClient { }); } /** - * Resizes the managed instance group with advanced configuration options like disabling creation retries. This is an extended version of the resize method. If you increase the size of the instance group, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating, creatingWithoutRetries, or deleting actions with the get or listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. + * Resizes the managed instance group with advanced configuration options like + * disabling creation retries. This is an extended version of theresize method. + * + * If you increase the size of the instance group, the group creates new + * instances using the current instance template. If you decrease the size, + * the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group + * has not yet added or deleted any instances. You must separately + * verify the status of the creating,creatingWithoutRetries, or deleting actions with + * the get + * orlistmanagedinstances + * method. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. * * @param {Object} request * The request object that will be sent. @@ -1626,9 +1968,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1723,7 +2078,22 @@ export class InstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group to be + * resumed. This method increases thetargetSize and decreases the targetSuspendedSize + * of the managed instance group by the number of instances that you resume. + * The resumeInstances operation is marked DONE if + * the resumeInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances + * method. + * + * In this request, you can only specify instances that are suspended. For + * example, if an instance was previously suspended using the suspendInstances + * method, it can be resumed using the resumeInstances method. + * + * If a health check is attached to the managed instance group, the specified + * instances will be verified as healthy after they are resumed. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -1734,9 +2104,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1831,7 +2214,9 @@ export class InstanceGroupManagersClient { }); } /** - * Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. Use instanceGroupManagers.patch instead. + * Motifies the autohealing policy for the instances in this managed + * instance group. + * [Deprecated] This method is deprecated. UseinstanceGroupManagers.patch instead. * * @param {Object} request * The request object that will be sent. @@ -1842,9 +2227,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1939,7 +2337,9 @@ export class InstanceGroupManagersClient { }); } /** - * Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. + * Specifies the instance template to use when creating new instances in this + * group. The templates for existing instances in the group do not change + * unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. * * @param {Object} request * The request object that will be sent. @@ -1950,9 +2350,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2047,7 +2460,12 @@ export class InstanceGroupManagersClient { }); } /** - * Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is marked DONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group. + * Modifies the target pools to which all instances in this managed instance + * group are assigned. The target pools automatically apply to all of the + * instances in the managed instance group. This operation is markedDONE when you make the request even if the instances have not + * yet been added to their target pools. The change might take some time to + * apply to all of the instances in the group depending on the size of the + * group. * * @param {Object} request * The request object that will be sent. @@ -2058,9 +2476,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2155,7 +2586,22 @@ export class InstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group to be + * started. This method increases thetargetSize and decreases the targetStoppedSize + * of the managed instance group by the number of instances that you start. + * The startInstances operation is marked DONE if + * the startInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances + * method. + * + * In this request, you can only specify instances that are stopped. For + * example, if an instance was previously stopped using the stopInstances + * method, it can be started using the startInstances method. + * + * If a health check is attached to the managed instance group, the specified + * instances will be verified as healthy after they are started. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -2166,9 +2612,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2263,7 +2722,31 @@ export class InstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group to be + * immediately stopped. You can only specify instances that are running in + * this request. This method reduces thetargetSize and increases the targetStoppedSize + * of the managed instance group by the number of instances that you stop. + * The stopInstances operation is marked DONE if + * the stopInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances + * method. + * + * If the standbyPolicy.initialDelaySec field is set, the group + * delays stopping the instances until initialDelaySec have + * passed from instance.creationTimestamp (that is, when the + * instance was created). This delay gives your application time to + * set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there + * will be zero delay. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. + * + * Stopped instances can be started using the startInstances + * method. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -2274,9 +2757,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2371,7 +2867,31 @@ export class InstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group to be + * immediately suspended. You can only specify instances that are running in + * this request. This method reduces thetargetSize and increases the targetSuspendedSize + * of the managed instance group by the number of instances that you suspend. + * The suspendInstances operation is marked DONE if + * the suspendInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances + * method. + * + * If the standbyPolicy.initialDelaySec field is set, the group + * delays suspension of the instances until initialDelaySec have + * passed from instance.creationTimestamp (that is, when the + * instance was created). This delay gives your application time to + * set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there + * will be zero delay. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. + * + * Suspended instances can be resumed using the resumeInstances + * method. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -2382,9 +2902,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2581,7 +3114,18 @@ export class InstanceGroupManagersClient { }); } /** - * Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with the listManagedInstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + * Updates a managed instance group using the information that you specify + * in the request. + * This operation is marked as DONE when the group is updated + * even if the instances in the group have not yet been updated. You must + * separately verify the status of the individual instances with thelistManagedInstances + * method. + * + * If you update your group to specify a new template or instance + * configuration, it's possible that your intended specification for each VM + * in the group is different from the current state of that VM. To learn how + * to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + * a MIG. * * @param {Object} request * The request object that will be sent. @@ -2592,9 +3136,22 @@ export class InstanceGroupManagersClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where you want to create the managed instance group. + * The name of the zone + * where you want to create the managed instance group. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2689,20 +3246,37 @@ export class InstanceGroupManagersClient { }); } /** - * Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * Inserts or updates per-instance configurations for the managed instance + * group. perInstanceConfig.name serves as a key used to + * distinguish whether to perform insert or patch. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. * @param {google.cloud.compute.v1beta.InstanceGroupManagersUpdatePerInstanceConfigsReq} request.instanceGroupManagersUpdatePerInstanceConfigsReqResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2799,27 +3373,115 @@ export class InstanceGroupManagersClient { /** - * Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of managed instance groups and groups them by zone. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -2856,24 +3518,104 @@ export class InstanceGroupManagersClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IInstanceGroupManagersScopedList]>; } /** - * Retrieves a list of managed instance groups that are contained within the specified project and zone. + * Retrieves a list of managed instance groups that are contained within the + * specified project and zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2968,19 +3710,98 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -3024,19 +3845,98 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -3074,26 +3974,111 @@ export class InstanceGroupManagersClient { ) as AsyncIterable; } /** - * Lists all errors thrown by actions on instances for a given managed instance group. The filter and orderBy query parameters are not supported. + * Lists all errors thrown by actions on instances for a given managed + * instance group. The filter and orderBy query + * parameters are not supported. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035, or an + * unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3189,21 +4174,104 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035, or an + * unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -3248,21 +4316,104 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035, or an + * unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone where the managed + * instance group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -3301,26 +4452,113 @@ export class InstanceGroupManagersClient { ) as AsyncIterable; } /** - * Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. + * Lists all of the instances in the managed instance group. Each instance + * in the list has a currentAction, which indicates the action + * that the managed instance group is performing on the instance. For example, + * if the group is still creating an instance, the currentAction + * is CREATING. If a previous action failed, the + * list displays the errors for that failed action. The orderBy + * query parameter is not supported. The `pageToken` query parameter is + * supported only if the group's `listManagedInstancesResults` field is set + * to `PAGINATED`. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3416,21 +4654,100 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -3475,21 +4792,100 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. + * The name of thezone where the managed + * instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -3528,26 +4924,107 @@ export class InstanceGroupManagersClient { ) as AsyncIterable; } /** - * Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported. + * Lists all of the per-instance configurations defined for the managed + * instance group. The orderBy query parameter is not supported. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3643,21 +5120,101 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -3702,21 +5259,101 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the managed instance group is located. It should conform to RFC1035. + * The name of thezone + * where the managed instance group is located. + * It should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/instance_group_managers_client_config.json b/packages/google-cloud-compute/src/v1beta/instance_group_managers_client_config.json index 2deaa3afd4f9..6ac5588038e9 100644 --- a/packages/google-cloud-compute/src/v1beta/instance_group_managers_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/instance_group_managers_client_config.json @@ -52,6 +52,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetAvailableAcceleratorTopologies": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "Insert": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1beta/instance_groups_client.ts b/packages/google-cloud-compute/src/v1beta/instance_groups_client.ts index aa37605d40e2..df137c39ff9d 100644 --- a/packages/google-cloud-compute/src/v1beta/instance_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/instance_groups_client.ts @@ -332,7 +332,10 @@ export class InstanceGroupsClient { // -- Service calls -- // ------------------- /** - * Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information. + * Adds a list of instances to the specified instance group. All of the + * instances in the instance group must be in the same network/subnetwork. + * Read + * Adding instances for more information. * * @param {Object} request * The request object that will be sent. @@ -343,9 +346,22 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -440,7 +456,10 @@ export class InstanceGroupsClient { }); } /** - * Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information. + * Deletes the specified instance group. The instances in the group are not + * deleted. Note that instance group must not belong to a backend service. + * Read + * Deleting an instance group for more information. * * @param {Object} request * The request object that will be sent. @@ -449,9 +468,22 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -546,7 +578,12 @@ export class InstanceGroupsClient { }); } /** - * Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead. + * Returns the specified zonal instance group. Get a list of available zonal + * instance groups by making a list() request. + * + * For managed instance groups, use theinstanceGroupManagers + * or regionInstanceGroupManagers + * methods instead. * * @param {Object} request * The request object that will be sent. @@ -555,7 +592,8 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -646,7 +684,8 @@ export class InstanceGroupsClient { }); } /** - * Creates an instance group in the specified project using the parameters that are included in the request. + * Creates an instance group in the specified project using the + * parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -655,9 +694,22 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where you want to create the instance group. + * The name of the zone + * where you want to create the instance group. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -751,20 +803,40 @@ export class InstanceGroupsClient { }); } /** - * Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted. + * Removes one or more instances from the specified instance group, but does + * not delete those instances. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration before the VM instance is removed or deleted. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroup - * The name of the instance group where the specified instances will be removed. + * The name of the instance group where the specified instances will be + * removed. * @param {google.cloud.compute.v1beta.InstanceGroupsRemoveInstancesRequest} request.instanceGroupsRemoveInstancesRequestResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -870,9 +942,22 @@ export class InstanceGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1071,27 +1156,115 @@ export class InstanceGroupsClient { /** - * Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of instance groups and sorts them by zone. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1128,24 +1301,108 @@ export class InstanceGroupsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IInstanceGroupsScopedList]>; } /** - * Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead. + * Retrieves the list of zonal instance group resources contained within the + * specified zone. + * + * For managed instance groups, use theinstanceGroupManagers + * or regionInstanceGroupManagers + * methods instead. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of thezone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1240,19 +1497,98 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of thezone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1296,19 +1632,98 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of thezone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1346,28 +1761,111 @@ export class InstanceGroupsClient { ) as AsyncIterable; } /** - * Lists the instances in the specified instance group. The orderBy query parameter is not supported. The filter query parameter is supported, but only for expressions that use `eq` (equal) or `ne` (not equal) operators. + * Lists the instances in the specified instance group. + * The orderBy query parameter is not supported. + * The filter query parameter is supported, but only for + * expressions that use `eq` (equal) or `ne` (not equal) operators. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroup - * The name of the instance group from which you want to generate a list of included instances. + * The name of the instance group from which you want to generate a list + * of included instances. * @param {google.cloud.compute.v1beta.InstanceGroupsListInstancesRequest} request.instanceGroupsListInstancesRequestResource * The body resource for this request * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1463,23 +1961,103 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroup - * The name of the instance group from which you want to generate a list of included instances. + * The name of the instance group from which you want to generate a list + * of included instances. * @param {google.cloud.compute.v1beta.InstanceGroupsListInstancesRequest} request.instanceGroupsListInstancesRequestResource * The body resource for this request * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1524,23 +2102,103 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroup - * The name of the instance group from which you want to generate a list of included instances. + * The name of the instance group from which you want to generate a list + * of included instances. * @param {google.cloud.compute.v1beta.InstanceGroupsListInstancesRequest} request.instanceGroupsListInstancesRequestResource * The body resource for this request * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the instance group is located. + * The name of the zone + * where the instance group is located. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/instance_settings_service_client.ts b/packages/google-cloud-compute/src/v1beta/instance_settings_service_client.ts index 6eb5727ade7f..5c946a7d0c48 100644 --- a/packages/google-cloud-compute/src/v1beta/instance_settings_service_client.ts +++ b/packages/google-cloud-compute/src/v1beta/instance_settings_service_client.ts @@ -425,7 +425,19 @@ export class InstanceSettingsServiceClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {string} request.zone diff --git a/packages/google-cloud-compute/src/v1beta/instance_templates_client.ts b/packages/google-cloud-compute/src/v1beta/instance_templates_client.ts index 040acf7502e0..f1b6eaea7062 100644 --- a/packages/google-cloud-compute/src/v1beta/instance_templates_client.ts +++ b/packages/google-cloud-compute/src/v1beta/instance_templates_client.ts @@ -330,7 +330,9 @@ export class InstanceTemplatesClient { // -- Service calls -- // ------------------- /** - * Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group. + * Deletes the specified instance template. Deleting an instance template is + * permanent and cannot be undone. It is not possible to delete templates + * that are already in use by a managed instance group. * * @param {Object} request * The request object that will be sent. @@ -339,7 +341,19 @@ export class InstanceTemplatesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -533,7 +547,8 @@ export class InstanceTemplatesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -632,7 +647,11 @@ export class InstanceTemplatesClient { }); } /** - * Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template. + * Creates an instance template in the specified project using the + * data that is included in the request. If you are creating a new template to + * update an existing instance group, your new instance template must use the + * same network or, if applicable, the same subnetwork as the original + * template. * * @param {Object} request * The request object that will be sent. @@ -641,7 +660,19 @@ export class InstanceTemplatesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -734,7 +765,8 @@ export class InstanceTemplatesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -934,27 +966,116 @@ export class InstanceTemplatesClient { /** - * Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all InstanceTemplates resources, regional and global, + * available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -991,22 +1112,101 @@ export class InstanceTemplatesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IInstanceTemplatesScopedList]>; } /** - * Retrieves a list of instance templates that are contained within the specified project. + * Retrieves a list of instance templates that are contained within + * the specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.view * View of the instance template. * Check the View enum for the list of possible values. @@ -1103,17 +1303,95 @@ export class InstanceTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.view * View of the instance template. * Check the View enum for the list of possible values. @@ -1159,17 +1437,95 @@ export class InstanceTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.view * View of the instance template. * Check the View enum for the list of possible values. diff --git a/packages/google-cloud-compute/src/v1beta/instances_client.ts b/packages/google-cloud-compute/src/v1beta/instances_client.ts index c5fcd14ba20c..733b8cf28df7 100644 --- a/packages/google-cloud-compute/src/v1beta/instances_client.ts +++ b/packages/google-cloud-compute/src/v1beta/instances_client.ts @@ -345,7 +345,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -447,13 +459,26 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.instance - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer. + * The instance name for this request stored as resource_id. + * Name should conform to RFC1035 or be an unsigned long integer. * @param {google.cloud.compute.v1beta.NetworkInterface} request.networkInterfaceResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -550,7 +575,9 @@ export class InstancesClient { }); } /** - * Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations. + * Adds existing resource policies to an instance. You can only add one + * policy right now which will be applied to this instance for scheduling live + * migrations. * * @param {Object} request * The request object that will be sent. @@ -561,7 +588,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -658,20 +697,37 @@ export class InstancesClient { }); } /** - * Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance. + * Attaches an existing Disk resource to an instance. You must first + * create the disk before you can attach it. It is not possible to create + * and attach a disk at the same time. For more information, readAdding a + * persistent disk to your instance. * * @param {Object} request * The request object that will be sent. * @param {google.cloud.compute.v1beta.AttachedDisk} request.attachedDiskResource * The body resource for this request * @param {boolean} request.forceAttach - * Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error. + * Whether to force attach the regional disk even if it's currently attached + * to another instance. If you try to force attach a zonal disk to an + * instance, you will receive an error. * @param {string} request.instance * The instance name for this request. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -768,7 +824,9 @@ export class InstancesClient { }); } /** - * Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs. + * Creates multiple instances. Count specifies the number of instances to + * create. For more information, seeAbout bulk + * creation of VMs. * * @param {Object} request * The request object that will be sent. @@ -777,7 +835,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -873,7 +943,8 @@ export class InstancesClient { }); } /** - * Deletes the specified Instance resource. For more information, see Deleting an instance. + * Deletes the specified Instance resource. For more information, seeDeleting + * an instance. * * @param {Object} request * The request object that will be sent. @@ -884,7 +955,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -994,7 +1077,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1091,18 +1186,35 @@ export class InstancesClient { }); } /** - * Deletes one dynamic network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; - dynamic network interface to be deleted, using network_interface_name field; + * Deletes one dynamic network interface from an active instance. + * InstancesDeleteNetworkInterfaceRequest indicates: + * - instance from which to delete, using project+zone+resource_id fields; + * - dynamic network interface to be deleted, using network_interface_name + * field; * * @param {Object} request * The request object that will be sent. * @param {string} request.instance - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer. + * The instance name for this request stored as resource_id. + * Name should conform to RFC1035 or be an unsigned long integer. * @param {string} request.networkInterfaceName * The name of the dynamic network interface to be deleted from the instance. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1204,13 +1316,26 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.deviceName - * The device name of the disk to detach. Make a get() request on the instance to view currently attached disks and device names. + * The device name of the disk to detach. Make a get() request on + * the instance to view currently attached disks and device names. * @param {string} request.instance * Instance name for this request. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1616,7 +1741,8 @@ export class InstancesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -1931,7 +2057,23 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {number} request.start - * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size. + * Specifies the starting byte position of the output to return. To start with + * the first byte of output to the specified port, omit this field or set it + * to `0`. + * + * If the output for that byte position is available, this field matches the + * `start` parameter sent with the request. If the amount of serial console + * output exceeds the size of the buffer (1 MB), the oldest output is + * discarded and is no longer available. If the requested start position + * refers to discarded output, the start position is adjusted to the oldest + * output still available, and the adjusted start position is returned as the + * `start` property value. + * + * You can also provide a negative start position, which translates to the + * most recent number of bytes written to the serial port. For example, -3 is + * interpreted as the most recent 3 bytes written to the serial console. Note + * that the negative start is bounded by the retained buffer size, and the + * returned serial console output will not exceed the max buffer size. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2224,7 +2366,8 @@ export class InstancesClient { }); } /** - * Creates an instance resource in the specified project using the data included in the request. + * Creates an instance resource in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -2233,11 +2376,39 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sourceInstanceTemplate - * Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate + * Specifies instance template to create the instance. + * + * This field is optional. It can be a full or partial URL. For example, the + * following are all valid URLs to an instance template: + * + * + * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + * - projects/project/global/instanceTemplates/instanceTemplate + * - global/instanceTemplates/instanceTemplate * @param {string} request.sourceMachineImage - * Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage + * Specifies the machine image to use to create the instance. + * + * This field is optional. It can be a full or partial URL. For example, the + * following are all valid URLs to a machine image: + * + * + * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage + * - projects/project/global/global/machineImages/machineImage + * - global/machineImages/machineImage * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2344,7 +2515,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2450,7 +2633,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2558,7 +2753,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2666,7 +2873,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2763,7 +2982,9 @@ export class InstancesClient { }); } /** - * Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance. + * Performs a reset on the instance. This is a hard reset. The VM + * does not do a graceful shutdown. For more information, seeResetting + * an instance. * * @param {Object} request * The request object that will be sent. @@ -2772,7 +2993,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2869,7 +3102,8 @@ export class InstancesClient { }); } /** - * Resumes an instance that was suspended using the instances().suspend method. + * Resumes an instance that was suspended using theinstances().suspend + * method. * * @param {Object} request * The request object that will be sent. @@ -2880,7 +3114,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -3086,7 +3332,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {string} request.zone @@ -3192,13 +3450,26 @@ export class InstancesClient { * @param {boolean} request.autoDelete * Whether to auto-delete the disk when the instance is deleted. * @param {string} request.deviceName - * The device name of the disk to modify. Make a get() request on the instance to view currently attached disks and device names. + * The device name of the disk to modify. Make a get() request + * on the instance to view currently attached disks and device names. * @param {string} request.instance * The instance name for this request. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -3295,7 +3566,8 @@ export class InstancesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -3397,7 +3669,8 @@ export class InstancesClient { }); } /** - * Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation. + * Sets labels on an instance. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -3408,7 +3681,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -3505,7 +3790,8 @@ export class InstancesClient { }); } /** - * Changes the number and/or type of accelerator for a stopped instance to the values specified in the request. + * Changes the number and/or type of accelerator for a stopped instance to the + * values specified in the request. * * @param {Object} request * The request object that will be sent. @@ -3516,7 +3802,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -3613,7 +3911,8 @@ export class InstancesClient { }); } /** - * Changes the machine type for a stopped instance to the machine type specified in the request. + * Changes the machine type for a stopped instance to the machine + * type specified in the request. * * @param {Object} request * The request object that will be sent. @@ -3624,7 +3923,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -3721,7 +4032,8 @@ export class InstancesClient { }); } /** - * Sets metadata for the specified instance to the data included in the request. + * Sets metadata for the specified instance to the data included + * in the request. * * @param {Object} request * The request object that will be sent. @@ -3732,7 +4044,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -3829,7 +4153,10 @@ export class InstancesClient { }); } /** - * Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform. + * Changes the minimum CPU platform that this instance should use. + * This method can only + * be called on a stopped instance. For more information, readSpecifying a + * Minimum CPU Platform. * * @param {Object} request * The request object that will be sent. @@ -3840,7 +4167,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -3948,7 +4287,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -4045,7 +4396,11 @@ export class InstancesClient { }); } /** - * Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy. + * Sets an instance's scheduling options. You can only call this method on astopped instance, + * that is, a VM instance that is in a `TERMINATED` state. SeeInstance Life + * Cycle for more information on the possible instance states. + * For more information about setting scheduling options for a VM, seeSet + * VM host maintenance policy. * * @param {Object} request * The request object that will be sent. @@ -4054,7 +4409,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Scheduling} request.schedulingResource * The body resource for this request * @param {string} request.zone @@ -4153,18 +4520,33 @@ export class InstancesClient { }); } /** - * Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview + * Sets the Google Cloud Armor security policy for the specified instance. + * For more information, seeGoogle + * Cloud Armor Overview * * @param {Object} request * The request object that will be sent. * @param {string} request.instance - * Name of the Instance resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the Instance resource to which the security policy should be + * set. The name should conform to RFC1035. * @param {google.cloud.compute.v1beta.InstancesSetSecurityPolicyRequest} request.instancesSetSecurityPolicyRequestResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * Name of the zone scoping this request. * @param {object} [options] @@ -4261,7 +4643,9 @@ export class InstancesClient { }); } /** - * Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance. + * Sets the service account on the instance. For more information, + * readChanging + * the service account and access scopes for an instance. * * @param {Object} request * The request object that will be sent. @@ -4272,7 +4656,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -4369,7 +4765,10 @@ export class InstancesClient { }); } /** - * Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Sets the Shielded Instance integrity policy for an instance. You can + * only use this method on a running instance. This method + * supports PATCH semantics and uses the JSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -4378,7 +4777,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.ShieldedInstanceIntegrityPolicy} request.shieldedInstanceIntegrityPolicyResource * The body resource for this request * @param {string} request.zone @@ -4477,7 +4888,10 @@ export class InstancesClient { }); } /** - * Sets the Shielded VM integrity policy for a VM instance. You can only use this method on a running VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Sets the Shielded VM integrity policy for a VM instance. You can + * only use this method on a running VM instance. This method + * supports PATCH semantics and uses the JSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -4486,7 +4900,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.ShieldedVmIntegrityPolicy} request.shieldedVmIntegrityPolicyResource * The body resource for this request * @param {string} request.zone @@ -4585,7 +5011,8 @@ export class InstancesClient { }); } /** - * Sets network tags for the specified instance to the data included in the request. + * Sets network tags + * for the specified instance to the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -4594,7 +5021,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Tags} request.tagsResource * The body resource for this request * @param {string} request.zone @@ -4693,7 +5132,8 @@ export class InstancesClient { }); } /** - * Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event. + * Simulates a host maintenance event on a VM. For more information, see + * Simulate a host maintenance event. * * @param {Object} request * The request object that will be sent. @@ -4702,9 +5142,22 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {boolean} request.withExtendedNotifications - * Determines whether the customers receive notifications before migration. Only applicable to SF vms. + * Determines whether the customers receive notifications before migration. + * Only applicable to SF vms. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -4801,7 +5254,9 @@ export class InstancesClient { }); } /** - * Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance. + * Starts an instance that was stopped using theinstances().stop + * method. For more information, seeRestart an + * instance. * * @param {Object} request * The request object that will be sent. @@ -4810,7 +5265,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -4907,7 +5374,9 @@ export class InstancesClient { }); } /** - * Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance. + * Starts an instance that was stopped using theinstances().stop + * method. For more information, seeRestart an + * instance. * * @param {Object} request * The request object that will be sent. @@ -4918,7 +5387,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -5015,12 +5496,19 @@ export class InstancesClient { }); } /** - * Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance. + * Stops a running instance, shutting it down cleanly, and allows + * you to restart the instance at a later time. Stopped instances do not incur + * VM usage charges while they are stopped. However, resources that the VM is + * using, such as persistent disks and static IP addresses, will continue to + * be charged until they are deleted. For more information, seeStopping + * an instance. * * @param {Object} request * The request object that will be sent. * @param {boolean} request.discardLocalSsd - * This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. + * This property is required if the instance has any attached Local SSD disks. + * If false, Local SSD data will be preserved when the instance is suspended. + * If true, the contents of any attached Local SSD disks will be discarded. * @param {string} request.instance * Name of the instance resource to stop. * @param {boolean} request.noGracefulShutdown @@ -5028,7 +5516,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -5125,18 +5625,39 @@ export class InstancesClient { }); } /** - * This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance. + * This method suspends a running instance, saving its state to persistent + * storage, and allows you to resume the instance at a later time. Suspended + * instances have no compute costs (cores or RAM), and incur only storage + * charges for the saved VM memory and localSSD data. Any charged resources + * the virtual machine was using, such as persistent disks and static IP + * addresses, will continue to be charged while the instance is suspended. + * For more information, see + * Suspending and resuming an instance. * * @param {Object} request * The request object that will be sent. * @param {boolean} request.discardLocalSsd - * This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. + * This property is required if the instance has any attached Local SSD disks. + * If false, Local SSD data will be preserved when the instance is suspended. + * If true, the contents of any attached Local SSD disks will be discarded. * @param {string} request.instance * Name of the instance resource to suspend. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -5335,7 +5856,10 @@ export class InstancesClient { }); } /** - * Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties. + * Updates an instance only if the necessary resources are available. This + * method can update only a specific set of instance properties. See + * Updating a running instance for a list of updatable instance + * properties. * * @param {Object} request * The request object that will be sent. @@ -5344,15 +5868,34 @@ export class InstancesClient { * @param {google.cloud.compute.v1beta.Instance} request.instanceResource * The body resource for this request * @param {string} request.minimalAction - * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require. + * Specifies the action to take when updating an instance even if the + * updated properties do not require it. If not specified, then + * Compute Engine acts based on the minimum action that the updated + * properties require. * Check the MinimalAction enum for the list of possible values. * @param {string} request.mostDisruptiveAllowedAction - * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART. + * Specifies the most disruptive action that can be taken on the instance + * as part of the update. Compute Engine returns an error if the + * instance properties require a more disruptive action as part of the + * instance update. Valid options from lowest to highest are + * NO_EFFECT, REFRESH, and RESTART. * Check the MostDisruptiveAllowedAction enum for the list of possible values. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -5449,7 +5992,10 @@ export class InstancesClient { }); } /** - * Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified access config from an instance's network interface + * with the data included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -5462,7 +6008,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -5559,7 +6117,10 @@ export class InstancesClient { }); } /** - * Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the Display config for a VM instance. You can + * only use this method on a stopped VM instance. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -5570,7 +6131,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -5667,7 +6240,12 @@ export class InstancesClient { }); } /** - * Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics. + * Updates an instance's network interface. This method can only update an + * interface's alias IP range and attached network. See Modifying + * alias IP ranges for an existing instance for instructions on + * changing alias IP ranges. See Migrating + * a VM between networks for instructions on migrating an interface. + * This method follows PATCH semantics. * * @param {Object} request * The request object that will be sent. @@ -5680,7 +6258,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -5777,7 +6367,10 @@ export class InstancesClient { }); } /** - * Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the Shielded Instance config for an instance. You can + * only use this method on a stopped instance. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -5786,7 +6379,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.ShieldedInstanceConfig} request.shieldedInstanceConfigResource * The body resource for this request * @param {string} request.zone @@ -5885,7 +6490,10 @@ export class InstancesClient { }); } /** - * Updates the Shielded VM config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the Shielded VM config for a VM instance. You can + * only use this method on a stopped VM instance. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -5894,7 +6502,19 @@ export class InstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.ShieldedVmConfig} request.shieldedVmConfigResource * The body resource for this request * @param {string} request.zone @@ -5995,27 +6615,119 @@ export class InstancesClient { /** - * Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of all of the instances in your project + * across all regions and zones. + * + * The performance of this method degrades when a filter is specified on a + * project that has a very large number of instances. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -6052,22 +6764,101 @@ export class InstancesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IInstancesScopedList]>; } /** - * Retrieves the list of instances contained within the specified zone. + * Retrieves the list of instances contained within + * the specified zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.view * View of the instance. * Check the View enum for the list of possible values. @@ -6167,17 +6958,95 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.view * View of the instance. * Check the View enum for the list of possible values. @@ -6226,17 +7095,95 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.view * View of the instance. * Check the View enum for the list of possible values. @@ -6279,24 +7226,107 @@ export class InstancesClient { ) as AsyncIterable; } /** - * Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances. + * Retrieves a list of resources that refer to the VM instance specified in + * the request. For example, if the VM instance is part of a managed or + * unmanaged instance group, the referrers list includes the instance group. + * For more information, readViewing + * referrers to VM instances. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instance - * Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. + * Name of the target instance scoping this request, or '-' if the + * request should span over all instances in the container. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -6394,19 +7424,98 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instance - * Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. + * Name of the target instance scoping this request, or '-' if the + * request should span over all instances in the container. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -6453,19 +7562,98 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instance - * Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. + * Name of the target instance scoping this request, or '-' if the + * request should span over all instances in the container. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/instant_snapshots_client.ts b/packages/google-cloud-compute/src/v1beta/instant_snapshots_client.ts index d143cd6e54f2..53517b7ec6e3 100644 --- a/packages/google-cloud-compute/src/v1beta/instant_snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1beta/instant_snapshots_client.ts @@ -330,7 +330,14 @@ export class InstantSnapshotsClient { // -- Service calls -- // ------------------- /** - * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. + * Deletes the specified InstantSnapshot resource. Keep in mind that deleting + * a single instantSnapshot might not necessarily delete all the data on that + * instantSnapshot. If any data on the instantSnapshot that is marked for + * deletion is needed for subsequent instantSnapshots, the data will be moved + * to the next corresponding instantSnapshot. + * + * For more information, seeDeleting + * instantSnapshots. * * @param {Object} request * The request object that will be sent. @@ -339,7 +346,19 @@ export class InstantSnapshotsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -536,7 +555,8 @@ export class InstantSnapshotsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -647,7 +667,19 @@ export class InstantSnapshotsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] @@ -743,7 +775,8 @@ export class InstantSnapshotsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -845,14 +878,28 @@ export class InstantSnapshotsClient { }); } /** - * Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a instantSnapshot in the given zone. To learn more about + * labels, read the Labeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {string} request.zone @@ -1057,27 +1104,115 @@ export class InstantSnapshotsClient { /** - * Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of instantSnapshots. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1114,22 +1249,101 @@ export class InstantSnapshotsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IInstantSnapshotsScopedList]>; } /** - * Retrieves the list of InstantSnapshot resources contained within the specified zone. + * Retrieves the list of InstantSnapshot resources contained within + * the specified zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1226,17 +1440,95 @@ export class InstantSnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1282,17 +1574,95 @@ export class InstantSnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/interconnect_attachment_groups_client.ts b/packages/google-cloud-compute/src/v1beta/interconnect_attachment_groups_client.ts index 1c1604c7cb20..cd548f55a33c 100644 --- a/packages/google-cloud-compute/src/v1beta/interconnect_attachment_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/interconnect_attachment_groups_client.ts @@ -337,7 +337,20 @@ export class InterconnectAttachmentGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -431,7 +444,8 @@ export class InterconnectAttachmentGroupsClient { }); } /** - * Returns the specified InterconnectAttachmentGroup resource in the given scope. + * Returns the specified InterconnectAttachmentGroup resource in the given + * scope. * * @param {Object} request * The request object that will be sent. @@ -528,7 +542,8 @@ export class InterconnectAttachmentGroupsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -627,7 +642,8 @@ export class InterconnectAttachmentGroupsClient { }); } /** - * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup resource. + * Returns the InterconnectAttachmentStatuses for the specified + * InterconnectAttachmentGroup resource. * * @param {Object} request * The request object that will be sent. @@ -724,7 +740,8 @@ export class InterconnectAttachmentGroupsClient { }); } /** - * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the parameters that are included in the request. + * Creates a InterconnectAttachmentGroup in the specified project in the given + * scope using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -733,7 +750,20 @@ export class InterconnectAttachmentGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -826,7 +856,10 @@ export class InterconnectAttachmentGroupsClient { }); } /** - * Patches the specified InterconnectAttachmentGroup resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified InterconnectAttachmentGroup resource with the data + * included in the request. This method supports PATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -837,7 +870,20 @@ export class InterconnectAttachmentGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {string} request.updateMask * The list of fields to update. * @param {object} [options] @@ -933,7 +979,8 @@ export class InterconnectAttachmentGroupsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1137,17 +1184,95 @@ export class InterconnectAttachmentGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1241,17 +1366,95 @@ export class InterconnectAttachmentGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1294,17 +1497,95 @@ export class InterconnectAttachmentGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/interconnect_attachments_client.ts b/packages/google-cloud-compute/src/v1beta/interconnect_attachments_client.ts index 45adabea4b83..696d75451a63 100644 --- a/packages/google-cloud-compute/src/v1beta/interconnect_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1beta/interconnect_attachments_client.ts @@ -341,7 +341,19 @@ export class InterconnectAttachmentsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,7 +548,8 @@ export class InterconnectAttachmentsClient { }); } /** - * Creates an InterconnectAttachment in the specified project using the data included in the request. + * Creates an InterconnectAttachment in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -547,7 +560,19 @@ export class InterconnectAttachmentsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {boolean} request.validateOnly * If true, the request will not be committed. * @param {object} [options] @@ -643,7 +668,10 @@ export class InterconnectAttachmentsClient { }); } /** - * Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified interconnect attachment with the data included in the + * request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -656,7 +684,19 @@ export class InterconnectAttachmentsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -751,7 +791,9 @@ export class InterconnectAttachmentsClient { }); } /** - * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on an InterconnectAttachment. To learn more about labels, + * read the Labeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -762,7 +804,19 @@ export class InterconnectAttachmentsClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -963,27 +1017,115 @@ export class InterconnectAttachmentsClient { /** - * Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of interconnect attachments. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1020,24 +1162,103 @@ export class InterconnectAttachmentsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IInterconnectAttachmentsScopedList]>; } /** - * Retrieves the list of interconnect attachments contained within the specified region. + * Retrieves the list of interconnect attachments contained within + * the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1132,19 +1353,97 @@ export class InterconnectAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1188,19 +1487,97 @@ export class InterconnectAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/interconnect_groups_client.ts b/packages/google-cloud-compute/src/v1beta/interconnect_groups_client.ts index cf6e0e0168c3..f6b1a78bd8a5 100644 --- a/packages/google-cloud-compute/src/v1beta/interconnect_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/interconnect_groups_client.ts @@ -328,7 +328,8 @@ export class InterconnectGroupsClient { // -- Service calls -- // ------------------- /** - * Create Interconnects with redundancy by creating them in a specified interconnect group. + * Create Interconnects with redundancy by creating them in a specified + * interconnect group. * * @param {Object} request * The request object that will be sent. @@ -440,7 +441,20 @@ export class InterconnectGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -631,7 +645,8 @@ export class InterconnectGroupsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -730,7 +745,8 @@ export class InterconnectGroupsClient { }); } /** - * Returns the interconnectStatuses for the specified InterconnectGroup. + * Returns the interconnectStatuses for the specified + * InterconnectGroup. * * @param {Object} request * The request object that will be sent. @@ -827,7 +843,8 @@ export class InterconnectGroupsClient { }); } /** - * Creates a InterconnectGroup in the specified project in the given scope using the parameters that are included in the request. + * Creates a InterconnectGroup in the specified project in the given scope + * using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -836,7 +853,20 @@ export class InterconnectGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -929,7 +959,10 @@ export class InterconnectGroupsClient { }); } /** - * Patches the specified InterconnectGroup resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified InterconnectGroup resource with the data included in + * the request. This method supports PATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -940,7 +973,20 @@ export class InterconnectGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {string} request.updateMask * The list of fields to update. * @param {object} [options] @@ -1036,7 +1082,8 @@ export class InterconnectGroupsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1240,17 +1287,95 @@ export class InterconnectGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1344,17 +1469,95 @@ export class InterconnectGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1397,17 +1600,95 @@ export class InterconnectGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/interconnect_locations_client.ts b/packages/google-cloud-compute/src/v1beta/interconnect_locations_client.ts index 7db151b85041..2ed58026dc29 100644 --- a/packages/google-cloud-compute/src/v1beta/interconnect_locations_client.ts +++ b/packages/google-cloud-compute/src/v1beta/interconnect_locations_client.ts @@ -329,7 +329,8 @@ export class InterconnectLocationsClient { // -- Service calls -- // ------------------- /** - * Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request. + * Returns the details for the specified interconnect location. Gets a list of + * available interconnect locations by making a list() request. * * @param {Object} request * The request object that will be sent. @@ -427,22 +428,101 @@ export class InterconnectLocationsClient { } /** - * Retrieves the list of interconnect locations available to the specified project. + * Retrieves the list of interconnect locations available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,17 +616,95 @@ export class InterconnectLocationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -589,17 +747,95 @@ export class InterconnectLocationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/interconnect_remote_locations_client.ts b/packages/google-cloud-compute/src/v1beta/interconnect_remote_locations_client.ts index d97e0545edfd..e89d50d34955 100644 --- a/packages/google-cloud-compute/src/v1beta/interconnect_remote_locations_client.ts +++ b/packages/google-cloud-compute/src/v1beta/interconnect_remote_locations_client.ts @@ -329,7 +329,8 @@ export class InterconnectRemoteLocationsClient { // -- Service calls -- // ------------------- /** - * Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making a list() request. + * Returns the details for the specified interconnect remote location. Gets a + * list of available interconnect remote locations by making alist() request. * * @param {Object} request * The request object that will be sent. @@ -427,22 +428,101 @@ export class InterconnectRemoteLocationsClient { } /** - * Retrieves the list of interconnect remote locations available to the specified project. + * Retrieves the list of interconnect remote locations available to the + * specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,17 +616,95 @@ export class InterconnectRemoteLocationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -589,17 +747,95 @@ export class InterconnectRemoteLocationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/interconnects_client.ts b/packages/google-cloud-compute/src/v1beta/interconnects_client.ts index 46415bbe361a..43126670399e 100644 --- a/packages/google-cloud-compute/src/v1beta/interconnects_client.ts +++ b/packages/google-cloud-compute/src/v1beta/interconnects_client.ts @@ -337,7 +337,19 @@ export class InterconnectsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -431,7 +443,8 @@ export class InterconnectsClient { }); } /** - * Returns the specified Interconnect. Get a list of available Interconnects by making a list() request. + * Returns the specified Interconnect. Get a list of available Interconnects + * by making a list() request. * * @param {Object} request * The request object that will be sent. @@ -528,7 +541,16 @@ export class InterconnectsClient { }); } /** - * Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly. + * Returns the interconnectDiagnostics for the specified + * Interconnect. + * + * In the event of a + * global outage, do not use this API to make decisions about where to + * redirect your network traffic. + * + * Unlike a VLAN attachment, which is regional, a Cloud Interconnect + * connection is a global resource. A global outage can prevent this + * API from functioning properly. * * @param {Object} request * The request object that will be sent. @@ -625,7 +647,8 @@ export class InterconnectsClient { }); } /** - * Returns the interconnectMacsecConfig for the specified Interconnect. + * Returns the interconnectMacsecConfig for the specified + * Interconnect. * * @param {Object} request * The request object that will be sent. @@ -722,7 +745,8 @@ export class InterconnectsClient { }); } /** - * Creates an Interconnect in the specified project using the data included in the request. + * Creates an Interconnect in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -731,7 +755,19 @@ export class InterconnectsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -824,7 +860,10 @@ export class InterconnectsClient { }); } /** - * Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified Interconnect with the data included in the request. + * This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -835,7 +874,19 @@ export class InterconnectsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -929,7 +980,9 @@ export class InterconnectsClient { }); } /** - * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on an Interconnect. To learn more about labels, + * read the Labeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -1137,17 +1190,95 @@ export class InterconnectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1241,17 +1372,95 @@ export class InterconnectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1294,17 +1503,95 @@ export class InterconnectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/license_codes_client.ts b/packages/google-cloud-compute/src/v1beta/license_codes_client.ts index 74a31d7b5888..b8c11c70e3f9 100644 --- a/packages/google-cloud-compute/src/v1beta/license_codes_client.ts +++ b/packages/google-cloud-compute/src/v1beta/license_codes_client.ts @@ -320,7 +320,11 @@ export class LicenseCodesClient { // -- Service calls -- // ------------------- /** - * Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Return a specified license code. License codes are mirrored across + * all projects that have permissions to read the License Code. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. @@ -417,7 +421,10 @@ export class LicenseCodesClient { }); } /** - * Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Returns permissions that a caller has on the specified resource. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1beta/licenses_client.ts b/packages/google-cloud-compute/src/v1beta/licenses_client.ts index d3f17f8b7d54..1fdea5da948c 100644 --- a/packages/google-cloud-compute/src/v1beta/licenses_client.ts +++ b/packages/google-cloud-compute/src/v1beta/licenses_client.ts @@ -328,7 +328,10 @@ export class LicensesClient { // -- Service calls -- // ------------------- /** - * Deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Deletes the specified license. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. @@ -337,7 +340,19 @@ export class LicensesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -431,7 +446,10 @@ export class LicensesClient { }); } /** - * Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Returns the specified License resource. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. @@ -528,7 +546,11 @@ export class LicensesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. @@ -627,7 +649,10 @@ export class LicensesClient { }); } /** - * Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Create a License resource in the specified project. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. @@ -636,7 +661,19 @@ export class LicensesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -729,7 +766,11 @@ export class LicensesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. @@ -828,7 +869,10 @@ export class LicensesClient { }); } /** - * Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Returns permissions that a caller has on the specified resource. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. @@ -927,7 +971,10 @@ export class LicensesClient { }); } /** - * Updates a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Updates a License resource in the specified project. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. @@ -938,7 +985,19 @@ export class LicensesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {object} [options] @@ -1035,22 +1094,108 @@ export class LicensesClient { } /** - * Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + * Retrieves the list of licenses + * available in the specified project. This method does not + * get any licenses that belong to other projects, including licenses attached + * to publicly-available images, like Debian 9. If you want to get a list of + * publicly-available licenses, use this method to make a request to the + * respective image project, such as debian-cloud orwindows-cloud. + * *Caution* This resource is intended + * for use only by third-party partners who are creatingCloud Marketplace + * images. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1144,17 +1289,95 @@ export class LicensesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1197,17 +1420,95 @@ export class LicensesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/machine_images_client.ts b/packages/google-cloud-compute/src/v1beta/machine_images_client.ts index b31b5ebad6a3..6decbed53e99 100644 --- a/packages/google-cloud-compute/src/v1beta/machine_images_client.ts +++ b/packages/google-cloud-compute/src/v1beta/machine_images_client.ts @@ -328,7 +328,8 @@ export class MachineImagesClient { // -- Service calls -- // ------------------- /** - * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + * Deletes the specified machine image. Deleting a machine image is permanent + * and cannot be undone. * * @param {Object} request * The request object that will be sent. @@ -337,7 +338,19 @@ export class MachineImagesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -528,7 +541,8 @@ export class MachineImagesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -627,7 +641,11 @@ export class MachineImagesClient { }); } /** - * Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance. + * Creates a machine image in the specified project using the + * data that is included in the request. If you are creating a new machine + * image to update an existing instance, your new machine image should use the + * same network or, if applicable, the same subnetwork as the original + * instance. * * @param {Object} request * The request object that will be sent. @@ -636,7 +654,19 @@ export class MachineImagesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sourceInstance * Required. Source instance that is used to create the machine image from. * @param {object} [options] @@ -731,7 +761,8 @@ export class MachineImagesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -830,7 +861,8 @@ export class MachineImagesClient { }); } /** - * Sets the labels on a machine image. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a machine image. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -1033,22 +1065,101 @@ export class MachineImagesClient { } /** - * Retrieves a list of machine images that are contained within the specified project. + * Retrieves a list of machine images that are contained within + * the specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1142,17 +1253,95 @@ export class MachineImagesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1195,17 +1384,95 @@ export class MachineImagesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/machine_types_client.ts b/packages/google-cloud-compute/src/v1beta/machine_types_client.ts index 4171e2b0618c..763b26d5a4b8 100644 --- a/packages/google-cloud-compute/src/v1beta/machine_types_client.ts +++ b/packages/google-cloud-compute/src/v1beta/machine_types_client.ts @@ -433,27 +433,115 @@ export class MachineTypesClient { /** - * Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of machine types. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -490,22 +578,101 @@ export class MachineTypesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IMachineTypesScopedList]>; } /** - * Retrieves a list of machine types available to the specified project. + * Retrieves a list of machine types available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -602,17 +769,95 @@ export class MachineTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -658,17 +903,95 @@ export class MachineTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/network_attachments_client.ts b/packages/google-cloud-compute/src/v1beta/network_attachments_client.ts index 8991e2d54886..0595d2a12f95 100644 --- a/packages/google-cloud-compute/src/v1beta/network_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1beta/network_attachments_client.ts @@ -341,7 +341,20 @@ export class NetworkAttachmentsClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,7 +549,8 @@ export class NetworkAttachmentsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -638,7 +652,8 @@ export class NetworkAttachmentsClient { }); } /** - * Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request. + * Creates a NetworkAttachment in the specified project in the given scope + * using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -649,7 +664,20 @@ export class NetworkAttachmentsClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -743,7 +771,10 @@ export class NetworkAttachmentsClient { }); } /** - * Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified NetworkAttachment resource with the data included in + * the request. This method supports PATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -756,7 +787,20 @@ export class NetworkAttachmentsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -851,7 +895,8 @@ export class NetworkAttachmentsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1057,27 +1102,116 @@ export class NetworkAttachmentsClient { /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all NetworkAttachment resources, + * regional and global, available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1119,19 +1253,97 @@ export class NetworkAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1226,19 +1438,97 @@ export class NetworkAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1282,19 +1572,97 @@ export class NetworkAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/network_edge_security_services_client.ts b/packages/google-cloud-compute/src/v1beta/network_edge_security_services_client.ts index b1671ab09fc0..8d618368bc62 100644 --- a/packages/google-cloud-compute/src/v1beta/network_edge_security_services_client.ts +++ b/packages/google-cloud-compute/src/v1beta/network_edge_security_services_client.ts @@ -339,7 +339,19 @@ export class NetworkEdgeSecurityServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -534,7 +546,8 @@ export class NetworkEdgeSecurityServicesClient { }); } /** - * Creates a new service in the specified project using the data included in the request. + * Creates a new service in the specified project using the data included in + * the request. * * @param {Object} request * The request object that will be sent. @@ -545,7 +558,19 @@ export class NetworkEdgeSecurityServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {boolean} request.validateOnly * If true, the request will not be committed. * @param {object} [options] @@ -655,7 +680,19 @@ export class NetworkEdgeSecurityServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.updateMask * Indicates fields to be updated as part of this request. * @param {object} [options] @@ -754,27 +791,116 @@ export class NetworkEdgeSecurityServicesClient { /** - * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all NetworkEdgeSecurityService resources available to + * the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1beta/network_endpoint_groups_client.ts index 10a5dac08679..139318d0862f 100644 --- a/packages/google-cloud-compute/src/v1beta/network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/network_endpoint_groups_client.ts @@ -337,15 +337,29 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.networkEndpointGroup - * The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + * The name of the network endpoint group where you are attaching network + * endpoints to. It should comply with RFC1035. * @param {google.cloud.compute.v1beta.NetworkEndpointGroupsAttachEndpointsRequest} request.networkEndpointGroupsAttachEndpointsRequestResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -440,18 +454,35 @@ export class NetworkEndpointGroupsClient { }); } /** - * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it. + * Deletes the specified network endpoint group. The network endpoints in the + * NEG and the VM instances they belong to are not terminated when the NEG is + * deleted. Note that the NEG cannot be deleted if there are backend services + * referencing it. * * @param {Object} request * The request object that will be sent. * @param {string} request.networkEndpointGroup - * The name of the network endpoint group to delete. It should comply with RFC1035. + * The name of the network endpoint group to delete. It should comply with + * RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -546,20 +577,35 @@ export class NetworkEndpointGroupsClient { }); } /** - * Detach a list of network endpoints from the specified network endpoint group. + * Detach a list of network endpoints from the specified network endpoint + * group. * * @param {Object} request * The request object that will be sent. * @param {string} request.networkEndpointGroup - * The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. + * The name of the network endpoint group where you are removing network + * endpoints. It should comply with RFC1035. * @param {google.cloud.compute.v1beta.NetworkEndpointGroupsDetachEndpointsRequest} request.networkEndpointGroupsDetachEndpointsRequestResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -663,7 +709,8 @@ export class NetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -754,7 +801,8 @@ export class NetworkEndpointGroupsClient { }); } /** - * Creates a network endpoint group in the specified project using the parameters that are included in the request. + * Creates a network endpoint group in the specified project using the + * parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -763,9 +811,23 @@ export class NetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone - * The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. + * The name of the zone where + * you want to create the network endpoint group. It should comply with + * RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -963,27 +1025,115 @@ export class NetworkEndpointGroupsClient { /** - * Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of network endpoint groups and sorts them by zone. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1020,24 +1170,104 @@ export class NetworkEndpointGroupsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.INetworkEndpointGroupsScopedList]>; } /** - * Retrieves the list of network endpoint groups that are located in the specified project and zone. + * Retrieves the list of network endpoint groups that are located in the + * specified project and zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of thezone + * where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1132,19 +1362,98 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of thezone + * where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1188,19 +1497,98 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of thezone + * where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1243,23 +1631,103 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.networkEndpointGroup - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. * @param {google.cloud.compute.v1beta.NetworkEndpointGroupsListEndpointsRequest} request.networkEndpointGroupsListEndpointsRequestResource * The body resource for this request * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1355,23 +1823,103 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.networkEndpointGroup - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. * @param {google.cloud.compute.v1beta.NetworkEndpointGroupsListEndpointsRequest} request.networkEndpointGroupsListEndpointsRequestResource * The body resource for this request * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1416,23 +1964,103 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.networkEndpointGroup - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. * @param {google.cloud.compute.v1beta.NetworkEndpointGroupsListEndpointsRequest} request.networkEndpointGroupsListEndpointsRequestResource * The body resource for this request * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone - * The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * The name of the zone where + * the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/network_firewall_policies_client.ts b/packages/google-cloud-compute/src/v1beta/network_firewall_policies_client.ts index 1ffbc9d5c170..848bcee68df4 100644 --- a/packages/google-cloud-compute/src/v1beta/network_firewall_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/network_firewall_policies_client.ts @@ -341,9 +341,23 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {boolean} request.replaceExistingAssociation - * Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists. + * Indicates whether or not to replace it if an association of the attachment + * already exists. This is false by default, in which case an error will be + * returned if an association already exists. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -446,13 +460,27 @@ export class NetworkFirewallPoliciesClient { * @param {google.cloud.compute.v1beta.FirewallPolicyRule} request.firewallPolicyRuleResource * The body resource for this request * @param {number} request.maxPriority - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. * @param {number} request.minPriority - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -555,13 +583,27 @@ export class NetworkFirewallPoliciesClient { * @param {google.cloud.compute.v1beta.FirewallPolicyRule} request.firewallPolicyRuleResource * The body resource for this request * @param {number} request.maxPriority - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. * @param {number} request.minPriority - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -664,7 +706,19 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sourceFirewallPolicy * The firewall policy from which to copy rules. * @param {object} [options] @@ -769,7 +823,19 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1059,7 +1125,8 @@ export class NetworkFirewallPoliciesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -1356,7 +1423,8 @@ export class NetworkFirewallPoliciesClient { }); } /** - * Creates a new policy in the specified project using the data included in the request. + * Creates a new policy in the specified project using the data included in + * the request. * * @param {Object} request * The request object that will be sent. @@ -1365,7 +1433,19 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1469,7 +1549,19 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1576,7 +1668,19 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1683,7 +1787,19 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1788,7 +1904,19 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1893,7 +2021,19 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1998,7 +2138,19 @@ export class NetworkFirewallPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2092,7 +2244,8 @@ export class NetworkFirewallPoliciesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -2292,27 +2445,117 @@ export class NetworkFirewallPoliciesClient { /** - * Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of network firewall policies, listing network + * firewall policies from all applicable scopes (global and regional) and + * grouping the results per scope. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -2354,17 +2597,95 @@ export class NetworkFirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2458,17 +2779,95 @@ export class NetworkFirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2511,17 +2910,95 @@ export class NetworkFirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/network_profiles_client.ts b/packages/google-cloud-compute/src/v1beta/network_profiles_client.ts index 6918067b4f31..f393017cd2bc 100644 --- a/packages/google-cloud-compute/src/v1beta/network_profiles_client.ts +++ b/packages/google-cloud-compute/src/v1beta/network_profiles_client.ts @@ -427,22 +427,101 @@ export class NetworkProfilesClient { } /** - * Retrieves a list of network profiles available to the specified project. + * Retrieves a list of network profiles available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,17 +615,95 @@ export class NetworkProfilesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -589,17 +746,95 @@ export class NetworkProfilesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/networks_client.ts b/packages/google-cloud-compute/src/v1beta/networks_client.ts index 5323302807ec..008609af98ab 100644 --- a/packages/google-cloud-compute/src/v1beta/networks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/networks_client.ts @@ -341,7 +341,19 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -444,7 +456,19 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -732,7 +756,8 @@ export class NetworksClient { }); } /** - * Creates a network in the specified project using the data included in the request. + * Creates a network in the specified project using the data included + * in the request. * * @param {Object} request * The request object that will be sent. @@ -741,7 +766,19 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -834,7 +871,8 @@ export class NetworksClient { }); } /** - * Patches the specified network with the data included in the request. Only routingConfig can be modified. + * Patches the specified network with the data included in the request. + * Only routingConfig can be modified. * * @param {Object} request * The request object that will be sent. @@ -845,7 +883,19 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -950,7 +1000,19 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1044,7 +1106,8 @@ export class NetworksClient { }); } /** - * Requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS. + * Requests to remove a peering from the specified network. Applicable only + * for PeeringConnection with update_strategy=CONSENSUS. * * @param {Object} request * The request object that will be sent. @@ -1055,7 +1118,19 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1158,7 +1233,19 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1351,7 +1438,9 @@ export class NetworksClient { }); } /** - * Updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. + * Updates the specified network peering with the data included in the + * request. You can only modify the NetworkPeering.export_custom_routes field + * and the NetworkPeering.import_custom_routes field. * * @param {Object} request * The request object that will be sent. @@ -1362,7 +1451,19 @@ export class NetworksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1462,17 +1563,95 @@ export class NetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1566,17 +1745,95 @@ export class NetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1619,17 +1876,95 @@ export class NetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1674,23 +2009,102 @@ export class NetworksClient { * The direction of the exchanged routes. * Check the Direction enum for the list of possible values. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.network * Name of the network for this request. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.peeringName * The response will show routes exchanged over the given peering connection. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region. + * The region of the request. The response will include all subnet routes, + * static routes and dynamic routes in the region. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1788,23 +2202,102 @@ export class NetworksClient { * The direction of the exchanged routes. * Check the Direction enum for the list of possible values. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.network * Name of the network for this request. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.peeringName * The response will show routes exchanged over the given peering connection. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region. + * The region of the request. The response will include all subnet routes, + * static routes and dynamic routes in the region. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1851,23 +2344,102 @@ export class NetworksClient { * The direction of the exchanged routes. * Check the Direction enum for the list of possible values. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.network * Name of the network for this request. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.peeringName * The response will show routes exchanged over the given peering connection. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region. + * The region of the request. The response will include all subnet routes, + * static routes and dynamic routes in the region. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/node_groups_client.ts b/packages/google-cloud-compute/src/v1beta/node_groups_client.ts index b965fb3f758d..1303ac40010f 100644 --- a/packages/google-cloud-compute/src/v1beta/node_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/node_groups_client.ts @@ -343,7 +343,19 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -449,7 +461,19 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -557,7 +581,19 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -654,7 +690,10 @@ export class NodeGroupsClient { }); } /** - * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. + * Returns the specified NodeGroup. Get a list of available NodeGroups + * by making a list() request. + * Note: the "nodes" field should not be used. Use nodeGroups.listNodes + * instead. * * @param {Object} request * The request object that will be sent. @@ -754,7 +793,8 @@ export class NodeGroupsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -856,7 +896,8 @@ export class NodeGroupsClient { }); } /** - * Creates a NodeGroup resource in the specified project using the data included in the request. + * Creates a NodeGroup resource in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -867,7 +908,19 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -974,7 +1027,19 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1082,7 +1147,19 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1179,7 +1256,8 @@ export class NodeGroupsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1292,7 +1370,19 @@ export class NodeGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1394,13 +1484,26 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.nodeGroup - * Name of the NodeGroup resource whose nodes will go under maintenance simulation. + * Name of the NodeGroup resource whose nodes will go under maintenance + * simulation. * @param {google.cloud.compute.v1beta.NodeGroupsSimulateMaintenanceEventRequest} request.nodeGroupsSimulateMaintenanceEventRequestResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1601,27 +1704,116 @@ export class NodeGroupsClient { /** - * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of node groups. + * Note: use nodeGroups.listNodes for more details about each group. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1658,22 +1850,101 @@ export class NodeGroupsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.INodeGroupsScopedList]>; } /** - * Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group. + * Retrieves a list of node groups available to the specified project. + * Note: use nodeGroups.listNodes for more details about each group. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1770,17 +2041,95 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1826,17 +2175,95 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1881,19 +2308,97 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.nodeGroup * Name of the NodeGroup resource whose nodes you want to list. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1991,19 +2496,97 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.nodeGroup * Name of the NodeGroup resource whose nodes you want to list. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2050,19 +2633,97 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.nodeGroup * Name of the NodeGroup resource whose nodes you want to list. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/node_templates_client.ts b/packages/google-cloud-compute/src/v1beta/node_templates_client.ts index 6c3826a2f1a5..50eef5039f29 100644 --- a/packages/google-cloud-compute/src/v1beta/node_templates_client.ts +++ b/packages/google-cloud-compute/src/v1beta/node_templates_client.ts @@ -341,7 +341,19 @@ export class NodeTemplatesClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,7 +548,8 @@ export class NodeTemplatesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -638,7 +651,8 @@ export class NodeTemplatesClient { }); } /** - * Creates a NodeTemplate resource in the specified project using the data included in the request. + * Creates a NodeTemplate resource in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -649,7 +663,19 @@ export class NodeTemplatesClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -743,7 +769,8 @@ export class NodeTemplatesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -949,27 +976,115 @@ export class NodeTemplatesClient { /** - * Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of node templates. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1006,24 +1121,103 @@ export class NodeTemplatesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.INodeTemplatesScopedList]>; } /** - * Retrieves a list of node templates available to the specified project. + * Retrieves a list of node templates available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1118,19 +1312,97 @@ export class NodeTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1174,19 +1446,97 @@ export class NodeTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/node_types_client.ts b/packages/google-cloud-compute/src/v1beta/node_types_client.ts index 4a2e70b14b47..058da3bffb32 100644 --- a/packages/google-cloud-compute/src/v1beta/node_types_client.ts +++ b/packages/google-cloud-compute/src/v1beta/node_types_client.ts @@ -433,27 +433,115 @@ export class NodeTypesClient { /** - * Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of node types. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -490,22 +578,101 @@ export class NodeTypesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.INodeTypesScopedList]>; } /** - * Retrieves a list of node types available to the specified project. + * Retrieves a list of node types available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -602,17 +769,95 @@ export class NodeTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -658,17 +903,95 @@ export class NodeTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/organization_security_policies_client.ts b/packages/google-cloud-compute/src/v1beta/organization_security_policies_client.ts index a47a089b2b6b..821d8f03fde7 100644 --- a/packages/google-cloud-compute/src/v1beta/organization_security_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/organization_security_policies_client.ts @@ -328,14 +328,35 @@ export class OrganizationSecurityPoliciesClient { // -- Service calls -- // ------------------- /** - * Inserts an association for the specified security policy. This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.addAssociation instead if possible. + * Inserts an association for the specified security policy. + * + * This has billing implications. Projects in the hierarchy with effective + * hierarchical security policies will be automatically enrolled into Cloud + * Armor Enterprise if not already enrolled. + * + * Use of this API to modify firewall policies is deprecated. Use + * firewallPolicies.addAssociation instead if possible. * * @param {Object} request * The request object that will be sent. * @param {boolean} request.replaceExistingAssociation - * Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an association already exists. + * Indicates whether or not to replace it if an association of the attachment + * already exists. This is false by default, in which case an error will be + * returned if an association already exists. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {google.cloud.compute.v1beta.SecurityPolicyAssociation} request.securityPolicyAssociationResource @@ -437,7 +458,19 @@ export class OrganizationSecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {google.cloud.compute.v1beta.SecurityPolicyRule} request.securityPolicyRuleResource @@ -534,12 +567,27 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Copies rules to the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.copyRules instead. + * Copies rules to the specified security policy. + * + * Use of this API to modify firewall policies is deprecated. Use + * firewallPolicies.copyRules instead. * * @param {Object} request * The request object that will be sent. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {string} request.sourceSecurityPolicy @@ -636,12 +684,27 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use firewallPolicies.delete instead. + * Deletes the specified policy. + * + * Use of this API to remove firewall policies is deprecated. Use + * firewallPolicies.delete instead. * * @param {Object} request * The request object that will be sent. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to delete. * @param {object} [options] @@ -736,7 +799,10 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * List all of the ordered rules present in a single specified policy. Use of this API to read firewall policies is deprecated. Use firewallPolicies.get instead. + * List all of the ordered rules present in a single specified policy. + * + * Use of this API to read firewall policies is deprecated. Use + * firewallPolicies.get instead. * * @param {Object} request * The request object that will be sent. @@ -830,7 +896,10 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Gets an association with the specified name. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getAssociation instead if possible. + * Gets an association with the specified name. + * + * Use of this API to read firewall policies is deprecated. Use + * firewallPolicies.getAssociation instead if possible. * * @param {Object} request * The request object that will be sent. @@ -926,7 +995,10 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getRule instead. + * Gets a rule at the specified priority. + * + * Use of this API to read firewall policies is deprecated. Use + * firewallPolicies.getRule instead. * * @param {Object} request * The request object that will be sent. @@ -1022,14 +1094,32 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Creates a new policy in the specified project using the data included in the request. Use of this API to insert firewall policies is deprecated. Use firewallPolicies.insert instead. + * Creates a new policy in the specified organization using the data included + * in the request. + * + * Use of this API to insert firewall policies is deprecated. Use + * firewallPolicies.insert instead. * * @param {Object} request * The request object that will be sent. * @param {string} request.parentId - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + * if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + * parent is an organization. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SecurityPolicy} request.securityPolicyResource * The body resource for this request * @param {object} [options] @@ -1119,12 +1209,16 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Lists associations of a specified target, i.e., organization or folder. Use of this API to read firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible. + * Lists associations of a specified target, i.e., organization or folder. + * + * Use of this API to read firewall policies is deprecated. Use + * firewallPolicies.listAssociations instead if possible. * * @param {Object} request * The request object that will be sent. * @param {string} request.targetResource - * The target resource to list associations. It is an organization, or a folder. + * The target resource to list associations. It is an organization, or a + * folder. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1208,22 +1302,101 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * Gets the current list of preconfigured Web Application Firewall (WAF) + * expressions. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1307,14 +1480,29 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Moves the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.move instead. + * Moves the specified security policy. + * + * Use of this API to modify firewall policies is deprecated. Use + * firewallPolicies.move instead. * * @param {Object} request * The request object that will be sent. * @param {string} request.parentId * The new parent of the security policy. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {object} [options] @@ -1409,12 +1597,27 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Patches the specified policy with the data included in the request. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patch instead. + * Patches the specified policy with the data included in the request. + * + * Use of this API to modify firewall policies is deprecated. Use + * firewallPolicies.patch instead. * * @param {Object} request * The request object that will be sent. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {google.cloud.compute.v1beta.SecurityPolicy} request.securityPolicyResource @@ -1513,14 +1716,29 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Patches a rule at the specified priority. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patchRule instead. + * Patches a rule at the specified priority. + * + * Use of this API to modify firewall policies is deprecated. Use + * firewallPolicies.patchRule instead. * * @param {Object} request * The request object that will be sent. * @param {number} request.priority * The priority of the rule to patch. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {google.cloud.compute.v1beta.SecurityPolicyRule} request.securityPolicyRuleResource @@ -1619,14 +1837,29 @@ export class OrganizationSecurityPoliciesClient { }); } /** - * Removes an association for the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.removeAssociation instead if possible. + * Removes an association for the specified security policy. + * + * Use of this API to modify firewall policies is deprecated. Use + * firewallPolicies.removeAssociation instead if possible. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Name for the attachment that will be removed. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {object} [options] @@ -1728,7 +1961,19 @@ export class OrganizationSecurityPoliciesClient { * @param {number} request.priority * The priority of the rule to remove from the security policy. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {object} [options] @@ -1824,22 +2069,104 @@ export class OrganizationSecurityPoliciesClient { } /** - * List all the policies that have been configured for the specified project. Use of this API to read firewall policies is deprecated. Use firewallPolicies.list instead. + * List all the policies that have been configured for the specified + * organization. + * + * Use of this API to read firewall policies is deprecated. Use + * firewallPolicies.list instead. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1928,17 +2255,95 @@ export class OrganizationSecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1976,17 +2381,95 @@ export class OrganizationSecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentId * Parent ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/packet_mirrorings_client.ts b/packages/google-cloud-compute/src/v1beta/packet_mirrorings_client.ts index 04f2a0f50b28..8332b2df7686 100644 --- a/packages/google-cloud-compute/src/v1beta/packet_mirrorings_client.ts +++ b/packages/google-cloud-compute/src/v1beta/packet_mirrorings_client.ts @@ -341,7 +341,19 @@ export class PacketMirroringsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,7 +548,8 @@ export class PacketMirroringsClient { }); } /** - * Creates a PacketMirroring resource in the specified project and region using the data included in the request. + * Creates a PacketMirroring resource in the specified project and region + * using the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -547,7 +560,19 @@ export class PacketMirroringsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -641,7 +666,10 @@ export class PacketMirroringsClient { }); } /** - * Patches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified PacketMirroring resource with the data included in + * the request. This method supportsPATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -654,7 +682,19 @@ export class PacketMirroringsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -853,27 +893,115 @@ export class PacketMirroringsClient { /** - * Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of packetMirrorings. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -910,24 +1038,103 @@ export class PacketMirroringsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IPacketMirroringsScopedList]>; } /** - * Retrieves a list of PacketMirroring resources available to the specified project and region. + * Retrieves a list of PacketMirroring resources available to the specified + * project and region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1022,19 +1229,97 @@ export class PacketMirroringsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1078,19 +1363,97 @@ export class PacketMirroringsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/preview_features_client.ts b/packages/google-cloud-compute/src/v1beta/preview_features_client.ts index 53b5230a5c2d..17d7e0e04843 100644 --- a/packages/google-cloud-compute/src/v1beta/preview_features_client.ts +++ b/packages/google-cloud-compute/src/v1beta/preview_features_client.ts @@ -425,7 +425,8 @@ export class PreviewFeaturesClient { }); } /** - * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. + * Patches the given PreviewFeature. This method is used to enable or disable + * a PreviewFeature. * * @param {Object} request * The request object that will be sent. @@ -436,7 +437,19 @@ export class PreviewFeaturesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,17 +549,95 @@ export class PreviewFeaturesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -640,17 +731,95 @@ export class PreviewFeaturesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -693,17 +862,95 @@ export class PreviewFeaturesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/projects_client.ts b/packages/google-cloud-compute/src/v1beta/projects_client.ts index 017229d2182a..712a18ee454c 100644 --- a/packages/google-cloud-compute/src/v1beta/projects_client.ts +++ b/packages/google-cloud-compute/src/v1beta/projects_client.ts @@ -337,7 +337,19 @@ export class ProjectsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -430,7 +442,8 @@ export class ProjectsClient { }); } /** - * Disable a service resource (also known as service project) associated with this host project. + * Disable a service resource (also known as service project) associated with + * this host project. * * @param {Object} request * The request object that will be sent. @@ -439,7 +452,19 @@ export class ProjectsClient { * @param {google.cloud.compute.v1beta.ProjectsDisableXpnResourceRequest} request.projectsDisableXpnResourceRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -539,7 +564,19 @@ export class ProjectsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -632,7 +669,9 @@ export class ProjectsClient { }); } /** - * Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project. + * Enable service resource (a.k.a service project) for a host project, so that + * subnets in the host project can be used by instances in the service + * project. * * @param {Object} request * The request object that will be sent. @@ -641,7 +680,19 @@ export class ProjectsClient { * @param {google.cloud.compute.v1beta.ProjectsEnableXpnResourceRequest} request.projectsEnableXpnResourceRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -734,7 +785,15 @@ export class ProjectsClient { }); } /** - * Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * Returns the specified Project resource. + * + * To decrease latency for this method, you can optionally omit any unneeded + * information from the response by using a field mask. This practice is + * especially recommended for unused quota information (the `quotas` field). + * To exclude one or more fields, set your request's `fields` query parameter + * to only include the fields you need. For example, to only include the `id` + * and `selfLink` fields, add the query parameter `?fields=id,selfLink` to + * your request. * * @param {Object} request * The request object that will be sent. @@ -828,7 +887,8 @@ export class ProjectsClient { }); } /** - * Gets the shared VPC host project that this project links to. May be empty if no link exists. + * Gets the shared VPC host project that this project links to. May be empty + * if no link exists. * * @param {Object} request * The request object that will be sent. @@ -922,7 +982,20 @@ export class ProjectsClient { }); } /** - * Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a different region or zone, follow the steps in [Change the location of a disk](https://{$universe.dns_names.final_documentation_domain}/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). Projects that already use the moveDisk API can continue usage until September 29, 2026. Starting November 1, 2025, API responses will include a warning message in the response body about the upcoming deprecation. You can skip the message to continue using the service without interruption. + * Moves a persistent disk from one zone to another. + * *Note*: The moveDisk API will be deprecated on September 29, 2026. + * + * Starting September 29, 2025, you can't use the moveDisk API on new + * projects. To move a disk to a different region or zone, follow the steps in + * [Change the location of a + * disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). + * + * Projects that already use the moveDisk API can continue usage until + * September 29, 2026. + * + * Starting November 1, 2025, API responses will include a warning message in + * the response body about the upcoming deprecation. You can skip the message + * to continue using the service without interruption. * * @param {Object} request * The request object that will be sent. @@ -931,7 +1004,19 @@ export class ProjectsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1024,7 +1109,13 @@ export class ProjectsClient { }); } /** - * Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead. + * Moves an instance and its attached persistent disks from one zone to + * another. + * *Note*: Moving VMs or disks by using this method might + * cause unexpected behavior. For more information, see the [known + * issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). + * [Deprecated] This method is deprecated. See [moving instance across + * zones](/compute/docs/instances/moving-instance-across-zones) instead. * * @param {Object} request * The request object that will be sent. @@ -1033,7 +1124,19 @@ export class ProjectsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1126,7 +1229,10 @@ export class ProjectsClient { }); } /** - * Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information. + * Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the + * billing account of the project must be subscribed to Cloud Armor + * Enterprise. See Subscribing + * to Cloud Armor Enterprise for more information. * * @param {Object} request * The request object that will be sent. @@ -1135,7 +1241,19 @@ export class ProjectsClient { * @param {google.cloud.compute.v1beta.ProjectsSetCloudArmorTierRequest} request.projectsSetCloudArmorTierRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1228,7 +1346,8 @@ export class ProjectsClient { }); } /** - * Sets metadata common to all instances within the specified project using the data included in the request. + * Sets metadata common to all instances within the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -1237,7 +1356,19 @@ export class ProjectsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1330,7 +1461,9 @@ export class ProjectsClient { }); } /** - * Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field. + * Sets the default network tier of the project. The default network tier is + * used when an address/forwardingRule/instance is created without specifying + * the network tier field. * * @param {Object} request * The request object that will be sent. @@ -1339,7 +1472,19 @@ export class ProjectsClient { * @param {google.cloud.compute.v1beta.ProjectsSetDefaultNetworkTierRequest} request.projectsSetDefaultNetworkTierRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1432,7 +1577,10 @@ export class ProjectsClient { }); } /** - * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information. + * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set + * PLUS or above the billing account of the project must be subscribed to + * Managed Protection Plus. See Subscribing + * to Managed Protection Plus for more information. * * @param {Object} request * The request object that will be sent. @@ -1441,7 +1589,19 @@ export class ProjectsClient { * @param {google.cloud.compute.v1beta.ProjectsSetManagedProtectionTierRequest} request.projectsSetManagedProtectionTierRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1534,14 +1694,28 @@ export class ProjectsClient { }); } /** - * Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled. + * Enables the usage export feature and sets theusage export bucket + * where reports are stored. If you provide an empty request body using this + * method, the usage export feature will be disabled. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.UsageExportLocation} request.usageExportLocationResource * The body resource for this request * @param {object} [options] @@ -1637,22 +1811,101 @@ export class ProjectsClient { } /** - * Gets service resources (a.k.a service project) associated with this host project. + * Gets service resources (a.k.a service project) associated with this host + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1746,17 +1999,95 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1799,17 +2130,95 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1851,19 +2260,97 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {google.cloud.compute.v1beta.ProjectsListXpnHostsRequest} request.projectsListXpnHostsRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1957,19 +2444,97 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {google.cloud.compute.v1beta.ProjectsListXpnHostsRequest} request.projectsListXpnHostsRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2012,19 +2577,97 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {google.cloud.compute.v1beta.ProjectsListXpnHostsRequest} request.projectsListXpnHostsRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/public_advertised_prefixes_client.ts b/packages/google-cloud-compute/src/v1beta/public_advertised_prefixes_client.ts index 089642fe663e..c21555d107ca 100644 --- a/packages/google-cloud-compute/src/v1beta/public_advertised_prefixes_client.ts +++ b/packages/google-cloud-compute/src/v1beta/public_advertised_prefixes_client.ts @@ -337,7 +337,19 @@ export class PublicAdvertisedPrefixesClient { * @param {string} request.publicAdvertisedPrefix * The name of the public advertised prefix. It should comply with RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -440,7 +452,19 @@ export class PublicAdvertisedPrefixesClient { * @param {string} request.publicAdvertisedPrefix * Name of the PublicAdvertisedPrefix resource to delete. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -631,7 +655,8 @@ export class PublicAdvertisedPrefixesClient { }); } /** - * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request. + * Creates a PublicAdvertisedPrefix in the specified project + * using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -640,7 +665,19 @@ export class PublicAdvertisedPrefixesClient { * @param {google.cloud.compute.v1beta.PublicAdvertisedPrefix} request.publicAdvertisedPrefixResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -733,7 +770,10 @@ export class PublicAdvertisedPrefixesClient { }); } /** - * Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified Router resource with the data included in the + * request. This method supportsPATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -744,7 +784,19 @@ export class PublicAdvertisedPrefixesClient { * @param {google.cloud.compute.v1beta.PublicAdvertisedPrefix} request.publicAdvertisedPrefixResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -847,7 +899,19 @@ export class PublicAdvertisedPrefixesClient { * @param {string} request.publicAdvertisedPrefix * The name of the public advertised prefix. It should comply with RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -947,17 +1011,95 @@ export class PublicAdvertisedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1051,17 +1193,95 @@ export class PublicAdvertisedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1104,17 +1324,95 @@ export class PublicAdvertisedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/public_delegated_prefixes_client.ts b/packages/google-cloud-compute/src/v1beta/public_delegated_prefixes_client.ts index 4b72e219dad0..d763a329b13a 100644 --- a/packages/google-cloud-compute/src/v1beta/public_delegated_prefixes_client.ts +++ b/packages/google-cloud-compute/src/v1beta/public_delegated_prefixes_client.ts @@ -339,9 +339,22 @@ export class PublicDelegatedPrefixesClient { * @param {string} request.publicDelegatedPrefix * The name of the public delegated prefix. It should comply with RFC1035. * @param {string} request.region - * The name of the region where the public delegated prefix is located. It should comply with RFC1035. + * The name of theregion where + * the public delegated prefix is located. It should comply with RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -447,7 +460,19 @@ export class PublicDelegatedPrefixesClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -642,7 +667,8 @@ export class PublicDelegatedPrefixesClient { }); } /** - * Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request. + * Creates a PublicDelegatedPrefix in the specified project in the given + * region using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -653,7 +679,19 @@ export class PublicDelegatedPrefixesClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -747,7 +785,10 @@ export class PublicDelegatedPrefixesClient { }); } /** - * Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified PublicDelegatedPrefix resource with the data included + * in the request. This method supportsPATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -760,7 +801,19 @@ export class PublicDelegatedPrefixesClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -864,9 +917,22 @@ export class PublicDelegatedPrefixesClient { * @param {string} request.publicDelegatedPrefix * The name of the public delegated prefix. It should comply with RFC1035. * @param {string} request.region - * The name of the region where the public delegated prefix is located. It should comply with RFC1035. + * The name of theregion where + * the public delegated prefix is located. It should comply with RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -963,27 +1029,116 @@ export class PublicDelegatedPrefixesClient { /** - * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Lists all PublicDelegatedPrefix resources owned by the specific project + * across all scopes. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1025,19 +1180,97 @@ export class PublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1132,19 +1365,97 @@ export class PublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1188,19 +1499,97 @@ export class PublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_autoscalers_client.ts b/packages/google-cloud-compute/src/v1beta/region_autoscalers_client.ts index 78bc7dcb7387..da09a626ba26 100644 --- a/packages/google-cloud-compute/src/v1beta/region_autoscalers_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_autoscalers_client.ts @@ -339,7 +339,19 @@ export class RegionAutoscalersClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -534,7 +546,8 @@ export class RegionAutoscalersClient { }); } /** - * Creates an autoscaler in the specified project using the data included in the request. + * Creates an autoscaler in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -545,7 +558,19 @@ export class RegionAutoscalersClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -639,7 +664,10 @@ export class RegionAutoscalersClient { }); } /** - * Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates an autoscaler in the specified project using + * the data included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -652,7 +680,19 @@ export class RegionAutoscalersClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -848,7 +888,8 @@ export class RegionAutoscalersClient { }); } /** - * Updates an autoscaler in the specified project using the data included in the request. + * Updates an autoscaler in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -861,7 +902,19 @@ export class RegionAutoscalersClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -956,24 +1009,103 @@ export class RegionAutoscalersClient { } /** - * Retrieves a list of autoscalers contained within the specified region. + * Retrieves a list of autoscalers contained within + * the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1068,19 +1200,97 @@ export class RegionAutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1124,19 +1334,97 @@ export class RegionAutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_backend_buckets_client.ts b/packages/google-cloud-compute/src/v1beta/region_backend_buckets_client.ts new file mode 100644 index 000000000000..233f4caff290 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_backend_buckets_client.ts @@ -0,0 +1,2032 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1beta/region_backend_buckets_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_backend_buckets_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionBackendBuckets API. + * @class + * @memberof v1beta + */ +export class RegionBackendBucketsClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + regionBackendBucketsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionBackendBucketsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new RegionBackendBucketsClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof RegionBackendBucketsClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items'), + listUsable: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1beta.RegionBackendBuckets', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.regionBackendBucketsStub) { + return this.regionBackendBucketsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1beta.RegionBackendBuckets. + this.regionBackendBucketsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1beta.RegionBackendBuckets') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1beta.RegionBackendBuckets, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const regionBackendBucketsStubMethods = + ['delete', 'get', 'getIamPolicy', 'insert', 'list', 'listUsable', 'patch', 'setIamPolicy', 'testIamPermissions']; + for (const methodName of regionBackendBucketsStubMethods) { + const callPromise = this.regionBackendBucketsStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.regionBackendBucketsStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * Deletes the specified regional BackendBucket resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.backendBucket + * Name of the BackendBucket resource to delete. + * @param {boolean} request.forceDelete + * Force delete the backend bucket even if it is still in use by other + * resources. It's intended to be used internally only for requests from + * wipeout. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_backend_buckets.delete.js + * region_tag:compute_v1beta_generated_RegionBackendBuckets_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'backend_bucket': request.backendBucket ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionBackendBucketRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('delete response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.delete(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns the specified regional BackendBucket resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.backendBucket + * Name of the BackendBucket resource to return. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.BackendBucket|BackendBucket}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_backend_buckets.get.js + * region_tag:compute_v1beta_generated_RegionBackendBuckets_Get_async + */ + get( + request?: protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IBackendBucket, + protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IBackendBucket, + protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IBackendBucket, + protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IBackendBucket, + protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IBackendBucket, + protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IBackendBucket, + protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'backend_bucket': request.backendBucket ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IBackendBucket, + protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IBackendBucket, + protos.google.cloud.compute.v1beta.IGetRegionBackendBucketRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.optionsRequestedPolicyVersion + * Requested IAM Policy version. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_backend_buckets.get_iam_policy.js + * region_tag:compute_v1beta_generated_RegionBackendBuckets_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyRegionBackendBucketRequest|undefined, + {}|undefined + ]) => { + this._log.info('getIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Creates a RegionBackendBucket in the specified project in the given scope + * using the parameters that are included in the request. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1beta.BackendBucket} request.backendBucketResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_backend_buckets.insert.js + * region_tag:compute_v1beta_generated_RegionBackendBuckets_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('insert request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionBackendBucketRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('insert response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.insert(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Updates the specified BackendBucket resource with the data included in the + * request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.backendBucket + * Name of the BackendBucket resource to patch. + * @param {google.cloud.compute.v1beta.BackendBucket} request.backendBucketResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_backend_buckets.patch.js + * region_tag:compute_v1beta_generated_RegionBackendBuckets_Patch_async + */ + patch( + request?: protos.google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + patch( + request: protos.google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + patch( + request: protos.google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + patch( + request?: protos.google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'backend_bucket': request.backendBucket ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('patch request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionBackendBucketRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('patch response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.patch(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Sets the access control policy on the specified resource. + * Replaces any existing policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {google.cloud.compute.v1beta.RegionSetPolicyRequest} request.regionSetPolicyRequestResource + * The body resource for this request + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_backend_buckets.set_iam_policy.js + * region_tag:compute_v1beta_generated_RegionBackendBuckets_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('setIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('setIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.setIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyRegionBackendBucketRequest|undefined, + {}|undefined + ]) => { + this._log.info('setIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1beta.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_backend_buckets.test_iam_permissions.js + * region_tag:compute_v1beta_generated_RegionBackendBuckets_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionBackendBucketRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + /** + * Retrieves the list of BackendBucket resources available to the specified + * project in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.BackendBucket|BackendBucket}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IBackendBucket[], + protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1beta.IBackendBucketList + ]>; + list( + request: protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>): void; + list( + request: protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>): void; + list( + request?: protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>): + Promise<[ + protos.google.cloud.compute.v1beta.IBackendBucket[], + protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1beta.IBackendBucketList + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketList|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.IBackendBucket[], + protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1beta.IBackendBucketList + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.BackendBucket|BackendBucket} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.BackendBucket|BackendBucket}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_backend_buckets.list.js + * region_tag:compute_v1beta_generated_RegionBackendBuckets_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1beta.IListRegionBackendBucketsRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Retrieves a list of all usable backend buckets in the specified project in + * the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.BackendBucket|BackendBucket}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listUsableAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listUsable( + request?: protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IBackendBucket[], + protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1beta.IBackendBucketListUsable + ]>; + listUsable( + request: protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>): void; + listUsable( + request: protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>): void; + listUsable( + request?: protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>): + Promise<[ + protos.google.cloud.compute.v1beta.IBackendBucket[], + protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1beta.IBackendBucketListUsable + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + protos.google.cloud.compute.v1beta.IBackendBucketListUsable|null|undefined, + protos.google.cloud.compute.v1beta.IBackendBucket>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('listUsable values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('listUsable request %j', request); + return this.innerApiCalls + .listUsable(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.IBackendBucket[], + protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest|null, + protos.google.cloud.compute.v1beta.IBackendBucketListUsable + ]) => { + this._log.info('listUsable values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `listUsable`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.BackendBucket|BackendBucket} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listUsableAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listUsableStream( + request?: protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['listUsable']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('listUsable stream %j', request); + return this.descriptors.page.listUsable.createStream( + this.innerApiCalls.listUsable as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `listUsable`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.BackendBucket|BackendBucket}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_backend_buckets.list_usable.js + * region_tag:compute_v1beta_generated_RegionBackendBuckets_ListUsable_async + */ + listUsableAsync( + request?: protos.google.cloud.compute.v1beta.IListUsableRegionBackendBucketsRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['listUsable']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('listUsable iterate %j', request); + return this.descriptors.page.listUsable.asyncIterate( + this.innerApiCalls['listUsable'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.regionBackendBucketsStub && !this._terminated) { + return this.regionBackendBucketsStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1beta/region_backend_buckets_client_config.json b/packages/google-cloud-compute/src/v1beta/region_backend_buckets_client_config.json new file mode 100644 index 000000000000..68a160a0b56e --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_backend_buckets_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.cloud.compute.v1beta.RegionBackendBuckets": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListUsable": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Patch": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1beta/region_backend_buckets_proto_list.json b/packages/google-cloud-compute/src/v1beta/region_backend_buckets_proto_list.json new file mode 100644 index 000000000000..ecbfc90443e6 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_backend_buckets_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1beta/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1beta/region_backend_services_client.ts b/packages/google-cloud-compute/src/v1beta/region_backend_services_client.ts index ac5cefc46787..a36b4d1c96e1 100644 --- a/packages/google-cloud-compute/src/v1beta/region_backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_backend_services_client.ts @@ -341,7 +341,19 @@ export class RegionBackendServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,7 +548,8 @@ export class RegionBackendServicesClient { }); } /** - * Gets the most recent health check results for this regional BackendService. + * Gets the most recent health check results for this + * regional BackendService. * * @param {Object} request * The request object that will be sent. @@ -637,7 +650,8 @@ export class RegionBackendServicesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -739,7 +753,9 @@ export class RegionBackendServicesClient { }); } /** - * Creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview. + * Creates a regional BackendService resource in the specified project using + * the data included in the request. For more information, see + * Backend services overview. * * @param {Object} request * The request object that will be sent. @@ -750,7 +766,19 @@ export class RegionBackendServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -844,7 +872,11 @@ export class RegionBackendServicesClient { }); } /** - * Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified regional BackendService resource with the data + * included in the request. For more information, see + * Understanding backend services This method + * supports PATCH semantics and uses the JSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -857,7 +889,19 @@ export class RegionBackendServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -952,7 +996,8 @@ export class RegionBackendServicesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1054,18 +1099,33 @@ export class RegionBackendServicesClient { }); } /** - * Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview + * Sets the Google Cloud Armor security policy for the specified backend + * service. For more information, seeGoogle + * Cloud Armor Overview * * @param {Object} request * The request object that will be sent. * @param {string} request.backendService - * Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the BackendService resource to which the security policy should be + * set. The name should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SecurityPolicyReference} request.securityPolicyReferenceResource * The body resource for this request * @param {object} [options] @@ -1264,7 +1324,10 @@ export class RegionBackendServicesClient { }); } /** - * Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview . + * Updates the specified regional BackendService resource with the data + * included in the request. For more information, + * see + * Backend services overview. * * @param {Object} request * The request object that will be sent. @@ -1277,7 +1340,19 @@ export class RegionBackendServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1373,24 +1448,103 @@ export class RegionBackendServicesClient { } /** - * Retrieves the list of regional BackendService resources available to the specified project in the given region. + * Retrieves the list of regional BackendService resources available to the + * specified project in the given region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1485,19 +1639,97 @@ export class RegionBackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1541,19 +1773,97 @@ export class RegionBackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1591,24 +1901,104 @@ export class RegionBackendServicesClient { ) as AsyncIterable; } /** - * Retrieves a list of all usable backend services in the specified project in the given region. + * Retrieves a list of all usable backend services in the specified project in + * the given region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1703,19 +2093,98 @@ export class RegionBackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1759,19 +2228,98 @@ export class RegionBackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_commitments_client.ts b/packages/google-cloud-compute/src/v1beta/region_commitments_client.ts index f4573cd42baf..3df8b365c136 100644 --- a/packages/google-cloud-compute/src/v1beta/region_commitments_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_commitments_client.ts @@ -430,7 +430,8 @@ export class RegionCommitmentsClient { }); } /** - * Creates a commitment in the specified project using the data included in the request. + * Creates a commitment in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -441,7 +442,19 @@ export class RegionCommitmentsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -637,7 +650,9 @@ export class RegionCommitmentsClient { }); } /** - * Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be updated: auto_renew and plan. + * Updates the specified commitment with the data included in the request. + * Update is performed only on selected fields included as part of + * update-mask. Only the following fields can be updated: auto_renew and plan. * * @param {Object} request * The request object that will be sent. @@ -651,7 +666,19 @@ export class RegionCommitmentsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {object} [options] @@ -748,7 +775,8 @@ export class RegionCommitmentsClient { }); } /** - * Transfers GPUs or Local SSD disks between reservations that are attached to the same commitment. + * Transfers GPUs or Local SSD disks between reservations that are attached + * to the same commitment. * * @param {Object} request * The request object that will be sent. @@ -761,7 +789,19 @@ export class RegionCommitmentsClient { * @param {google.cloud.compute.v1beta.RegionCommitmentsUpdateReservationsRequest} request.regionCommitmentsUpdateReservationsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -858,27 +898,115 @@ export class RegionCommitmentsClient { /** - * Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of commitments by region. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -915,24 +1043,103 @@ export class RegionCommitmentsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ICommitmentsScopedList]>; } /** - * Retrieves a list of commitments contained within the specified region. + * Retrieves a list of commitments contained within + * the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1027,19 +1234,97 @@ export class RegionCommitmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1083,19 +1368,97 @@ export class RegionCommitmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_composite_health_checks_client.ts b/packages/google-cloud-compute/src/v1beta/region_composite_health_checks_client.ts new file mode 100644 index 000000000000..1245a4551d5b --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_composite_health_checks_client.ts @@ -0,0 +1,1511 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1beta/region_composite_health_checks_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_composite_health_checks_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionCompositeHealthChecks API. + * @class + * @memberof v1beta + */ +export class RegionCompositeHealthChecksClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + regionCompositeHealthChecksStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionCompositeHealthChecksClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new RegionCompositeHealthChecksClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof RegionCompositeHealthChecksClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + aggregatedList: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items'), + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1beta.RegionCompositeHealthChecks', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.regionCompositeHealthChecksStub) { + return this.regionCompositeHealthChecksStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1beta.RegionCompositeHealthChecks. + this.regionCompositeHealthChecksStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1beta.RegionCompositeHealthChecks') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1beta.RegionCompositeHealthChecks, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const regionCompositeHealthChecksStubMethods = + ['aggregatedList', 'delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; + for (const methodName of regionCompositeHealthChecksStubMethods) { + const callPromise = this.regionCompositeHealthChecksStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.regionCompositeHealthChecksStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * Deletes the specified CompositeHealthCheck in the given region + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.compositeHealthCheck + * Name of the CompositeHealthCheck resource to delete. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_composite_health_checks.delete.js + * region_tag:compute_v1beta_generated_RegionCompositeHealthChecks_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'composite_health_check': request.compositeHealthCheck ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('delete response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.delete(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns the specified CompositeHealthCheck resource in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.compositeHealthCheck + * Name of the CompositeHealthCheck resource to return. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.CompositeHealthCheck|CompositeHealthCheck}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_composite_health_checks.get.js + * region_tag:compute_v1beta_generated_RegionCompositeHealthChecks_Get_async + */ + get( + request?: protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ICompositeHealthCheck, + protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheck, + protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheck, + protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheck, + protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheck, + protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ICompositeHealthCheck, + protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'composite_health_check': request.compositeHealthCheck ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ICompositeHealthCheck, + protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ICompositeHealthCheck, + protos.google.cloud.compute.v1beta.IGetRegionCompositeHealthCheckRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Create a CompositeHealthCheck in the specified project in the given region + * using the parameters that are included in the request. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1beta.CompositeHealthCheck} request.compositeHealthCheckResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_composite_health_checks.insert.js + * region_tag:compute_v1beta_generated_RegionCompositeHealthChecks_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('insert request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('insert response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.insert(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Updates the specified regional CompositeHealthCheck resource + * with the data included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.compositeHealthCheck + * Name of the CompositeHealthCheck to update. The name + * must be 1-63 characters long, and comply with RFC1035. + * @param {google.cloud.compute.v1beta.CompositeHealthCheck} request.compositeHealthCheckResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_composite_health_checks.patch.js + * region_tag:compute_v1beta_generated_RegionCompositeHealthChecks_Patch_async + */ + patch( + request?: protos.google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + patch( + request: protos.google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + patch( + request: protos.google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + patch( + request?: protos.google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'composite_health_check': request.compositeHealthCheck ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('patch request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('patch response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.patch(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1beta.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_composite_health_checks.test_iam_permissions.js + * region_tag:compute_v1beta_generated_RegionCompositeHealthChecks_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionCompositeHealthCheckRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + +/** + * Retrieves the list of all CompositeHealthCheck resources (all + * regional) available to the specified project. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {boolean} request.includeAllScopes + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Name of the project scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * as tuple [string, {@link protos.google.cloud.compute.v1beta.CompositeHealthChecksScopedList|CompositeHealthChecksScopedList}]. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_composite_health_checks.aggregated_list.js + * region_tag:compute_v1beta_generated_RegionCompositeHealthChecks_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1beta.ICompositeHealthChecksScopedList]>{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + }); + const defaultCallSettings = this._defaults['aggregatedList']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('aggregatedList iterate %j', request); + return this.descriptors.page.aggregatedList.asyncIterate( + this.innerApiCalls['aggregatedList'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ICompositeHealthChecksScopedList]>; + } + /** + * Lists the CompositeHealthChecks for a project in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.CompositeHealthCheck|CompositeHealthCheck}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ICompositeHealthCheck[], + protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest|null, + protos.google.cloud.compute.v1beta.ICompositeHealthCheckList + ]>; + list( + request: protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1beta.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1beta.ICompositeHealthCheck>): void; + list( + request: protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1beta.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1beta.ICompositeHealthCheck>): void; + list( + request?: protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1beta.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1beta.ICompositeHealthCheck>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1beta.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1beta.ICompositeHealthCheck>): + Promise<[ + protos.google.cloud.compute.v1beta.ICompositeHealthCheck[], + protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest|null, + protos.google.cloud.compute.v1beta.ICompositeHealthCheckList + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1beta.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1beta.ICompositeHealthCheck>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.ICompositeHealthCheck[], + protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest|null, + protos.google.cloud.compute.v1beta.ICompositeHealthCheckList + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.CompositeHealthCheck|CompositeHealthCheck} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.CompositeHealthCheck|CompositeHealthCheck}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_composite_health_checks.list.js + * region_tag:compute_v1beta_generated_RegionCompositeHealthChecks_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1beta.IListRegionCompositeHealthChecksRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.regionCompositeHealthChecksStub && !this._terminated) { + return this.regionCompositeHealthChecksStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1beta/region_composite_health_checks_client_config.json b/packages/google-cloud-compute/src/v1beta/region_composite_health_checks_client_config.json new file mode 100644 index 000000000000..77127c224e3d --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_composite_health_checks_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1beta.RegionCompositeHealthChecks": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Patch": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1beta/region_composite_health_checks_proto_list.json b/packages/google-cloud-compute/src/v1beta/region_composite_health_checks_proto_list.json new file mode 100644 index 000000000000..ecbfc90443e6 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_composite_health_checks_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1beta/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1beta/region_disk_settings_client.ts b/packages/google-cloud-compute/src/v1beta/region_disk_settings_client.ts index 6179491de748..fb248fc61fbe 100644 --- a/packages/google-cloud-compute/src/v1beta/region_disk_settings_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_disk_settings_client.ts @@ -427,7 +427,19 @@ export class RegionDiskSettingsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/region_disk_types_client.ts b/packages/google-cloud-compute/src/v1beta/region_disk_types_client.ts index 2962715896fe..94b32c9c15dc 100644 --- a/packages/google-cloud-compute/src/v1beta/region_disk_types_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_disk_types_client.ts @@ -435,19 +435,97 @@ export class RegionDiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -542,19 +620,97 @@ export class RegionDiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -598,19 +754,97 @@ export class RegionDiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_disks_client.ts b/packages/google-cloud-compute/src/v1beta/region_disks_client.ts index fcf2bce8f8b5..78fc384a7943 100644 --- a/packages/google-cloud-compute/src/v1beta/region_disks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_disks_client.ts @@ -328,7 +328,9 @@ export class RegionDisksClient { // -- Service calls -- // ------------------- /** - * Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation. + * Adds existing resource policies to a regional disk. You can only add one + * policy which will be applied to this disk for scheduling snapshot + * creation. * * @param {Object} request * The request object that will be sent. @@ -341,7 +343,19 @@ export class RegionDisksClient { * @param {google.cloud.compute.v1beta.RegionDisksAddResourcePoliciesRequest} request.regionDisksAddResourcePoliciesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -447,7 +461,19 @@ export class RegionDisksClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -541,7 +567,10 @@ export class RegionDisksClient { }); } /** - * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. + * Creates a snapshot of a specified persistent disk. For regular snapshot + * creation, consider using snapshots.insert + * instead, as that method supports more features, such as creating snapshots + * in a project different from the source disk project. * * @param {Object} request * The request object that will be sent. @@ -552,7 +581,19 @@ export class RegionDisksClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Snapshot} request.snapshotResource * The body resource for this request * @param {object} [options] @@ -649,7 +690,11 @@ export class RegionDisksClient { }); } /** - * Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots. + * Deletes the specified regional persistent disk. Deleting a regional disk + * removes all the replicas of its data permanently and is irreversible. + * However, deleting a disk does not delete anysnapshots + * previously made from the disk. You must separatelydelete + * snapshots. * * @param {Object} request * The request object that will be sent. @@ -660,7 +705,19 @@ export class RegionDisksClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -855,7 +912,8 @@ export class RegionDisksClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -957,7 +1015,8 @@ export class RegionDisksClient { }); } /** - * Creates a persistent regional disk in the specified project using the data included in the request. + * Creates a persistent regional disk in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -968,7 +1027,19 @@ export class RegionDisksClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sourceImage * Source image to restore onto a disk. This field is optional. * @param {object} [options] @@ -1077,7 +1148,19 @@ export class RegionDisksClient { * @param {google.cloud.compute.v1beta.RegionDisksRemoveResourcePoliciesRequest} request.regionDisksRemoveResourcePoliciesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1185,7 +1268,19 @@ export class RegionDisksClient { * @param {google.cloud.compute.v1beta.RegionDisksResizeRequest} request.regionDisksResizeRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1280,7 +1375,8 @@ export class RegionDisksClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1393,7 +1489,19 @@ export class RegionDisksClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -1490,7 +1598,8 @@ export class RegionDisksClient { }); } /** - * Starts asynchronous replication. Must be invoked on the primary disk. + * Starts asynchronous replication. + * Must be invoked on the primary disk. * * @param {Object} request * The request object that will be sent. @@ -1503,7 +1612,19 @@ export class RegionDisksClient { * @param {google.cloud.compute.v1beta.RegionDisksStartAsyncReplicationRequest} request.regionDisksStartAsyncReplicationRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1598,7 +1719,8 @@ export class RegionDisksClient { }); } /** - * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + * Stops asynchronous replication. + * Can be invoked either on the primary or on the secondary disk. * * @param {Object} request * The request object that will be sent. @@ -1609,7 +1731,19 @@ export class RegionDisksClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1704,7 +1838,8 @@ export class RegionDisksClient { }); } /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope. + * Stops asynchronous replication for a consistency group of disks. + * Can be invoked either in the primary or secondary scope. * * @param {Object} request * The request object that will be sent. @@ -1713,9 +1848,22 @@ export class RegionDisksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region for this request. This must be the region of the primary or secondary disks in the consistency group. + * The name of the region for this request. This must be the region of the + * primary or secondary disks in the consistency group. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1911,7 +2059,9 @@ export class RegionDisksClient { }); } /** - * Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. + * Update the specified disk with the data included in the request. Update is + * performed only on selected fields included as part of update-mask. Only the + * following fields can be modified: user_license. * * @param {Object} request * The request object that will be sent. @@ -1925,7 +2075,19 @@ export class RegionDisksClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {object} [options] @@ -2023,24 +2185,103 @@ export class RegionDisksClient { } /** - * Retrieves the list of persistent disks contained within the specified region. + * Retrieves the list of persistent disks contained within + * the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2135,19 +2376,97 @@ export class RegionDisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2191,19 +2510,97 @@ export class RegionDisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_health_aggregation_policies_client.ts b/packages/google-cloud-compute/src/v1beta/region_health_aggregation_policies_client.ts new file mode 100644 index 000000000000..3f9a0f93d748 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_health_aggregation_policies_client.ts @@ -0,0 +1,1511 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1beta/region_health_aggregation_policies_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_health_aggregation_policies_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionHealthAggregationPolicies API. + * @class + * @memberof v1beta + */ +export class RegionHealthAggregationPoliciesClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + regionHealthAggregationPoliciesStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionHealthAggregationPoliciesClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new RegionHealthAggregationPoliciesClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof RegionHealthAggregationPoliciesClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + aggregatedList: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items'), + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1beta.RegionHealthAggregationPolicies', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.regionHealthAggregationPoliciesStub) { + return this.regionHealthAggregationPoliciesStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1beta.RegionHealthAggregationPolicies. + this.regionHealthAggregationPoliciesStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1beta.RegionHealthAggregationPolicies') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1beta.RegionHealthAggregationPolicies, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const regionHealthAggregationPoliciesStubMethods = + ['aggregatedList', 'delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; + for (const methodName of regionHealthAggregationPoliciesStubMethods) { + const callPromise = this.regionHealthAggregationPoliciesStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.regionHealthAggregationPoliciesStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * Deletes the specified HealthAggregationPolicy in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthAggregationPolicy + * Name of the HealthAggregationPolicy resource to delete. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_health_aggregation_policies.delete.js + * region_tag:compute_v1beta_generated_RegionHealthAggregationPolicies_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'health_aggregation_policy': request.healthAggregationPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('delete response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.delete(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns the specified HealthAggregationPolicy resource in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthAggregationPolicy + * Name of the HealthAggregationPolicy resource to return. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.HealthAggregationPolicy|HealthAggregationPolicy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_health_aggregation_policies.get.js + * region_tag:compute_v1beta_generated_RegionHealthAggregationPolicies_Get_async + */ + get( + request?: protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy, + protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy, + protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy, + protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy, + protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy, + protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy, + protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'health_aggregation_policy': request.healthAggregationPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy, + protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy, + protos.google.cloud.compute.v1beta.IGetRegionHealthAggregationPolicyRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Create a HealthAggregationPolicy in the specified project in the given + * region using the parameters that are included in the request. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1beta.HealthAggregationPolicy} request.healthAggregationPolicyResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_health_aggregation_policies.insert.js + * region_tag:compute_v1beta_generated_RegionHealthAggregationPolicies_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('insert request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('insert response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.insert(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Updates the specified regional HealthAggregationPolicy + * resource with the data included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthAggregationPolicy + * Name of the HealthAggregationPolicy to update. The name + * must be 1-63 characters long, and comply with RFC1035. + * @param {google.cloud.compute.v1beta.HealthAggregationPolicy} request.healthAggregationPolicyResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/region_health_aggregation_policies.patch.js + * region_tag:compute_v1beta_generated_RegionHealthAggregationPolicies_Patch_async + */ + patch( + request?: protos.google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + patch( + request: protos.google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + patch( + request: protos.google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + patch( + request?: protos.google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'health_aggregation_policy': request.healthAggregationPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('patch request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('patch response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.patch(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1beta.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_health_aggregation_policies.test_iam_permissions.js + * region_tag:compute_v1beta_generated_RegionHealthAggregationPolicies_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsRegionHealthAggregationPolicyRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + +/** + * Retrieves the list of all HealthAggregationPolicy resources, + * regional and global, available to the specified project. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {boolean} request.includeAllScopes + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Name of the project scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * as tuple [string, {@link protos.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList|HealthAggregationPoliciesScopedList}]. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_health_aggregation_policies.aggregated_list.js + * region_tag:compute_v1beta_generated_RegionHealthAggregationPolicies_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList]>{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + }); + const defaultCallSettings = this._defaults['aggregatedList']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('aggregatedList iterate %j', request); + return this.descriptors.page.aggregatedList.asyncIterate( + this.innerApiCalls['aggregatedList'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList]>; + } + /** + * Lists the HealthAggregationPolicies for a project in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.HealthAggregationPolicy|HealthAggregationPolicy}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy[], + protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest|null, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicyList + ]>; + list( + request: protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy>): void; + list( + request: protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy>): void; + list( + request?: protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy>): + Promise<[ + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy[], + protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest|null, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicyList + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.IHealthAggregationPolicy[], + protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest|null, + protos.google.cloud.compute.v1beta.IHealthAggregationPolicyList + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.HealthAggregationPolicy|HealthAggregationPolicy} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.HealthAggregationPolicy|HealthAggregationPolicy}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/region_health_aggregation_policies.list.js + * region_tag:compute_v1beta_generated_RegionHealthAggregationPolicies_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1beta.IListRegionHealthAggregationPoliciesRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.regionHealthAggregationPoliciesStub && !this._terminated) { + return this.regionHealthAggregationPoliciesStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1beta/region_health_aggregation_policies_client_config.json b/packages/google-cloud-compute/src/v1beta/region_health_aggregation_policies_client_config.json new file mode 100644 index 000000000000..a6b01b1d0c15 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_health_aggregation_policies_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1beta.RegionHealthAggregationPolicies": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Patch": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1beta/region_health_aggregation_policies_proto_list.json b/packages/google-cloud-compute/src/v1beta/region_health_aggregation_policies_proto_list.json new file mode 100644 index 000000000000..ecbfc90443e6 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/region_health_aggregation_policies_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1beta/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1beta/region_health_check_services_client.ts b/packages/google-cloud-compute/src/v1beta/region_health_check_services_client.ts index 5f5d56735eda..63ebdec24efe 100644 --- a/packages/google-cloud-compute/src/v1beta/region_health_check_services_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_health_check_services_client.ts @@ -333,13 +333,26 @@ export class RegionHealthCheckServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.healthCheckService - * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the HealthCheckService to delete. The name + * must be 1-63 characters long, and comply with RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -439,7 +452,8 @@ export class RegionHealthCheckServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.healthCheckService - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the HealthCheckService to update. The name + * must be 1-63 characters long, and comply with RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -534,7 +548,8 @@ export class RegionHealthCheckServicesClient { }); } /** - * Creates a regional HealthCheckService resource in the specified project and region using the data included in the request. + * Creates a regional HealthCheckService resource in the + * specified project and region using the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -545,7 +560,19 @@ export class RegionHealthCheckServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -639,12 +666,16 @@ export class RegionHealthCheckServicesClient { }); } /** - * Updates the specified regional HealthCheckService resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified regional HealthCheckService resource + * with the data included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. * @param {string} request.healthCheckService - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the HealthCheckService to update. The name + * must be 1-63 characters long, and comply with RFC1035. * @param {google.cloud.compute.v1beta.HealthCheckService} request.healthCheckServiceResource * The body resource for this request * @param {string} request.project @@ -652,7 +683,19 @@ export class RegionHealthCheckServicesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -850,24 +893,103 @@ export class RegionHealthCheckServicesClient { } /** - * Lists all the HealthCheckService resources that have been configured for the specified project in the given region. + * Lists all the HealthCheckService resources that have been + * configured for the specified project in the given region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -962,19 +1084,97 @@ export class RegionHealthCheckServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1018,19 +1218,97 @@ export class RegionHealthCheckServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_health_checks_client.ts b/packages/google-cloud-compute/src/v1beta/region_health_checks_client.ts index 647274258970..7c0d79bef424 100644 --- a/packages/google-cloud-compute/src/v1beta/region_health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_health_checks_client.ts @@ -339,7 +339,19 @@ export class RegionHealthChecksClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -534,7 +546,8 @@ export class RegionHealthChecksClient { }); } /** - * Creates a HealthCheck resource in the specified project using the data included in the request. + * Creates a HealthCheck resource in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -545,7 +558,19 @@ export class RegionHealthChecksClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -639,7 +664,10 @@ export class RegionHealthChecksClient { }); } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates a HealthCheck resource in the specified project using the data + * included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -652,7 +680,19 @@ export class RegionHealthChecksClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -849,7 +889,8 @@ export class RegionHealthChecksClient { }); } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. + * Updates a HealthCheck resource in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -862,7 +903,19 @@ export class RegionHealthChecksClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -958,24 +1011,103 @@ export class RegionHealthChecksClient { } /** - * Retrieves the list of HealthCheck resources available to the specified project. + * Retrieves the list of HealthCheck resources available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1070,19 +1202,97 @@ export class RegionHealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1126,19 +1336,97 @@ export class RegionHealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_health_sources_client.ts b/packages/google-cloud-compute/src/v1beta/region_health_sources_client.ts index c838afdec2a2..990f3e142787 100644 --- a/packages/google-cloud-compute/src/v1beta/region_health_sources_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_health_sources_client.ts @@ -341,7 +341,19 @@ export class RegionHealthSourcesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,7 +548,8 @@ export class RegionHealthSourcesClient { }); } /** - * Create a HealthSource in the specified project in the given region using the parameters that are included in the request. + * Create a HealthSource in the specified project in the given region + * using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -547,7 +560,19 @@ export class RegionHealthSourcesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -641,12 +666,16 @@ export class RegionHealthSourcesClient { }); } /** - * Updates the specified regional HealthSource resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified regional HealthSource resource + * with the data included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. * @param {string} request.healthSource - * Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the HealthSource to update. The name + * must be 1-63 characters long, and comply with RFC1035. * @param {google.cloud.compute.v1beta.HealthSource} request.healthSourceResource * The body resource for this request * @param {string} request.project @@ -654,7 +683,19 @@ export class RegionHealthSourcesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -853,27 +894,116 @@ export class RegionHealthSourcesClient { /** - * Retrieves the list of all HealthSource resources (all regional) available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all HealthSource resources (all + * regional) available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -915,19 +1045,97 @@ export class RegionHealthSourcesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1022,19 +1230,97 @@ export class RegionHealthSourcesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1078,19 +1364,97 @@ export class RegionHealthSourcesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_instance_group_manager_resize_requests_client.ts b/packages/google-cloud-compute/src/v1beta/region_instance_group_manager_resize_requests_client.ts index 7c48be49bc07..4d1de7709b39 100644 --- a/packages/google-cloud-compute/src/v1beta/region_instance_group_manager_resize_requests_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_instance_group_manager_resize_requests_client.ts @@ -328,20 +328,38 @@ export class RegionInstanceGroupManagerResizeRequestsClient { // -- Service calls -- // ------------------- /** - * Cancels the specified resize request. Cancelled resize request no longer waits for the resources to be provisioned. Cancel is only possible for requests that are in accepted state. + * Cancels the specified resize request. + * Cancelled resize request no longer waits for the resources to be + * provisioned. Cancel is only possible for requests that are in accepted + * state. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region scoping this request. Name should conform to RFC1035. + * The name of the region + * scoping this request. Name should conform to RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resizeRequest - * The name of the resize request to cancel. Name should conform to RFC1035 or be a resource ID. + * The name of the resize request to cancel. + * Name should conform to RFC1035 or be a resource ID. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -437,20 +455,37 @@ export class RegionInstanceGroupManagerResizeRequestsClient { }); } /** - * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously. + * Deletes the specified, inactive resize request. Requests that are still + * active cannot be deleted. Deleting request does not delete instances that + * were provisioned previously. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region scoping this request. Name should conform to RFC1035. + * The name of the region + * scoping this request. Name should conform to RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resizeRequest - * The name of the resize request to delete. Name should conform to RFC1035 or be a resource ID. + * The name of the resize request to delete. + * Name should conform to RFC1035 or be a resource ID. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -551,13 +586,16 @@ export class RegionInstanceGroupManagerResizeRequestsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + * The name of the managed instance group. + * Name should conform to RFC1035 or be a resource ID. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region scoping this request. Name should conform to RFC1035. + * The name of the region + * scoping this request. Name should conform to RFC1035. * @param {string} request.resizeRequest - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + * The name of the resize request. + * Name should conform to RFC1035 or be a resource ID. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -649,20 +687,35 @@ export class RegionInstanceGroupManagerResizeRequestsClient { }); } /** - * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * Creates a new Resize Request that starts provisioning VMs immediately + * or queues VM creation. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * Name of the managed instance group to which the resize request is scoped. Name should conform to RFC1035 or be a resource ID. + * Name of the managed instance group to which the resize request is scoped. + * Name should conform to RFC1035 or be a resource ID. * @param {google.cloud.compute.v1beta.InstanceGroupManagerResizeRequest} request.instanceGroupManagerResizeRequestResource * The body resource for this request * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. Name should conform to RFC1035. + * Name of the region + * scoping this request. Name should conform to RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -758,26 +811,106 @@ export class RegionInstanceGroupManagerResizeRequestsClient { } /** - * Retrieves a list of Resize Requests that are contained in the managed instance group. + * Retrieves a list of Resize Requests that are contained in the + * managed instance group. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. The name should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. Name should conform to RFC1035. + * Name of the region + * scoping this request. Name should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -873,21 +1006,100 @@ export class RegionInstanceGroupManagerResizeRequestsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. The name should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. Name should conform to RFC1035. + * Name of the region + * scoping this request. Name should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -932,21 +1144,100 @@ export class RegionInstanceGroupManagerResizeRequestsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. The name should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. Name should conform to RFC1035. + * Name of the region + * scoping this request. Name should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_instance_group_managers_client.ts b/packages/google-cloud-compute/src/v1beta/region_instance_group_managers_client.ts index 3f5eb73092ff..d59c306585cc 100644 --- a/packages/google-cloud-compute/src/v1beta/region_instance_group_managers_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_instance_group_managers_client.ts @@ -334,7 +334,21 @@ export class RegionInstanceGroupManagersClient { // -- Service calls -- // ------------------- /** - * Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances to be immediately removed from the managed + * instance group. Abandoning an instance does not delete the + * instance, but it does remove the instance from any target pools that are + * applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the + * number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have + * not yet been removed from the group. You must separately verify the + * status of the abandoning action with thelistmanagedinstances + * method. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -347,7 +361,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersAbandonInstancesRequest} request.regionInstanceGroupManagersAbandonInstancesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -548,20 +574,39 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Creates instances with per-instance configurations in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method. + * Creates instances with per-instance configurations in this regional managed + * instance group. Instances are created using the current instance template. + * The create instances operation is marked DONE if + * the createInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances + * method. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the managed instance group is located. It should conform to RFC1035. + * The name of theregion + * where the managed instance group is located. + * It should conform to RFC1035. * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersCreateInstancesRequest} request.regionInstanceGroupManagersCreateInstancesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -656,7 +701,8 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Deletes the specified managed instance group and all of the instances in that group. + * Deletes the specified managed instance group and all of the instances + * in that group. * * @param {Object} request * The request object that will be sent. @@ -667,7 +713,19 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -762,7 +820,21 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group to be + * immediately deleted. The instances are also removed from any target + * pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of + * instances that you delete. + * The deleteInstances operation is marked DONE if + * the deleteInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of thedeleting action with thelistmanagedinstances + * method. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -775,7 +847,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersDeleteInstancesRequest} request.regionInstanceGroupManagersDeleteInstancesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -870,7 +954,8 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Deletes selected per-instance configurations for the managed instance group. + * Deletes selected per-instance configurations for the managed instance + * group. * * @param {Object} request * The request object that will be sent. @@ -1076,7 +1161,15 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A regional managed instance group can contain up to 2000 instances. + * Creates a managed instance group using the information that you specify + * in the request. After the group is created, instances in the group are + * created using the specified instance template. + * This operation is marked as DONE when the group is created + * even if the instances in the group have not yet been created. You must + * separately verify the status of the individual instances with thelistmanagedinstances + * method. + * + * A regional managed instance group can contain up to 2000 instances. * * @param {Object} request * The request object that will be sent. @@ -1087,7 +1180,19 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1181,7 +1286,21 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + * Updates a managed instance group using the information that you specify + * in the request. + * This operation is marked as DONE when the group is patched + * even if the instances in the group are still in the process of being + * patched. You must separately verify the status of the individual instances + * with the listmanagedinstances + * method. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. + * + * If you update your group to specify a new template or instance + * configuration, it's possible that your intended specification for each VM + * in the group is different from the current state of that VM. To learn how + * to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + * a MIG. * * @param {Object} request * The request object that will be sent. @@ -1194,7 +1313,19 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1289,12 +1420,15 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * Inserts or patches per-instance configurations for the managed instance + * group. perInstanceConfig.name serves as a key used to + * distinguish whether to perform insert or patch. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -1302,7 +1436,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagerPatchInstanceConfigReq} request.regionInstanceGroupManagerPatchInstanceConfigReqResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1397,7 +1543,19 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified VM instances in the managed instance group to be + * immediately recreated. Each instance is recreated using the group's current + * configuration. This operation is marked as DONE when the flag + * is set even if the instances have not yet been recreated. You must + * separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking + * the status of managed instances. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -1410,7 +1568,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersRecreateRequest} request.regionInstanceGroupManagersRecreateRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1505,7 +1675,19 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. + * Changes the intended size of the managed instance group. If you increase + * the size, the group creates new instances using the current instance + * template. If you decrease the size, the group deletes one or more + * instances. + * + * The resize operation is marked DONE if theresize request is successful. The underlying actions take + * additional time. You must separately verify the status of thecreating or deleting actions with thelistmanagedinstances + * method. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. * * @param {Object} request * The request object that will be sent. @@ -1516,9 +1698,22 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {number} request.size - * Number of instances that should exist in this instance group manager. + * Number of instances that should exist in this instance group + * manager. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1613,20 +1808,49 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Resizes the regional managed instance group with advanced configuration options like disabling creation retries. This is an extended version of the resize method. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the get or listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. + * Resizes the regional managed instance group with advanced configuration + * options like disabling creation retries. This is an extended version of theresize method. + * + * If you increase the size, the group creates new instances using the current + * instance template. If you decrease the size, the group deletes one or more + * instances. + * + * The resize operation is marked DONE if theresize request is successful. The underlying actions take + * additional time. You must separately verify the status of thecreating or deleting actions with the get + * orlistmanagedinstances + * method. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is removed or deleted. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. It must be a string that meets the requirements in RFC1035. + * Name of the region scoping this request. + * It must be a string that meets the requirements in RFC1035. * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersResizeAdvancedRequest} request.regionInstanceGroupManagersResizeAdvancedRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1721,7 +1945,22 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group to be + * resumed. This method increases thetargetSize and decreases the targetSuspendedSize + * of the managed instance group by the number of instances that you resume. + * The resumeInstances operation is marked DONE if + * the resumeInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances + * method. + * + * In this request, you can only specify instances that are suspended. For + * example, if an instance was previously suspended using the suspendInstances + * method, it can be resumed using the resumeInstances method. + * + * If a health check is attached to the managed instance group, the specified + * instances will be verified as healthy after they are resumed. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -1734,7 +1973,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersResumeInstancesRequest} request.regionInstanceGroupManagersResumeInstancesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1829,7 +2080,9 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.patch instead. + * Modifies the autohealing policy for the instances in this managed + * instance group. + * [Deprecated] This method is deprecated. UseregionInstanceGroupManagers.patch instead. * * @param {Object} request * The request object that will be sent. @@ -1842,7 +2095,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersSetAutoHealingRequest} request.regionInstanceGroupManagersSetAutoHealingRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1937,7 +2202,8 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected. + * Sets the instance template to use when creating new instances or recreating + * instances in this group. Existing instances are not affected. * * @param {Object} request * The request object that will be sent. @@ -1950,7 +2216,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersSetTemplateRequest} request.regionInstanceGroupManagersSetTemplateRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2045,7 +2323,8 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected. + * Modifies the target pools to which all new instances in this group are + * assigned. Existing instances in the group are not affected. * * @param {Object} request * The request object that will be sent. @@ -2058,7 +2337,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersSetTargetPoolsRequest} request.regionInstanceGroupManagersSetTargetPoolsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2153,7 +2444,22 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group to be + * started. This method increases thetargetSize and decreases the targetStoppedSize + * of the managed instance group by the number of instances that you start. + * The startInstances operation is marked DONE if + * the startInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances + * method. + * + * In this request, you can only specify instances that are stopped. For + * example, if an instance was previously stopped using the stopInstances + * method, it can be started using the startInstances method. + * + * If a health check is attached to the managed instance group, the specified + * instances will be verified as healthy after they are started. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -2166,7 +2472,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersStartInstancesRequest} request.regionInstanceGroupManagersStartInstancesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2261,7 +2579,31 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group to be + * immediately stopped. You can only specify instances that are running in + * this request. This method reduces thetargetSize and increases the targetStoppedSize + * of the managed instance group by the number of instances that you stop. + * The stopInstances operation is marked DONE if + * the stopInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances + * method. + * + * If the standbyPolicy.initialDelaySec field is set, the group + * delays stopping the instances until initialDelaySec have + * passed from instance.creationTimestamp (that is, when the + * instance was created). This delay gives your application time to + * set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there + * will be zero delay. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. + * + * Stopped instances can be started using the startInstances + * method. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -2274,7 +2616,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersStopInstancesRequest} request.regionInstanceGroupManagersStopInstancesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2369,7 +2723,31 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request. + * Flags the specified instances in the managed instance group to be + * immediately suspended. You can only specify instances that are running in + * this request. This method reduces thetargetSize and increases the targetSuspendedSize + * of the managed instance group by the number of instances that you suspend. + * The suspendInstances operation is marked DONE if + * the suspendInstances request is successful. The underlying + * actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances + * method. + * + * If the standbyPolicy.initialDelaySec field is set, the group + * delays suspension of the instances until initialDelaySec have + * passed from instance.creationTimestamp (that is, when the + * instance was created). This delay gives your application time to + * set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there + * will be zero delay. + * + * If the group is part of a backend + * service that has enabled + * connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. + * + * Suspended instances can be resumed using the resumeInstances + * method. + * + * You can specify a maximum of 1000 instances with this method per request. * * @param {Object} request * The request object that will be sent. @@ -2382,7 +2760,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagersSuspendInstancesRequest} request.regionInstanceGroupManagersSuspendInstancesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2579,7 +2969,18 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with the listmanagedinstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + * Updates a managed instance group using the information that you specify + * in the request. + * This operation is marked as DONE when the group is updated + * even if the instances in the group have not yet been updated. You must + * separately verify the status of the individual instances with thelistmanagedinstances + * method. + * + * If you update your group to specify a new template or instance + * configuration, it's possible that your intended specification for each VM + * in the group is different from the current state of that VM. To learn how + * to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + * a MIG. * * @param {Object} request * The request object that will be sent. @@ -2592,7 +2993,19 @@ export class RegionInstanceGroupManagersClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2687,12 +3100,15 @@ export class RegionInstanceGroupManagersClient { }); } /** - * Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * Inserts or updates per-instance configurations for the managed instance + * group. perInstanceConfig.name serves as a key used to + * distinguish whether to perform insert or patch. * * @param {Object} request * The request object that will be sent. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. + * It should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -2700,7 +3116,19 @@ export class RegionInstanceGroupManagersClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupManagerUpdateInstanceConfigReq} request.regionInstanceGroupManagerUpdateInstanceConfigReqResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2796,24 +3224,103 @@ export class RegionInstanceGroupManagersClient { } /** - * Retrieves the list of managed instance groups that are contained within the specified region. + * Retrieves the list of managed instance groups that are contained + * within the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2908,19 +3415,97 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2964,19 +3549,97 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -3014,26 +3677,109 @@ export class RegionInstanceGroupManagersClient { ) as AsyncIterable; } /** - * Lists all errors thrown by actions on instances for a given regional managed instance group. The filter and orderBy query parameters are not supported. + * Lists all errors thrown by actions on instances for a given regional + * managed instance group. The filter andorderBy query parameters are not supported. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035, or an + * unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. This should conform to RFC1035. + * Name of the region scoping this request. + * This should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3129,21 +3875,103 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035, or an + * unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. This should conform to RFC1035. + * Name of the region scoping this request. + * This should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -3188,21 +4016,103 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager - * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * The name of the managed instance group. + * It must be a string that meets the requirements in RFC1035, or an + * unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * Name of the region scoping this request. This should conform to RFC1035. + * Name of the region scoping this request. + * This should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -3241,26 +4151,109 @@ export class RegionInstanceGroupManagersClient { ) as AsyncIterable; } /** - * Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. + * Lists the instances in the managed instance group and instances that are + * scheduled to be created. The list includes any current actions + * that the group has scheduled for its instances. The orderBy + * query parameter is not supported. The `pageToken` query parameter is + * supported only if the group's `listManagedInstancesResults` field is set + * to `PAGINATED`. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3356,21 +4349,99 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -3415,21 +4486,99 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -3468,26 +4617,105 @@ export class RegionInstanceGroupManagersClient { ) as AsyncIterable; } /** - * Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported. + * Lists all of the per-instance configurations defined for the managed + * instance group. The orderBy query parameter is not supported. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request, should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3583,21 +4811,99 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request, should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -3642,21 +4948,99 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request, should conform to RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_instance_groups_client.ts b/packages/google-cloud-compute/src/v1beta/region_instance_groups_client.ts index b2de846e9685..6f722c308dc1 100644 --- a/packages/google-cloud-compute/src/v1beta/region_instance_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_instance_groups_client.ts @@ -443,7 +443,19 @@ export class RegionInstanceGroupsClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupsSetNamedPortsRequest} request.regionInstanceGroupsSetNamedPortsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -641,24 +653,103 @@ export class RegionInstanceGroupsClient { } /** - * Retrieves the list of instance group resources contained within the specified region. + * Retrieves the list of instance group resources contained within + * the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -753,19 +844,97 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -809,19 +978,97 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -859,20 +1106,97 @@ export class RegionInstanceGroupsClient { ) as AsyncIterable; } /** - * Lists the instances in the specified instance group and displays information about the named ports. Depending on the specified options, this method can list all instances or only the instances that are running. The orderBy query parameter is not supported. + * Lists the instances in the specified instance group and displays + * information about the named ports. Depending on the specified options, this + * method can list all instances or only the instances that are running. + * The orderBy query parameter is not supported. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroup - * Name of the regional instance group for which we want to list the instances. + * Name of the regional instance group for which we want to list the + * instances. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -880,7 +1204,12 @@ export class RegionInstanceGroupsClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupsListInstancesRequest} request.regionInstanceGroupsListInstancesRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -976,15 +1305,89 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroup - * Name of the regional instance group for which we want to list the instances. + * Name of the regional instance group for which we want to list the + * instances. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -992,7 +1395,12 @@ export class RegionInstanceGroupsClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupsListInstancesRequest} request.regionInstanceGroupsListInstancesRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1037,15 +1445,89 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {string} request.instanceGroup - * Name of the regional instance group for which we want to list the instances. + * Name of the regional instance group for which we want to list the + * instances. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -1053,7 +1535,12 @@ export class RegionInstanceGroupsClient { * @param {google.cloud.compute.v1beta.RegionInstanceGroupsListInstancesRequest} request.regionInstanceGroupsListInstancesRequestResource * The body resource for this request * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_instance_templates_client.ts b/packages/google-cloud-compute/src/v1beta/region_instance_templates_client.ts index d0c9626eacf8..5d76147b0707 100644 --- a/packages/google-cloud-compute/src/v1beta/region_instance_templates_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_instance_templates_client.ts @@ -328,7 +328,8 @@ export class RegionInstanceTemplatesClient { // -- Service calls -- // ------------------- /** - * Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. + * Deletes the specified instance template. Deleting an instance template is + * permanent and cannot be undone. * * @param {Object} request * The request object that will be sent. @@ -339,7 +340,19 @@ export class RegionInstanceTemplatesClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -537,7 +550,8 @@ export class RegionInstanceTemplatesClient { }); } /** - * Creates an instance template in the specified project and region using the global instance template whose URL is included in the request. + * Creates an instance template in the specified project and region using the + * global instance template whose URL is included in the request. * * @param {Object} request * The request object that will be sent. @@ -548,7 +562,19 @@ export class RegionInstanceTemplatesClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -643,24 +669,103 @@ export class RegionInstanceTemplatesClient { } /** - * Retrieves a list of instance templates that are contained within the specified project and region. + * Retrieves a list of instance templates that are contained within the + * specified project and region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the regions for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.view * View of the instance template. * Check the View enum for the list of possible values. @@ -758,19 +863,97 @@ export class RegionInstanceTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the regions for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.view * View of the instance template. * Check the View enum for the list of possible values. @@ -817,19 +1000,97 @@ export class RegionInstanceTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the regions for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.view * View of the instance template. * Check the View enum for the list of possible values. diff --git a/packages/google-cloud-compute/src/v1beta/region_instances_client.ts b/packages/google-cloud-compute/src/v1beta/region_instances_client.ts index 0c10af99558a..97d62e0bf0fb 100644 --- a/packages/google-cloud-compute/src/v1beta/region_instances_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_instances_client.ts @@ -319,7 +319,8 @@ export class RegionInstancesClient { // -- Service calls -- // ------------------- /** - * Creates multiple instances in a given region. Count specifies the number of instances to create. + * Creates multiple instances in a given region. Count specifies the number of + * instances to create. * * @param {Object} request * The request object that will be sent. @@ -330,7 +331,19 @@ export class RegionInstancesClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/packages/google-cloud-compute/src/v1beta/region_instant_snapshots_client.ts b/packages/google-cloud-compute/src/v1beta/region_instant_snapshots_client.ts index 9d402a87971c..6c03dec7c852 100644 --- a/packages/google-cloud-compute/src/v1beta/region_instant_snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_instant_snapshots_client.ts @@ -328,7 +328,14 @@ export class RegionInstantSnapshotsClient { // -- Service calls -- // ------------------- /** - * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. + * Deletes the specified InstantSnapshot resource. Keep in mind that deleting + * a single instantSnapshot might not necessarily delete all the data on that + * instantSnapshot. If any data on the instantSnapshot that is marked for + * deletion is needed for subsequent instantSnapshots, the data will be moved + * to the next corresponding instantSnapshot. + * + * For more information, seeDeleting + * instantSnapshots. * * @param {Object} request * The request object that will be sent. @@ -339,7 +346,19 @@ export class RegionInstantSnapshotsClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -534,7 +553,8 @@ export class RegionInstantSnapshotsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -647,7 +667,19 @@ export class RegionInstantSnapshotsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -741,7 +773,8 @@ export class RegionInstantSnapshotsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -843,7 +876,9 @@ export class RegionInstantSnapshotsClient { }); } /** - * Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a instantSnapshot in the given region. To learn more + * about labels, read the Labeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -854,7 +889,19 @@ export class RegionInstantSnapshotsClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -1054,24 +1101,103 @@ export class RegionInstantSnapshotsClient { } /** - * Retrieves the list of InstantSnapshot resources contained within the specified region. + * Retrieves the list of InstantSnapshot resources contained within + * the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1166,19 +1292,97 @@ export class RegionInstantSnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1222,19 +1426,97 @@ export class RegionInstantSnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * The name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_multi_migs_client.ts b/packages/google-cloud-compute/src/v1beta/region_multi_migs_client.ts index 7ff5b7ce3f1d..3e456f5929a0 100644 --- a/packages/google-cloud-compute/src/v1beta/region_multi_migs_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_multi_migs_client.ts @@ -339,7 +339,19 @@ export class RegionMultiMigsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -545,7 +557,19 @@ export class RegionMultiMigsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents you from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents you from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -645,19 +669,97 @@ export class RegionMultiMigsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -752,19 +854,97 @@ export class RegionMultiMigsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -808,19 +988,97 @@ export class RegionMultiMigsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1beta/region_network_endpoint_groups_client.ts index 9ed71a79408a..0f9494b74f76 100644 --- a/packages/google-cloud-compute/src/v1beta/region_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_network_endpoint_groups_client.ts @@ -335,15 +335,30 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.networkEndpointGroup - * The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + * The name of the network endpoint group where you are attaching network + * endpoints to. It should comply with RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where you want to create the network endpoint group. It should comply with RFC1035. + * The name of the region where + * you want to create the network endpoint group. It should comply with + * RFC1035. * @param {google.cloud.compute.v1beta.RegionNetworkEndpointGroupsAttachEndpointsRequest} request.regionNetworkEndpointGroupsAttachEndpointsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -438,18 +453,33 @@ export class RegionNetworkEndpointGroupsClient { }); } /** - * Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service. + * Deletes the specified network endpoint group. Note that the NEG cannot be + * deleted if it is configured as a backend of a backend service. * * @param {Object} request * The request object that will be sent. * @param {string} request.networkEndpointGroup - * The name of the network endpoint group to delete. It should comply with RFC1035. + * The name of the network endpoint group to delete. It should comply with + * RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of the region where + * the network endpoint group is located. It should comply with RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -549,15 +579,31 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.networkEndpointGroup - * The name of the network endpoint group you are detaching network endpoints from. It should comply with RFC1035. + * The name of the network endpoint group you are detaching network + * endpoints from. It should comply with RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of the region where + * the network endpoint group is located. It should comply with + * RFC1035. * @param {google.cloud.compute.v1beta.RegionNetworkEndpointGroupsDetachEndpointsRequest} request.regionNetworkEndpointGroupsDetachEndpointsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -661,7 +707,8 @@ export class RegionNetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of the region where + * the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -752,7 +799,8 @@ export class RegionNetworkEndpointGroupsClient { }); } /** - * Creates a network endpoint group in the specified project using the parameters that are included in the request. + * Creates a network endpoint group in the specified project using the + * parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -761,9 +809,23 @@ export class RegionNetworkEndpointGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where you want to create the network endpoint group. It should comply with RFC1035. + * The name of the region where + * you want to create the network endpoint group. It should comply with + * RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -858,24 +920,104 @@ export class RegionNetworkEndpointGroupsClient { } /** - * Retrieves the list of regional network endpoint groups available to the specified project in the given region. + * Retrieves the list of regional network endpoint groups available to the + * specified project in the given region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of theregion + * where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -970,19 +1112,98 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of theregion + * where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1026,19 +1247,98 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of theregion + * where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1081,21 +1381,101 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.networkEndpointGroup - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of theregion + * where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1191,21 +1571,101 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.networkEndpointGroup - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of theregion + * where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1250,21 +1710,101 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.networkEndpointGroup - * The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region - * The name of the region where the network endpoint group is located. It should comply with RFC1035. + * The name of theregion + * where the network endpoint group is located. It should comply with RFC1035. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_network_firewall_policies_client.ts b/packages/google-cloud-compute/src/v1beta/region_network_firewall_policies_client.ts index 17883343863d..ed162e5bf69f 100644 --- a/packages/google-cloud-compute/src/v1beta/region_network_firewall_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_network_firewall_policies_client.ts @@ -333,7 +333,9 @@ export class RegionNetworkFirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.associatedPolicyToBeReplaced - * Name of the firewall policy associated with the target network to swap association with. This field is mutually exclusive with 'replace_existing_association'. + * Name of the firewall policy associated with the target network to swap + * association with. This field is mutually exclusive with + * 'replace_existing_association'. * @param {string} request.firewallPolicy * Name of the firewall policy to update. * @param {google.cloud.compute.v1beta.FirewallPolicyAssociation} request.firewallPolicyAssociationResource @@ -343,9 +345,23 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.replaceExistingAssociation - * Indicates whether or not to replace it if an association already exists. This is false by default, in which case an error will be returned if an association already exists. + * Indicates whether or not to replace it if an association already exists. + * This is false by default, in which case an error will be returned if an + * association already exists. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -449,15 +465,29 @@ export class RegionNetworkFirewallPoliciesClient { * @param {google.cloud.compute.v1beta.FirewallPolicyRule} request.firewallPolicyRuleResource * The body resource for this request * @param {number} request.maxPriority - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. * @param {number} request.minPriority - * When rule.priority is not specified, auto choose a unused priority between minPriority and maxPriority>. This field is exclusive with rule.priority. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority>. + * This field is exclusive with rule.priority. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -563,7 +593,19 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sourceFirewallPolicy * The firewall policy from which to copy rules. * @param {object} [options] @@ -671,7 +713,19 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1067,7 +1121,8 @@ export class RegionNetworkFirewallPoliciesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -1282,7 +1337,19 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1389,7 +1456,19 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1497,7 +1576,19 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1607,7 +1698,19 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1715,7 +1818,19 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1823,7 +1938,19 @@ export class RegionNetworkFirewallPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1918,7 +2045,8 @@ export class RegionNetworkFirewallPoliciesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -2123,24 +2251,103 @@ export class RegionNetworkFirewallPoliciesClient { } /** - * Lists all the network firewall policies that have been configured for the specified project in the given region. + * Lists all the network firewall policies that have been configured + * for the specified project in the given region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2235,19 +2442,97 @@ export class RegionNetworkFirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2291,19 +2576,97 @@ export class RegionNetworkFirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_network_policies_client.ts b/packages/google-cloud-compute/src/v1beta/region_network_policies_client.ts index 1c0dd15e936a..d29a06286345 100644 --- a/packages/google-cloud-compute/src/v1beta/region_network_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_network_policies_client.ts @@ -343,7 +343,19 @@ export class RegionNetworkPoliciesClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -451,7 +463,19 @@ export class RegionNetworkPoliciesClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -557,7 +581,19 @@ export class RegionNetworkPoliciesClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -956,7 +992,8 @@ export class RegionNetworkPoliciesClient { }); } /** - * Creates a new policy in the specified project using the data included in the request. + * Creates a new policy in the specified project using the data included in + * the request. * * @param {Object} request * The request object that will be sent. @@ -967,7 +1004,19 @@ export class RegionNetworkPoliciesClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1061,7 +1110,8 @@ export class RegionNetworkPoliciesClient { }); } /** - * Patches the specified policy with the data included in the request. + * Patches the specified policy with the data included in the + * request. * * @param {Object} request * The request object that will be sent. @@ -1074,7 +1124,19 @@ export class RegionNetworkPoliciesClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1178,13 +1240,26 @@ export class RegionNetworkPoliciesClient { * @param {google.cloud.compute.v1beta.NetworkPolicyTrafficClassificationRule} request.networkPolicyTrafficClassificationRuleResource * The body resource for this request * @param {number} request.priority - * The priority of the traffic classification rule to patch. Only rules with a priority value between 1 and 2147482647 (inclusive) can be patched. + * The priority of the traffic classification rule to patch. Only rules with + * a priority value between 1 and 2147482647 (inclusive) can be patched. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1292,7 +1367,19 @@ export class RegionNetworkPoliciesClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1400,7 +1487,19 @@ export class RegionNetworkPoliciesClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1497,27 +1596,115 @@ export class RegionNetworkPoliciesClient { /** - * Retrieves an aggregated list of network policies. To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of network policies. + * + * To prevent failure, it's recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1554,24 +1741,103 @@ export class RegionNetworkPoliciesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.INetworkPoliciesScopedList]>; } /** - * Lists all the policies that have been configured for the specified project in the given region. + * Lists all the policies that have been configured for the specified project + * in the given region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1666,19 +1932,97 @@ export class RegionNetworkPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1722,19 +2066,97 @@ export class RegionNetworkPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client.ts b/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client.ts index c778c51e0f71..334d768fb82a 100644 --- a/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client.ts @@ -339,7 +339,19 @@ export class RegionNotificationEndpointsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -534,7 +546,8 @@ export class RegionNotificationEndpointsClient { }); } /** - * Create a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request. + * Create a NotificationEndpoint in the specified project in the given region + * using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -545,7 +558,19 @@ export class RegionNotificationEndpointsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -747,19 +772,97 @@ export class RegionNotificationEndpointsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -854,19 +957,97 @@ export class RegionNotificationEndpointsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -910,19 +1091,97 @@ export class RegionNotificationEndpointsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_operations_client.ts b/packages/google-cloud-compute/src/v1beta/region_operations_client.ts index b05b693506d0..eedc9d2a4cb4 100644 --- a/packages/google-cloud-compute/src/v1beta/region_operations_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_operations_client.ts @@ -333,7 +333,8 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to delete, or its unique numeric identifier. + * Name of the Operations resource to delete, or its unique numeric + * identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -433,7 +434,8 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -528,12 +530,28 @@ export class RegionOperationsClient { }); } /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. + * Waits for the specified Operation resource to return as `DONE` + * or for the request to approach the 2 minute deadline, and retrieves the + * specified Operation resource. This method differs from the + * `GET` method in that it waits for no more than the default + * deadline (2 minutes) and then returns the current state of the operation, + * which might be `DONE` or still in progress. + * + * This method is called on a best-effort basis. Specifically: + * + * + * - In uncommon cases, when the server is overloaded, the request might + * return before the default deadline is reached, or might return after zero + * seconds. + * - If the default deadline is reached, there is no guarantee that the + * operation is actually done when the method returns. Be prepared to retry + * if the operation is not `DONE`. * * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.region @@ -629,24 +647,103 @@ export class RegionOperationsClient { } /** - * Retrieves a list of Operation resources contained within the specified region. + * Retrieves a list of Operation resources contained within + * the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -741,19 +838,97 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -797,19 +972,97 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_security_policies_client.ts b/packages/google-cloud-compute/src/v1beta/region_security_policies_client.ts index 1057900d1084..cd2f0c96495a 100644 --- a/packages/google-cloud-compute/src/v1beta/region_security_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_security_policies_client.ts @@ -445,7 +445,19 @@ export class RegionSecurityPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to delete. * @param {object} [options] @@ -744,7 +756,8 @@ export class RegionSecurityPoliciesClient { }); } /** - * Creates a new policy in the specified project using the data included in the request. + * Creates a new policy in the specified project using the data included in + * the request. * * @param {Object} request * The request object that will be sent. @@ -753,7 +766,19 @@ export class RegionSecurityPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SecurityPolicy} request.securityPolicyResource * The body resource for this request * @param {boolean} request.validateOnly @@ -851,7 +876,11 @@ export class RegionSecurityPoliciesClient { }); } /** - * Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead. + * Patches the specified policy with the data included in the request. To + * clear fields in the policy, leave the fields empty and specify them in the + * updateMask. This cannot be used to be update the rules in the policy. + * Please use the per rule methods like addRule, patchRule, and removeRule + * instead. * * @param {Object} request * The request object that will be sent. @@ -860,7 +889,19 @@ export class RegionSecurityPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {google.cloud.compute.v1beta.SecurityPolicy} request.securityPolicyResource @@ -961,7 +1002,8 @@ export class RegionSecurityPoliciesClient { }); } /** - * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask. + * Patches a rule at the specified priority. To clear fields in the rule, + * leave the fields empty and specify them in the updateMask. * * @param {Object} request * The request object that will be sent. @@ -1179,7 +1221,9 @@ export class RegionSecurityPoliciesClient { }); } /** - * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a security policy. To learn more about labels, + * read the Labeling Resources + * documentation. * * @param {Object} request * The request object that will be sent. @@ -1190,7 +1234,19 @@ export class RegionSecurityPoliciesClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -1288,24 +1344,103 @@ export class RegionSecurityPoliciesClient { } /** - * List all the policies that have been configured for the specified project and region. + * List all the policies that have been configured for the specified project + * and region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1400,19 +1535,97 @@ export class RegionSecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1456,19 +1669,97 @@ export class RegionSecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_snapshot_settings_client.ts b/packages/google-cloud-compute/src/v1beta/region_snapshot_settings_client.ts index 105789e9f886..5a1af22ddfd8 100644 --- a/packages/google-cloud-compute/src/v1beta/region_snapshot_settings_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_snapshot_settings_client.ts @@ -425,7 +425,19 @@ export class RegionSnapshotSettingsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SnapshotSettings} request.snapshotSettingsResource * The body resource for this request * @param {string} request.updateMask diff --git a/packages/google-cloud-compute/src/v1beta/region_snapshots_client.ts b/packages/google-cloud-compute/src/v1beta/region_snapshots_client.ts index 1a268f7c8ca6..c32462763539 100644 --- a/packages/google-cloud-compute/src/v1beta/region_snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_snapshots_client.ts @@ -328,7 +328,14 @@ export class RegionSnapshotsClient { // -- Service calls -- // ------------------- /** - * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots. + * Deletes the specified Snapshot resource. Keep in mind that deleting + * a single snapshot might not necessarily delete all the data on that + * snapshot. If any data on the snapshot that is marked for deletion is + * needed for subsequent snapshots, the data will be moved to the next + * corresponding snapshot. + * + * For more information, seeDeleting + * snapshots. * * @param {Object} request * The request object that will be sent. @@ -337,7 +344,19 @@ export class RegionSnapshotsClient { * @param {string} request.region * The name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.snapshot * Name of the snapshot resource to delete. * @param {object} [options] @@ -534,7 +553,8 @@ export class RegionSnapshotsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -636,7 +656,8 @@ export class RegionSnapshotsClient { }); } /** - * Creates a snapshot in the specified region using the data included in the request. + * Creates a snapshot in the specified region using the data included + * in the request. * * @param {Object} request * The request object that will be sent. @@ -645,7 +666,19 @@ export class RegionSnapshotsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Snapshot} request.snapshotResource * The body resource for this request * @param {object} [options] @@ -741,7 +774,8 @@ export class RegionSnapshotsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -843,7 +877,9 @@ export class RegionSnapshotsClient { }); } /** - * Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a regional snapshot. To learn more about labels, read + * the Labeling Resources + * documentation. * * @param {Object} request * The request object that will be sent. @@ -854,7 +890,19 @@ export class RegionSnapshotsClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -1054,24 +1102,103 @@ export class RegionSnapshotsClient { } /** - * Retrieves the list of Snapshot resources contained within the specified region. + * Retrieves the list of Snapshot resources contained within + * the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1166,19 +1293,97 @@ export class RegionSnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1222,19 +1427,97 @@ export class RegionSnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_ssl_certificates_client.ts b/packages/google-cloud-compute/src/v1beta/region_ssl_certificates_client.ts index 231c7fee1c64..474a88e8885a 100644 --- a/packages/google-cloud-compute/src/v1beta/region_ssl_certificates_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_ssl_certificates_client.ts @@ -337,7 +337,19 @@ export class RegionSslCertificatesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sslCertificate * Name of the SslCertificate resource to delete. * @param {object} [options] @@ -434,7 +446,9 @@ export class RegionSslCertificatesClient { }); } /** - * Returns the specified SslCertificate resource in the specified region. Get a list of available SSL certificates by making a list() request. + * Returns the specified SslCertificate resource in the specified region. Get + * a list of available SSL certificates by making a list() + * request. * * @param {Object} request * The request object that will be sent. @@ -534,7 +548,8 @@ export class RegionSslCertificatesClient { }); } /** - * Creates a SslCertificate resource in the specified project and region using the data included in the request + * Creates a SslCertificate resource in the specified project and region using + * the data included in the request * * @param {Object} request * The request object that will be sent. @@ -543,7 +558,19 @@ export class RegionSslCertificatesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SslCertificate} request.sslCertificateResource * The body resource for this request * @param {object} [options] @@ -742,24 +769,103 @@ export class RegionSslCertificatesClient { } /** - * Retrieves the list of SslCertificate resources available to the specified project in the specified region. + * Retrieves the list of SslCertificate resources available to the specified + * project in the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -854,19 +960,97 @@ export class RegionSslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -910,19 +1094,97 @@ export class RegionSslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_ssl_policies_client.ts b/packages/google-cloud-compute/src/v1beta/region_ssl_policies_client.ts index ebc9adecebcd..d7aa7a6026c5 100644 --- a/packages/google-cloud-compute/src/v1beta/region_ssl_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_ssl_policies_client.ts @@ -328,7 +328,9 @@ export class RegionSslPoliciesClient { // -- Service calls -- // ------------------- /** - * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. + * Deletes the specified SSL policy. The SSL policy resource can be deleted + * only if it is not in use by any TargetHttpsProxy or TargetSslProxy + * resources. * * @param {Object} request * The request object that will be sent. @@ -337,9 +339,22 @@ export class RegionSslPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sslPolicy - * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to delete. The name must be 1-63 characters long, + * and comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -443,7 +458,8 @@ export class RegionSslPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.sslPolicy - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -534,7 +550,8 @@ export class RegionSslPoliciesClient { }); } /** - * Creates a new policy in the specified project and region using the data included in the request. + * Creates a new policy in the specified project and region using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -543,7 +560,19 @@ export class RegionSslPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SslPolicy} request.sslPolicyResource * The body resource for this request * @param {object} [options] @@ -639,24 +668,103 @@ export class RegionSslPoliciesClient { }); } /** - * Lists all features that can be specified in the SSL policy when using custom profile. + * Lists all features that can be specified in the SSL policy when using + * custom profile. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -755,9 +863,22 @@ export class RegionSslPoliciesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sslPolicy - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. * @param {google.cloud.compute.v1beta.SslPolicy} request.sslPolicyResource * The body resource for this request * @param {object} [options] @@ -957,24 +1078,103 @@ export class RegionSslPoliciesClient { } /** - * Lists all the SSL policies that have been configured for the specified project and region. + * Lists all the SSL policies that have been configured for the specified + * project and region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1069,19 +1269,97 @@ export class RegionSslPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1125,19 +1403,97 @@ export class RegionSslPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_target_http_proxies_client.ts b/packages/google-cloud-compute/src/v1beta/region_target_http_proxies_client.ts index aea5e1bd43d0..5c1366b4c0ad 100644 --- a/packages/google-cloud-compute/src/v1beta/region_target_http_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_target_http_proxies_client.ts @@ -337,7 +337,19 @@ export class RegionTargetHttpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpProxy * Name of the TargetHttpProxy resource to delete. * @param {object} [options] @@ -534,7 +546,8 @@ export class RegionTargetHttpProxiesClient { }); } /** - * Creates a TargetHttpProxy resource in the specified project and region using the data included in the request. + * Creates a TargetHttpProxy resource in the specified project and region + * using the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -543,7 +556,19 @@ export class RegionTargetHttpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetHttpProxy} request.targetHttpProxyResource * The body resource for this request * @param {object} [options] @@ -648,7 +673,19 @@ export class RegionTargetHttpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpProxy * Name of the TargetHttpProxy to set a URL map for. * @param {google.cloud.compute.v1beta.UrlMapReference} request.urlMapReferenceResource @@ -850,24 +887,103 @@ export class RegionTargetHttpProxiesClient { } /** - * Retrieves the list of TargetHttpProxy resources available to the specified project in the specified region. + * Retrieves the list of TargetHttpProxy resources available + * to the specified project in the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -962,19 +1078,97 @@ export class RegionTargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1018,19 +1212,97 @@ export class RegionTargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_target_https_proxies_client.ts b/packages/google-cloud-compute/src/v1beta/region_target_https_proxies_client.ts index 5ad0691a1beb..23521b4c7095 100644 --- a/packages/google-cloud-compute/src/v1beta/region_target_https_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_target_https_proxies_client.ts @@ -337,7 +337,19 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpsProxy * Name of the TargetHttpsProxy resource to delete. * @param {object} [options] @@ -534,7 +546,8 @@ export class RegionTargetHttpsProxiesClient { }); } /** - * Creates a TargetHttpsProxy resource in the specified project and region using the data included in the request. + * Creates a TargetHttpsProxy resource in the specified project and region + * using the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -543,7 +556,19 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetHttpsProxy} request.targetHttpsProxyResource * The body resource for this request * @param {object} [options] @@ -639,7 +664,10 @@ export class RegionTargetHttpsProxiesClient { }); } /** - * Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified regional TargetHttpsProxy resource with the data + * included in the request. This method supports PATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -648,7 +676,19 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpsProxy * Name of the TargetHttpsProxy resource to patch. * @param {google.cloud.compute.v1beta.TargetHttpsProxy} request.targetHttpsProxyResource @@ -758,9 +798,22 @@ export class RegionTargetHttpsProxiesClient { * @param {google.cloud.compute.v1beta.RegionTargetHttpsProxiesSetSslCertificatesRequest} request.regionTargetHttpsProxiesSetSslCertificatesRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpsProxy - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + * Name of the TargetHttpsProxy resource to set an + * SslCertificates resource for. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -864,7 +917,19 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpsProxy * Name of the TargetHttpsProxy to set a URL map for. * @param {google.cloud.compute.v1beta.UrlMapReference} request.urlMapReferenceResource @@ -1066,24 +1131,103 @@ export class RegionTargetHttpsProxiesClient { } /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project in the specified region. + * Retrieves the list of TargetHttpsProxy resources available + * to the specified project in the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1178,19 +1322,97 @@ export class RegionTargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1234,19 +1456,97 @@ export class RegionTargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_target_tcp_proxies_client.ts b/packages/google-cloud-compute/src/v1beta/region_target_tcp_proxies_client.ts index 2c14a5f478cf..31f2dadb6c84 100644 --- a/packages/google-cloud-compute/src/v1beta/region_target_tcp_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_target_tcp_proxies_client.ts @@ -337,7 +337,19 @@ export class RegionTargetTcpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetTcpProxy * Name of the TargetTcpProxy resource to delete. * @param {object} [options] @@ -534,7 +546,8 @@ export class RegionTargetTcpProxiesClient { }); } /** - * Creates a TargetTcpProxy resource in the specified project and region using the data included in the request. + * Creates a TargetTcpProxy resource in the specified project and region using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -543,7 +556,19 @@ export class RegionTargetTcpProxiesClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetTcpProxy} request.targetTcpProxyResource * The body resource for this request * @param {object} [options] @@ -742,24 +767,103 @@ export class RegionTargetTcpProxiesClient { } /** - * Retrieves a list of TargetTcpProxy resources available to the specified project in a given region. + * Retrieves a list of TargetTcpProxy resources + * available to the specified project in a given region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -854,19 +958,97 @@ export class RegionTargetTcpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -910,19 +1092,97 @@ export class RegionTargetTcpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_url_maps_client.ts b/packages/google-cloud-compute/src/v1beta/region_url_maps_client.ts index 44eb36286d5c..839fa9bdceb5 100644 --- a/packages/google-cloud-compute/src/v1beta/region_url_maps_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_url_maps_client.ts @@ -337,7 +337,8 @@ export class RegionUrlMapsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. * @param {string} request.urlMap * Name of the UrlMap resource to delete. * @param {object} [options] @@ -534,7 +535,8 @@ export class RegionUrlMapsClient { }); } /** - * Creates a UrlMap resource in the specified project using the data included in the request. + * Creates a UrlMap resource in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -543,7 +545,8 @@ export class RegionUrlMapsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. * @param {google.cloud.compute.v1beta.UrlMap} request.urlMapResource * The body resource for this request * @param {object} [options] @@ -639,7 +642,11 @@ export class RegionUrlMapsClient { }); } /** - * Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * Initiates a cache invalidation operation, invalidating the specified path, + * scoped to the specified UrlMap. + * + * For more information, see [Invalidating cached + * content](/cdn/docs/invalidating-cached-content). * * @param {Object} request * The request object that will be sent. @@ -650,7 +657,8 @@ export class RegionUrlMapsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. * @param {string} request.urlMap * Name of the UrlMap scoping this request. * @param {object} [options] @@ -747,7 +755,10 @@ export class RegionUrlMapsClient { }); } /** - * Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified UrlMap resource with the data included in the + * request. This method supportsPATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -756,7 +767,8 @@ export class RegionUrlMapsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. * @param {string} request.urlMap * Name of the UrlMap resource to patch. * @param {google.cloud.compute.v1beta.UrlMap} request.urlMapResource @@ -957,7 +969,8 @@ export class RegionUrlMapsClient { }); } /** - * Updates the specified UrlMap resource with the data included in the request. + * Updates the specified UrlMap resource with the data included in the + * request. * * @param {Object} request * The request object that will be sent. @@ -966,7 +979,8 @@ export class RegionUrlMapsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * begin_interface: MixerMutationRequestBuilder + * Request ID to support idempotency. * @param {string} request.urlMap * Name of the UrlMap resource to update. * @param {google.cloud.compute.v1beta.UrlMap} request.urlMapResource @@ -1065,7 +1079,9 @@ export class RegionUrlMapsClient { }); } /** - * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. + * Runs static validation for the UrlMap. In particular, the tests of the + * provided UrlMap will be run. Calling this method does NOT create the + * UrlMap. * * @param {Object} request * The request object that will be sent. @@ -1168,24 +1184,103 @@ export class RegionUrlMapsClient { } /** - * Retrieves the list of UrlMap resources available to the specified project in the specified region. + * Retrieves the list of UrlMap resources available to the specified + * project in the specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1280,19 +1375,97 @@ export class RegionUrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1336,19 +1509,97 @@ export class RegionUrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/region_zones_client.ts b/packages/google-cloud-compute/src/v1beta/region_zones_client.ts index a27cbcc8d7c7..3a1f6b358b3b 100644 --- a/packages/google-cloud-compute/src/v1beta/region_zones_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_zones_client.ts @@ -330,24 +330,103 @@ export class RegionZonesClient { // ------------------- /** - * Retrieves the list of Zone resources under the specific region available to the specified project. + * Retrieves the list of Zone resources under the specific region available to + * the specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -442,19 +521,97 @@ export class RegionZonesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -498,19 +655,97 @@ export class RegionZonesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/regions_client.ts b/packages/google-cloud-compute/src/v1beta/regions_client.ts index 67d10777a645..aa3631c2b207 100644 --- a/packages/google-cloud-compute/src/v1beta/regions_client.ts +++ b/packages/google-cloud-compute/src/v1beta/regions_client.ts @@ -329,7 +329,24 @@ export class RegionsClient { // -- Service calls -- // ------------------- /** - * Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method. + * Returns the specified Region resource. + * + * To decrease latency for this method, you can optionally omit any unneeded + * information from the response by using a field mask. This practice is + * especially recommended for unused quota information (the `quotas` field). + * To exclude one or more fields, set your request's `fields` query parameter + * to only include the fields you need. For example, to only include the `id` + * and `selfLink` fields, add the query parameter `?fields=id,selfLink` to + * your request. + * + * This method fails if the quota information is unavailable for the region + * and if the organization policy constraint + * compute.requireBasicQuotaInResponse is enforced. This + * constraint, when enforced, disables the fail-open behaviour when quota + * information (the `items.quotas` field) is unavailable for the region. + * It is recommended to use the default setting + * for the constraint unless your application requires the fail-closed + * behaviour for this method. * * @param {Object} request * The request object that will be sent. @@ -427,22 +444,118 @@ export class RegionsClient { } /** - * Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method. + * Retrieves the list of region resources available to the specified project. + * + * To decrease latency for this method, you can optionally omit any unneeded + * information from the response by using a field mask. This practice is + * especially recommended for unused quota information + * (the `items.quotas` field). + * To exclude one or more fields, set your request's `fields` query parameter + * to only include the fields you need. For example, to only include the `id` + * and `selfLink` fields, add the query parameter `?fields=id,selfLink` to + * your request. + * + * This method fails if the quota information is unavailable for the region + * and if the organization policy constraint + * compute.requireBasicQuotaInResponse is enforced. This + * constraint, when enforced, disables the fail-open behaviour when quota + * information (the `items.quotas` field) is unavailable for the region. + * It is recommended to use the default setting + * for the constraint unless your application requires the fail-closed + * behaviour for this method. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,17 +649,95 @@ export class RegionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -589,17 +780,95 @@ export class RegionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/reservation_blocks_client.ts b/packages/google-cloud-compute/src/v1beta/reservation_blocks_client.ts index 24f6071f352a..d9282bc9af5f 100644 --- a/packages/google-cloud-compute/src/v1beta/reservation_blocks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/reservation_blocks_client.ts @@ -223,7 +223,7 @@ export class ReservationBlocksClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const reservationBlocksStubMethods = - ['get', 'list', 'performMaintenance']; + ['get', 'getIamPolicy', 'list', 'performMaintenance', 'setIamPolicy', 'testIamPermissions']; for (const methodName of reservationBlocksStubMethods) { const callPromise = this.reservationBlocksStub.then( stub => (...args: Array<{}>) => { @@ -335,9 +335,11 @@ export class ReservationBlocksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.reservation - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. * @param {string} request.reservationBlock - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation block. + * Name should conform to RFC1035 or be a resource ID. * @param {string} request.view * View of the Block. * Check the View enum for the list of possible values. @@ -433,6 +435,112 @@ export class ReservationBlocksClient { throw error; }); } +/** + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.optionsRequestedPolicyVersion + * Requested IAM Policy version. + * @param {string} request.parentResource + * Name or id of parent resource of the resource for this request. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/reservation_blocks.get_iam_policy.js + * region_tag:compute_v1beta_generated_ReservationBlocks_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_resource': request.parentResource ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationBlockRequest|undefined, + {}|undefined + ]) => { + this._log.info('getIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } /** * Allows customers to perform maintenance on a reservation block * @@ -441,11 +549,25 @@ export class ReservationBlocksClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.reservation - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. * @param {string} request.reservationBlock - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation block. + * Name should conform to RFC1035 or be a resource ID. * @param {google.cloud.compute.v1beta.ReservationsBlocksPerformMaintenanceRequest} request.reservationsBlocksPerformMaintenanceRequestResource * The body resource for this request * @param {string} request.zone @@ -544,6 +666,217 @@ export class ReservationBlocksClient { throw error; }); } +/** + * Sets the access control policy on the specified resource. + * Replaces any existing policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentResource + * Name or id of parent resource of the resource for this request. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {string} request.zone + * The name of the zone for this request. + * @param {google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest} request.zoneSetNestedPolicyRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/reservation_blocks.set_iam_policy.js + * region_tag:compute_v1beta_generated_ReservationBlocks_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_resource': request.parentResource ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('setIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('setIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.setIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationBlockRequest|undefined, + {}|undefined + ]) => { + this._log.info('setIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentResource + * Name or id of parent resource of the resource for this request. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1beta.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/reservation_blocks.test_iam_permissions.js + * region_tag:compute_v1beta_generated_ReservationBlocks_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_resource': request.parentResource ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationBlockRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } /** * Retrieves a list of reservation blocks under a single reservation. @@ -551,19 +884,98 @@ export class ReservationBlocksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.reservation - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. Zone name should conform to RFC1035. * @param {object} [options] @@ -661,19 +1073,98 @@ export class ReservationBlocksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.reservation - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. Zone name should conform to RFC1035. * @param {object} [options] @@ -720,19 +1211,98 @@ export class ReservationBlocksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.reservation - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. Zone name should conform to RFC1035. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/reservation_blocks_client_config.json b/packages/google-cloud-compute/src/v1beta/reservation_blocks_client_config.json index 3d49a1ea953a..b8f0315bdcc7 100644 --- a/packages/google-cloud-compute/src/v1beta/reservation_blocks_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/reservation_blocks_client_config.json @@ -24,6 +24,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "List": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -31,6 +35,14 @@ "PerformMaintenance": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "SetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client.ts b/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client.ts index 88d08d4f8d80..b85f49b00e84 100644 --- a/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client.ts @@ -223,7 +223,7 @@ export class ReservationSubBlocksClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const reservationSubBlocksStubMethods = - ['get', 'list', 'performMaintenance', 'reportFaulty']; + ['get', 'getIamPolicy', 'list', 'performMaintenance', 'reportFaulty', 'setIamPolicy', 'testIamPermissions']; for (const methodName of reservationSubBlocksStubMethods) { const callPromise = this.reservationSubBlocksStub.then( stub => (...args: Array<{}>) => { @@ -333,11 +333,16 @@ export class ReservationSubBlocksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parentName - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} * @param {string} request.project * Project ID for this request. * @param {string} request.reservationSubBlock - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. + * @param {string} request.view + * View of the subBlock. + * Check the View enum for the list of possible values. * @param {string} request.zone * Name of the zone for this request. Zone name should conform to RFC1035. * @param {object} [options] @@ -430,19 +435,139 @@ export class ReservationSubBlocksClient { throw error; }); } +/** + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.optionsRequestedPolicyVersion + * Requested IAM Policy version. + * @param {string} request.parentResource + * Name or id of parent resource of the resource for this request. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/reservation_sub_blocks.get_iam_policy.js + * region_tag:compute_v1beta_generated_ReservationSubBlocks_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest|undefined, {}|undefined + ]>; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request: protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_resource': request.parentResource ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.getIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest|undefined, + {}|undefined + ]) => { + this._log.info('getIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } /** * Allows customers to perform maintenance on a reservation subBlock * * @param {Object} request * The request object that will be sent. * @param {string} request.parentName - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.reservationSubBlock - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. * @param {string} request.zone * Name of the zone for this request. Zone name should conform to RFC1035. * @param {object} [options] @@ -545,13 +670,27 @@ export class ReservationSubBlocksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parentName - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.reservationSubBlock - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. * @param {google.cloud.compute.v1beta.ReservationSubBlocksReportFaultyRequest} request.reservationSubBlocksReportFaultyRequestResource * The body resource for this request * @param {string} request.zone @@ -650,6 +789,217 @@ export class ReservationSubBlocksClient { throw error; }); } +/** + * Sets the access control policy on the specified resource. + * Replaces any existing policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentResource + * Name or id of parent resource of the resource for this request. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {string} request.zone + * The name of the zone for this request. + * @param {google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest} request.zoneSetNestedPolicyRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.Policy|Policy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/reservation_sub_blocks.set_iam_policy.js + * region_tag:compute_v1beta_generated_ReservationSubBlocks_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest|undefined, {}|undefined + ]>; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request: protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_resource': request.parentResource ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('setIamPolicy request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('setIamPolicy response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.setIamPolicy(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IPolicy, + protos.google.cloud.compute.v1beta.ISetIamPolicyReservationSubBlockRequest|undefined, + {}|undefined + ]) => { + this._log.info('setIamPolicy response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentResource + * Name or id of parent resource of the resource for this request. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1beta.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/reservation_sub_blocks.test_iam_permissions.js + * region_tag:compute_v1beta_generated_ReservationSubBlocks_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_resource': request.parentResource ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.ITestPermissionsResponse, + protos.google.cloud.compute.v1beta.ITestIamPermissionsReservationSubBlockRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } /** * Retrieves a list of reservation subBlocks under a single reservation. @@ -657,19 +1007,98 @@ export class ReservationSubBlocksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentName - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. Zone name should conform to RFC1035. * @param {object} [options] @@ -767,19 +1196,98 @@ export class ReservationSubBlocksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentName - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. Zone name should conform to RFC1035. * @param {object} [options] @@ -826,19 +1334,98 @@ export class ReservationSubBlocksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.parentName - * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. Zone name should conform to RFC1035. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client_config.json b/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client_config.json index c58b88a7dca5..7dcbbec653d0 100644 --- a/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client_config.json @@ -24,6 +24,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "List": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -35,6 +39,14 @@ "ReportFaulty": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "SetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1beta/reservations_client.ts b/packages/google-cloud-compute/src/v1beta/reservations_client.ts index 2cfbbf48e07a..2f4ecb43d174 100644 --- a/packages/google-cloud-compute/src/v1beta/reservations_client.ts +++ b/packages/google-cloud-compute/src/v1beta/reservations_client.ts @@ -337,7 +337,19 @@ export class ReservationsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.reservation * Name of the reservation to delete. * @param {string} request.zone @@ -536,7 +548,8 @@ export class ReservationsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -638,14 +651,27 @@ export class ReservationsClient { }); } /** - * Creates a new reservation. For more information, read Reserving zonal resources. + * Creates a new reservation. For more information, readReserving zonal + * resources. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Reservation} request.reservationResource * The body resource for this request * @param {string} request.zone @@ -750,9 +776,22 @@ export class ReservationsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.reservation - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation. + * Name should conform to RFC1035 or be a resource ID. * @param {google.cloud.compute.v1beta.ReservationsPerformMaintenanceRequest} request.reservationsPerformMaintenanceRequestResource * The body resource for this request * @param {string} request.zone @@ -851,14 +890,28 @@ export class ReservationsClient { }); } /** - * Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations. + * Resizes the reservation (applicable to standalone reservations only). For + * more information, readModifying + * reservations. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.reservation * Name of the reservation to update. * @param {google.cloud.compute.v1beta.ReservationsResizeRequest} request.reservationsResizeRequestResource @@ -959,7 +1012,8 @@ export class ReservationsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1171,7 +1225,19 @@ export class ReservationsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.reservation * Name of the reservation to update. * @param {google.cloud.compute.v1beta.Reservation} request.reservationResource @@ -1276,27 +1342,115 @@ export class ReservationsClient { /** - * Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of reservations. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1333,22 +1487,101 @@ export class ReservationsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IReservationsScopedList]>; } /** - * A list of all the reservations that have been configured for the specified project in specified zone. + * A list of all the reservations that have been configured for the + * specified project in specified zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] @@ -1445,17 +1678,95 @@ export class ReservationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] @@ -1501,17 +1812,95 @@ export class ReservationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/resource_policies_client.ts b/packages/google-cloud-compute/src/v1beta/resource_policies_client.ts index 3f1344bf5f83..5350645cbec5 100644 --- a/packages/google-cloud-compute/src/v1beta/resource_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/resource_policies_client.ts @@ -339,7 +339,19 @@ export class ResourcePoliciesClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resourcePolicy * Name of the resource policy to delete. * @param {object} [options] @@ -536,7 +548,8 @@ export class ResourcePoliciesClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -647,7 +660,19 @@ export class ResourcePoliciesClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.ResourcePolicy} request.resourcePolicyResource * The body resource for this request * @param {object} [options] @@ -752,7 +777,19 @@ export class ResourcePoliciesClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resourcePolicy * Id of the resource policy to patch. * @param {google.cloud.compute.v1beta.ResourcePolicy} request.resourcePolicyResource @@ -853,7 +890,8 @@ export class ResourcePoliciesClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1059,27 +1097,115 @@ export class ResourcePoliciesClient { /** - * Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of resource policies. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1116,24 +1242,103 @@ export class ResourcePoliciesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IResourcePoliciesScopedList]>; } /** - * A list all the resource policies that have been configured for the specified project in specified region. + * A list all the resource policies that have been configured for the + * specified project in specified region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1228,19 +1433,97 @@ export class ResourcePoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1284,19 +1567,97 @@ export class ResourcePoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/routers_client.ts b/packages/google-cloud-compute/src/v1beta/routers_client.ts index 0f0a76d96225..ecb4139c62cd 100644 --- a/packages/google-cloud-compute/src/v1beta/routers_client.ts +++ b/packages/google-cloud-compute/src/v1beta/routers_client.ts @@ -345,7 +345,19 @@ export class RoutersClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.router * Name of the Router resource to delete. * @param {object} [options] @@ -453,7 +465,19 @@ export class RoutersClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.router * Name of the Router resource where Route Policy is defined. * @param {object} [options] @@ -655,13 +679,16 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.natName - * Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. + * Name of the nat service to filter the NAT IP information. + * If it is omitted, all nats for this router will be returned. + * Name should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {string} request.router - * Name of the Router resource to query for Nat IP information. The name should conform to RFC1035. + * Name of the Router resource to query for Nat IP information. The name + * should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -763,7 +790,8 @@ export class RoutersClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.router - * Name of the Router resource to query for the route policy. The name should conform to RFC1035. + * Name of the Router resource to query for the route policy. The name should + * conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -954,7 +982,8 @@ export class RoutersClient { }); } /** - * Creates a Router resource in the specified project and region using the data included in the request. + * Creates a Router resource in the specified project and region using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -963,7 +992,19 @@ export class RoutersClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Router} request.routerResource * The body resource for this request * @param {object} [options] @@ -1059,7 +1100,10 @@ export class RoutersClient { }); } /** - * Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified Router resource with the data included in the + * request. This method supportsPATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -1068,7 +1112,19 @@ export class RoutersClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.router * Name of the Router resource to patch. * @param {google.cloud.compute.v1beta.Router} request.routerResource @@ -1176,7 +1232,19 @@ export class RoutersClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.RoutePolicy} request.routePolicyResource * The body resource for this request * @param {string} request.router @@ -1275,7 +1343,8 @@ export class RoutersClient { }); } /** - * Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router. + * Preview fields auto-generated during router create andupdate operations. + * Calling this method does NOT create or update the router. * * @param {Object} request * The request object that will be sent. @@ -1479,7 +1548,10 @@ export class RoutersClient { }); } /** - * Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload. + * Updates the specified Router resource with the data included in the + * request. This method conforms toPUT semantics, which requests that the state of the + * target resource be created or replaced with the state defined by the + * representation enclosed in the request message payload. * * @param {Object} request * The request object that will be sent. @@ -1488,7 +1560,19 @@ export class RoutersClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.router * Name of the Router resource to update. * @param {google.cloud.compute.v1beta.Router} request.routerResource @@ -1596,7 +1680,19 @@ export class RoutersClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.RoutePolicy} request.routePolicyResource * The body resource for this request * @param {string} request.router @@ -1697,27 +1793,115 @@ export class RoutersClient { /** - * Retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of routers. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1759,23 +1943,104 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.natName - * Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. + * Name of the nat service to filter the Nat Mapping information. + * If it is omitted, all nats for this router will be returned. + * Name should conform to RFC1035. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.router - * Name of the Router resource to query for Nat Mapping information of VM endpoints. + * Name of the Router resource to query for Nat Mapping information of + * VM endpoints. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1871,23 +2136,104 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.natName - * Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. + * Name of the nat service to filter the Nat Mapping information. + * If it is omitted, all nats for this router will be returned. + * Name should conform to RFC1035. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.router - * Name of the Router resource to query for Nat Mapping information of VM endpoints. + * Name of the Router resource to query for Nat Mapping information of + * VM endpoints. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1932,23 +2278,104 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.natName - * Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. + * Name of the nat service to filter the Nat Mapping information. + * If it is omitted, all nats for this router will be returned. + * Name should conform to RFC1035. * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.router - * Name of the Router resource to query for Nat Mapping information of VM endpoints. + * Name of the Router resource to query for Nat Mapping information of + * VM endpoints. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1992,19 +2419,97 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2099,19 +2604,97 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2155,19 +2738,97 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -2215,28 +2876,110 @@ export class RoutersClient { * @param {string} request.destinationPrefix * Limit results to destinations that are subnets of this CIDR range * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.peer - * (Required) limit results to the BGP peer with the given name. Name should conform to RFC1035. + * (Required) limit results to the BGP peer with the given name. + * Name should conform to RFC1035. * @param {boolean} request.policyApplied - * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + * When true, the method returns post-policy routes. Otherwise, it returns + * pre-policy routes. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.routeType - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + * (Required) limit results to this type of route (either LEARNED or + * ADVERTISED) * Check the RouteType enum for the list of possible values. * @param {string} request.router - * Name or id of the resource for this request. Name should conform to RFC1035. + * Name or id of the resource for this request. + * Name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2337,28 +3080,110 @@ export class RoutersClient { * @param {string} request.destinationPrefix * Limit results to destinations that are subnets of this CIDR range * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.peer - * (Required) limit results to the BGP peer with the given name. Name should conform to RFC1035. + * (Required) limit results to the BGP peer with the given name. + * Name should conform to RFC1035. * @param {boolean} request.policyApplied - * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + * When true, the method returns post-policy routes. Otherwise, it returns + * pre-policy routes. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.routeType - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + * (Required) limit results to this type of route (either LEARNED or + * ADVERTISED) * Check the RouteType enum for the list of possible values. * @param {string} request.router - * Name or id of the resource for this request. Name should conform to RFC1035. + * Name or id of the resource for this request. + * Name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2408,28 +3233,110 @@ export class RoutersClient { * @param {string} request.destinationPrefix * Limit results to destinations that are subnets of this CIDR range * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.peer - * (Required) limit results to the BGP peer with the given name. Name should conform to RFC1035. + * (Required) limit results to the BGP peer with the given name. + * Name should conform to RFC1035. * @param {boolean} request.policyApplied - * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + * When true, the method returns post-policy routes. Otherwise, it returns + * pre-policy routes. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.routeType - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + * (Required) limit results to this type of route (either LEARNED or + * ADVERTISED) * Check the RouteType enum for the list of possible values. * @param {string} request.router - * Name or id of the resource for this request. Name should conform to RFC1035. + * Name or id of the resource for this request. + * Name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -2468,26 +3375,106 @@ export class RoutersClient { ) as AsyncIterable; } /** - * Retrieves a list of router route policy subresources available to the specified project. + * Retrieves a list of router route policy subresources available to the + * specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.router - * Name or id of the resource for this request. Name should conform to RFC1035. + * Name or id of the resource for this request. + * Name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2583,21 +3570,100 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.router - * Name or id of the resource for this request. Name should conform to RFC1035. + * Name or id of the resource for this request. + * Name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2642,21 +3708,100 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.router - * Name or id of the resource for this request. Name should conform to RFC1035. + * Name or id of the resource for this request. + * Name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/routes_client.ts b/packages/google-cloud-compute/src/v1beta/routes_client.ts index 12925b92070c..a9a66a9e7f94 100644 --- a/packages/google-cloud-compute/src/v1beta/routes_client.ts +++ b/packages/google-cloud-compute/src/v1beta/routes_client.ts @@ -335,7 +335,19 @@ export class RoutesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.route * Name of the Route resource to delete. * @param {object} [options] @@ -528,14 +540,27 @@ export class RoutesClient { }); } /** - * Creates a Route resource in the specified project using the data included in the request. + * Creates a Route resource in the specified project using the data included + * in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Route} request.routeResource * The body resource for this request * @param {object} [options] @@ -735,17 +760,95 @@ export class RoutesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -839,17 +942,95 @@ export class RoutesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -892,17 +1073,95 @@ export class RoutesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/security_policies_client.ts b/packages/google-cloud-compute/src/v1beta/security_policies_client.ts index c07d82fe44af..36f598d9dff3 100644 --- a/packages/google-cloud-compute/src/v1beta/security_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/security_policies_client.ts @@ -442,7 +442,19 @@ export class SecurityPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to delete. * @param {object} [options] @@ -734,14 +746,27 @@ export class SecurityPoliciesClient { }); } /** - * Creates a new policy in the specified project using the data included in the request. + * Creates a new policy in the specified project using the data included in + * the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SecurityPolicy} request.securityPolicyResource * The body resource for this request * @param {boolean} request.validateOnly @@ -838,22 +863,101 @@ export class SecurityPoliciesClient { }); } /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * Gets the current list of preconfigured Web Application Firewall (WAF) + * expressions. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -942,14 +1046,30 @@ export class SecurityPoliciesClient { }); } /** - * Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead. + * Patches the specified policy with the data included in the request. To + * clear fields in the policy, leave the fields empty and specify them in the + * updateMask. This cannot be used to be update the rules in the policy. + * Please use the per rule methods like addRule, patchRule, and removeRule + * instead. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.securityPolicy * Name of the security policy to update. * @param {google.cloud.compute.v1beta.SecurityPolicy} request.securityPolicyResource @@ -1049,7 +1169,8 @@ export class SecurityPoliciesClient { }); } /** - * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask. + * Patches a rule at the specified priority. To clear fields in the rule, + * leave the fields empty and specify them in the updateMask. * * @param {Object} request * The request object that will be sent. @@ -1261,7 +1382,9 @@ export class SecurityPoliciesClient { }); } /** - * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a security policy. To learn more about labels, + * read the Labeling Resources + * documentation. * * @param {Object} request * The request object that will be sent. @@ -1465,27 +1588,116 @@ export class SecurityPoliciesClient { /** - * Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all SecurityPolicy resources, regional and global, + * available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1527,17 +1739,95 @@ export class SecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1631,17 +1921,95 @@ export class SecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1684,17 +2052,95 @@ export class SecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/service_attachments_client.ts b/packages/google-cloud-compute/src/v1beta/service_attachments_client.ts index 17c850c88ba9..c04c07d8476f 100644 --- a/packages/google-cloud-compute/src/v1beta/service_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1beta/service_attachments_client.ts @@ -339,7 +339,19 @@ export class ServiceAttachmentsClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.serviceAttachment * Name of the ServiceAttachment resource to delete. * @param {object} [options] @@ -538,7 +550,8 @@ export class ServiceAttachmentsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -640,7 +653,8 @@ export class ServiceAttachmentsClient { }); } /** - * Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request. + * Creates a ServiceAttachment in the specified project in the given scope + * using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -649,7 +663,19 @@ export class ServiceAttachmentsClient { * @param {string} request.region * Name of the region of this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.ServiceAttachment} request.serviceAttachmentResource * The body resource for this request * @param {object} [options] @@ -745,7 +771,10 @@ export class ServiceAttachmentsClient { }); } /** - * Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified ServiceAttachment resource with the data included in + * the request. This method supports PATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -754,9 +783,22 @@ export class ServiceAttachmentsClient { * @param {string} request.region * The region scoping this request and should conform to RFC1035. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.serviceAttachment - * The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number. + * The resource id of the ServiceAttachment to patch. It should conform to + * RFC1035 resource name or be a string form on an unsigned long number. * @param {google.cloud.compute.v1beta.ServiceAttachment} request.serviceAttachmentResource * The body resource for this request * @param {object} [options] @@ -853,7 +895,8 @@ export class ServiceAttachmentsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1059,27 +1102,116 @@ export class ServiceAttachmentsClient { /** - * Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all ServiceAttachment resources, + * regional and global, available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1121,19 +1253,97 @@ export class ServiceAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1228,19 +1438,97 @@ export class ServiceAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1284,19 +1572,97 @@ export class ServiceAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region of this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/snapshot_settings_service_client.ts b/packages/google-cloud-compute/src/v1beta/snapshot_settings_service_client.ts index f40e50973728..8403a46ff7a1 100644 --- a/packages/google-cloud-compute/src/v1beta/snapshot_settings_service_client.ts +++ b/packages/google-cloud-compute/src/v1beta/snapshot_settings_service_client.ts @@ -420,7 +420,19 @@ export class SnapshotSettingsServiceClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SnapshotSettings} request.snapshotSettingsResource * The body resource for this request * @param {string} request.updateMask diff --git a/packages/google-cloud-compute/src/v1beta/snapshots_client.ts b/packages/google-cloud-compute/src/v1beta/snapshots_client.ts index 6f979d6cd490..529516ddee5e 100644 --- a/packages/google-cloud-compute/src/v1beta/snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1beta/snapshots_client.ts @@ -330,14 +330,33 @@ export class SnapshotsClient { // -- Service calls -- // ------------------- /** - * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots. + * Deletes the specified Snapshot resource. Keep in mind that deleting + * a single snapshot might not necessarily delete all the data on that + * snapshot. If any data on the snapshot that is marked for deletion is + * needed for subsequent snapshots, the data will be moved to the next + * corresponding snapshot. + * + * For more information, seeDeleting + * snapshots. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.snapshot * Name of the Snapshot resource to delete. * @param {object} [options] @@ -530,7 +549,8 @@ export class SnapshotsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -629,14 +649,30 @@ export class SnapshotsClient { }); } /** - * Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project. + * Creates a snapshot in the specified project using the data included + * in the request. For regular snapshot creation, consider using this method + * instead of disks.createSnapshot, + * as this method supports more features, such as creating snapshots in a + * project different from the source disk project. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Snapshot} request.snapshotResource * The body resource for this request * @param {object} [options] @@ -731,7 +767,8 @@ export class SnapshotsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -830,7 +867,8 @@ export class SnapshotsClient { }); } /** - * Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a snapshot. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -1034,27 +1072,116 @@ export class SnapshotsClient { /** - * Retrieves an aggregated list of all of the snapshots in your project across all regions and global scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of all of the snapshots in your project + * across all regions and global scope. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1091,22 +1218,101 @@ export class SnapshotsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ISnapshotsScopedList]>; } /** - * Retrieves the list of Snapshot resources contained within the specified project. + * Retrieves the list of Snapshot resources contained within + * the specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1200,17 +1406,95 @@ export class SnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1253,17 +1537,95 @@ export class SnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/ssl_certificates_client.ts b/packages/google-cloud-compute/src/v1beta/ssl_certificates_client.ts index d53364615699..7ea5a5eb565d 100644 --- a/packages/google-cloud-compute/src/v1beta/ssl_certificates_client.ts +++ b/packages/google-cloud-compute/src/v1beta/ssl_certificates_client.ts @@ -337,7 +337,19 @@ export class SslCertificatesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sslCertificate * Name of the SslCertificate resource to delete. * @param {object} [options] @@ -530,14 +542,27 @@ export class SslCertificatesClient { }); } /** - * Creates a SslCertificate resource in the specified project using the data included in the request. + * Creates a SslCertificate resource in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SslCertificate} request.sslCertificateResource * The body resource for this request * @param {object} [options] @@ -733,27 +758,116 @@ export class SslCertificatesClient { /** - * Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all SslCertificate resources, regional and global, + * available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -790,22 +904,101 @@ export class SslCertificatesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ISslCertificatesScopedList]>; } /** - * Retrieves the list of SslCertificate resources available to the specified project. + * Retrieves the list of SslCertificate resources available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -899,17 +1092,95 @@ export class SslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -952,17 +1223,95 @@ export class SslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/ssl_policies_client.ts b/packages/google-cloud-compute/src/v1beta/ssl_policies_client.ts index d856679b9d5b..16e18b9ff986 100644 --- a/packages/google-cloud-compute/src/v1beta/ssl_policies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/ssl_policies_client.ts @@ -330,16 +330,31 @@ export class SslPoliciesClient { // -- Service calls -- // ------------------- /** - * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. + * Deletes the specified SSL policy. The SSL policy resource can be deleted + * only if it is not in use by any TargetHttpsProxy or TargetSslProxy + * resources. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sslPolicy - * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to delete. The name must be 1-63 characters long, + * and comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -440,7 +455,8 @@ export class SslPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.sslPolicy - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -537,7 +553,19 @@ export class SslPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SslPolicy} request.sslPolicyResource * The body resource for this request * @param {object} [options] @@ -632,22 +660,101 @@ export class SslPoliciesClient { }); } /** - * Lists all features that can be specified in the SSL policy when using custom profile. + * Lists all features that can be specified in the SSL policy when using + * custom profile. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -743,9 +850,22 @@ export class SslPoliciesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.sslPolicy - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. * @param {google.cloud.compute.v1beta.SslPolicy} request.sslPolicyResource * The body resource for this request * @param {object} [options] @@ -942,27 +1062,116 @@ export class SslPoliciesClient { /** - * Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all SslPolicy resources, regional and global, + * available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -999,22 +1208,101 @@ export class SslPoliciesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ISslPoliciesScopedList]>; } /** - * Lists all the SSL policies that have been configured for the specified project. + * Lists all the SSL policies that have been configured for the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1108,17 +1396,95 @@ export class SslPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1161,17 +1527,95 @@ export class SslPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/storage_pool_types_client.ts b/packages/google-cloud-compute/src/v1beta/storage_pool_types_client.ts index 3d076793ae4e..424fa0b1573c 100644 --- a/packages/google-cloud-compute/src/v1beta/storage_pool_types_client.ts +++ b/packages/google-cloud-compute/src/v1beta/storage_pool_types_client.ts @@ -433,27 +433,115 @@ export class StoragePoolTypesClient { /** - * Retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of storage pool types. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -490,22 +578,101 @@ export class StoragePoolTypesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IStoragePoolTypesScopedList]>; } /** - * Retrieves a list of storage pool types available to the specified project. + * Retrieves a list of storage pool types available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -602,17 +769,95 @@ export class StoragePoolTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -658,17 +903,95 @@ export class StoragePoolTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/storage_pools_client.ts b/packages/google-cloud-compute/src/v1beta/storage_pools_client.ts index 9e5c6bcd3307..b5a0b42e2782 100644 --- a/packages/google-cloud-compute/src/v1beta/storage_pools_client.ts +++ b/packages/google-cloud-compute/src/v1beta/storage_pools_client.ts @@ -332,14 +332,30 @@ export class StoragePoolsClient { // -- Service calls -- // ------------------- /** - * Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots. + * Deletes the specified storage pool. Deleting a storagePool + * removes its data permanently and is irreversible. However, deleting a + * storagePool does not delete any snapshots previously + * made from the storagePool. You must separately delete + * snapshots. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.storagePool * Name of the storage pool to delete. * @param {string} request.zone @@ -438,7 +454,8 @@ export class StoragePoolsClient { }); } /** - * Returns a specified storage pool. Gets a list of available storage pools by making a list() request. + * Returns a specified storage pool. Gets a list of available + * storage pools by making a list() request. * * @param {Object} request * The request object that will be sent. @@ -538,7 +555,8 @@ export class StoragePoolsClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -640,14 +658,27 @@ export class StoragePoolsClient { }); } /** - * Creates a storage pool in the specified project using the data in the request. + * Creates a storage pool in the specified project using the data + * in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.StoragePool} request.storagePoolResource * The body resource for this request * @param {string} request.zone @@ -745,7 +776,8 @@ export class StoragePoolsClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -949,14 +981,30 @@ export class StoragePoolsClient { }); } /** - * Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. + * Updates the specified storagePool with the data included in the request. + * The update is performed only on selected fields included as part + * of update-mask. Only the following fields can be modified: + * pool_provisioned_capacity_gb, pool_provisioned_iops and + * pool_provisioned_throughput. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.storagePool * The storagePool name for this request. * @param {google.cloud.compute.v1beta.StoragePool} request.storagePoolResource @@ -1061,27 +1109,115 @@ export class StoragePoolsClient { /** - * Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of storage pools. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1118,22 +1254,101 @@ export class StoragePoolsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IStoragePoolsScopedList]>; } /** - * Retrieves a list of storage pools contained within the specified zone. + * Retrieves a list of storage pools contained within + * the specified zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1230,17 +1445,95 @@ export class StoragePoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1286,17 +1579,95 @@ export class StoragePoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -1341,17 +1712,95 @@ export class StoragePoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.storagePool * Name of the storage pool to list disks of. * @param {string} request.zone @@ -1451,17 +1900,95 @@ export class StoragePoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.storagePool * Name of the storage pool to list disks of. * @param {string} request.zone @@ -1510,17 +2037,95 @@ export class StoragePoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.storagePool * Name of the storage pool to list disks of. * @param {string} request.zone diff --git a/packages/google-cloud-compute/src/v1beta/subnetworks_client.ts b/packages/google-cloud-compute/src/v1beta/subnetworks_client.ts index bc9cd21231b4..f1aad9ce2fa6 100644 --- a/packages/google-cloud-compute/src/v1beta/subnetworks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/subnetworks_client.ts @@ -341,7 +341,19 @@ export class SubnetworksClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.subnetwork * Name of the Subnetwork resource to delete. * @param {object} [options] @@ -447,7 +459,19 @@ export class SubnetworksClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.subnetwork * Name of the Subnetwork resource to update. * @param {google.cloud.compute.v1beta.SubnetworksExpandIpCidrRangeRequest} request.subnetworksExpandIpCidrRangeRequestResource @@ -557,7 +581,11 @@ export class SubnetworksClient { * @param {string} request.subnetwork * Name of the Subnetwork resource to return. * @param {string} request.views - * Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + * Defines the extra views returned back in the subnetwork resource. + * Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the + * response. * Check the Views enum for the list of possible values. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -649,7 +677,8 @@ export class SubnetworksClient { }); } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. * * @param {Object} request * The request object that will be sent. @@ -751,7 +780,8 @@ export class SubnetworksClient { }); } /** - * Creates a subnetwork in the specified project using the data included in the request. + * Creates a subnetwork in the specified project using the data + * included in the request. * * @param {Object} request * The request object that will be sent. @@ -760,7 +790,19 @@ export class SubnetworksClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.Subnetwork} request.subnetworkResource * The body resource for this request * @param {object} [options] @@ -856,18 +898,42 @@ export class SubnetworksClient { }); } /** - * Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched. + * Patches the specified subnetwork with the data included in the request. + * Only certain fields can be updated with a patch request + * as indicated in the field descriptions. + * You must specify the current fingerprint of the + * subnetwork resource being patched. * * @param {Object} request * The request object that will be sent. * @param {number} request.drainTimeoutSeconds - * The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. + * The drain timeout specifies the upper bound in seconds on the amount of + * time allowed to drain connections from the current ACTIVE subnetwork + * to the current BACKUP subnetwork. The drain timeout is only applicable + * when the following conditions are true: + * - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER + * - the subnetwork being patched has role = BACKUP + * - the patch request is setting the role to ACTIVE. Note that after this + * patch operation the roles of the ACTIVE and BACKUP subnetworks will be + * swapped. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.subnetwork * Name of the Subnetwork resource to patch. * @param {google.cloud.compute.v1beta.Subnetwork} request.subnetworkResource @@ -966,7 +1032,8 @@ export class SubnetworksClient { }); } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. + * Replaces any existing policy. * * @param {Object} request * The request object that will be sent. @@ -1068,7 +1135,8 @@ export class SubnetworksClient { }); } /** - * Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access. + * Set whether VMs in this subnet can access Google services without assigning + * external IP addresses through Private Google Access. * * @param {Object} request * The request object that will be sent. @@ -1077,7 +1145,19 @@ export class SubnetworksClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.subnetwork * Name of the Subnetwork resource. * @param {google.cloud.compute.v1beta.SubnetworksSetPrivateIpGoogleAccessRequest} request.subnetworksSetPrivateIpGoogleAccessRequestResource @@ -1280,27 +1360,122 @@ export class SubnetworksClient { /** - * Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of subnetworks. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + * @param {string} request.views + * Defines the extra views returned back in the subnetwork resource. + * Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the + * response. + * Check the Views enum for the list of possible values. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1337,26 +1512,109 @@ export class SubnetworksClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ISubnetworksScopedList]>; } /** - * Retrieves a list of subnetworks available to the specified project. + * Retrieves a list of subnetworks available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.views - * Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + * Defines the extra views returned back in the subnetwork resource. + * Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the + * response. * Check the Views enum for the list of possible values. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -1452,21 +1710,103 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.views - * Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + * Defines the extra views returned back in the subnetwork resource. + * Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the + * response. * Check the Views enum for the list of possible values. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -1511,21 +1851,103 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.views - * Defines the extra views returned back in the subnetwork resource. Supported values: - WITH_UTILIZATION: Utilization data is included in the response. + * Defines the extra views returned back in the subnetwork resource. + * Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the + * response. * Check the Views enum for the list of possible values. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -1569,19 +1991,99 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.serviceProject - * The project id or project number in which the subnetwork is intended to be used. Only applied for Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + * The project id or project number in which the subnetwork is intended to be + * used. Only applied for Shared VPC. See [Shared VPC + * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1675,19 +2177,99 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.serviceProject - * The project id or project number in which the subnetwork is intended to be used. Only applied for Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + * The project id or project number in which the subnetwork is intended to be + * used. Only applied for Shared VPC. See [Shared VPC + * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1730,19 +2312,99 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.serviceProject - * The project id or project number in which the subnetwork is intended to be used. Only applied for Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + * The project id or project number in which the subnetwork is intended to be + * used. Only applied for Shared VPC. See [Shared VPC + * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/target_grpc_proxies_client.ts b/packages/google-cloud-compute/src/v1beta/target_grpc_proxies_client.ts index f71f16825fca..9a1c39e733cc 100644 --- a/packages/google-cloud-compute/src/v1beta/target_grpc_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/target_grpc_proxies_client.ts @@ -335,7 +335,19 @@ export class TargetGrpcProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetGrpcProxy * Name of the TargetGrpcProxy resource to delete. * @param {object} [options] @@ -528,14 +540,27 @@ export class TargetGrpcProxiesClient { }); } /** - * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request. + * Creates a TargetGrpcProxy in the specified project in the given scope + * using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetGrpcProxy} request.targetGrpcProxyResource * The body resource for this request * @param {object} [options] @@ -630,14 +655,29 @@ export class TargetGrpcProxiesClient { }); } /** - * Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified TargetGrpcProxy resource with the data included in + * the request. This method supports PATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetGrpcProxy * Name of the TargetGrpcProxy resource to patch. * @param {google.cloud.compute.v1beta.TargetGrpcProxy} request.targetGrpcProxyResource @@ -840,17 +880,95 @@ export class TargetGrpcProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -944,17 +1062,95 @@ export class TargetGrpcProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -997,17 +1193,95 @@ export class TargetGrpcProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/target_http_proxies_client.ts b/packages/google-cloud-compute/src/v1beta/target_http_proxies_client.ts index 2968f5fc9cf5..21d0b32ef18d 100644 --- a/packages/google-cloud-compute/src/v1beta/target_http_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/target_http_proxies_client.ts @@ -337,7 +337,19 @@ export class TargetHttpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpProxy * Name of the TargetHttpProxy resource to delete. * @param {object} [options] @@ -530,14 +542,27 @@ export class TargetHttpProxiesClient { }); } /** - * Creates a TargetHttpProxy resource in the specified project using the data included in the request. + * Creates a TargetHttpProxy resource in the specified + * project using the data included in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetHttpProxy} request.targetHttpProxyResource * The body resource for this request * @param {object} [options] @@ -632,14 +657,29 @@ export class TargetHttpProxiesClient { }); } /** - * Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified TargetHttpProxy resource with the data included in + * the request. This method supports PATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpProxy * Name of the TargetHttpProxy resource to patch. * @param {google.cloud.compute.v1beta.TargetHttpProxy} request.targetHttpProxyResource @@ -744,7 +784,19 @@ export class TargetHttpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpProxy * Name of the TargetHttpProxy to set a URL map for. * @param {google.cloud.compute.v1beta.UrlMapReference} request.urlMapReferenceResource @@ -943,27 +995,116 @@ export class TargetHttpProxiesClient { /** - * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all TargetHttpProxy resources, regional and global, + * available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1000,22 +1141,101 @@ export class TargetHttpProxiesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ITargetHttpProxiesScopedList]>; } /** - * Retrieves the list of TargetHttpProxy resources available to the specified project. + * Retrieves the list of TargetHttpProxy resources available + * to the specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1109,17 +1329,95 @@ export class TargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1162,17 +1460,95 @@ export class TargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/target_https_proxies_client.ts b/packages/google-cloud-compute/src/v1beta/target_https_proxies_client.ts index 1266e15f94be..f914ae3c93c3 100644 --- a/packages/google-cloud-compute/src/v1beta/target_https_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/target_https_proxies_client.ts @@ -337,7 +337,19 @@ export class TargetHttpsProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpsProxy * Name of the TargetHttpsProxy resource to delete. * @param {object} [options] @@ -530,14 +542,27 @@ export class TargetHttpsProxiesClient { }); } /** - * Creates a TargetHttpsProxy resource in the specified project using the data included in the request. + * Creates a TargetHttpsProxy resource in the specified + * project using the data included in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetHttpsProxy} request.targetHttpsProxyResource * The body resource for this request * @param {object} [options] @@ -632,14 +657,29 @@ export class TargetHttpsProxiesClient { }); } /** - * Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Patches the specified TargetHttpsProxy resource with the data included in + * the request. This method supports PATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpsProxy * Name of the TargetHttpsProxy resource to patch. * @param {google.cloud.compute.v1beta.TargetHttpsProxy} request.targetHttpsProxyResource @@ -744,11 +784,24 @@ export class TargetHttpsProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetHttpsProxiesSetCertificateMapRequest} request.targetHttpsProxiesSetCertificateMapRequestResource * The body resource for this request * @param {string} request.targetHttpsProxy - * Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the TargetHttpsProxy resource whose CertificateMap is + * to be set. The name must be 1-63 characters long, and comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -849,11 +902,24 @@ export class TargetHttpsProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetHttpsProxiesSetQuicOverrideRequest} request.targetHttpsProxiesSetQuicOverrideRequestResource * The body resource for this request * @param {string} request.targetHttpsProxy - * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035. + * Name of the TargetHttpsProxy resource to set the QUIC override policy for. + * The name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -954,11 +1020,24 @@ export class TargetHttpsProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetHttpsProxiesSetSslCertificatesRequest} request.targetHttpsProxiesSetSslCertificatesRequestResource * The body resource for this request * @param {string} request.targetHttpsProxy - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + * Name of the TargetHttpsProxy resource to set an + * SslCertificates resource for. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1052,18 +1131,34 @@ export class TargetHttpsProxiesClient { }); } /** - * Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends. + * Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the + * server-side support for SSL features. This affects connections between + * clients and the HTTPS proxy load balancer. They do not affect the + * connection between the load balancer and the backends. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SslPolicyReference} request.sslPolicyReferenceResource * The body resource for this request * @param {string} request.targetHttpsProxy - * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the TargetHttpsProxy resource whose SSL policy is + * to be set. The name must be 1-63 characters long, and comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1164,9 +1259,22 @@ export class TargetHttpsProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetHttpsProxy - * Name of the TargetHttpsProxy resource whose URL map is to be set. + * Name of the TargetHttpsProxy resource whose URL map is + * to be set. * @param {google.cloud.compute.v1beta.UrlMapReference} request.urlMapReferenceResource * The body resource for this request * @param {object} [options] @@ -1363,27 +1471,116 @@ export class TargetHttpsProxiesClient { /** - * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all TargetHttpsProxy resources, regional and global, + * available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1420,22 +1617,101 @@ export class TargetHttpsProxiesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ITargetHttpsProxiesScopedList]>; } /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project. + * Retrieves the list of TargetHttpsProxy resources + * available to the specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1529,17 +1805,95 @@ export class TargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1582,17 +1936,95 @@ export class TargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/target_instances_client.ts b/packages/google-cloud-compute/src/v1beta/target_instances_client.ts index e1dfb98a61e5..12f5fc417eed 100644 --- a/packages/google-cloud-compute/src/v1beta/target_instances_client.ts +++ b/packages/google-cloud-compute/src/v1beta/target_instances_client.ts @@ -337,7 +337,19 @@ export class TargetInstancesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetInstance * Name of the TargetInstance resource to delete. * @param {string} request.zone @@ -536,14 +548,27 @@ export class TargetInstancesClient { }); } /** - * Creates a TargetInstance resource in the specified project and zone using the data included in the request. + * Creates a TargetInstance resource in the specified project and zone using + * the data included in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetInstance} request.targetInstanceResource * The body resource for this request * @param {string} request.zone @@ -641,18 +666,33 @@ export class TargetInstancesClient { }); } /** - * Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview + * Sets the Google Cloud Armor security policy for the specified target + * instance. For more information, seeGoogle + * Cloud Armor Overview * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SecurityPolicyReference} request.securityPolicyReferenceResource * The body resource for this request * @param {string} request.targetInstance - * Name of the TargetInstance resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the TargetInstance resource to which the security policy should be + * set. The name should conform to RFC1035. * @param {string} request.zone * Name of the zone scoping this request. * @param {object} [options] @@ -853,27 +893,115 @@ export class TargetInstancesClient { /** - * Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of target instances. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -910,22 +1038,101 @@ export class TargetInstancesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ITargetInstancesScopedList]>; } /** - * Retrieves a list of TargetInstance resources available to the specified project and zone. + * Retrieves a list of TargetInstance resources available to the specified + * project and zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone scoping this request. * @param {object} [options] @@ -1022,17 +1229,95 @@ export class TargetInstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone scoping this request. * @param {object} [options] @@ -1078,17 +1363,95 @@ export class TargetInstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone scoping this request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/target_pools_client.ts b/packages/google-cloud-compute/src/v1beta/target_pools_client.ts index b27815c7df30..ae60de33fa7d 100644 --- a/packages/google-cloud-compute/src/v1beta/target_pools_client.ts +++ b/packages/google-cloud-compute/src/v1beta/target_pools_client.ts @@ -339,7 +339,19 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetPool * Name of the target pool to add a health check to. * @param {google.cloud.compute.v1beta.TargetPoolsAddHealthCheckRequest} request.targetPoolsAddHealthCheckRequestResource @@ -447,7 +459,19 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetPool * Name of the TargetPool resource to add instances to. * @param {google.cloud.compute.v1beta.TargetPoolsAddInstanceRequest} request.targetPoolsAddInstanceRequestResource @@ -555,7 +579,19 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetPool * Name of the TargetPool resource to delete. * @param {object} [options] @@ -752,7 +788,8 @@ export class TargetPoolsClient { }); } /** - * Gets the most recent health check results for each IP for the instance that is referenced by the given target pool. + * Gets the most recent health check results for each IP for the + * instance that is referenced by the given target pool. * * @param {Object} request * The request object that will be sent. @@ -854,7 +891,8 @@ export class TargetPoolsClient { }); } /** - * Creates a target pool in the specified project and region using the data included in the request. + * Creates a target pool in the specified project and region using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -863,7 +901,19 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetPool} request.targetPoolResource * The body resource for this request * @param {object} [options] @@ -968,7 +1018,19 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetPool * Name of the target pool to remove health checks from. * @param {google.cloud.compute.v1beta.TargetPoolsRemoveHealthCheckRequest} request.targetPoolsRemoveHealthCheckRequestResource @@ -1076,7 +1138,19 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetPool * Name of the TargetPool resource to remove instances from. * @param {google.cloud.compute.v1beta.TargetPoolsRemoveInstanceRequest} request.targetPoolsRemoveInstanceRequestResource @@ -1186,7 +1260,19 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetPool * Name of the TargetPool resource to set a backup pool for. * @param {google.cloud.compute.v1beta.TargetReference} request.targetReferenceResource @@ -1285,7 +1371,9 @@ export class TargetPoolsClient { }); } /** - * Sets the Google Cloud Armor security policy for the specified target pool. For more information, see Google Cloud Armor Overview + * Sets the Google Cloud Armor security policy for the specified target pool. + * For more information, seeGoogle + * Cloud Armor Overview * * @param {Object} request * The request object that will be sent. @@ -1294,11 +1382,24 @@ export class TargetPoolsClient { * @param {string} request.region * Name of the region scoping this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SecurityPolicyReference} request.securityPolicyReferenceResource * The body resource for this request * @param {string} request.targetPool - * Name of the TargetPool resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the TargetPool resource to which the security policy should be + * set. The name should conform to RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1497,27 +1598,115 @@ export class TargetPoolsClient { /** - * Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of target pools. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1554,24 +1743,103 @@ export class TargetPoolsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ITargetPoolsScopedList]>; } /** - * Retrieves a list of target pools available to the specified project and region. + * Retrieves a list of target pools available to the specified + * project and region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1666,19 +1934,97 @@ export class TargetPoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1722,19 +2068,97 @@ export class TargetPoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/target_ssl_proxies_client.ts b/packages/google-cloud-compute/src/v1beta/target_ssl_proxies_client.ts index 0cc575addcb6..b1346fbfaf3d 100644 --- a/packages/google-cloud-compute/src/v1beta/target_ssl_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/target_ssl_proxies_client.ts @@ -335,7 +335,19 @@ export class TargetSslProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetSslProxy * Name of the TargetSslProxy resource to delete. * @param {object} [options] @@ -528,14 +540,27 @@ export class TargetSslProxiesClient { }); } /** - * Creates a TargetSslProxy resource in the specified project using the data included in the request. + * Creates a TargetSslProxy resource in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetSslProxy} request.targetSslProxyResource * The body resource for this request * @param {object} [options] @@ -637,11 +662,24 @@ export class TargetSslProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetSslProxiesSetBackendServiceRequest} request.targetSslProxiesSetBackendServiceRequestResource * The body resource for this request * @param {string} request.targetSslProxy - * Name of the TargetSslProxy resource whose BackendService resource is to be set. + * Name of the TargetSslProxy resource whose BackendService resource + * is to be set. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -742,11 +780,24 @@ export class TargetSslProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetSslProxiesSetCertificateMapRequest} request.targetSslProxiesSetCertificateMapRequestResource * The body resource for this request * @param {string} request.targetSslProxy - * Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the TargetSslProxy resource whose CertificateMap is + * to be set. The name must be 1-63 characters long, and comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -847,7 +898,19 @@ export class TargetSslProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetSslProxiesSetProxyHeaderRequest} request.targetSslProxiesSetProxyHeaderRequestResource * The body resource for this request * @param {string} request.targetSslProxy @@ -952,11 +1015,24 @@ export class TargetSslProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetSslProxiesSetSslCertificatesRequest} request.targetSslProxiesSetSslCertificatesRequestResource * The body resource for this request * @param {string} request.targetSslProxy - * Name of the TargetSslProxy resource whose SslCertificate resource is to be set. + * Name of the TargetSslProxy resource whose SslCertificate resource + * is to be set. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1050,18 +1126,34 @@ export class TargetSslProxiesClient { }); } /** - * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends. + * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the + * server-side support for SSL features. This affects connections between + * clients and the load balancer. They do not affect the + * connection between the load balancer and the backends. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.SslPolicyReference} request.sslPolicyReferenceResource * The body resource for this request * @param {string} request.targetSslProxy - * Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. + * Name of the TargetSslProxy resource whose SSL policy is + * to be set. The name must be 1-63 characters long, and comply with RFC1035. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1255,22 +1347,101 @@ export class TargetSslProxiesClient { } /** - * Retrieves the list of TargetSslProxy resources available to the specified project. + * Retrieves the list of TargetSslProxy resources + * available to the specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1364,17 +1535,95 @@ export class TargetSslProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1417,17 +1666,95 @@ export class TargetSslProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/target_tcp_proxies_client.ts b/packages/google-cloud-compute/src/v1beta/target_tcp_proxies_client.ts index 2c1a50883ac7..aac73dffd343 100644 --- a/packages/google-cloud-compute/src/v1beta/target_tcp_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1beta/target_tcp_proxies_client.ts @@ -337,7 +337,19 @@ export class TargetTcpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetTcpProxy * Name of the TargetTcpProxy resource to delete. * @param {object} [options] @@ -530,14 +542,27 @@ export class TargetTcpProxiesClient { }); } /** - * Creates a TargetTcpProxy resource in the specified project using the data included in the request. + * Creates a TargetTcpProxy resource in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetTcpProxy} request.targetTcpProxyResource * The body resource for this request * @param {object} [options] @@ -639,11 +664,24 @@ export class TargetTcpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetTcpProxiesSetBackendServiceRequest} request.targetTcpProxiesSetBackendServiceRequestResource * The body resource for this request * @param {string} request.targetTcpProxy - * Name of the TargetTcpProxy resource whose BackendService resource is to be set. + * Name of the TargetTcpProxy resource whose BackendService resource + * is to be set. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -744,7 +782,19 @@ export class TargetTcpProxiesClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetTcpProxiesSetProxyHeaderRequest} request.targetTcpProxiesSetProxyHeaderRequestResource * The body resource for this request * @param {string} request.targetTcpProxy @@ -943,27 +993,116 @@ export class TargetTcpProxiesClient { /** - * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all TargetTcpProxy resources, regional and global, + * available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1000,22 +1139,101 @@ export class TargetTcpProxiesClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ITargetTcpProxiesScopedList]>; } /** - * Retrieves the list of TargetTcpProxy resources available to the specified project. + * Retrieves the list of TargetTcpProxy resources + * available to the specified project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1109,17 +1327,95 @@ export class TargetTcpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1162,17 +1458,95 @@ export class TargetTcpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/target_vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1beta/target_vpn_gateways_client.ts index 019caa6af8dd..68f00e5b1ad9 100644 --- a/packages/google-cloud-compute/src/v1beta/target_vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1beta/target_vpn_gateways_client.ts @@ -339,7 +339,19 @@ export class TargetVpnGatewaysClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.targetVpnGateway * Name of the target VPN gateway to delete. * @param {object} [options] @@ -536,7 +548,8 @@ export class TargetVpnGatewaysClient { }); } /** - * Creates a target VPN gateway in the specified project and region using the data included in the request. + * Creates a target VPN gateway in the specified project and region using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -545,7 +558,19 @@ export class TargetVpnGatewaysClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.TargetVpnGateway} request.targetVpnGatewayResource * The body resource for this request * @param {object} [options] @@ -641,7 +666,8 @@ export class TargetVpnGatewaysClient { }); } /** - * Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -652,7 +678,19 @@ export class TargetVpnGatewaysClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -853,27 +891,115 @@ export class TargetVpnGatewaysClient { /** - * Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of target VPN gateways. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -910,24 +1036,103 @@ export class TargetVpnGatewaysClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.ITargetVpnGatewaysScopedList]>; } /** - * Retrieves a list of target VPN gateways available to the specified project and region. + * Retrieves a list of target VPN gateways available to the specified + * project and region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1022,19 +1227,97 @@ export class TargetVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1078,19 +1361,97 @@ export class TargetVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/url_maps_client.ts b/packages/google-cloud-compute/src/v1beta/url_maps_client.ts index c26404079384..79f763fcf461 100644 --- a/packages/google-cloud-compute/src/v1beta/url_maps_client.ts +++ b/packages/google-cloud-compute/src/v1beta/url_maps_client.ts @@ -337,7 +337,19 @@ export class UrlMapsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.urlMap * Name of the UrlMap resource to delete. * @param {object} [options] @@ -530,14 +542,27 @@ export class UrlMapsClient { }); } /** - * Creates a UrlMap resource in the specified project using the data included in the request. + * Creates a UrlMap resource in the specified project using + * the data included in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.UrlMap} request.urlMapResource * The body resource for this request * @param {object} [options] @@ -632,7 +657,11 @@ export class UrlMapsClient { }); } /** - * Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * Initiates a cache invalidation operation, invalidating the specified path, + * scoped to the specified UrlMap. + * + * For more information, see [Invalidating cached + * content](/cdn/docs/invalidating-cached-content). * * @param {Object} request * The request object that will be sent. @@ -641,7 +670,19 @@ export class UrlMapsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.urlMap * Name of the UrlMap scoping this request. * @param {object} [options] @@ -737,14 +778,29 @@ export class UrlMapsClient { }); } /** - * Patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Patches the specified UrlMap resource with the data included in the + * request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.urlMap * Name of the UrlMap resource to patch. * @param {google.cloud.compute.v1beta.UrlMap} request.urlMapResource @@ -941,14 +997,27 @@ export class UrlMapsClient { }); } /** - * Updates the specified UrlMap resource with the data included in the request. + * Updates the specified UrlMap resource with the data included in the + * request. * * @param {Object} request * The request object that will be sent. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.urlMap * Name of the UrlMap resource to update. * @param {google.cloud.compute.v1beta.UrlMap} request.urlMapResource @@ -1046,7 +1115,9 @@ export class UrlMapsClient { }); } /** - * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. + * Runs static validation for the UrlMap. In particular, the tests of the + * provided UrlMap will be run. Calling this method does NOT create the + * UrlMap. * * @param {Object} request * The request object that will be sent. @@ -1147,27 +1218,116 @@ export class UrlMapsClient { /** - * Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves the list of all UrlMap resources, regional and global, + * available to the specified project. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Name of the project scoping this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1204,22 +1364,101 @@ export class UrlMapsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IUrlMapsScopedList]>; } /** - * Retrieves the list of UrlMap resources available to the specified project. + * Retrieves the list of UrlMap resources available to the specified + * project. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1313,17 +1552,95 @@ export class UrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1366,17 +1683,95 @@ export class UrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1beta/vpn_gateways_client.ts index 33114a47757a..595fa5a3d5ba 100644 --- a/packages/google-cloud-compute/src/v1beta/vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1beta/vpn_gateways_client.ts @@ -339,7 +339,19 @@ export class VpnGatewaysClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.vpnGateway * Name of the VPN gateway to delete. * @param {object} [options] @@ -636,7 +648,8 @@ export class VpnGatewaysClient { }); } /** - * Creates a VPN gateway in the specified project and region using the data included in the request. + * Creates a VPN gateway in the specified project and region using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -645,7 +658,19 @@ export class VpnGatewaysClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.VpnGateway} request.vpnGatewayResource * The body resource for this request * @param {object} [options] @@ -741,7 +766,8 @@ export class VpnGatewaysClient { }); } /** - * Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a VpnGateway. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -752,7 +778,19 @@ export class VpnGatewaysClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -953,27 +991,115 @@ export class VpnGatewaysClient { /** - * Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of VPN gateways. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1010,24 +1136,103 @@ export class VpnGatewaysClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IVpnGatewaysScopedList]>; } /** - * Retrieves a list of VPN gateways available to the specified project and region. + * Retrieves a list of VPN gateways available to the specified + * project and region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1122,19 +1327,97 @@ export class VpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1178,19 +1461,97 @@ export class VpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/vpn_tunnels_client.ts b/packages/google-cloud-compute/src/v1beta/vpn_tunnels_client.ts index 35f44fb28381..509f7f2582e3 100644 --- a/packages/google-cloud-compute/src/v1beta/vpn_tunnels_client.ts +++ b/packages/google-cloud-compute/src/v1beta/vpn_tunnels_client.ts @@ -339,7 +339,19 @@ export class VpnTunnelsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.vpnTunnel * Name of the VpnTunnel resource to delete. * @param {object} [options] @@ -536,7 +548,8 @@ export class VpnTunnelsClient { }); } /** - * Creates a VpnTunnel resource in the specified project and region using the data included in the request. + * Creates a VpnTunnel resource in the specified project and region using + * the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -545,7 +558,19 @@ export class VpnTunnelsClient { * @param {string} request.region * Name of the region for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {google.cloud.compute.v1beta.VpnTunnel} request.vpnTunnelResource * The body resource for this request * @param {object} [options] @@ -641,7 +666,8 @@ export class VpnTunnelsClient { }); } /** - * Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation. + * Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling + * Resources documentation. * * @param {Object} request * The request object that will be sent. @@ -652,7 +678,19 @@ export class VpnTunnelsClient { * @param {google.cloud.compute.v1beta.RegionSetLabelsRequest} request.regionSetLabelsRequestResource * The body resource for this request * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). * @param {string} request.resource * Name or id of the resource for this request. * @param {object} [options] @@ -853,27 +891,115 @@ export class VpnTunnelsClient { /** - * Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves an aggregated list of VPN tunnels. + * + * To prevent failure, Google recommends that you set the + * `returnPartialSuccess` parameter to `true`. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {boolean} request.includeAllScopes - * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {number} request.serviceProjectNumber - * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -910,24 +1036,103 @@ export class VpnTunnelsClient { ) as AsyncIterable<[string, protos.google.cloud.compute.v1beta.IVpnTunnelsScopedList]>; } /** - * Retrieves a list of VpnTunnel resources contained in the specified project and region. + * Retrieves a list of VpnTunnel resources contained in the specified + * project and region. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1022,19 +1227,97 @@ export class VpnTunnelsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1078,19 +1361,97 @@ export class VpnTunnelsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {string} request.region * Name of the region for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/wire_groups_client.ts b/packages/google-cloud-compute/src/v1beta/wire_groups_client.ts index 7eec62b359ef..7405f2753d2a 100644 --- a/packages/google-cloud-compute/src/v1beta/wire_groups_client.ts +++ b/packages/google-cloud-compute/src/v1beta/wire_groups_client.ts @@ -336,7 +336,20 @@ export class WireGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {string} request.wireGroup * Name of the wire group resource to delete. * @param {object} [options] @@ -532,7 +545,8 @@ export class WireGroupsClient { }); } /** - * Creates a wire group in the specified project in the given scope using the parameters that are included in the request. + * Creates a wire group in the specified project in the given scope + * using the parameters that are included in the request. * * @param {Object} request * The request object that will be sent. @@ -540,7 +554,20 @@ export class WireGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {boolean} request.validateOnly * [Input Only] Validate the new configuration, but don't create it. * @param {google.cloud.compute.v1beta.WireGroup} request.wireGroupResource @@ -638,7 +665,10 @@ export class WireGroupsClient { }); } /** - * Updates the specified wire group resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. + * Updates the specified wire group resource with the data included in the + * request. This method supportsPATCH + * semantics and usesJSON merge + * patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -646,7 +676,20 @@ export class WireGroupsClient { * @param {string} request.project * Project ID for this request. * @param {string} request.requestId - * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * end_interface: MixerMutationRequestBuilder * @param {string} request.updateMask * update_mask indicates fields to be updated as part of this request. * @param {boolean} request.validateOnly @@ -756,17 +799,95 @@ export class WireGroupsClient { * The request object that will be sent. * @param {string} request.crossSiteNetwork * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -862,17 +983,95 @@ export class WireGroupsClient { * The request object that will be sent. * @param {string} request.crossSiteNetwork * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -917,17 +1116,95 @@ export class WireGroupsClient { * The request object that will be sent. * @param {string} request.crossSiteNetwork * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1beta/zone_operations_client.ts b/packages/google-cloud-compute/src/v1beta/zone_operations_client.ts index 5efac781a7fb..b3b293a0f630 100644 --- a/packages/google-cloud-compute/src/v1beta/zone_operations_client.ts +++ b/packages/google-cloud-compute/src/v1beta/zone_operations_client.ts @@ -333,7 +333,8 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to delete, or its unique numeric identifier. + * Name of the Operations resource to delete, or its unique numeric + * identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.zone @@ -433,7 +434,8 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.zone @@ -528,12 +530,27 @@ export class ZoneOperationsClient { }); } /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. + * Waits for the specified Operation resource to return as `DONE` + * or for the request to approach the 2 minute deadline, and retrieves the + * specified Operation resource. This method waits for no more than the + * 2 minutes and then returns the current state of the + * operation, which might be `DONE` or still in progress. + * + * This method is called on a best-effort basis. Specifically: + * + * + * - In uncommon cases, when the server is overloaded, the request might + * return before the default deadline is reached, or might return after zero + * seconds. + * - If the default deadline is reached, there is no guarantee that the + * operation is actually done when the method returns. Be prepared to retry + * if the operation is not `DONE`. * * @param {Object} request * The request object that will be sent. * @param {string} request.operation - * Name of the Operations resource to return, or its unique numeric identifier. + * Name of the Operations resource to return, or its unique numeric + * identifier. * @param {string} request.project * Project ID for this request. * @param {string} request.zone @@ -629,22 +646,101 @@ export class ZoneOperationsClient { } /** - * Retrieves a list of Operation resources contained within the specified zone. + * Retrieves a list of Operation resources contained within + * the specified zone. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for request. * @param {object} [options] @@ -741,17 +837,95 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for request. * @param {object} [options] @@ -797,17 +971,95 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {string} request.zone * Name of the zone for request. * @param {object} [options] diff --git a/packages/google-cloud-compute/src/v1beta/zone_vm_extension_policies_client.ts b/packages/google-cloud-compute/src/v1beta/zone_vm_extension_policies_client.ts new file mode 100644 index 000000000000..f34b10666635 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/zone_vm_extension_policies_client.ts @@ -0,0 +1,1255 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1beta/zone_vm_extension_policies_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './zone_vm_extension_policies_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The ZoneVmExtensionPolicies API. + * @class + * @memberof v1beta + */ +export class ZoneVmExtensionPoliciesClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + zoneVmExtensionPoliciesStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of ZoneVmExtensionPoliciesClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new ZoneVmExtensionPoliciesClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof ZoneVmExtensionPoliciesClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1beta.ZoneVmExtensionPolicies', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.zoneVmExtensionPoliciesStub) { + return this.zoneVmExtensionPoliciesStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1beta.ZoneVmExtensionPolicies. + this.zoneVmExtensionPoliciesStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1beta.ZoneVmExtensionPolicies') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1beta.ZoneVmExtensionPolicies, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const zoneVmExtensionPoliciesStubMethods = + ['delete', 'get', 'insert', 'list', 'update']; + for (const methodName of zoneVmExtensionPoliciesStubMethods) { + const callPromise = this.zoneVmExtensionPoliciesStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.zoneVmExtensionPoliciesStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * Deletes a specified zone VM extension policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.vmExtensionPolicy + * Name of the zone VM extension policy to delete. + * @param {string} request.zone + * Name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/zone_vm_extension_policies.delete.js + * region_tag:compute_v1beta_generated_ZoneVmExtensionPolicies_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'vm_extension_policy': request.vmExtensionPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IDeleteZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('delete response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.delete(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Retrieves details of a specific zone VM extension policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.vmExtensionPolicy + * Name of the VM extension policy resource to return. + * @param {string} request.zone + * Name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1beta.VmExtensionPolicy|VmExtensionPolicy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/zone_vm_extension_policies.get.js + * region_tag:compute_v1beta_generated_ZoneVmExtensionPolicies_Get_async + */ + get( + request?: protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1beta.IVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'vm_extension_policy': request.vmExtensionPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1beta.IVmExtensionPolicy, + protos.google.cloud.compute.v1beta.IGetZoneVmExtensionPolicyRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Creates a new zone-level VM extension policy within a project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {google.cloud.compute.v1beta.VmExtensionPolicy} request.vmExtensionPolicyResource + * The body resource for this request + * @param {string} request.zone + * Name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/zone_vm_extension_policies.insert.js + * region_tag:compute_v1beta_generated_ZoneVmExtensionPolicies_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('insert request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IInsertZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('insert response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.insert(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Modifies an existing zone VM extension policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.vmExtensionPolicy + * Name of the zone VM extension policy to update. + * @param {google.cloud.compute.v1beta.VmExtensionPolicy} request.vmExtensionPolicyResource + * The body resource for this request + * @param {string} request.zone + * Name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1beta/zone_vm_extension_policies.update.js + * region_tag:compute_v1beta_generated_ZoneVmExtensionPolicies_Update_async + */ + update( + request?: protos.google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + update( + request: protos.google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + update( + request: protos.google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): void; + update( + request?: protos.google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'vm_extension_policy': request.vmExtensionPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('update request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IUpdateZoneVmExtensionPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('update response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.update(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + /** + * Lists all VM extension policies within a specific zone for a project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * Name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1beta.VmExtensionPolicy|VmExtensionPolicy}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1beta.IVmExtensionPolicy[], + protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest|null, + protos.google.cloud.compute.v1beta.IVmExtensionPolicyList + ]>; + list( + request: protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1beta.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IVmExtensionPolicy>): void; + list( + request: protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1beta.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IVmExtensionPolicy>): void; + list( + request?: protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1beta.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IVmExtensionPolicy>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1beta.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IVmExtensionPolicy>): + Promise<[ + protos.google.cloud.compute.v1beta.IVmExtensionPolicy[], + protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest|null, + protos.google.cloud.compute.v1beta.IVmExtensionPolicyList + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + protos.google.cloud.compute.v1beta.IVmExtensionPolicyList|null|undefined, + protos.google.cloud.compute.v1beta.IVmExtensionPolicy>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1beta.IVmExtensionPolicy[], + protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest|null, + protos.google.cloud.compute.v1beta.IVmExtensionPolicyList + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * Name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1beta.VmExtensionPolicy|VmExtensionPolicy} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * Name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1beta.VmExtensionPolicy|VmExtensionPolicy}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta/zone_vm_extension_policies.list.js + * region_tag:compute_v1beta_generated_ZoneVmExtensionPolicies_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1beta.IListZoneVmExtensionPoliciesRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.zoneVmExtensionPoliciesStub && !this._terminated) { + return this.zoneVmExtensionPoliciesStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1beta/zone_vm_extension_policies_client_config.json b/packages/google-cloud-compute/src/v1beta/zone_vm_extension_policies_client_config.json new file mode 100644 index 000000000000..6db1081774f0 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/zone_vm_extension_policies_client_config.json @@ -0,0 +1,46 @@ +{ + "interfaces": { + "google.cloud.compute.v1beta.ZoneVmExtensionPolicies": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Update": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1beta/zone_vm_extension_policies_proto_list.json b/packages/google-cloud-compute/src/v1beta/zone_vm_extension_policies_proto_list.json new file mode 100644 index 000000000000..ecbfc90443e6 --- /dev/null +++ b/packages/google-cloud-compute/src/v1beta/zone_vm_extension_policies_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1beta/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1beta/zones_client.ts b/packages/google-cloud-compute/src/v1beta/zones_client.ts index 7c7a7fb7f73b..463842cfa67c 100644 --- a/packages/google-cloud-compute/src/v1beta/zones_client.ts +++ b/packages/google-cloud-compute/src/v1beta/zones_client.ts @@ -432,17 +432,95 @@ export class ZonesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -536,17 +614,95 @@ export class ZonesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -589,17 +745,95 @@ export class ZonesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. * @param {number} request.maxResults - * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) * @param {string} request.orderBy - * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. * @param {string} request.pageToken - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. * @param {string} request.project * Project ID for this request. * @param {boolean} request.returnPartialSuccess - * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/test/gapic_backend_buckets_v1beta.ts b/packages/google-cloud-compute/test/gapic_backend_buckets_v1beta.ts index b4bea4397cd5..8e948a8d6571 100644 --- a/packages/google-cloud-compute/test/gapic_backend_buckets_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_backend_buckets_v1beta.ts @@ -1578,6 +1578,78 @@ describe('v1beta.BackendBucketsClient', () => { }); }); + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList without error', async () => { + const client = new backendbucketsModule.v1beta.BackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucketsScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucketsScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucketsScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1beta.IBackendBucketsScopedList]> = []; + const iterable = client.aggregatedListAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with aggregatedList with error', async () => { + const client = new backendbucketsModule.v1beta.BackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.aggregatedListAsync(request); + await assert.rejects(async () => { + const responses: Array<[string, protos.google.cloud.compute.v1beta.IBackendBucketsScopedList]> = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new backendbucketsModule.v1beta.BackendBucketsClient({ diff --git a/packages/google-cloud-compute/test/gapic_global_vm_extension_policies_v1beta.ts b/packages/google-cloud-compute/test/gapic_global_vm_extension_policies_v1beta.ts new file mode 100644 index 000000000000..82313938419e --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_global_vm_extension_policies_v1beta.ts @@ -0,0 +1,464 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as globalvmextensionpoliciesModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.GlobalVmExtensionPoliciesClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.globalVmExtensionPoliciesStub, undefined); + await client.initialize(); + assert(client.globalVmExtensionPoliciesStub); + }); + + it('has close method for the initialized client', done => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.globalVmExtensionPoliciesStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.globalVmExtensionPoliciesStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest', ['globalVmExtensionPolicy']); + request.globalVmExtensionPolicy = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&global_vm_extension_policy=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GlobalVmExtensionPolicy() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest', ['globalVmExtensionPolicy']); + request.globalVmExtensionPolicy = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&global_vm_extension_policy=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GlobalVmExtensionPolicy() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IGlobalVmExtensionPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest', ['globalVmExtensionPolicy']); + request.globalVmExtensionPolicy = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&global_vm_extension_policy=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetGlobalVmExtensionPolicyRequest', ['globalVmExtensionPolicy']); + request.globalVmExtensionPolicy = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList without error', async () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPoliciesScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList]> = []; + const iterable = client.aggregatedListAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with aggregatedList with error', async () => { + const client = new globalvmextensionpoliciesModule.v1beta.GlobalVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.aggregatedListAsync(request); + await assert.rejects(async () => { + const responses: Array<[string, protos.google.cloud.compute.v1beta.IVmExtensionPoliciesScopedList]> = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_instance_group_managers_v1beta.ts b/packages/google-cloud-compute/test/gapic_instance_group_managers_v1beta.ts index 667fd08b19d6..dd4d6e4a4cf8 100644 --- a/packages/google-cloud-compute/test/gapic_instance_group_managers_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_instance_group_managers_v1beta.ts @@ -1194,6 +1194,138 @@ describe('v1beta.InstanceGroupManagersClient', () => { }); }); + describe('getAvailableAcceleratorTopologies', () => { + it('invokes getAvailableAcceleratorTopologies without error', async () => { + const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['resourceId']); + request.resourceId = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource_id=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse() + ); + client.innerApiCalls.getAvailableAcceleratorTopologies = stubSimpleCall(expectedResponse); + const [response] = await client.getAvailableAcceleratorTopologies(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getAvailableAcceleratorTopologies as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getAvailableAcceleratorTopologies as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAvailableAcceleratorTopologies without error using callback', async () => { + const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['resourceId']); + request.resourceId = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource_id=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse() + ); + client.innerApiCalls.getAvailableAcceleratorTopologies = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getAvailableAcceleratorTopologies( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IInstanceGroupManagersGetAvailableAcceleratorTopologiesResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getAvailableAcceleratorTopologies as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getAvailableAcceleratorTopologies as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAvailableAcceleratorTopologies with error', async () => { + const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['resourceId']); + request.resourceId = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&resource_id=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getAvailableAcceleratorTopologies = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getAvailableAcceleratorTopologies(request), expectedError); + const actualRequest = (client.innerApiCalls.getAvailableAcceleratorTopologies as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getAvailableAcceleratorTopologies as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAvailableAcceleratorTopologies with closed client', async () => { + const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetAvailableAcceleratorTopologiesInstanceGroupManagerRequest', ['resourceId']); + request.resourceId = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getAvailableAcceleratorTopologies(request), expectedError); + }); + }); + describe('insert', () => { it('invokes insert without error', async () => { const client = new instancegroupmanagersModule.v1beta.InstanceGroupManagersClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_backend_buckets_v1beta.ts b/packages/google-cloud-compute/test/gapic_region_backend_buckets_v1beta.ts new file mode 100644 index 000000000000..8787a29cb36a --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_backend_buckets_v1beta.ts @@ -0,0 +1,1716 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as regionbackendbucketsModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.RegionBackendBucketsClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = regionbackendbucketsModule.v1beta.RegionBackendBucketsClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = regionbackendbucketsModule.v1beta.RegionBackendBucketsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regionbackendbucketsModule.v1beta.RegionBackendBucketsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionBackendBucketsStub, undefined); + await client.initialize(); + assert(client.regionBackendBucketsStub); + }); + + it('has close method for the initialized client', done => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionBackendBucketsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionBackendBucketsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.BackendBucket() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.BackendBucket() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IBackendBucket|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy without error using callback', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with closed client', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getIamPolicy(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('patch', () => { + it('invokes patch without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.patch = stubSimpleCall(expectedResponse); + const [response] = await client.patch(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch without error using callback', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.patch = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.patch( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&backend_bucket=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.patch = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.patch(request), expectedError); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch with closed client', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionBackendBucketRequest', ['backendBucket']); + request.backendBucket = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.patch(request), expectedError); + }); + }); + + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy without error using callback', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.setIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with closed client', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.setIamPolicy(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionBackendBucketRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IBackendBucket[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.BackendBucket) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.BackendBucket) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.IBackendBucket[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.IBackendBucket[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listUsable', () => { + it('invokes listUsable without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + ]; + client.innerApiCalls.listUsable = stubSimpleCall(expectedResponse); + const [response] = await client.listUsable(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.listUsable as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.listUsable as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listUsable without error using callback', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + ]; + client.innerApiCalls.listUsable = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listUsable( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IBackendBucket[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.listUsable as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.listUsable as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listUsable with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.listUsable = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.listUsable(request), expectedError); + const actualRequest = (client.innerApiCalls.listUsable as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.listUsable as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listUsableStream without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + ]; + client.descriptors.page.listUsable.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listUsableStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.BackendBucket) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.listUsable.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.listUsable, request)); + assert( + (client.descriptors.page.listUsable.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listUsableStream with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.listUsable.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listUsableStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.BackendBucket[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.BackendBucket) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.listUsable.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.listUsable, request)); + assert( + (client.descriptors.page.listUsable.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listUsable without error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.BackendBucket()), + ]; + client.descriptors.page.listUsable.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.IBackendBucket[] = []; + const iterable = client.listUsableAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listUsable.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.listUsable.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listUsable with error', async () => { + const client = new regionbackendbucketsModule.v1beta.RegionBackendBucketsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListUsableRegionBackendBucketsRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.listUsable.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listUsableAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.IBackendBucket[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listUsable.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.listUsable.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_region_composite_health_checks_v1beta.ts b/packages/google-cloud-compute/test/gapic_region_composite_health_checks_v1beta.ts new file mode 100644 index 000000000000..909d18da75b1 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_composite_health_checks_v1beta.ts @@ -0,0 +1,1258 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as regioncompositehealthchecksModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.RegionCompositeHealthChecksClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionCompositeHealthChecksStub, undefined); + await client.initialize(); + assert(client.regionCompositeHealthChecksStub); + }); + + it('has close method for the initialized client', done => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionCompositeHealthChecksStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionCompositeHealthChecksStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.CompositeHealthCheck() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.CompositeHealthCheck() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ICompositeHealthCheck|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('patch', () => { + it('invokes patch without error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.patch = stubSimpleCall(expectedResponse); + const [response] = await client.patch(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch without error using callback', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.patch = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.patch( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch with error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.patch = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.patch(request), expectedError); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch with closed client', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.patch(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionCompositeHealthCheckRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList without error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthChecksScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthChecksScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthChecksScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1beta.ICompositeHealthChecksScopedList]> = []; + const iterable = client.aggregatedListAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with aggregatedList with error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.aggregatedListAsync(request); + await assert.rejects(async () => { + const responses: Array<[string, protos.google.cloud.compute.v1beta.ICompositeHealthChecksScopedList]> = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ICompositeHealthCheck[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.CompositeHealthCheck[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.CompositeHealthCheck) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.CompositeHealthCheck[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.CompositeHealthCheck) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.CompositeHealthCheck()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.ICompositeHealthCheck[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new regioncompositehealthchecksModule.v1beta.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.ICompositeHealthCheck[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_region_health_aggregation_policies_v1beta.ts b/packages/google-cloud-compute/test/gapic_region_health_aggregation_policies_v1beta.ts new file mode 100644 index 000000000000..d9c57443f17d --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_health_aggregation_policies_v1beta.ts @@ -0,0 +1,1258 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as regionhealthaggregationpoliciesModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.RegionHealthAggregationPoliciesClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthAggregationPoliciesStub, undefined); + await client.initialize(); + assert(client.regionHealthAggregationPoliciesStub); + }); + + it('has close method for the initialized client', done => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionHealthAggregationPoliciesStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthAggregationPoliciesStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.HealthAggregationPolicy() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.HealthAggregationPolicy() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IHealthAggregationPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('patch', () => { + it('invokes patch without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.patch = stubSimpleCall(expectedResponse); + const [response] = await client.patch(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.patch = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.patch( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.patch = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.patch(request), expectedError); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.PatchRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.patch(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPoliciesScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList]> = []; + const iterable = client.aggregatedListAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with aggregatedList with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.aggregatedListAsync(request); + await assert.rejects(async () => { + const responses: Array<[string, protos.google.cloud.compute.v1beta.IHealthAggregationPoliciesScopedList]> = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IHealthAggregationPolicy[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.HealthAggregationPolicy[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.HealthAggregationPolicy) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.HealthAggregationPolicy[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.HealthAggregationPolicy) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthAggregationPolicy()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.IHealthAggregationPolicy[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1beta.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.IHealthAggregationPolicy[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_reservation_blocks_v1beta.ts b/packages/google-cloud-compute/test/gapic_reservation_blocks_v1beta.ts index 55a0814f1d0c..ad72c812db3b 100644 --- a/packages/google-cloud-compute/test/gapic_reservation_blocks_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_reservation_blocks_v1beta.ts @@ -414,6 +414,150 @@ describe('v1beta.ReservationBlocksClient', () => { }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy without error using callback', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with error', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with closed client', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getIamPolicy(request), expectedError); + }); + }); + describe('performMaintenance', () => { it('invokes performMaintenance without error', async () => { const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ @@ -558,6 +702,294 @@ describe('v1beta.ReservationBlocksClient', () => { }); }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy without error using callback', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with error', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.setIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with closed client', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.setIamPolicy(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new reservationblocksModule.v1beta.ReservationBlocksClient({ diff --git a/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1beta.ts b/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1beta.ts index d65d59ef5179..a1c70df3068f 100644 --- a/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1beta.ts @@ -414,6 +414,150 @@ describe('v1beta.ReservationSubBlocksClient', () => { }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy without error using callback', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with error', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with closed client', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetIamPolicyReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getIamPolicy(request), expectedError); + }); + }); + describe('performMaintenance', () => { it('invokes performMaintenance without error', async () => { const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ @@ -702,6 +846,294 @@ describe('v1beta.ReservationSubBlocksClient', () => { }); }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy without error using callback', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with error', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.setIamPolicy(request), expectedError); + const actualRequest = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with closed client', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.SetIamPolicyReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.setIamPolicy(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_resource=${defaultValue3 ?? '' }&resource=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['parentResource']); + request.parentResource = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.TestIamPermissionsReservationSubBlockRequest', ['resource']); + request.resource = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ diff --git a/packages/google-cloud-compute/test/gapic_zone_vm_extension_policies_v1beta.ts b/packages/google-cloud-compute/test/gapic_zone_vm_extension_policies_v1beta.ts new file mode 100644 index 000000000000..9a5fc5d5996b --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_zone_vm_extension_policies_v1beta.ts @@ -0,0 +1,1054 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as zonevmextensionpoliciesModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta.ZoneVmExtensionPoliciesClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.zoneVmExtensionPoliciesStub, undefined); + await client.initialize(); + assert(client.zoneVmExtensionPoliciesStub); + }); + + it('has close method for the initialized client', done => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.zoneVmExtensionPoliciesStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.zoneVmExtensionPoliciesStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.DeleteZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.VmExtensionPolicy() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.VmExtensionPolicy() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IVmExtensionPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.InsertZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('update', () => { + it('invokes update without error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.update = stubSimpleCall(expectedResponse); + const [response] = await client.update(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update without error using callback', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.update = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.update( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&vm_extension_policy=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.update = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.update(request), expectedError); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with closed client', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.UpdateZoneVmExtensionPolicyRequest', ['vmExtensionPolicy']); + request.vmExtensionPolicy = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.update(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IVmExtensionPolicy[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.VmExtensionPolicy[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.VmExtensionPolicy) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1beta.VmExtensionPolicy[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1beta.VmExtensionPolicy) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1beta.VmExtensionPolicy()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1beta.IVmExtensionPolicy[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new zonevmextensionpoliciesModule.v1beta.ZoneVmExtensionPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.ListZoneVmExtensionPoliciesRequest', ['zone']); + request.zone = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1beta.IVmExtensionPolicy[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +}); diff --git a/packages/google-cloud-dataplex/CHANGELOG.md b/packages/google-cloud-dataplex/CHANGELOG.md index 8facc2eb2caf..11a3e953e9aa 100644 --- a/packages/google-cloud-dataplex/CHANGELOG.md +++ b/packages/google-cloud-dataplex/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [5.3.0](https://github.com/googleapis/google-cloud-node/compare/dataplex-v5.2.0...dataplex-v5.3.0) (2025-11-11) + + +### Features + +* **dataplex:** [dataplex] Allow publishing Data Profile scan results to the Dataplex Catalog ([#6868](https://github.com/googleapis/google-cloud-node/issues/6868)) ([524ca3c](https://github.com/googleapis/google-cloud-node/commit/524ca3cabe52d2e58e83467f94968cdf28c79fe9)) +* **dataplex:** Add GetIamPolicy method for DataProduct resources ([524ca3c](https://github.com/googleapis/google-cloud-node/commit/524ca3cabe52d2e58e83467f94968cdf28c79fe9)) + ## [5.2.0](https://github.com/googleapis/google-cloud-node/compare/dataplex-v5.1.1...dataplex-v5.2.0) (2025-10-23) diff --git a/packages/google-cloud-dataplex/package.json b/packages/google-cloud-dataplex/package.json index 9feb1eef411e..0264e9852d10 100644 --- a/packages/google-cloud-dataplex/package.json +++ b/packages/google-cloud-dataplex/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/dataplex", - "version": "5.2.0", + "version": "5.3.0", "description": "dataplex client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/catalog.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/catalog.proto index 1889aab9b770..0e0a05ec95e3 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/catalog.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/catalog.proto @@ -1316,14 +1316,17 @@ message ListEntriesRequest { // // * entry_type // * entry_source.display_name + // * parent_entry // // The comparison operators are =, !=, <, >, <=, >=. The service compares // strings according to lexical order. // // You can use the logical operators AND, OR, NOT in the filter. // - // You can use Wildcard "*", but for entry_type you need to provide the - // full project id or number. + // You can use Wildcard "*", but for entry_type and parent_entry you need to + // provide the full project id or number. + // + // You cannot use parent_entry in conjunction with other fields. // // Example filter expressions: // @@ -1332,6 +1335,7 @@ message ListEntriesRequest { // * "entry_type=projects/example-project/locations/us/entryTypes/a* OR // entry_type=projects/another-project/locations/*" // * "NOT entry_source.display_name=AnotherExampleDisplayName" + // * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" string filter = 4 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_profile.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_profile.proto index 09143b9bcf15..ae729a36e057 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_profile.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_profile.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dataplex.v1; import "google/api/field_behavior.proto"; +import "google/cloud/dataplex/v1/datascans_common.proto"; import "google/cloud/dataplex/v1/processing.proto"; option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; @@ -83,6 +84,10 @@ message DataProfileSpec { // If specified, the fields will be excluded from data profile, regardless of // `include_fields` value. SelectedFields exclude_fields = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, the latest DataScan job result will be published as + // Dataplex Universal Catalog metadata. + bool catalog_publishing_enabled = 8 [(google.api.field_behavior) = OPTIONAL]; } // DataProfileResult defines the output of DataProfileScan. Each field of the @@ -292,4 +297,9 @@ message DataProfileResult { // Output only. The result of post scan actions. PostScanActionsResult post_scan_actions_result = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of publishing the data scan as Dataplex Universal + // Catalog metadata. + DataScanCatalogPublishingStatus catalog_publishing_status = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-dataplex/protos/protos.d.ts b/packages/google-cloud-dataplex/protos/protos.d.ts index a776443e3fe7..a36500795746 100644 --- a/packages/google-cloud-dataplex/protos/protos.d.ts +++ b/packages/google-cloud-dataplex/protos/protos.d.ts @@ -25512,6 +25512,9 @@ export namespace google { /** DataProfileSpec excludeFields */ excludeFields?: (google.cloud.dataplex.v1.DataProfileSpec.ISelectedFields|null); + + /** DataProfileSpec catalogPublishingEnabled */ + catalogPublishingEnabled?: (boolean|null); } /** Represents a DataProfileSpec. */ @@ -25538,6 +25541,9 @@ export namespace google { /** DataProfileSpec excludeFields. */ public excludeFields?: (google.cloud.dataplex.v1.DataProfileSpec.ISelectedFields|null); + /** DataProfileSpec catalogPublishingEnabled. */ + public catalogPublishingEnabled: boolean; + /** * Creates a new DataProfileSpec instance using the specified properties. * @param [properties] Properties to set @@ -25927,6 +25933,9 @@ export namespace google { /** DataProfileResult postScanActionsResult */ postScanActionsResult?: (google.cloud.dataplex.v1.DataProfileResult.IPostScanActionsResult|null); + + /** DataProfileResult catalogPublishingStatus */ + catalogPublishingStatus?: (google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus|null); } /** Represents a DataProfileResult. */ @@ -25950,6 +25959,9 @@ export namespace google { /** DataProfileResult postScanActionsResult. */ public postScanActionsResult?: (google.cloud.dataplex.v1.DataProfileResult.IPostScanActionsResult|null); + /** DataProfileResult catalogPublishingStatus. */ + public catalogPublishingStatus?: (google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus|null); + /** * Creates a new DataProfileResult instance using the specified properties. * @param [properties] Properties to set @@ -27056,6 +27068,113 @@ export namespace google { } } + /** Properties of a DataScanCatalogPublishingStatus. */ + interface IDataScanCatalogPublishingStatus { + + /** DataScanCatalogPublishingStatus state */ + state?: (google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State|keyof typeof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State|null); + } + + /** Represents a DataScanCatalogPublishingStatus. */ + class DataScanCatalogPublishingStatus implements IDataScanCatalogPublishingStatus { + + /** + * Constructs a new DataScanCatalogPublishingStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus); + + /** DataScanCatalogPublishingStatus state. */ + public state: (google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State|keyof typeof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State); + + /** + * Creates a new DataScanCatalogPublishingStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns DataScanCatalogPublishingStatus instance + */ + public static create(properties?: google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus): google.cloud.dataplex.v1.DataScanCatalogPublishingStatus; + + /** + * Encodes the specified DataScanCatalogPublishingStatus message. Does not implicitly {@link google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.verify|verify} messages. + * @param message DataScanCatalogPublishingStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataScanCatalogPublishingStatus message, length delimited. Does not implicitly {@link google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.verify|verify} messages. + * @param message DataScanCatalogPublishingStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataScanCatalogPublishingStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataScanCatalogPublishingStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataplex.v1.DataScanCatalogPublishingStatus; + + /** + * Decodes a DataScanCatalogPublishingStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataScanCatalogPublishingStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataplex.v1.DataScanCatalogPublishingStatus; + + /** + * Verifies a DataScanCatalogPublishingStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataScanCatalogPublishingStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataScanCatalogPublishingStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dataplex.v1.DataScanCatalogPublishingStatus; + + /** + * Creates a plain object from a DataScanCatalogPublishingStatus message. Also converts values to other types if specified. + * @param message DataScanCatalogPublishingStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dataplex.v1.DataScanCatalogPublishingStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataScanCatalogPublishingStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataScanCatalogPublishingStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DataScanCatalogPublishingStatus { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + SUCCEEDED = 1, + FAILED = 2 + } + } + /** Properties of a Trigger. */ interface ITrigger { @@ -30539,113 +30658,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DataScanCatalogPublishingStatus. */ - interface IDataScanCatalogPublishingStatus { - - /** DataScanCatalogPublishingStatus state */ - state?: (google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State|keyof typeof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State|null); - } - - /** Represents a DataScanCatalogPublishingStatus. */ - class DataScanCatalogPublishingStatus implements IDataScanCatalogPublishingStatus { - - /** - * Constructs a new DataScanCatalogPublishingStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus); - - /** DataScanCatalogPublishingStatus state. */ - public state: (google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State|keyof typeof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State); - - /** - * Creates a new DataScanCatalogPublishingStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns DataScanCatalogPublishingStatus instance - */ - public static create(properties?: google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus): google.cloud.dataplex.v1.DataScanCatalogPublishingStatus; - - /** - * Encodes the specified DataScanCatalogPublishingStatus message. Does not implicitly {@link google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.verify|verify} messages. - * @param message DataScanCatalogPublishingStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DataScanCatalogPublishingStatus message, length delimited. Does not implicitly {@link google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.verify|verify} messages. - * @param message DataScanCatalogPublishingStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DataScanCatalogPublishingStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataScanCatalogPublishingStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataplex.v1.DataScanCatalogPublishingStatus; - - /** - * Decodes a DataScanCatalogPublishingStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DataScanCatalogPublishingStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataplex.v1.DataScanCatalogPublishingStatus; - - /** - * Verifies a DataScanCatalogPublishingStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DataScanCatalogPublishingStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DataScanCatalogPublishingStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dataplex.v1.DataScanCatalogPublishingStatus; - - /** - * Creates a plain object from a DataScanCatalogPublishingStatus message. Also converts values to other types if specified. - * @param message DataScanCatalogPublishingStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dataplex.v1.DataScanCatalogPublishingStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DataScanCatalogPublishingStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DataScanCatalogPublishingStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace DataScanCatalogPublishingStatus { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - SUCCEEDED = 1, - FAILED = 2 - } - } - /** Represents a DataTaxonomyService */ class DataTaxonomyService extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-dataplex/protos/protos.js b/packages/google-cloud-dataplex/protos/protos.js index 20ad00f09c8d..bb58d0213d62 100644 --- a/packages/google-cloud-dataplex/protos/protos.js +++ b/packages/google-cloud-dataplex/protos/protos.js @@ -62909,6 +62909,7 @@ * @property {google.cloud.dataplex.v1.DataProfileSpec.IPostScanActions|null} [postScanActions] DataProfileSpec postScanActions * @property {google.cloud.dataplex.v1.DataProfileSpec.ISelectedFields|null} [includeFields] DataProfileSpec includeFields * @property {google.cloud.dataplex.v1.DataProfileSpec.ISelectedFields|null} [excludeFields] DataProfileSpec excludeFields + * @property {boolean|null} [catalogPublishingEnabled] DataProfileSpec catalogPublishingEnabled */ /** @@ -62966,6 +62967,14 @@ */ DataProfileSpec.prototype.excludeFields = null; + /** + * DataProfileSpec catalogPublishingEnabled. + * @member {boolean} catalogPublishingEnabled + * @memberof google.cloud.dataplex.v1.DataProfileSpec + * @instance + */ + DataProfileSpec.prototype.catalogPublishingEnabled = false; + /** * Creates a new DataProfileSpec instance using the specified properties. * @function create @@ -63000,6 +63009,8 @@ $root.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields.encode(message.includeFields, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.excludeFields != null && Object.hasOwnProperty.call(message, "excludeFields")) $root.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields.encode(message.excludeFields, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.catalogPublishingEnabled != null && Object.hasOwnProperty.call(message, "catalogPublishingEnabled")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.catalogPublishingEnabled); return writer; }; @@ -63056,6 +63067,10 @@ message.excludeFields = $root.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields.decode(reader, reader.uint32()); break; } + case 8: { + message.catalogPublishingEnabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -63112,6 +63127,9 @@ if (error) return "excludeFields." + error; } + if (message.catalogPublishingEnabled != null && message.hasOwnProperty("catalogPublishingEnabled")) + if (typeof message.catalogPublishingEnabled !== "boolean") + return "catalogPublishingEnabled: boolean expected"; return null; }; @@ -63146,6 +63164,8 @@ throw TypeError(".google.cloud.dataplex.v1.DataProfileSpec.excludeFields: object expected"); message.excludeFields = $root.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields.fromObject(object.excludeFields); } + if (object.catalogPublishingEnabled != null) + message.catalogPublishingEnabled = Boolean(object.catalogPublishingEnabled); return message; }; @@ -63168,6 +63188,7 @@ object.postScanActions = null; object.includeFields = null; object.excludeFields = null; + object.catalogPublishingEnabled = false; } if (message.samplingPercent != null && message.hasOwnProperty("samplingPercent")) object.samplingPercent = options.json && !isFinite(message.samplingPercent) ? String(message.samplingPercent) : message.samplingPercent; @@ -63179,6 +63200,8 @@ object.includeFields = $root.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields.toObject(message.includeFields, options); if (message.excludeFields != null && message.hasOwnProperty("excludeFields")) object.excludeFields = $root.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields.toObject(message.excludeFields, options); + if (message.catalogPublishingEnabled != null && message.hasOwnProperty("catalogPublishingEnabled")) + object.catalogPublishingEnabled = message.catalogPublishingEnabled; return object; }; @@ -63857,6 +63880,7 @@ * @property {google.cloud.dataplex.v1.DataProfileResult.IProfile|null} [profile] DataProfileResult profile * @property {google.cloud.dataplex.v1.IScannedData|null} [scannedData] DataProfileResult scannedData * @property {google.cloud.dataplex.v1.DataProfileResult.IPostScanActionsResult|null} [postScanActionsResult] DataProfileResult postScanActionsResult + * @property {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus|null} [catalogPublishingStatus] DataProfileResult catalogPublishingStatus */ /** @@ -63906,6 +63930,14 @@ */ DataProfileResult.prototype.postScanActionsResult = null; + /** + * DataProfileResult catalogPublishingStatus. + * @member {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus|null|undefined} catalogPublishingStatus + * @memberof google.cloud.dataplex.v1.DataProfileResult + * @instance + */ + DataProfileResult.prototype.catalogPublishingStatus = null; + /** * Creates a new DataProfileResult instance using the specified properties. * @function create @@ -63938,6 +63970,8 @@ $root.google.cloud.dataplex.v1.ScannedData.encode(message.scannedData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.postScanActionsResult != null && Object.hasOwnProperty.call(message, "postScanActionsResult")) $root.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.encode(message.postScanActionsResult, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.catalogPublishingStatus != null && Object.hasOwnProperty.call(message, "catalogPublishingStatus")) + $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.encode(message.catalogPublishingStatus, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -63990,6 +64024,10 @@ message.postScanActionsResult = $root.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.decode(reader, reader.uint32()); break; } + case 7: { + message.catalogPublishingStatus = $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -64043,6 +64081,11 @@ if (error) return "postScanActionsResult." + error; } + if (message.catalogPublishingStatus != null && message.hasOwnProperty("catalogPublishingStatus")) { + var error = $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.verify(message.catalogPublishingStatus); + if (error) + return "catalogPublishingStatus." + error; + } return null; }; @@ -64082,6 +64125,11 @@ throw TypeError(".google.cloud.dataplex.v1.DataProfileResult.postScanActionsResult: object expected"); message.postScanActionsResult = $root.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.fromObject(object.postScanActionsResult); } + if (object.catalogPublishingStatus != null) { + if (typeof object.catalogPublishingStatus !== "object") + throw TypeError(".google.cloud.dataplex.v1.DataProfileResult.catalogPublishingStatus: object expected"); + message.catalogPublishingStatus = $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.fromObject(object.catalogPublishingStatus); + } return message; }; @@ -64107,6 +64155,7 @@ object.profile = null; object.scannedData = null; object.postScanActionsResult = null; + object.catalogPublishingStatus = null; } if (message.rowCount != null && message.hasOwnProperty("rowCount")) if (typeof message.rowCount === "number") @@ -64119,6 +64168,8 @@ object.scannedData = $root.google.cloud.dataplex.v1.ScannedData.toObject(message.scannedData, options); if (message.postScanActionsResult != null && message.hasOwnProperty("postScanActionsResult")) object.postScanActionsResult = $root.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.toObject(message.postScanActionsResult, options); + if (message.catalogPublishingStatus != null && message.hasOwnProperty("catalogPublishingStatus")) + object.catalogPublishingStatus = $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.toObject(message.catalogPublishingStatus, options); return object; }; @@ -66762,7 +66813,252 @@ return PostScanActionsResult; })(); - return DataProfileResult; + return DataProfileResult; + })(); + + v1.DataScanCatalogPublishingStatus = (function() { + + /** + * Properties of a DataScanCatalogPublishingStatus. + * @memberof google.cloud.dataplex.v1 + * @interface IDataScanCatalogPublishingStatus + * @property {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State|null} [state] DataScanCatalogPublishingStatus state + */ + + /** + * Constructs a new DataScanCatalogPublishingStatus. + * @memberof google.cloud.dataplex.v1 + * @classdesc Represents a DataScanCatalogPublishingStatus. + * @implements IDataScanCatalogPublishingStatus + * @constructor + * @param {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus=} [properties] Properties to set + */ + function DataScanCatalogPublishingStatus(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataScanCatalogPublishingStatus state. + * @member {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State} state + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @instance + */ + DataScanCatalogPublishingStatus.prototype.state = 0; + + /** + * Creates a new DataScanCatalogPublishingStatus instance using the specified properties. + * @function create + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @static + * @param {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus=} [properties] Properties to set + * @returns {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} DataScanCatalogPublishingStatus instance + */ + DataScanCatalogPublishingStatus.create = function create(properties) { + return new DataScanCatalogPublishingStatus(properties); + }; + + /** + * Encodes the specified DataScanCatalogPublishingStatus message. Does not implicitly {@link google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @static + * @param {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus} message DataScanCatalogPublishingStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataScanCatalogPublishingStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + return writer; + }; + + /** + * Encodes the specified DataScanCatalogPublishingStatus message, length delimited. Does not implicitly {@link google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @static + * @param {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus} message DataScanCatalogPublishingStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataScanCatalogPublishingStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataScanCatalogPublishingStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} DataScanCatalogPublishingStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataScanCatalogPublishingStatus.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.state = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataScanCatalogPublishingStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} DataScanCatalogPublishingStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataScanCatalogPublishingStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataScanCatalogPublishingStatus message. + * @function verify + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataScanCatalogPublishingStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a DataScanCatalogPublishingStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} DataScanCatalogPublishingStatus + */ + DataScanCatalogPublishingStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus) + return object; + var message = new $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "SUCCEEDED": + case 1: + message.state = 1; + break; + case "FAILED": + case 2: + message.state = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a DataScanCatalogPublishingStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @static + * @param {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} message DataScanCatalogPublishingStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataScanCatalogPublishingStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State[message.state] === undefined ? message.state : $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State[message.state] : message.state; + return object; + }; + + /** + * Converts this DataScanCatalogPublishingStatus to JSON. + * @function toJSON + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @instance + * @returns {Object.} JSON object + */ + DataScanCatalogPublishingStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataScanCatalogPublishingStatus + * @function getTypeUrl + * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataScanCatalogPublishingStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dataplex.v1.DataScanCatalogPublishingStatus"; + }; + + /** + * State enum. + * @name google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} SUCCEEDED=1 SUCCEEDED value + * @property {number} FAILED=2 FAILED value + */ + DataScanCatalogPublishingStatus.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "SUCCEEDED"] = 1; + values[valuesById[2] = "FAILED"] = 2; + return values; + })(); + + return DataScanCatalogPublishingStatus; })(); v1.Trigger = (function() { @@ -75177,251 +75473,6 @@ return DataQualityColumnResult; })(); - v1.DataScanCatalogPublishingStatus = (function() { - - /** - * Properties of a DataScanCatalogPublishingStatus. - * @memberof google.cloud.dataplex.v1 - * @interface IDataScanCatalogPublishingStatus - * @property {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State|null} [state] DataScanCatalogPublishingStatus state - */ - - /** - * Constructs a new DataScanCatalogPublishingStatus. - * @memberof google.cloud.dataplex.v1 - * @classdesc Represents a DataScanCatalogPublishingStatus. - * @implements IDataScanCatalogPublishingStatus - * @constructor - * @param {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus=} [properties] Properties to set - */ - function DataScanCatalogPublishingStatus(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DataScanCatalogPublishingStatus state. - * @member {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State} state - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @instance - */ - DataScanCatalogPublishingStatus.prototype.state = 0; - - /** - * Creates a new DataScanCatalogPublishingStatus instance using the specified properties. - * @function create - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @static - * @param {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus=} [properties] Properties to set - * @returns {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} DataScanCatalogPublishingStatus instance - */ - DataScanCatalogPublishingStatus.create = function create(properties) { - return new DataScanCatalogPublishingStatus(properties); - }; - - /** - * Encodes the specified DataScanCatalogPublishingStatus message. Does not implicitly {@link google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.verify|verify} messages. - * @function encode - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @static - * @param {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus} message DataScanCatalogPublishingStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataScanCatalogPublishingStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - return writer; - }; - - /** - * Encodes the specified DataScanCatalogPublishingStatus message, length delimited. Does not implicitly {@link google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @static - * @param {google.cloud.dataplex.v1.IDataScanCatalogPublishingStatus} message DataScanCatalogPublishingStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataScanCatalogPublishingStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DataScanCatalogPublishingStatus message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} DataScanCatalogPublishingStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataScanCatalogPublishingStatus.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.state = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DataScanCatalogPublishingStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} DataScanCatalogPublishingStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataScanCatalogPublishingStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataScanCatalogPublishingStatus message. - * @function verify - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataScanCatalogPublishingStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * Creates a DataScanCatalogPublishingStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} DataScanCatalogPublishingStatus - */ - DataScanCatalogPublishingStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus) - return object; - var message = new $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus(); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "SUCCEEDED": - case 1: - message.state = 1; - break; - case "FAILED": - case 2: - message.state = 2; - break; - } - return message; - }; - - /** - * Creates a plain object from a DataScanCatalogPublishingStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @static - * @param {google.cloud.dataplex.v1.DataScanCatalogPublishingStatus} message DataScanCatalogPublishingStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataScanCatalogPublishingStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State[message.state] === undefined ? message.state : $root.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State[message.state] : message.state; - return object; - }; - - /** - * Converts this DataScanCatalogPublishingStatus to JSON. - * @function toJSON - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @instance - * @returns {Object.} JSON object - */ - DataScanCatalogPublishingStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DataScanCatalogPublishingStatus - * @function getTypeUrl - * @memberof google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DataScanCatalogPublishingStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dataplex.v1.DataScanCatalogPublishingStatus"; - }; - - /** - * State enum. - * @name google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} SUCCEEDED=1 SUCCEEDED value - * @property {number} FAILED=2 FAILED value - */ - DataScanCatalogPublishingStatus.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "SUCCEEDED"] = 1; - values[valuesById[2] = "FAILED"] = 2; - return values; - })(); - - return DataScanCatalogPublishingStatus; - })(); - v1.DataTaxonomyService = (function() { /** diff --git a/packages/google-cloud-dataplex/protos/protos.json b/packages/google-cloud-dataplex/protos/protos.json index f0613d673b95..478f5568f87e 100644 --- a/packages/google-cloud-dataplex/protos/protos.json +++ b/packages/google-cloud-dataplex/protos/protos.json @@ -8423,6 +8423,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "catalogPublishingEnabled": { + "type": "bool", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -8493,6 +8500,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "catalogPublishingStatus": { + "type": "DataScanCatalogPublishingStatus", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -8766,6 +8780,26 @@ } } }, + "DataScanCatalogPublishingStatus": { + "fields": { + "state": { + "type": "State", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "SUCCEEDED": 1, + "FAILED": 2 + } + } + } + }, "Trigger": { "oneofs": { "mode": { @@ -9559,26 +9593,6 @@ } } }, - "DataScanCatalogPublishingStatus": { - "fields": { - "state": { - "type": "State", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "SUCCEEDED": 1, - "FAILED": 2 - } - } - } - }, "DataTaxonomyService": { "options": { "deprecated": true, diff --git a/packages/google-cloud-dataplex/samples/generated/v1/catalog_service.list_entries.js b/packages/google-cloud-dataplex/samples/generated/v1/catalog_service.list_entries.js index 23fe936a73bd..3d797fd7acbb 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/catalog_service.list_entries.js +++ b/packages/google-cloud-dataplex/samples/generated/v1/catalog_service.list_entries.js @@ -50,17 +50,20 @@ function main(parent) { * You can filter the request by the following fields: * * entry_type * * entry_source.display_name + * * parent_entry * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * You can use the logical operators AND, OR, NOT in the filter. - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * You cannot use parent_entry in conjunction with other fields. * Example filter expressions: * * "entry_source.display_name=AnExampleDisplayName" * * "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type" * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" */ // const filter = 'abc123' diff --git a/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata_google.cloud.dataplex.v1.json b/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata_google.cloud.dataplex.v1.json index 8a79b39ef964..ebdc9c5f5ab0 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata_google.cloud.dataplex.v1.json +++ b/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata_google.cloud.dataplex.v1.json @@ -1582,7 +1582,7 @@ "segments": [ { "start": 25, - "end": 86, + "end": 89, "type": "FULL" } ], diff --git a/packages/google-cloud-dataplex/samples/package.json b/packages/google-cloud-dataplex/samples/package.json index d86ec6483c55..2b266246cccd 100644 --- a/packages/google-cloud-dataplex/samples/package.json +++ b/packages/google-cloud-dataplex/samples/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/dataplex": "^5.2.0" + "@google-cloud/dataplex": "^5.3.0" }, "devDependencies": { "c8": "^9.0.0", diff --git a/packages/google-cloud-dataplex/src/v1/business_glossary_service_client.ts b/packages/google-cloud-dataplex/src/v1/business_glossary_service_client.ts index acd6ae86ec48..7e0057fa361a 100644 --- a/packages/google-cloud-dataplex/src/v1/business_glossary_service_client.ts +++ b/packages/google-cloud-dataplex/src/v1/business_glossary_service_client.ts @@ -300,9 +300,9 @@ export class BusinessGlossaryServiceClient { }; if (opts.fallback) { lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], - },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:setIamPolicy',body: '*',}], - },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:testIamPermissions',body: '*',}], + lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], + },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',}], + },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',}], },{selector: 'google.longrunning.Operations.CancelOperation',post: '/v1/{name=projects/*/locations/*/operations/*}:cancel',body: '*',additional_bindings: [{post: '/v1/{name=organizations/*/locations/*/operations/*}:cancel',body: '*',}], },{selector: 'google.longrunning.Operations.DeleteOperation',delete: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{delete: '/v1/{name=organizations/*/locations/*/operations/*}',}], },{selector: 'google.longrunning.Operations.GetOperation',get: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{get: '/v1/{name=organizations/*/locations/*/operations/*}',}], diff --git a/packages/google-cloud-dataplex/src/v1/catalog_service_client.ts b/packages/google-cloud-dataplex/src/v1/catalog_service_client.ts index 51a7d1b3f5f3..ed32d8f797a8 100644 --- a/packages/google-cloud-dataplex/src/v1/catalog_service_client.ts +++ b/packages/google-cloud-dataplex/src/v1/catalog_service_client.ts @@ -305,9 +305,9 @@ export class CatalogServiceClient { }; if (opts.fallback) { lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], - },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:setIamPolicy',body: '*',}], - },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:testIamPermissions',body: '*',}], + lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], + },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',}], + },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',}], },{selector: 'google.longrunning.Operations.CancelOperation',post: '/v1/{name=projects/*/locations/*/operations/*}:cancel',body: '*',additional_bindings: [{post: '/v1/{name=organizations/*/locations/*/operations/*}:cancel',body: '*',}], },{selector: 'google.longrunning.Operations.DeleteOperation',delete: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{delete: '/v1/{name=organizations/*/locations/*/operations/*}',}], },{selector: 'google.longrunning.Operations.GetOperation',get: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{get: '/v1/{name=organizations/*/locations/*/operations/*}',}], @@ -3773,14 +3773,17 @@ export class CatalogServiceClient { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -3789,6 +3792,7 @@ export class CatalogServiceClient { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3898,14 +3902,17 @@ export class CatalogServiceClient { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -3914,6 +3921,7 @@ export class CatalogServiceClient { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -3972,14 +3980,17 @@ export class CatalogServiceClient { * * * entry_type * * entry_source.display_name + * * parent_entry * * The comparison operators are =, !=, <, >, <=, >=. The service compares * strings according to lexical order. * * You can use the logical operators AND, OR, NOT in the filter. * - * You can use Wildcard "*", but for entry_type you need to provide the - * full project id or number. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * + * You cannot use parent_entry in conjunction with other fields. * * Example filter expressions: * @@ -3988,6 +3999,7 @@ export class CatalogServiceClient { * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR * entry_type=projects/another-project/locations/*" * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-dataplex/src/v1/cmek_service_client.ts b/packages/google-cloud-dataplex/src/v1/cmek_service_client.ts index 58a08a898d59..8e149be10d57 100644 --- a/packages/google-cloud-dataplex/src/v1/cmek_service_client.ts +++ b/packages/google-cloud-dataplex/src/v1/cmek_service_client.ts @@ -297,9 +297,9 @@ export class CmekServiceClient { }; if (opts.fallback) { lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], - },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:setIamPolicy',body: '*',}], - },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:testIamPermissions',body: '*',}], + lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], + },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',}], + },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',}], },{selector: 'google.longrunning.Operations.CancelOperation',post: '/v1/{name=projects/*/locations/*/operations/*}:cancel',body: '*',additional_bindings: [{post: '/v1/{name=organizations/*/locations/*/operations/*}:cancel',body: '*',}], },{selector: 'google.longrunning.Operations.DeleteOperation',delete: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{delete: '/v1/{name=organizations/*/locations/*/operations/*}',}], },{selector: 'google.longrunning.Operations.GetOperation',get: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{get: '/v1/{name=organizations/*/locations/*/operations/*}',}], diff --git a/packages/google-cloud-dataplex/src/v1/content_service_client.ts b/packages/google-cloud-dataplex/src/v1/content_service_client.ts index 8af1a07b5018..c40ff9a308be 100644 --- a/packages/google-cloud-dataplex/src/v1/content_service_client.ts +++ b/packages/google-cloud-dataplex/src/v1/content_service_client.ts @@ -289,9 +289,9 @@ export class ContentServiceClient { }; if (opts.fallback) { lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], - },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:setIamPolicy',body: '*',}], - },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:testIamPermissions',body: '*',}], + lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], + },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',}], + },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',}], },{selector: 'google.longrunning.Operations.CancelOperation',post: '/v1/{name=projects/*/locations/*/operations/*}:cancel',body: '*',additional_bindings: [{post: '/v1/{name=organizations/*/locations/*/operations/*}:cancel',body: '*',}], },{selector: 'google.longrunning.Operations.DeleteOperation',delete: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{delete: '/v1/{name=organizations/*/locations/*/operations/*}',}], },{selector: 'google.longrunning.Operations.GetOperation',get: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{get: '/v1/{name=organizations/*/locations/*/operations/*}',}], diff --git a/packages/google-cloud-dataplex/src/v1/data_scan_service_client.ts b/packages/google-cloud-dataplex/src/v1/data_scan_service_client.ts index 18debf9d1ff7..a33ab390a96c 100644 --- a/packages/google-cloud-dataplex/src/v1/data_scan_service_client.ts +++ b/packages/google-cloud-dataplex/src/v1/data_scan_service_client.ts @@ -295,9 +295,9 @@ export class DataScanServiceClient { }; if (opts.fallback) { lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], - },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:setIamPolicy',body: '*',}], - },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:testIamPermissions',body: '*',}], + lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], + },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',}], + },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',}], },{selector: 'google.longrunning.Operations.CancelOperation',post: '/v1/{name=projects/*/locations/*/operations/*}:cancel',body: '*',additional_bindings: [{post: '/v1/{name=organizations/*/locations/*/operations/*}:cancel',body: '*',}], },{selector: 'google.longrunning.Operations.DeleteOperation',delete: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{delete: '/v1/{name=organizations/*/locations/*/operations/*}',}], },{selector: 'google.longrunning.Operations.GetOperation',get: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{get: '/v1/{name=organizations/*/locations/*/operations/*}',}], diff --git a/packages/google-cloud-dataplex/src/v1/data_taxonomy_service_client.ts b/packages/google-cloud-dataplex/src/v1/data_taxonomy_service_client.ts index a22c8980be0a..888e1a5eae87 100644 --- a/packages/google-cloud-dataplex/src/v1/data_taxonomy_service_client.ts +++ b/packages/google-cloud-dataplex/src/v1/data_taxonomy_service_client.ts @@ -297,9 +297,9 @@ export class DataTaxonomyServiceClient { }; if (opts.fallback) { lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], - },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:setIamPolicy',body: '*',}], - },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:testIamPermissions',body: '*',}], + lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], + },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',}], + },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',}], },{selector: 'google.longrunning.Operations.CancelOperation',post: '/v1/{name=projects/*/locations/*/operations/*}:cancel',body: '*',additional_bindings: [{post: '/v1/{name=organizations/*/locations/*/operations/*}:cancel',body: '*',}], },{selector: 'google.longrunning.Operations.DeleteOperation',delete: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{delete: '/v1/{name=organizations/*/locations/*/operations/*}',}], },{selector: 'google.longrunning.Operations.GetOperation',get: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{get: '/v1/{name=organizations/*/locations/*/operations/*}',}], diff --git a/packages/google-cloud-dataplex/src/v1/dataplex_service_client.ts b/packages/google-cloud-dataplex/src/v1/dataplex_service_client.ts index 3485a60a2b26..0dd8aac7abc0 100644 --- a/packages/google-cloud-dataplex/src/v1/dataplex_service_client.ts +++ b/packages/google-cloud-dataplex/src/v1/dataplex_service_client.ts @@ -313,9 +313,9 @@ export class DataplexServiceClient { }; if (opts.fallback) { lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], - },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:setIamPolicy',body: '*',}], - },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:testIamPermissions',body: '*',}], + lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], + },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',}], + },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',}], },{selector: 'google.longrunning.Operations.CancelOperation',post: '/v1/{name=projects/*/locations/*/operations/*}:cancel',body: '*',additional_bindings: [{post: '/v1/{name=organizations/*/locations/*/operations/*}:cancel',body: '*',}], },{selector: 'google.longrunning.Operations.DeleteOperation',delete: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{delete: '/v1/{name=organizations/*/locations/*/operations/*}',}], },{selector: 'google.longrunning.Operations.GetOperation',get: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{get: '/v1/{name=organizations/*/locations/*/operations/*}',}], diff --git a/packages/google-cloud-dataplex/src/v1/metadata_service_client.ts b/packages/google-cloud-dataplex/src/v1/metadata_service_client.ts index 27084515f4d9..0f736d57f778 100644 --- a/packages/google-cloud-dataplex/src/v1/metadata_service_client.ts +++ b/packages/google-cloud-dataplex/src/v1/metadata_service_client.ts @@ -291,9 +291,9 @@ export class MetadataServiceClient { }; if (opts.fallback) { lroOptions.protoJson = protoFilesRoot; - lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], - },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:setIamPolicy',body: '*',}], - },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*/dataAssets/*}:testIamPermissions',body: '*',}], + lroOptions.httpRules = [{selector: 'google.cloud.location.Locations.GetLocation',get: '/v1/{name=projects/*/locations/*}',},{selector: 'google.cloud.location.Locations.ListLocations',get: '/v1/{name=projects/*}/locations',},{selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',get: '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy',additional_bindings: [{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy',},{get: '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy',},{get: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy',}], + },{selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy',body: '*',}], + },{selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions',body: '*',additional_bindings: [{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions',body: '*',},{post: '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions',body: '*',}], },{selector: 'google.longrunning.Operations.CancelOperation',post: '/v1/{name=projects/*/locations/*/operations/*}:cancel',body: '*',additional_bindings: [{post: '/v1/{name=organizations/*/locations/*/operations/*}:cancel',body: '*',}], },{selector: 'google.longrunning.Operations.DeleteOperation',delete: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{delete: '/v1/{name=organizations/*/locations/*/operations/*}',}], },{selector: 'google.longrunning.Operations.GetOperation',get: '/v1/{name=projects/*/locations/*/operations/*}',additional_bindings: [{get: '/v1/{name=organizations/*/locations/*/operations/*}',}], diff --git a/packages/google-cloud-dialogflow-cx/CHANGELOG.md b/packages/google-cloud-dialogflow-cx/CHANGELOG.md index fa45e194d0f4..bbc73182d366 100644 --- a/packages/google-cloud-dialogflow-cx/CHANGELOG.md +++ b/packages/google-cloud-dialogflow-cx/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [5.5.0](https://github.com/googleapis/google-cloud-node/compare/dialogflow-cx-v5.4.0...dialogflow-cx-v5.5.0) (2025-11-21) + + +### Features + +* [cx] add support for defining custom actions in code. See https://cloud.google.com/dialogflow/cx/docs/concept/playbook/code-block for more information ([#6879](https://github.com/googleapis/google-cloud-node/issues/6879)) ([54e3b03](https://github.com/googleapis/google-cloud-node/commit/54e3b03149fd8f91ea076b691ec0e32d45748421)) + ## [5.4.0](https://github.com/googleapis/google-cloud-node/compare/dialogflow-cx-v5.3.0...dialogflow-cx-v5.4.0) (2025-10-13) diff --git a/packages/google-cloud-dialogflow-cx/package.json b/packages/google-cloud-dialogflow-cx/package.json index f6a2a79be8b9..9e040f0ecff0 100644 --- a/packages/google-cloud-dialogflow-cx/package.json +++ b/packages/google-cloud-dialogflow-cx/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/dialogflow-cx", - "version": "5.4.0", + "version": "5.5.0", "description": "Cx client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/code_block.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/code_block.proto new file mode 100644 index 000000000000..3c66595cfd95 --- /dev/null +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/code_block.proto @@ -0,0 +1,32 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3beta1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb"; +option java_multiple_files = true; +option java_outer_classname = "CodeBlockProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; + +// Represents a code block. +message CodeBlock { + // Optional. Source code of the block in Python. + string code = 1 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/playbook.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/playbook.proto index e3bbfaf1ed3f..6495357e12e5 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/playbook.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/playbook.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; +import "google/cloud/dialogflow/cx/v3beta1/code_block.proto"; import "google/cloud/dialogflow/cx/v3beta1/example.proto"; import "google/cloud/dialogflow/cx/v3beta1/fulfillment.proto"; import "google/cloud/dialogflow/cx/v3beta1/generative_settings.proto"; @@ -363,6 +364,19 @@ message Playbook { (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Tool" } ]; + // Optional. Output only. Names of inline actions scoped to this playbook. + // These actions are in addition to those belonging to referenced tools, child + // playbooks, and flows, e.g. actions that are defined in the playbook's code + // block. + repeated string inline_actions = 22 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. The playbook's scoped code block, which may implement handlers + // and actions. + CodeBlock code_block = 21 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Llm model settings for the playbook. LlmModelSettings llm_model_settings = 14 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/tool.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/tool.proto index 0faea81509f4..9e84a34bffc8 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/tool.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/tool.proto @@ -591,6 +591,20 @@ message Tool { ]; } + // Configuration for authentication using a service account. + message ServiceAccountAuthConfig { + // Required. The email address of the service account used to authenticate + // the tool call. Dialogflow uses this service account to exchange an + // access token and the access token is then sent in the `Authorization` + // header of the tool request. + // + // The service account must have the + // `roles/iam.serviceAccountTokenCreator` role granted to the + // [Dialogflow service + // agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). + string service_account = 1 [(google.api.field_behavior) = REQUIRED]; + } + // The auth configuration. oneof auth_config { // Config for API key auth. @@ -606,6 +620,9 @@ message Tool { // Config for bearer token auth. BearerTokenConfig bearer_token_config = 4; + + // Configuration for service account authentication. + ServiceAccountAuthConfig service_account_auth_config = 5; } } diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto index 55f9578bea3e..bb269d3b7b80 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto @@ -165,6 +165,20 @@ message Webhook { ACCESS_TOKEN = 3; } + // Configuration for authentication using a service account. + message ServiceAccountAuthConfig { + // Required. The email address of the service acco{"code":"deadline_exceeded","msg":"operation timed out"}